/* ═══════════════════════════════════════════════════════════════
   RELISH FOODS — styles.css
   Premium Clam Processing | Alappuzha, Kerala
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
    --deep-ocean: #0a1628;
    --ocean-dark: #0f2038;
    --ocean-mid: #163050;
    --teal: #2a9d8f;
    --teal-light: #40b8a8;
    --coral: #e07a3a;
    --coral-light: #f09050;
    --purple: #6b3fa0;
    --purple-light: #8b5fbf;
    --sand: #f4efe8;
    --sand-light: #faf8f5;
    --warm-gray: #8a8078;
    --text-dark: #1a1a1a;
    --text-light: #e8e4df;
    --text-muted: #a0998f;
    --blue-prod: #3B82F6;
    --green-qc: #10B981;
    --orange-proc: #F59E0B;
    --purple-ship: #8B5CF6;
}

/* ─── RESET ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--sand-light);
    overflow-x: hidden;
}

/* ─── NAVIGATION ─── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.6rem 2rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-icon {
    width: 46px;
    height: auto;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--teal-light);
    transition: width 0.3s;
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--teal);
    color: white !important;
    padding: 0.55rem 1.3rem;
    border-radius: 4px;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    transition: background 0.3s, transform 0.3s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-light); transform: translateY(-1px); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--deep-ocean);
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.6) 100%),
        linear-gradient(180deg, rgba(10,22,40,0.2) 0%, transparent 30%, transparent 70%, rgba(10,22,40,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-logo-img {
    width: 220px;
    height: auto;
    margin-bottom: 2rem;
    animation: hero-fade-in 1.2s ease-out;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    animation: hero-fade-in 1.2s ease-out 0.3s both;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: hero-fade-in 1.2s ease-out 0.5s both;
}

.hero-title em {
    font-style: italic;
    color: var(--teal-light);
}

.hero-title-brand {
    display: inline;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--teal-light);
    font-style: normal;
    letter-spacing: 0.02em;
}

.hero-title-logo {
    width: 0.7em;
    height: auto;
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: -0.05em;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    animation: hero-fade-in 1.2s ease-out 0.7s both;
}

.hero-japanese {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3em;
    animation: hero-fade-in 1.2s ease-out 0.9s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    stroke: rgba(255,255,255,0.4);
    fill: none;
    stroke-width: 1.5;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes hero-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTIONS COMMON ─── */
section {
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--warm-gray);
    max-width: 600px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ABOUT ─── */
.about {
    background: var(--sand-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-highlight {
    display: inline-block;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--teal);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin-top: 0.5rem;
}

.about-highlight span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
}

.about-visual {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ocean-dark);
}

.about-visual-inner {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--ocean-dark) 0%, var(--ocean-mid) 50%, var(--teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.about-visual-inner .stat {
    text-align: center;
}

.about-visual-inner .stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: white;
}

.about-visual-inner .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6);
}

.about-visual-inner .earth-badge {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ─── DIFFERENTIATORS ─── */
.differentiators {
    background: white;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.diff-card {
    padding: 2.5rem 2rem;
    border-radius: 10px;
    background: var(--sand-light);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.diff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.diff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.diff-card:nth-child(1)::before { background: var(--teal); }
.diff-card:nth-child(2)::before { background: var(--coral); }
.diff-card:nth-child(3)::before { background: var(--purple); }
.diff-card:nth-child(4)::before { background: var(--coral); }
.diff-card:nth-child(5)::before { background: var(--purple); }
.diff-card:nth-child(6)::before { background: var(--teal); }

.diff-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.diff-card:nth-child(1) .diff-icon { background: rgba(42,157,143,0.1); color: var(--teal); }
.diff-card:nth-child(2) .diff-icon { background: rgba(224,122,58,0.1); color: var(--coral); }
.diff-card:nth-child(3) .diff-icon { background: rgba(107,63,160,0.1); color: var(--purple); }
.diff-card:nth-child(4) .diff-icon { background: rgba(224,122,58,0.1); color: var(--coral); }
.diff-card:nth-child(5) .diff-icon { background: rgba(107,63,160,0.1); color: var(--purple); }
.diff-card:nth-child(6) .diff-icon { background: rgba(42,157,143,0.1); color: var(--teal); }

.diff-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.diff-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--warm-gray);
}

/* ─── CIRCULAR ECONOMY (PROCESS) ─── */
.process {
    background: var(--deep-ocean);
    color: white;
    position: relative;
    overflow: hidden;
}

.process .section-label { color: var(--teal-light); }
.process .section-title { color: white; }
.process .section-desc { color: rgba(255,255,255,0.5); }

.process-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 4rem;
    position: relative;
}

