/* ============================================
   MAIN STYLES - MUST COME FIRST
   ============================================ */


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #37FF8B;
            --bg-dark: #000000;
            --text-light: #ffffff;
            --text-gray: rgba(255, 255, 255, 0.8);
            --text-dark: #050505;
            --overlay: rgba(0, 0, 0, 0.5);
        }

        body {
            font-family: "Roboto", monospace;
            color: var(--text-light);
            line-height: 1.6;
            position: relative;
        }

        /* Animated Background for entire site */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: -30;
        }

        .site-background {
            position: fixed;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: -1;
        }

        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.4;
            width: 600px;
            height: 600px;
            will-change: transform, opacity; 

        }

        .orb.green {
            background: radial-gradient(circle, #1DA85E, transparent);
            top: 10%;
            left: 20%;
            animation: moveOrb1 40s ease-in-out infinite;
        }

        .orb.orange {
            background: radial-gradient(circle, #E6A935, transparent);
            top: 50%;
            right: 20%;
            animation: moveOrb2 50s ease-in-out infinite;
        }

        .orb.purple {
            background: radial-gradient(circle, #A73CE6, transparent);
            bottom: 10%;
            left: 30%;
            animation: moveOrb3 60s ease-in-out infinite;
        }

        @keyframes moveOrb1 {
            0%, 100% { transform: translate3d(0, 0, 0); } /* Added 3d */
            25% { transform: translate3d(100px, 50px, 0); } /* Added 3d */
            50% { transform: translate3d(-50px, 100px, 0); } /* Added 3d */
            75% { transform: translate3d(-100px, -50px, 0); } /* Added 3d */
        }

        @keyframes moveOrb2 {
            0%, 100% { transform: translate3d(0, 0, 0); } /* Added 3d */
            25% { transform: translate3d(-80px, 60px, 0); } /* Added 3d */
            50% { transform: translate3d(60px, -40px, 0); } /* Added 3d */
            75% { transform: translate3d(80px, 80px, 0); } /* Added 3d */
        }

        @keyframes moveOrb3 {
            0%, 100% { transform: translate3d(0, 0, 0); } /* Added 3d */
            25% { transform: translate3d(120px, -30px, 0); } /* Added 3d */
            50% { transform: translate3d(-60px, -80px, 0); } /* Added 3d */
            75% { transform: translate3d(-90px, 60px, 0); } /* Added 3d */
        }


        /* Noise/Grain Texture */
        .noise-overlay {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            pointer-events: none;
            z-index: 1;
            opacity: 0.09;
            background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="2" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
            background-repeat: repeat;
            animation: grain 0.5s steps(20) infinite;
            will-change: transform, background-position; 
        }

        @keyframes grain {
            0% { transform: translate(0, 0); }
            5% { transform: translate(-2%, 3%); }
            10% { transform: translate(4%, -1%); }
            15% { transform: translate(-3%, -4%); }
            20% { transform: translate(1%, 2%); }
            25% { transform: translate(3%, -2%); }
            30% { transform: translate(-4%, 1%); }
            35% { transform: translate(2%, 4%); }
            40% { transform: translate(-1%, -3%); }
            45% { transform: translate(4%, 2%); }
            50% { transform: translate(-2%, -1%); }
            55% { transform: translate(3%, 3%); }
            60% { transform: translate(-3%, 2%); }
            65% { transform: translate(1%, -4%); }
            70% { transform: translate(4%, 1%); }
            75% { transform: translate(-2%, 3%); }
            80% { transform: translate(2%, -2%); }
            85% { transform: translate(-4%, -1%); }
            90% { transform: translate(3%, 4%); }
            95% { transform: translate(-1%, 2%); }
            100% { transform: translate(0, 0); }
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(20px);
            padding: 1rem 2rem;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        nav .container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--text-light);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
            align-items: center;
        }

        .nav-item {
            position: relative;
        }

        .nav-item > a,
        .nav-item > button {
            color: var(--text-light);
            text-decoration: none;
            transition: color 0.3s;
            background: none;
            border: none;
            font-size: 1rem;
            font-family: inherit;
            cursor: pointer;
            padding: 0.5rem 0;
        }

        .nav-item > a:hover,
        .nav-item > button:hover {
            color: var(--primary-color);
        }

        /* Dropdown Menu */
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 0.5rem 0;
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            margin-top: 0.5rem;
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown a {
            display: block;
            padding: 0.75rem 1.5rem;
            color: var(--text-light);
            text-decoration: none;
            transition: background 0.3s;
        }

        .dropdown a:hover {
            background: rgba(55, 255, 139, 0.1);
            color: var(--primary-color);
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
        }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--text-light);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(7px, 7px);
        }

        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 200;
            object-fit: cover;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--overlay);
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: var(--z-hero-content);
            animation: fadeInUp 1s ease-out;
            background: rgba(0, 0, 0, 0);
            backdrop-filter: blur(0px);
            padding: 20px 40px;
            border-radius: var(--radius-lg);
            z-index: 10; /* Ensure content is above grid */
            /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); */
            /* border: 1px solid rgba(255, 255, 255, 0.1); */
            }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            text-shadow: 0 20px 60px rgba(0, 0, 0, 1);
            font-weight: 900;
        }

        .hero p {
            font-size: 1.5rem;
            color: var(--text-dark);
            border-radius: 10px;
            background: var(--primary-color);
            padding: 10px 15px;

        }

        .hero p:hover {
            font-size: 1.5rem;
            color: var(--primary-color);
            border-radius: 10px;
            background: var(--text-dark);
            padding: 10px 10px;

        }

        /* Hero Grid Styles */
        .hero-grid {
            position: fixed; /* Changed from absolute to fixed for smoother parallax */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            grid-auto-rows: 340px;
            gap: 0px;
            z-index: -10;
            will-change: transform; /* Optimize for performance */
            transform: translateY(0); /* Initial transform state */
        }

        .hero-grid-item {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.6;
            z-index: -10;
            transition: opacity 0.5s ease;
        }

        .hero-grid-item.fade-out {
            opacity: 0;
        }

        .hero-grid-item.fade-in {
            opacity: 0.6;
        }


        @media (max-width: 768px) {
            .hero-grid {
                position: absolute !important; /* Changed from fixed to absolute */
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                transform: none !important; /* Remove any transforms */
                will-change: auto !important; /* Turn off GPU acceleration */
                opacity: 0.5; 
                
                /* Reduce grid complexity for performance */
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                grid-auto-rows: 200px;
            }

            .hero-grid-item {
                opacity: 0.5;
            }
            
            .hero {
                position: relative !important;
            }
            
            /* Hide performance-heavy elements */
            /* .orb,
            .noise-overlay {
                display: none !important;
            } */
        }

        @media (max-width: 480px) {
            .hero-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                grid-auto-rows: 150px;
            }
        }



        @media (max-width: 768px) {
            /* Apply fallback images - using grid images as backgrounds */
            #visual-direction {
                background-image: url('../videos/visual-bg-1.jpg');
                background-size: cover;
                background-position: center;
            }

            #product-development {
                background-image: url('../videos/remoose-bg-1.jpg');
                background-size: cover;
                background-position: center;
            }

            #documentary {
                background-image: url('../videos/documentary-bg-1.jpg');
                background-size: cover;
                background-position: center;
            }

            /* Lighten the overlay so background images are visible */
            #visual-direction::before,
            #product-development::before,
            #documentary::before {
                background: rgba(0, 0, 0, 0.5);
            }
        }
        /* Section Styles */
        .section {
            padding: 4rem 1rem;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(15px);
            }

        .section-video-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }

        .section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 0;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .section-title {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            font-weight: 300;
            text-align: center;
        }

        .section-text {
            font-size: 1.2rem;
            color: var(--text-gray);
            text-align: center;
            max-width: 800px;
            margin: 0 auto 3rem;
            line-height: 1.8;
        }

        /* Video Embeds */
        .main-video {
            width: 100%;
            margin: 3rem 0;
            z-index: 200;

        }

        .video-embed {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            border-radius: 8px;
            overflow: hidden;
            background: #000;
            z-index: 200;

        }

        .video-embed iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        /* Sample Videos Grid */
        .sample-videos {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin: 3rem 0;
            z-index: 200;
        }

        .sample-video-item {
            text-align: center;
        }

        .sample-video-item .video-description {
            margin-top: 1rem;
            color: var(--text-gray);
            font-size: 1rem;
        }

        /* Video Series */
        .video-series {
            margin: 4rem 0;
            z-index: 200;
            padding: 0rem;
        }

        .series-title {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            font-weight: 400;
        }

        .series-description {
            color: var(--text-gray);
            margin-bottom: 0rem;
            font-size: 1.1rem;
        }

        .series-scroll {
            display: flex;
            gap: 1.5rem;
            overflow-x: auto;
            padding: 1rem 0;
            scroll-behavior: smooth;
        }

        .series-scroll::-webkit-scrollbar {
            height: 8px;
        }

        .series-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .series-scroll::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 4px;
        }

        .series-video-item {
            min-width: 400px;
            flex-shrink: 0;
        }

        /* Biography Section */
        .bio-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            border-radius: 8px;
            background: rgba(0, 0, 0, 0.0);
            margin: 0rem 0;
            padding: 1rem;
        }

        .bio-image {
            width: 100%;
            border-radius: 8px;
        }

        .bio-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-gray);
        }

        /* Logo Carousel Styles */
        .logos-section {
        padding: 20px 0;
        background: rgba(255, 255, 255, 0.03);
        border-top: 10px solid rgba(0, 0, 0, 0.5);
        }

        .logo-carousel {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-top: 2rem;
        border-top: 0px solid rgba(255, 255, 255, 0.2);
        }

        /* Match the series-scroll style */
        .logo-scroll {
        display: flex;
        gap: 2rem;
        overflow-x: auto;
        padding: 2rem 2rem;
        scroll-behavior: smooth;
        }

        /* Scrollbar styling */
        .logo-scroll::-webkit-scrollbar {
        height: 8px;
        }

        .logo-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        }

        .logo-scroll::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.251);
        border-radius: 4px;
        }


        .logo-item {
        height: 40px;
        opacity: 0.8;
        transition: opacity 0.3s ease;
        filter: grayscale(100%) brightness(0.9);
        }

        .logo-item:hover {
        opacity: 1;
        filter: grayscale(0%) brightness(1);
        }

        /* Smooth looping animation (optional) */
        @keyframes scroll-logos {
        from { transform: translateX(0); }
        to { transform: translateX(-50%); }
        }

        /* Optional: pause animation on hover */
        .logo-carousel:hover .logo-scroll {
        animation-play-state: paused;
        }

        /* Contact Section */
        .contact-form {
            max-width: 600px;
            margin: 3rem auto;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            padding: 2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 1rem;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.75rem;
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            color: var(--text-light);
            font-size: 1rem;
            font-family: inherit;
        }

        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }

        .submit-btn {
            background: var(--primary-color);
            color: #000;
            padding: 1rem 2rem;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            width: 100%;
            transition: opacity 0.3s;
        }

        .submit-btn:hover {
            opacity: 0.8;
        }

        .remoose-btn {
            display: block;
            margin: 1.5rem auto 3rem; /* Centers horizontally and adds spacing */
            padding: 1rem 2rem;
            background: var(--primary-color);
            color: #000;
            text-decoration: none;
            font-size: 1rem;
            font-weight: bold;
            border-radius: 4px;
            width: fit-content; /* Ensures button width fits content, not full container */
            transition: background 0.3s ease, transform 0.2s ease;
            text-align: center;
        }
        .remoose-btn:hover {
            background: #2ecc71; /* Darkened --primary-color (#37FF8B) by ~10% */
            transform: translateY(-2px);
        }
        .remoose-btn:active {
            transform: translateY(0);
        }

        /* Footer */
        footer {
            background: #000;
            padding: 2rem;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 1rem;
        }

        .social-links a {
            color: var(--text-light);
            text-decoration: none;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: var(--primary-color);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            /* Existing mobile styles */
            .mobile-menu-toggle {
                display: flex;
            }

            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 280px;
                height: 100vh;
                background: rgba(0, 0, 0, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                padding: 5rem 2rem 2rem;
                gap: 0;
                transition: right 0.3s ease;
                border-left: 1px solid rgba(255, 255, 255, 0.1);
            }

            .nav-links.active {
                right: 0;
            }

            .nav-item {
                width: 100%;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            .nav-item > a,
            .nav-item > button {
                display: block;
                width: 100%;
                text-align: left;
                padding: 1rem 0;
            }

            /* Modified dropdown styles for mobile */
            .dropdown {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                background: rgba(255, 255, 255, 0.05);
                margin: 0;
                max-height: none; /* Remove max-height restriction */
                overflow: visible; /* Ensure content is not clipped */
                transition: none; /* Remove transition for instant display */
            }

            /* Remove hover and active state for dropdowns in mobile */
            .nav-item:hover .dropdown,
            .nav-item.active .dropdown {
                max-height: none; /* Ensure no max-height restriction */
            }

            /* Optional: Adjust dropdown item styling for better mobile appearance */
            .dropdown a {
                padding: 0.75rem 1.5rem 0.75rem 2rem; /* Indent dropdown items slightly */
                font-size: 0.9rem; /* Slightly smaller font for hierarchy */
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.2rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .sample-videos {
                grid-template-columns: 1fr;
            }

            .bio-content {
                grid-template-columns: 1fr;
            }

            .series-video-item {
                min-width: 200px;
            }

            .orb {
                width: 400px;
                height: 400px;
                filter: blur(60px);
            }
        }

        /* Performance optimization */
        @media (prefers-reduced-motion: reduce) {
            .orb {
                animation: none !important;
            }
            .noise-overlay {
                animation: none !important;
            }
        }

        /* Hide orbs on mobile devices */
    /* @media (max-width: 768px) {
        .orb {
            display: none;
        }
        .noise-overlay {
            display: none;
        }
    } */
 

    /* ============================================
   CAREER TIMELINE STYLES - MUST COME AFTER
   ============================================ */
        
        /* Career Timeline Container with Center Line */
    #career .container {
        position: relative;
        top: 4rem;
    }

    #career .container::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 10rem;
        bottom: 0;
        width: 2px;
        background: var(--primary-color);
        transform: translateX(-50%);
        z-index: 0;
    }

    .career-timeline-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        top: 2rem;
        margin: 4rem 0;
        align-items: start;
        position: relative;
        z-index: 1;
    }

        /* Timeline Dot on the Center Line */
    .career-timeline-item::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 4rem;
        width: 16px;
        height: 16px;
        background: var(--primary-color);
        border: 3px solid var(--bg-dark);
        border-radius: 50%;
        transform: translateX(-50%);
        z-index: 2;
        box-shadow: 0 0 10px var(--primary-color);
    }

        .career-timeline-reverse {
            direction: rtl;
        }

        .career-timeline-reverse > * {
            direction: ltr;
        }

        /* Career Text Block */
        .career-text-block {
            padding: 2rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .career-year {
            color: var(--primary-color);
            font-size: 0.9rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }

        .career-job-title {
            font-size: 1.8rem;
            font-weight: bold;
            margin-bottom: 0.25rem;
            color: var(--text-light);
        }

        .career-company {
            color: var(--text-gray);
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        .career-description {
            color: var(--text-gray);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .career-achievements {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .career-achievements li {
            color: var(--text-gray);
            margin-bottom: 0.5rem;
            padding-left: 1.5rem;
            position: relative;
            font-size: 0.95rem;
        }

        .career-achievements li:before {
            content: "→";
            color: var(--primary-color);
            position: absolute;
            left: 0;
            font-weight: bold;
        }

        /* Video Carousel */
        .career-video-carousel {
            position: relative;
        }

        .career-video-scroll {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 0.5rem 0;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.1);
        }

        .career-video-scroll::-webkit-scrollbar {
            height: 8px;
        }

        .career-video-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .career-video-scroll::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 4px;
        }

        .career-video-item {
            min-width: 100%;
            flex-shrink: 0;
        }

        .career-video-caption {
            text-align: center;
            color: var(--text-gray);
            font-size: 0.9rem;
            margin-top: 0.5rem;
            font-style: italic;
        }

        /* Mobile Responsive */
    @media (max-width: 768px) {
        #career .container::before {
            left: 20px;
        }

        .career-timeline-item::after {
            left: 20px;
        }

        .career-timeline-item,
        .career-timeline-reverse {
            grid-template-columns: 1fr;
            direction: ltr;
            gap: 2rem;
            padding-left: 50px;
        }
        }


        /* ============================================
   BRAND STORY CARDS - MUST BE OUTSIDE MEDIA QUERIES
   ============================================ */

/* Brand Story Cards */
.brand-story-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.brand-story-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-story-card:hover {
    transform: scale(1.02);
}

.brand-story-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-story-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.brand-story-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

 .brand-story-card-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: grayscale(100%) brightness(0.9);
}

