/* ========================
   1. FONTS & VARS
   ======================== */
@font-face {
    font-family: 'Yaro';
    src: url('fonts/YaroRg.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'Quity';
    src: url('fonts/quity.otf') format('opentype');
    font-weight: normal;
}

:root {
    --cream: #efecce;
    --brown: #423c3b;
    --orange: #f68823;
    --font-head: 'Yaro', sans-serif;
    --font-logo: 'Quity', serif;
    --font-body: 'Poppins', sans-serif;
}

/* ========================
   LIGHT MODE LOGIC
   ======================== */
[data-theme="light"] {
    /* 1. SWAP THE COLORS */
    --brown: #efecce;
    /* 'Brown' var is now Cream (Background) */
    --cream: #423c3b;
    /* 'Cream' var is now Brown (Text) */

    /* 2. IMAGE FILTERS */
    /* Turns your White/Cream Text Images into Dark Brown */
}

/* Apply filter to images in Light Mode so they are visible */
[data-theme="light"] .nav-logo-img,
[data-theme="light"] .cursor-img.c-default {
    filter: brightness(0) saturate(100%) invert(23%) sepia(10%) saturate(632%) hue-rotate(314deg) brightness(97%) contrast(92%);
    mix-blend-mode: normal !important;
}

/* Ensure the Mega Hero (Orange) and About Image (Photo) stay normal */
[data-theme="light"] .mega-brand-img,
[data-theme="light"] .about-img {
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* 3. SERVICE CARDS FIX for Light Mode */
[data-theme="light"] .dark-card {
    background-color: #ffffff;
    color: #423c3b;
    /* Brown Text */
    border: 1px solid rgba(66, 60, 59, 0.1);
}

/* 4. FOOTER FIX */
[data-theme="light"] .footer-reveal {
    background-color: var(--cream);
    /* Brown BG */
    color: var(--brown);
    /* Cream Text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

/* GLOBAL FIX: Force words to stay whole */
html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--brown);
    color: var(--cream);
    font-family: var(--font-body);
    cursor: none;
    
    /* CRITICAL FIXES FOR TEXT WRAPPING */
    word-break: normal !important;    /* Break only at spaces */
    overflow-wrap: normal !important; /* Never break mid-word */
    white-space: normal;              /* Allow normal wrapping at spaces */
    hyphens: none;
}

/* ========================
   2. PRELOADER (Hindi Sequence)
   ======================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cream);
    z-index: 9999;
    display: flex;
    /* CHANGED: Centered looks better for a Logo Reveal than bottom-right */
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loader-content {
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* The Hindi Character Style */
.loader-text {
    font-family: var(--font-head); /* Yaro Font */
    /* Responsive Giant Text: Min 6rem, Pref 15vw, Max 18rem */
    font-size: clamp(6rem, 15vw, 18rem);
    color: var(--orange);
    line-height: 1;
    margin: 0;
    display: block; /* Visible by default */
}

/* The Final Logo Style */
.loader-logo {
    display: none; /* Hidden by default */
    width: 250px;  /* Desktop Size */
    height: auto;
    object-fit: contain;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .loader-logo {
        width: 180px; /* Smaller on Mobile */
    }
}

/* ========================
   2. Noise-overlay & BRAND CURSOR
   ======================== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- BRAND CURSOR STYLES --- */
.brand-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    z-index: 20000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.cursor-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

/* Default State (White Logo) */
.c-default {
    opacity: 1;
    mix-blend-mode: screen;
}

/* Active State (Orange Logo) */
.c-active {
    opacity: 0;
}

/* --- HOVER STATE 1: STANDARD (Turns Orange) --- */
body.hovered .brand-cursor {
    width: 50px;
    height: 50px;
}

body.hovered .c-default {
    opacity: 0;
}

body.hovered .c-active {
    opacity: 1;
}

/* --- HOVER STATE 2: CONTRAST (Stays White) --- */
body.hover-contrast .brand-cursor {
    width: 50px;
    height: 50px;
}

body.hover-contrast .c-default {
    opacity: 1 !important;
}

body.hover-contrast .c-active {
    opacity: 0 !important;
}

/* --- HOVER STATE 3: DARK (Turns Brown) --- */
body.hover-dark .brand-cursor {
    width: 50px;
    height: 50px;
}

body.hover-dark .c-default {
    opacity: 0 !important;
}

body.hover-dark .c-active {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(23%) sepia(10%) saturate(632%) hue-rotate(314deg) brightness(97%) contrast(92%);
}

/* --- FOOTER CURSOR MODE (Turns Orange) --- */
body.footer-cursor-mode .c-default {
    opacity: 0;
}

body.footer-cursor-mode .c-active {
    opacity: 1;
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .brand-cursor {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* ========================
   3. NAVIGATION
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-logo-img {
    height: 35px;
    width: 35px;
    object-fit: contain;
    display: block;
    mix-blend-mode: lighten;
}

/* ========================
   NAVBAR LOGO UPDATE (Hindi Text)
   ======================== */
/* .nav-logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 2rem;
    color: var(--cream);
    line-height: 1;
    display: block;
    letter-spacing: 1px;
} */

/* FIX: Navbar Colors when Menu is Open */
.navbar.nav-open {
    mix-blend-mode: normal !important;
}

.navbar.nav-open .hamburger span {
    background-color: var(--brown) !important;
}

.navbar.nav-open .nav-logo-img {
    opacity: 1;
    mix-blend-mode: lighten;
}

.menu-toggle {
    cursor: pointer;
    width: 40px;
    height: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    margin-bottom: 6px;
    transition: 0.3s;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--orange);
    z-index: 90;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.menu-link {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--brown);
    text-decoration: none;
    transition: 0.3s;
}

.menu-link:hover {
    color: var(--cream);
    font-style: italic;
}

@media (min-width: 1024px) {
    .nav-logo-img {
        height: 45px;
    }
}

/* ========================
   NEW MEGA HERO
   ======================== */
/* .mega-hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.mega-text-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2%;
}

.mega-brand-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    mix-blend-mode: lighten;
    opacity: 0;
}

@media (max-width: 768px) {
    .mega-hero-section {
        height: 60vh;
    }
} */

/* ========================
   NEW MEGA HERO (Full Screen Video)
   ======================== */
.mega-hero-section {
    /* 1. Fill the viewport */
    /* height: 100vh; */
    width: 100%;
    
    /* 2. Push content down so it starts AFTER the navbar */
    /* Navbar is approx 100px tall including padding */
    padding-top: 110px; 
    padding-bottom: 20px; /* Small gap at bottom */
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-sizing: border-box; /* Ensures padding is included in height */
}

.mega-text-container {
    width: 100%;
    height: 100%;
    display: block;
    /* Remove internal padding so video fills this box completely */
    padding: 0; 
}

/* ========================
   MEGA HERO VIDEO
   ======================== */
.mega-brand-video {
    width: 100%;
    height: 100%; /* Force full height */
    object-fit: cover; /* THE KEY: Fills screen, cropping edges if needed */
    
    /* Style: Rounded corners to match your 'Karigar' aesthetic */
    border-radius: 5px;
    
    /* Animation Start State */
    opacity: 0; 
    transform: scale(0.95);
}

/* Ensure Video stays normal in Light Mode */
[data-theme="light"] .mega-brand-video {
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Responsive: On mobile, reduce top padding slightly */
@media (max-width: 768px) {
    .mega-hero-section {
        padding-top: 90px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }
}

/* ========================
   MEGA HERO VIDEO SWAPPING
   ======================== */

/* Default: Desktop Mode */
.desktop-video {
    display: block;
}

.mobile-video {
    display: none; /* Hide mobile video by default */
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .desktop-video {
        display: none; /* Hide desktop video */
    }

    .mobile-video {
        display: block; /* Show mobile video */
    }
}

/* ========================
   4. HERO (CREATIVE UPDATE)
   ======================== */
.hero-section {
    position: relative;
    padding: 180px 5% 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    position: relative;
}

/* --- TYPOGRAPHY --- */
.hero-title {
    font-family: var(--font-head);
    /* Reduced scaling (9.5vw -> 7vw) to fit the longer sentence */
    font-size: clamp(3rem, 7vw, 5.5rem); 
    line-height: 1.1; /* Slight increase for readability */
    z-index: 1;
    position: relative;
    white-space: nowrap;
}

.row-1 {
    display: block;
    margin-left: -5px;
}

.row-2 {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px var(--cream);
    margin-left: 8vw;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.hero-title:hover .row-2 {
    opacity: 1;
    color: var(--cream);
    -webkit-text-stroke: 0px;
}

.row-3 {
    display: block;
    color: var(--orange);
    font-style: italic;
    font-size: 1em;
    margin-left: 2vw;
}

/* --- 3D TILT IMAGE --- */
.hero-visual {
    width: 100%;
    height: 65vh;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.tilt-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(239, 236, 206, 0.2);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateZ(20px);
}

/* --- ROTATING BADGE --- */
.hero-badge {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 110px;
    height: 110px;
    background: var(--brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--orange);
    color: var(--orange);
    transform: translateZ(60px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-badge svg {
    width: 100%;
    height: 100%;
    animation: spin 15s linear infinite;
}

.hero-badge text {
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* .badge-arrow {
    position: absolute;
    font-size: 1.5rem;
    color: var(--cream);
} */


/* ========================
   UPDATED BADGE CENTER IMAGE (Theme Swap Fix)
   ======================== */

.badge-center-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    z-index: 2;
}

.badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

/* --- DEFAULT (Dark Mode) --- */
.b-white {
    opacity: 1; /* Show White 'B' */
}

.b-orange {
    opacity: 0; /* Hide Orange 'B' */
}

/* --- LIGHT MODE (Theme Swap) --- */
[data-theme="light"] .b-white {
    opacity: 0; /* Hide White 'B' */
}

[data-theme="light"] .b-orange {
    opacity: 1; /* Show Orange 'B' */
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .badge-center-wrapper {
        width: 35px;
        height: 35px;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- FOOTER --- */
.hero-footer {
    border-top: 1px solid rgba(239, 236, 206, 0.2);
    padding-top: 1rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-sub {
    max-width: 350px;
    opacity: 0.8;
    font-size: 1.1rem;
    line-height: 1.5;
}

.scroll-line {
    width: 100px;
    height: 1px;
    background: var(--cream);
    opacity: 0.5;
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        width: 100%;
        height: 50vh;
        order: 2;
    }

    .hero-text {
        order: 1;
        text-align: center;
    }

    .hero-title {
        white-space: normal;
        font-size: 4.5rem;
    }

    .row-2 {
        margin-left: 0;
    }

    .row-3 {
        margin-left: 0;
    }

    .hero-img {
        width: 100%;
        transform: none !important;
    }

    .hero-badge {
        bottom: -20px;
        right: -10px;
        left: auto;
        width: 100px;
        height: 100px;
    }
}

/* ========================
   5. MARQUEE
   ======================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
}

.marquee-wrapper {
    background: var(--cream);
    color: var(--brown);
    padding: 1.5rem 0;
    transform: rotate(-4deg) scale(1.05);
    white-space: nowrap;
    width: 110%;
    margin-left: -5%;
}

.marquee-track {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-head);
    font-size: 2rem;
    text-transform: uppercase;
}

.marquee-track i {
    font-size: 1rem;
    color: var(--orange);
    margin: 0 1.5rem;
    vertical-align: middle;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================
   6. INTRO
   ======================== */
.intro-section {
    padding: 8rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.intro-visual img {
    width: 100%;
    max-width: 450px;    /* Allows the image to be larger/clearer */
    height: auto;        /* Maintains original aspect ratio */
    border-radius: 20px; /* Slight consistent curve, but not a circle */
    display: block;
    object-fit: cover;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.label {
    display: block;
    color: var(--orange);
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.intro-text {
    font-family: var(--font-head);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 3rem;
    word-break: normal;
}

.highlight {
    color: var(--orange);
    font-style: italic;
}

.btn-pill {
    padding: 1rem 3rem;
    border: 1px solid var(--cream);
    border-radius: 50px;
    text-decoration: none;
    color: var(--cream);
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    background: transparent;
}

.btn-pill:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--brown);
}

/* Stats/Metrics Part  */
.stats-wrapper {
    display: flex;
    gap: 4rem;
    border-top: 1px solid rgba(239, 236, 206, 0.2);
    padding-top: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .stats-wrapper {
        gap: 2rem;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .stats-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
}


/* ========================
   NEW AGENCY ABOUT SECTION
   ======================== */
/* .agency-about-section {
    padding: 10rem 0;
    background-color: var(--brown);
    color: var(--cream);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.about-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-frame {
    width: 100%;
    height: auto;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.about-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.1;
    margin: 2rem 0;
}

.about-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 4rem;
    max-width: 90%;
    opacity: 0.8;
}

.stats-wrapper {
    display: flex;
    gap: 4rem;
    border-top: 1px solid rgba(239, 236, 206, 0.2);
    padding-top: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .about-detail-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .img-frame {
        max-height: 60vh;
        order: 2;
    }

    .about-info {
        order: 1;
    }

    .stats-wrapper {
        gap: 2rem;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .stats-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
} */

/* ========================
   MISSION & VISION (FINAL FIX)
   ======================== */
.agency-about-section {
    padding: 8rem 0;
    background-color: var(--brown);
    color: var(--cream);
    overflow: hidden;
}

/* --- 1. HEADER --- */
.mv-header-unique {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(239, 236, 206, 0.2);
}

.mv-label-col {
    width: 50px;
    position: relative;
}

.label-large {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    display: inline-block;
    white-space: nowrap;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left center;
    position: absolute;
    left: 10px;
    top: 50px;
}

.mv-headline-col {
    max-width: 85%;
    text-align: right;
}

/* FONT FIX: Force font-weight normal so Yaro loads correctly */
.mv-title-large {
    font-family: 'Yaro', serif !important; 
    font-weight: normal !important; /* CRITICAL FIX */
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1;
    color: var(--cream);
}

/* --- 2. ROW LAYOUT --- */
.mv-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Image Col / Text Col */
    gap: 4rem;
    align-items: center; /* Center vertically, DO NOT STRETCH */
    margin-bottom: 8rem;
}

/* --- 3. IMAGE STYLING (NATURAL & CONTROLLABLE) --- */
.mv-visual {
    width: 100%;
    height: auto !important; /* Let image dictate height */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    
    /* Centers image if you make it smaller */
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.mv-img {
    display: block;
    width: 100%;       /* Default: Fill width of container */
    height: auto !important; /* Maintain Original Aspect Ratio */
    max-width: 100%;   /* Ensure it never overflows */
    object-fit: contain; 
    border-radius: 20px;
}

/* --- 4. TEXT CONTENT --- */
.mv-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mv-subhead {
    font-family: 'Yaro', serif !important; 
    font-weight: normal !important; /* CRITICAL FIX */
    font-size: 3.5rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.mv-desc {
    font-family: var(--font-body);
    font-size: 2rem;
    line-height: 1.2;
    opacity: 0.85;
    /* max-width: 90%; */
}

/* Vision Quote */
.mv-quote-box {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--orange);
}

.mv-bold-text {
    font-family: 'Yaro', serif !important; 
    font-weight: normal !important; /* CRITICAL FIX */
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--cream);
}

/* --- 5. REVERSE LAYOUT --- */
.reverse-layout {
    grid-template-columns: 1.2fr 1fr;
}
.reverse-layout .mv-content {
    order: 1; 
    padding-right: 2rem;
}
.reverse-layout .mv-visual {
    order: 2;
}

/* --- 6. FOOTER BUTTON (RESTORED) --- */
.mv-footer-btn {
    display: flex;
    justify-content: center;
    /* margin-top: 4rem; */
}

.lets-talk-wrapper {
    position: relative;
    display: inline-block;
}

.btn-reveal {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 1.5rem 4rem;
    background: transparent;
    border: 1px solid var(--cream);
    border-radius: 60px;
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    width: 320px;
    text-align: center;
    cursor: pointer;
}

.btn-text-front,
.btn-text-back {
    display: block;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.btn-text-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    width: 100%;
    color: var(--brown);
    font-family: 'Yaro', serif; 
    font-weight: normal;
    font-size: 1.4rem;
}

.btn-reveal:hover {
    background: var(--orange);
    border-color: var(--orange);
}

.btn-reveal:hover .btn-text-front {
    transform: translateY(-200%);
}

.btn-reveal:hover .btn-text-back {
    transform: translate(-50%, -50%);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .mv-header-unique {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
    .mv-label-col { width: 100%; height: auto; }
    .label-large { position: relative; transform: none; left: 0; top: 0; }
    .mv-headline-col { max-width: 100%; text-align: left; }

    .mv-row, .reverse-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        align-items: center; 
    }
    .reverse-layout .mv-content { order: 2; padding-right: 0; }
    .reverse-layout .mv-visual { order: 1; }
}

/* ========================
   7. HORIZONTAL WORK
   ======================== */
/* .work-section {
    padding: 5rem 0;
    overflow: hidden;
}

.work-sticky-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-header {
    padding-left: 5%;
    margin-bottom: 3rem;
}

.work-header h2 {
    font-family: var(--font-head);
    font-size: 4rem;
}

.horizontal-track {
    display: flex;
    gap: 4rem;
    padding-left: 5%;
    width: max-content;
}

.work-card {
    width: 24vw;
    max-width: 600px;
    flex-shrink: 0;
    position: relative;
}

.work-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: transparent;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.work-card:hover .work-img img {
    transform: scale(1.05);
}

.work-info h3 {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--orange);
}

.work-info p {
    opacity: 0.7;
} */

/* ========================
   7. HORIZONTAL WORK (UPDATED)
   ======================== */
.work-section {
    padding: 5rem 0;
    overflow: hidden;
}

.work-sticky-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-header {
    padding-left: 5%;
    margin-bottom: 3rem;
}

.work-header h2 {
    font-family: var(--font-head);
    font-size: 4rem;
}

.horizontal-track {
    display: flex;
    gap: 4rem;
    padding-left: 10%;
    width: max-content;
}

/* --- WORK CARD STYLING --- */
.work-card {
    width: 28vw; /* Slightly wider to fit text */
    max-width: 500px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    background: #000;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s, opacity 0.3s;
    opacity: 0.9;
}

/* Hover Effect: Image zooms & overlay appears */
.work-card:hover .work-img img {
    transform: scale(1.1);
    opacity: 0.4;
}

.card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    font-family: var(--font-body);
    color: #efecce;
    border: 1px solid #efecce;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
}

.work-info h3 {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
}

.client-list {
    font-family: var(--font-body);
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* ========================
   PROJECT MODAL (NEW)
   ======================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark dim background */
    backdrop-filter: blur(10px);
    z-index: 10001; /* Above everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: var(--cream);
    color: var(--brown);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(50px);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(66, 60, 59, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--cream);
}

.modal-header h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--orange);
    margin: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--brown);
    cursor: pointer;
    transition: transform 0.3s;
}

.close-modal-btn:hover {
    transform: rotate(90deg);
    color: var(--orange);
}

.modal-body {
    padding: 3rem;
    overflow-y: auto; /* Enable vertical scrolling */
    flex-grow: 1;
    
    /* FIX: Prevent scroll chaining (scrolling parent when modal ends) */
    overscroll-behavior: contain;
    
    /* Smooth momentum scrolling on mobile */
    -webkit-overflow-scrolling: touch; 
}

/* --- CUSTOM SCROLLBAR FOR MODAL --- */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--orange); /* Brand color scroll handle */
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #d6761f;
}

/* --- MODAL GRID --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-media {
    width: 100%;
    aspect-ratio: 1/1; /* Square thumbnails */
    border-radius: 12px;
    overflow: hidden;
    background: #ccc;
    position: relative;
}

.project-media img, 
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-media img {
    transform: scale(1.05);
}

.project-client-name {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--brown);
}

/* --- LIGHT MODE FIXES FOR MODAL --- */

[data-theme="light"] .modal-container {
    background: #ffffff;
    /* This sets the default text, but specific classes override it */
    color: #423c3b; 
}

/* 1. Fix the Client Names (Brand Names) */
[data-theme="light"] .project-client-name {
    color: #423c3b; /* Force Dark Brown */
}

/* 2. Fix the Close 'X' Button (It was also invisible) */
[data-theme="light"] .close-modal-btn {
    color: #423c3b; 
}

/* 3. Ensure the Modal Header Background matches */
[data-theme="light"] .modal-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(66, 60, 59, 0.1);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .work-card {
        width: 80vw;
    }
    
    .modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* ========================
   LIGHTBOX (FULL SCREEN VIEW) - FIXED
   ======================== */
.lightbox-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10005; /* High Z-Index */
    
    /* HIDDEN STATE */
    opacity: 0; 
    visibility: hidden;      
    pointer-events: none;    
    
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    /* ACTIVE STATE */
    opacity: 1; 
    visibility: visible;     
    pointer-events: all;     
}

.lightbox-content {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10006; /* Above overlay */
}

.lightbox-content img, 
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================
   LIGHTBOX CLOSE BUTTON FIX
   ======================== */
.lightbox-close {
    position: absolute;
    top: 2rem; 
    right: 2rem;
    background: none; 
    border: none;
    color: #fff; 
    font-size: 3rem; 
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    
    /* FIX: Maximum Z-Index to stay above everything */
    z-index: 100000; 
    pointer-events: auto;
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

/* Ensure the icon itself doesn't block the button click */
.lightbox-close i {
    pointer-events: none;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--orange);
}

/* ========================
   8. STACKING SERVICES
   ======================== */
.services-section {
    padding: 8rem 0;
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-header h2 {
    font-family: var(--font-head);
    font-size: 4rem;
}

.cards-stack {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 10vh;
    padding-inline: 5%;
}

.service-card {
    padding: 4rem;
    border-radius: 20px;
    margin-bottom: 4rem;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cream-card {
    background: var(--cream);
    color: var(--brown);
}

.orange-card {
    background: var(--orange);
    color: var(--cream);
}

.dark-card {
    background: #221e1d;
    color: var(--cream);
    border: 1px solid var(--orange);
}

.svc-num {
    font-family: var(--font-head);
    font-size: 4rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.2rem;
    max-width: 70%;
    line-height: 1.6;
}

.svc-icon {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 120px;
    mix-blend-mode: multiply;
}

/* --- ICON VISIBILITY LOGIC (Dark/Light Mode) --- */
.dark-card .svc-icon {
    filter: invert(1);
    mix-blend-mode: screen;
}

[data-theme="light"] .cream-card .svc-icon {
    filter: invert(1);
    mix-blend-mode: screen;
}

[data-theme="light"] .dark-card .svc-icon {
    filter: none;
    mix-blend-mode: multiply;
}

/* ========================
   7b. CLIENTELE SECTION (TABBED)
   ======================== */
.clientele-section {
    padding: 8rem 0;
    background-color: var(--brown);
    border-top: 1px solid rgba(239, 236, 206, 0.1);
    min-height: 80vh; /* Ensure enough height for content */
}

.client-tabs-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    gap: 4rem;
    align-items: start;
}

/* --- LEFT MENU (Tabs) --- */
.tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 1px solid rgba(239, 236, 206, 0.1);
    padding-left: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--cream);
    opacity: 0.4;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1.2;
}

.tab-btn:hover {
    opacity: 0.8;
    color: var(--orange);
    transform: translateX(10px);
}

.tab-btn.active {
    opacity: 1;
    color: var(--orange);
    transform: translateX(10px);
    /* Add a small indicator dot or line if desired */
    text-shadow: 0 0 20px rgba(246, 136, 35, 0.3);
}

/* --- RIGHT CONTENT (Panels) --- */
.client-display-area {
    position: relative;
    min-height: 400px; /* Prevent collapse */
}

.client-panel {
    display: none; /* Hidden by default */
    animation: fadeIn 0.6s ease forwards;
}

.client-panel.active-panel {
    display: block; /* Show active one */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* --- CLIENT CARD --- */
.client-box {
    aspect-ratio: 3/2;
    background: rgba(239, 236, 206, 0.03);
    border: 1px solid rgba(239, 236, 206, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    transition: all 0.4s ease;
    overflow: hidden;
}

.client-box:hover {
    border-color: var(--orange);
    background: rgba(246, 136, 35, 0.1);
    transform: translateY(-5px);
}

.c-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE (MOBILE TABS) --- */
/* ========================
   CLIENTELE RESPONSIVE FIX (Tablet & Mobile)
   ======================== */

/* 1. TABLET & MOBILE (768px and below) */
@media (max-width: 768px) {
    
    .clientele-section {
        padding: 4rem 0; 
    }

    /* Stack the layout vertically */
    .client-tabs-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    /* Turn Tabs into a Horizontal Scroll Strip */
    .client-menu {
        width: 100%;
        overflow: hidden; 
    }

    .tab-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        border-left: none; 
        padding-left: 0;
        
        /* Scrollable */
        overflow-x: auto;      
        white-space: nowrap;   
        padding-bottom: 5px;   
        -ms-overflow-style: none;  
        scrollbar-width: none;
    }
    
    .tab-buttons::-webkit-scrollbar {
        display: none;
    }

    /* Style Tab Buttons as 'Pills' */
    .tab-btn {
        flex-shrink: 0; 
        font-size: 0.95rem;
        padding: 0.6rem 1.4rem;
        border: 1px solid rgba(239, 236, 206, 0.3); 
        border-radius: 50px;
        opacity: 0.7;
        text-align: center;
        width: auto;
        transform: none !important; 
    }

    .tab-btn.active {
        background: var(--orange);
        color: var(--cream) !important;
        border-color: var(--orange);
        opacity: 1;
        text-shadow: none;
        transform: none !important;
    }
    
    /* --- GRID LOGIC FIX --- */
    .client-display-area {
        min-height: auto;
        width: 100%;
    }

    .client-grid {
        display: grid;
        /* FIX: 2 Columns for Tablet & Mobile */
        /* This makes cards bigger and fills the empty space in Pharma */
        grid-template-columns: repeat(2, 1fr); 
        gap: 1rem;
        width: 100%;
    }
    
    /* FIX: Card Sizing */
    .client-box {
        width: 100%; /* Fill the grid cell */
        aspect-ratio: 2/1; /* Consistent Rectangular Shape */
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .c-name {
        font-size: 0.85rem; 
        line-height: 1.3;
    }
}

/* --- LIGHT MODE FIXES FOR MOBILE --- */
[data-theme="light"] .tab-btn {
    border-color: rgba(66, 60, 59, 0.2); 
}

[data-theme="light"] .tab-btn.active {
    color: #efecce !important; 
    border-color: var(--orange);
}

@media (max-width: 480px) {
    .client-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================
   LIGHT MODE FIXES (CORRECTED)
   ======================== */

/* 1. Make the Vertical Divider Line Dark */
[data-theme="light"] .tab-buttons {
    border-left: 1px solid rgba(66, 60, 59, 0.2); 
}

/* 2. Make Client Box Borders Dark */
[data-theme="light"] .client-box {
    border-color: rgba(66, 60, 59, 0.15);
    background: rgba(66, 60, 59, 0.03); 
    color: #423c3b; /* Dark Brown Text */
}

[data-theme="light"] .client-box:hover {
    border-color: var(--orange);
    background: rgba(246, 136, 35, 0.1);
}

/* 3. FIX: INDUSTRY NAMES VISIBILITY */
[data-theme="light"] .tab-btn {
    /* Use the HEX code for Dark Brown to ensure it is visible */
    color: #423c3b !important; 
    opacity: 0.5;
}

[data-theme="light"] .tab-btn.active {
    color: #f68823 !important; /* Active stays Orange */
    opacity: 1;
    text-shadow: none; /* Remove glow if it looks muddy in light mode */
}

[data-theme="light"] .tab-btn:hover {
    color: #f68823 !important; /* Hover turns Orange */
    opacity: 1;
}

/* 4. Fix the '[ Who Trusts Us ]' Label if needed */
[data-theme="light"] .client-menu .label {
    color: #f68823; /* Ensure label remains Orange */
}

/* ========================
   7c. KARIGAR (FOUNDERS) SECTION
   ======================== */
.founders-section {
    padding: 6rem 0;    /* Inverted Theme: Cream BG, Brown Text */
    background-color: var(--cream); 
    color: var(--brown);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.founders-header {
    margin-bottom: 5rem;
}

.label-dark {
    display: block;
    color: var(--orange);
    font-family: var(--font-body);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.founders-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    color: var(--brown);
}

/* --- GRID LAYOUT --- */
.founders-grid {
    display: grid;
    /* EQUAL SPLIT: 1fr | Line | 1fr */
    grid-template-columns: 1fr 1px 1fr; 
    gap: 4rem;
    align-items: start;
}

.founder-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* --- FOUNDER IMAGE (CENTERED) --- */
.founder-visual {
    width: 100%;
    max-width: 300px; 
    aspect-ratio: 3/4; 
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(66, 60, 59, 0.1);
    
    /* CENTER THE IMAGE */
    margin: 0 auto 1rem auto; 
    display: block;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- TYPOGRAPHY --- */
.founder-name {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--brown);
    margin-bottom: 1.5rem;
    /* Optional: If you want name centered too, uncomment below */
    /* text-align: center; */
}

.founder-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    color: var(--brown);
}

.highlight-bold {
    font-weight: 700;
    color: var(--orange);
}

/* --- VERTICAL DIVIDER --- */
.founder-divider {
    width: 1px;
    background-color: rgba(66, 60, 59, 0.2);
    height: 100%;
    min-height: 400px; 
}

/* ========================
   LIGHT MODE FIXES (INVERSION)
   ======================== */
[data-theme="light"] .founders-section {
    background-color: #423c3b; /* Dark Brown BG */
    color: #efecce; /* Cream Text */
}

[data-theme="light"] .founders-title,
[data-theme="light"] .founder-name,
[data-theme="light"] .founder-text,
[data-theme="light"] .founder-list li {
    color: #efecce;
}

[data-theme="light"] .founder-divider {
    background-color: rgba(239, 236, 206, 0.2);
}

[data-theme="light"] .founder-visual {
    border-color: rgba(239, 236, 206, 0.2);
}

/* ========================
   CUSTOM HINDI BULLETS
   ======================== */
.founder-list {
    list-style: none; /* Remove default black dots */
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between paragraphs/bullets */
}

.founder-list li {
    position: relative;
    padding-left: 1.5rem; /* Indent for the bullet */
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--brown);
    text-align: left;
}

/* The Hindi 'Purna Viram' (Danda) Bullet */
.founder-list li::before {
    content: "।"; /* Devanagari Full Stop Character */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange); /* Brand Color */
    font-weight: 700;
    font-size: 1.3rem; /* Visible size */
    line-height: 1.6rem; /* Align with text */
}

/* ========================
   RESPONSIVE FOUNDERS FIX (Tablet & Mobile)
   ======================== */
@media (max-width: 992px) {
    .founders-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 4rem;
        width: 100%; 
    }
    
    .founder-divider {
        display: none;
    }
    
    .founder-card {
        display: flex;
        flex-direction: column;
        /* FIX: 'stretch' ensures the text block takes full width */
        align-items: stretch; 
        width: 100%;
    }
    
    .founder-visual {
        width: 100%;
        max-width: 320px; /* Keep portrait constraint */
        /* FIX: Center the image manually since parent isn't centering anymore */
        margin: 0 auto 2rem auto; 
    }
    
    /* FIX: Ensure bio takes full width */
    .founder-bio {
        width: 100%;
        padding: 0 1rem; /* Small padding so text doesn't hit edge */
        box-sizing: border-box; /* Include padding in width */
    }

    .founder-name {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* FIX: Let text flow fully */
    .founder-text, 
    .founder-list li {
        font-size: 1rem; 
        width: 100%; 
        max-width: none; 
        text-align: left;
    }
}

/* ========================
   9. CONTACT FORM
   ======================== */
.contact-section {
    padding: 8rem 0 5rem;
    background: var(--brown);
    position: relative;
    z-index: 2;
}

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

.contact-left h2 {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1.1;
}

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.simple-form input,
.simple-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--cream);
    padding: 1rem 0;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
}

.simple-form textarea {
    min-height: 100px;
    resize: vertical;
}

.simple-form input:focus,
.simple-form textarea:focus {
    border-color: var(--orange);
}

/* Optional: Improve phone number input visual */
.simple-form input[type="tel"] {
    letter-spacing: 1px;
}

/* ========================
   PHONE INPUT CUSTOMIZATION
   ======================== */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--cream);
    transition: border-color 0.3s ease;
}