.process-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--purple), var(--coral), var(--teal));
    opacity: 0.3;
    transform: translateY(-50%);
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 1rem 0.5rem;
}

.process-step-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.process-step:hover .process-step-dot {
    transform: scale(1.15);
}

.process-step:nth-child(1) .process-step-dot { background: rgba(42,157,143,0.2); border: 2px solid var(--teal); }
.process-step:nth-child(2) .process-step-dot { background: rgba(42,157,143,0.15); border: 2px solid rgba(42,157,143,0.7); }
.process-step:nth-child(3) .process-step-dot { background: rgba(107,63,160,0.15); border: 2px solid rgba(107,63,160,0.7); }
.process-step:nth-child(4) .process-step-dot { background: rgba(107,63,160,0.2); border: 2px solid var(--purple); }
.process-step:nth-child(5) .process-step-dot { background: rgba(224,122,58,0.15); border: 2px solid rgba(224,122,58,0.7); }
.process-step:nth-child(6) .process-step-dot { background: rgba(224,122,58,0.2); border: 2px solid var(--coral); }
.process-step:nth-child(7) .process-step-dot { background: rgba(42,157,143,0.2); border: 2px solid var(--teal-light); }

.process-step h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.9);
}

.process-step p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

.process-badge {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(42,157,143,0.3);
    border-radius: 8px;
    background: rgba(42,157,143,0.05);
}

.process-badge span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--teal-light);
    font-weight: 500;
}

/* ─── OUR METHOD ─── */
.method {
    background: var(--sand-light);
}

.method-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.method-column {
    padding: 2.5rem;
    border-radius: 12px;
}

.method-traditional {
    background: #f0ebe5;
    border: 1px solid #e0d8cf;
}

.method-ours {
    background: var(--deep-ocean);
    color: white;
}

.method-column h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.method-ours h3 { color: var(--teal-light); }

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.method-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 2px;
}

.method-traditional .method-item-icon {
    background: rgba(0,0,0,0.06);
    color: var(--warm-gray);
}

.method-ours .method-item-icon {
    background: rgba(42,157,143,0.2);
    color: var(--teal-light);
}

.method-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: inherit;
}

.method-ours .method-item p { color: rgba(255,255,255,0.7); }
.method-traditional .method-item p { color: #666; }

.method-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.method-vs span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--warm-gray);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.15em;
}

/* ─── PRODUCT PORTFOLIO (VIDEO) ─── */
.product-portfolio {
    background: var(--deep-ocean);
    color: white;
    position: relative;
    overflow: hidden;
}

.product-portfolio .section-label { color: var(--teal-light); }
.product-portfolio .section-title { color: white; }
.product-portfolio .section-desc { color: rgba(255,255,255,0.5); }

.portfolio-video-container {
    margin-top: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    background: #000;
    aspect-ratio: 16/9;
}

.portfolio-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-video-container:hover .video-controls {
    opacity: 1;
}

.video-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.video-play-btn:hover {
    background: var(--teal-light);
    transform: scale(1.1);
}