/* Brand Story Modal/Popup */
.brand-story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(20px);
    z-index: 9999;
    overflow: hidden; /* Changed from overflow-y: auto */
    padding: 0; /* Removed padding from modal itself */
}

.brand-story-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-story-modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-width: 1000px;
    width: 90%; /* Responsive width */
    max-height: 85vh; /* Slightly smaller to ensure it fits */
    overflow-y: auto; /* Scrolling happens INSIDE the content box */
    padding: 3rem;
    position: relative;
    margin: 2rem; /* Add margin for spacing */
}

.brand-story-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.brand-story-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.brand-story-modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-story-modal-logo {
    height: 60px;
    filter: grayscale(100%) brightness(0.9);
}

.brand-story-modal-title {
    font-size: 2rem;
    font-weight: bold;
}

.brand-story-modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.brand-story-modal-video {
    margin-bottom: 2rem;
}

.brand-story-modal-video-series {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.brand-story-modal-video-series::-webkit-scrollbar {
    height: 8px;
}

.brand-story-modal-video-series::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.brand-story-modal-video-series::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.brand-story-modal-video-item {
    min-width: 600px;
    flex-shrink: 0;
}

/* Mobile responsive for brand cards */
@media (max-width: 768px) {
    .brand-story-cards {
        grid-template-columns: 1fr;
    }
    
    .brand-story-modal {
        padding: 0rem;
    }
    
    .brand-story-modal-content {
        padding: 2rem 1rem;
    }
    
    .brand-story-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-story-modal-video-item {
        min-width: 300px;
    }
}