.phone-input-group:focus-within {
    border-color: var(--orange);
}

/* Wrapper to hold Select + Icon */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-select {
    background: transparent;
    border: none;
    color: var(--orange);
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 1rem 0; /* Extra right padding for the icon */
    outline: none;
    cursor: pointer;
    font-weight: 600;
    
    /* Remove default ugly arrow */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    
    min-width: 60px;
    z-index: 2; /* Sits above the icon so it catches clicks */
    position: relative;
}

.country-select option {
    background-color: var(--brown);
    color: var(--cream);
    padding: 10px;
}

/* The New Dropdown Icon */
.code-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--orange);
    pointer-events: none; /* Clicks go through to the select box */
    z-index: 1;
}

.phone-input-group input {
    border-bottom: none !important;
    padding: 1rem 0;
    margin: 0;
    flex: 1; 
}

/* Theme Swap Fix */
[data-theme="light"] .country-select option {
    background-color: #efecce; 
    color: #423c3b; 
}

/* ========================
   10. FOOTER REVEAL
   ======================== */
main {
    position: relative;
    z-index: 2;
    background: var(--brown);
    margin-bottom: 80vh;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 1);
}

.footer-reveal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    background: var(--cream);
    color: var(--brown);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.cta-pre {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.footer-email {
    font-family: var(--font-head);
    /* clamp(min, preferred, max) */
    font-size: clamp(2rem, 9vw, 6rem); 
    color: var(--brown);
    text-decoration: none;
    display: block;
    margin-bottom: 4rem;
    transition: 0.3s;
    
    /* FIX: Keep email on one line always */
    white-space: nowrap; 
}

.footer-email:hover {
    color: var(--orange);
}

.footer-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid rgba(66, 60, 59, 0.1);
    padding-top: 3rem;
    text-align: left;
}