.video-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.video-progress-bar {
    height: 100%;
    background: var(--teal);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.video-time {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-variant-numeric: tabular-nums;
    min-width: 90px;
    text-align: right;
}

/* ─── PRODUCTS GRID ─── */
.products {
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--sand-light);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--sand-light));
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-info p {
    font-size: 0.85rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

.product-tag {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.25rem 0.65rem;
    background: rgba(42,157,143,0.1);
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── DATA FLOW ANIMATION ─── */
.dataflow {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%);
    overflow: hidden;
}

.dataflow-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dataflow-animation-area {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.dataflow-streams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stream-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.stream-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.stream-header-icon.prod { background: var(--blue-prod); }
.stream-header-icon.qc { background: var(--green-qc); }

.stream-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.stream-header h3.prod-color { color: var(--blue-prod); }
.stream-header h3.qc-color { color: var(--green-qc); }

.df-step {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: white;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.df-step.active-prod {
    border-color: var(--blue-prod);
    background: #eff6ff;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
}

.df-step.active-qc {
    border-color: var(--green-qc);
    background: #ecfdf5;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
}

.df-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.df-step-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.df-step-form {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.df-step-form.prod-bg { background: var(--blue-prod); }
.df-step-form.qc-bg { background: var(--green-qc); }

.df-step-worker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.6rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s, transform 0.4s;
}

.df-step.active-prod .df-step-worker,
.df-step.active-qc .df-step-worker {
    opacity: 1;
    transform: translateX(0);
}

.df-worker-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    animation: worker-bob 2s ease-in-out infinite;
}

.df-worker-avatar.prod-bg { background: var(--blue-prod); }
.df-worker-avatar.qc-bg { background: var(--green-qc); }

@keyframes worker-bob {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.df-worker-info p {
    font-size: 0.8rem;
    color: #475569;
}

.df-worker-info p:last-child {
    font-size: 0.72rem;
    color: #94a3b8;
}

.df-data-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.4s 0.2s;
}

.df-step.active-prod .df-data-icons,
.df-step.active-qc .df-data-icons {
    opacity: 1;
}

.df-data-icons span {
    font-size: 1.1rem;
}

.df-sent-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
}

.df-step.data-sent .df-sent-badge {
    opacity: 1;
    transform: scale(1);
    animation: badge-pop 0.4s ease-out;
}

.df-sent-badge.prod-bg { background: var(--blue-prod); }
.df-sent-badge.qc-bg { background: var(--green-qc); }

@keyframes badge-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Pipeline */
.df-pipeline {
    position: relative;
}

.df-pipeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1.5rem;
}

.df-pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.df-pipeline-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.df-pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.df-node-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    transition: all 0.5s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.df-node-circle.active {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.df-node-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    max-width: 70px;
    line-height: 1.3;
}

/* Data particle */
.df-particle {
    position: absolute;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange-proc);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    z-index: 5;
    transition: left 0.8s ease;
}

/* Legend */
.df-legend {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.df-legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.df-legend-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.df-legend-dot.prod { background: var(--blue-prod); }
.df-legend-dot.qc { background: var(--green-qc); }
.df-legend-dot.data { background: var(--orange-proc); }

.df-legend-text p:first-child {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.df-legend-text p:last-child {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ─── MARKETS ─── */
.markets {
    background: var(--sand-light);
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.market-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s;
}

.market-card:hover { transform: translateY(-4px); }

.market-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.market-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.market-card p {
    font-size: 0.88rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

/* ─── CONTACT ─── */
.contact {
    background: var(--deep-ocean);
    color: white;
    position: relative;
}

.contact .section-label { color: var(--teal-light); }
.contact .section-title { color: white; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(42,157,143,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--teal-light);
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.3rem;
    font-weight: 400;
}

.contact-item p, .contact-item a {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    line-height: 1.5;
}

.contact-item a:hover { color: var(--teal-light); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    align-self: flex-start;
    padding: 0.85rem 2rem;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.contact-form button:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(42,157,143,0.15);
    border: 1px solid var(--teal);
    color: var(--teal-light);
}

.form-status.error {
    display: block;
    background: rgba(224,122,58,0.15);
    border: 1px solid var(--coral);
    color: var(--coral-light);
}

.associates {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.associates h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1rem;
}

.associates-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0.5;
}

.associates-logos span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}

/* ─── FOOTER ─── */
footer {
    background: #060d18;
    color: rgba(255,255,255,0.3);
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--deep-ocean);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    padding: 0.8rem 0;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 968px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-visual { height: 300px; }
    .diff-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .method-compare { grid-template-columns: 1fr; }
    .method-vs { display: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .process-flow { flex-wrap: wrap; justify-content: center; }
    .process-step { flex: 0 0 30%; }
    .process-flow::before { display: none; }
    .dataflow-streams { grid-template-columns: 1fr; gap: 2rem; }
    .df-legend { grid-template-columns: 1fr; }
    .df-pipeline-steps { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
    .df-pipeline-steps::before { display: none; }
    .df-particle { display: none; }
}

@media (max-width: 640px) {
    section { padding: 4rem 1.25rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-nav { display: block; }
    .diff-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .markets-grid { grid-template-columns: 1fr; }
    .process-step { flex: 0 0 45%; }
    .hero-logo-img { width: 160px; }
    .portfolio-video-container { aspect-ratio: auto; }
    .video-controls { opacity: 1; }
    .about-visual-inner .earth-badge {
        font-size: 0.72rem;
        padding: 0.6rem 1rem;
        letter-spacing: 0.05em;
    }
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        white-space: nowrap;
    }
}