.footer-col h4 {
    font-family: var(--font-head);
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
    color: var(--brown);
    text-decoration: none;
    line-height: 1.6;
}

/* ========================
   FOOTER SOCIAL ICONS
   ======================== */
.footer-social-icons {
    display: flex;
    gap: 1.5rem; /* Space between icons */
    margin-top: 0.5rem;
}

.footer-social-icons a {
    font-size: 1.8rem; /* Make icons big and visible */
    color: var(--brown); /* Inherit footer text color */
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    
    /* Reset line-height to prevent cutting off */
    line-height: 1; 
}

.footer-social-icons a:hover {
    color: var(--orange); /* Brand color on hover */
    transform: translateY(-5px); /* Subtle lift effect */
}

@media (max-width: 768px) {
    .footer-social-icons {
        justify-content: center; /* Center icons on mobile */
        margin-top: 1rem;
    }
}

.footer-mascot {
    position: absolute;
    bottom: -50px;
    right: -20px;
    width: 250px;
    transform: rotate(-10deg);
}

/* ==========================================
   MAGNETIC PROGRESS BUTTON
   ========================================== */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 60px;
    width: 60px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(239, 236, 206, 0.1);
    z-index: 10000;
    /* Increased for visibility */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    background-color: var(--brown);
}

.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.arrow-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--cream);
    font-size: 1.2rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.progress-wrap:hover .arrow-icon {
    transform: translate(-50%, -60%);
}

.progress-circle path {
    fill: none;
    stroke: var(--orange);
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 200ms linear;
}

.progress-wrap:hover {
    box-shadow: 0 0 20px rgba(246, 136, 35, 0.4);
}

/* Footer Color Fix for Go-To-Top */
.progress-wrap.on-footer path {
    stroke: var(--cream) !important;
}

.progress-wrap.on-footer {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.progress-wrap.on-footer .arrow-icon {
    color: var(--cream);
}

/* ========================
   THEME TOGGLE BUTTON
   ======================== */
.theme-toggle-wrap {
    position: fixed;
    left: 30px;
    bottom: 30px;
    height: 60px;
    width: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--cream);
    background-color: var(--brown);
    z-index: 10000;
    transition: all 0.3s ease;
}

.theme-icon {
    font-size: 1.5rem;
    color: var(--cream);
    pointer-events: none;
}

.theme-toggle-wrap:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(246, 136, 35, 0.4);
    border-color: var(--orange);
}

.theme-toggle-wrap:hover .theme-icon {
    color: var(--orange);
}

[data-theme="light"] .theme-toggle-wrap {
    border-color: var(--cream);
    background-color: var(--brown);
}

/* ========================
   CUSTOM TEXT SELECTION
   ======================== */
::selection {
    background-color: var(--orange);
    color: var(--brown);
}

::-moz-selection {
    background-color: var(--orange);
    color: var(--brown);
}

/* ========================
   RESPONSIVE REFINEMENTS (Mobile Optimization)
   ======================== */

/* 1. Global Section Padding Adjustment */
@media (max-width: 768px) {
    .intro-section, 
    .agency-about-section, 
    .work-section, 
    .services-section, 
    .contact-section {
        padding: 4rem 0 !important; 
    }
    
    .container {
        padding: 0 1.5rem; 
    }
}

/* 2. Intro Section Image Fix */
@media (max-width: 768px) {
    .intro-visual img {
        width: 100%;       
        max-width: 450px;  
        margin: 0 auto; 
        display: block;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-text {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

/* 3. Hero Typography Tweak */
@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem !important; 
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .hero-section {
        padding-top: 140px; 
    }
}

/* 4. Menu Overlay & Links */
@media (max-width: 768px) {
    .menu-link {
        font-size: 2.5rem;
    }
    .menu-nav {
        gap: 0.5rem;
    }
}

/* 5. Footer Email & Layout (FIXED: Sizing & Padding) */
@media (max-width: 768px) {
    main {
        margin-bottom: 0;
    }
    
    .footer-reveal {
        position: relative;
        height: auto;
        padding: 4rem 0 100px 0; 
    }

    /* 1. Reduce padding to give text more space */
    .footer-content {
        padding: 0 1rem !important; 
    }
    
    .footer-email {
        /* 2. Reduced from 11vw to 8vw to fit "hello@barecce.com" */
        font-size: 8vw !important; 
        
        /* STRICTLY prevent breaking */
        word-break: keep-all !important; 
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        
        margin-bottom: 2rem;
        width: 100%;
        display: block;
    }
    
    .footer-meta {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-mascot {
        width: 150px;
        bottom: -20px;
        right: -10px;
        opacity: 0.5;
    }
}

/* 6. Contact Form Mobile */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-left h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    .simple-form input,
    .simple-form textarea {
        font-size: 16px; 
    }
}

/* 7. Buttons Position on Mobile */
@media (max-width: 768px) {
    .theme-toggle-wrap {
        left: 20px;
        bottom: 20px;
        height: 50px;
        width: 50px;
    }
    .progress-wrap {
        right: 20px;
        bottom: 20px;
        height: 50px;
        width: 50px;
    }
}

/* ========================
   FORCE EFFECTS ON MOBILE (Portfolio & Services)
   ======================== */

/* 1. HORIZONTAL SCROLL FIXES */
@media (max-width: 768px) {

    /* Restore the sticky container height */
    .work-sticky-wrapper {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
    }

    /* Force the track to remain horizontal */
    .horizontal-track {
        display: flex !important;
        flex-direction: row !important;
        width: max-content !important;
        gap: 2rem;
        padding-left: 5%;
    }

    /* Resize the cards for mobile */
    .work-card {
        width: 85vw !important;
        max-width: none;
        margin-bottom: 0 !important;
    }

    .work-img {
        aspect-ratio: 16/9;
    }
}

/* 2. STACKING CARDS & LAYOUT FIXES (Mobile/Tablet) */
@media (max-width: 992px) {
    
    /* CRITICAL FIX: Add massive padding at the bottom */
    /* This ensures Card 11 stays pinned long enough for Card 12 to stack on top */
    .services-section {
        padding-bottom: 80vh !important; 
    }

    .cards-stack {
        padding-inline: 1.5rem; /* Tighter side margins */
    }

    .service-card {
        /* FIX: Uniform Card Size */
        min-height: 400px !important; 
        height: auto !important;      
        padding: 2rem !important;     
        margin-bottom: 10vh !important; /* Spacing between cards start */
        
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1rem;
    }

    /* FIX: Contain Text */
    .service-card h3 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .service-card p {
        font-size: 1rem !important;
        line-height: 1.5;
        max-width: 100%; 
        /* Ensure text doesn't hit the icon at the bottom */
        margin-bottom: 6rem; 
    }

    .svc-num {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem;
    }

    /* FIX: Small Icon positioned at bottom-right */
    .svc-icon {
        width: 80px !important; /* Much smaller */
        height: auto;
        
        /* Pin to corner */
        position: absolute;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        
        /* Clear old centering styles */
        left: auto !important;
        transform: none !important;
        opacity: 0.8; 
    }
}