html {
    scroll-behavior: smooth; /* Native smooth scroll */
    height: auto;           /* Fixed: Must be auto, not 100% */
    overflow-y: visible;    /* Fixed: Ensure scrollbar isn't disabled */
}

body {
    min-height: 100vh;
    overflow-x: hidden;      /* This is fine */
    overflow-y: visible;     /* Ensure this isn't set to hidden */
}
:root {
    --color-dark: #111;
    --color-primary: #ffffff;
    --color-accent: #9EFF00;
    --color-secondary: #222;
    --color-text-light: #cccccc;
    
    --font-heading: 'Georgia', serif; 
    --font-body: 'Arial', sans-serif;
}

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

/* CHANGE: Added black background to html and body to hide white lag */
html, body {
    background-color: #000000 !important;
}

body {
    font-family: var(--font-body);
    /* CRITICAL: Must be transparent to show the video background */
    background-color: transparent !important;
    color: var(--color-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400; 
    color: var(--color-primary);
    margin-bottom: 0.5em;
    letter-spacing: 2px;
}

/* FIX: Added Scroll Margin so header doesn't cover section titles */
section[id], div[id], :target {
    scroll-margin-top: 100px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Glass Container for About Section */
.glass-container {
    background: rgba(255, 255, 255, 0.03); /* Subtle white tint */
    backdrop-filter: blur(15px);           /* Frosted glass blur */
    -webkit-backdrop-filter: blur(15px);   /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Soft edge */
    border-radius: 50px;                   /* Matches your brand's rounded look */
    padding: 5rem;                         /* Internal breathing room */
    margin: 4rem 0;                        /* Spacing from other sections */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); /* Makes it "pop" off the background */
}

/* Fix for mobile - ensures glass box doesn't break on small screens */
@media (max-width: 768px) {
    .glass-container {
        padding: 2rem;
        border-radius: 30px;
    }
    
    .about-content {
        flex-direction: column !important; /* Stack text and image on mobile */
        text-align: center;
    }
    
    .about-text {
        text-align: center !important;
    }
}

/* Specific adjustments for the Owners glass box */
.owners-glass {
    margin-top: 6rem; /* Space between About section and Owners section */
    text-align: center;
}

.owners-grid {
    display: grid;
    /* This centers the two videos perfectly with no 'ghost' space */
    grid-template-columns: 1fr 1fr; 
    gap: 3rem;
    max-width: 900px; /* Keeps the two videos from spreading too far */
    margin: 0 auto;
}

/* Ensure the heading inside the glass box has proper spacing */
.owners-word-heading {
    margin-bottom: 3rem;
    margin-top: 0; /* Reset top margin since glass padding handles it */
}

/* Mobile fix for the Owners glass box */
@media (max-width: 768px) {
    .owners-grid {
        grid-template-columns: 1fr; /* Stack videos on mobile */
        gap: 2rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- UTILITY & SHARED STYLES --- */

.large-heading {
    font-size: 5rem;
    line-height: 1;
    text-transform: uppercase;
}
.large-heading span {
    color: var(--color-accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--color-accent); 
    text-transform: uppercase;
}

/* --- VIDEO BACKGROUND LAYERS (UPDATED FOR MOBILE) --- */

#video-background {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    /* CHANGE: Changed 100% to 100dvh to fix mobile scroll lag */
    height: 100dvh; 
    overflow: hidden;
    z-index: -2; /* Lowest layer */
}

#bg-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    
    filter: blur(0.5px); 
    opacity: 0.8; 
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* CHANGE: Changed 100% to 100dvh to fix mobile scroll lag */
    height: 100dvh; 
    background-color: rgba(0, 0, 0, 0.7); 
    z-index: -1; 
}


/* --- HEADER AND NAVIGATION --- */
.header {
    background-color: var(--color-dark);
    padding: 1rem 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    max-width: 100% !important;     /* Removes any centering constraints */
    padding: 20px 50px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

/* --- CSS FIX: Ensure base color is white for both animated parts --- */
.logo-part-1, .logo-part-2 {
    /* Set the base color for the animated parts to white */
    color: var(--color-primary, #ffffff); 
    display: inline-block; /* Crucial for GSAP animation */
}

/* Apply the accent color only to the inner 'MIX' */
.logo .color-mix {
    color: var(--color-accent); /* This ensures 'MIX' remains bright green */
}

.nav-links {
    list-style: none;
    display: flex; 
    padding-left: 0;
    align-items: center; /* Ensures dropdown arrow aligns with text */
}

.nav-links li {
    margin-left: 3rem; 
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.5rem 0;
}

/* --- DESKTOP DROPDOWN LOGIC --- */
.nav-item.dropdown { 
    position: relative; 
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-accent);
    padding: 1rem 0;
    min-width: 240px;
    display: none;
    z-index: 1000;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown-menu li { 
    padding: 8px 20px; 
    margin: 0 !important; 
}

.dropdown-menu li a { 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    color: white; 
    display: block;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover { 
    color: var(--color-accent); 
    transform: translateX(5px);
}

/* Show Dropdown on Hover */
.nav-item.dropdown:hover .dropdown-menu { 
    display: block; 
    animation: fadeIn 0.3s ease;
}

/* --- ICON SWAP ANIMATION & POSITIONING (Hamburger Menu) --- */

.icon-container {
    position: relative;
    width: 30px; 
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-toggle,
.menu-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--color-primary); 
    z-index: 1002; 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Initially hide the close icon */
.menu-close {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg); 
    pointer-events: none; 
}
/* --- NEW Menu Backdrop for Blur Effect --- */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* CHANGE: Changed 100% to 100dvh for mobile stability */
    height: 100dvh; 
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(4px); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    z-index: 999; 
}

.menu-backdrop.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease; 
}

/* When the menu is open, swap icons */
.icon-container.open .menu-toggle {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg); 
    pointer-events: none;
}

.icon-container.open .menu-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg); 
    pointer-events: all; 
}

/* --- OVERLAY MENU STYLES (Final Slide-In) --- */

.overlay-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto; 

    /* CHANGE: Changed 100vh to 100dvh to prevent address bar resizing lag */
    height: 100dvh; 
    width: 300px; 
    
    background-color: var(--color-dark, #000);
    overflow-x: hidden;
    overflow-y: auto;
    
    transform: translateX(100%);

    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);    
    z-index: 1000;
    display: flex;
    flex-direction: column; 
    box-sizing: border-box;
    padding-top: 50px; 
}

.overlay-menu.open {
    width: 300px; 
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5); 
    transform: translateX(0);
}

/* --- Menu Content Styling --- */

.overlay-nav {
    flex-grow: 1; 
    padding: 1rem 1.5rem 1rem 1.5rem; 
    overflow-y: auto; 
}

.overlay-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-nav-links li {
    padding: 1.5rem 0; 
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Expanded Submenu */
.mobile-dropdown.active .mobile-submenu {
    max-height: 500px; /* Big enough for links */
    margin-top: 15px;
    margin-bottom: 10px;
}

.mobile-submenu li {
    padding: 0.8rem 0 !important;
    border-bottom: none !important;
}

.mobile-submenu li a {
    font-size: 0.85rem !important;
    color: var(--color-text-light) !important;
    text-transform: uppercase;
}

/* --- Social Icons Styling --- */
.overlay-contact-icons {
    padding: 2rem 1.5rem; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-contact-icons a {
    font-size: 2rem; 
    padding: 0 0.2rem; 
    color: var(--color-text-light);
    transition: color 0.3s;
}

.overlay-contact-icons a:hover {
    color: var(--color-accent);
}

/* --- MAIN PAGE CONTENT WRAPPER --- */
#page-transition-wrapper {
    background-color: transparent !important; 
    padding: 0 !important; 
    position: relative; 
    z-index: 10;
    transition: opacity 0.5s ease-in-out; 
    min-height: 100vh;      /* Fixed: Ensures wrapper doesn't collapse */
    display: block !important;        /* Fixed: Ensures block formatting context */
    overflow: visible !important; /* Fixed: Prevents scroll clipping */
}

section {
    padding: 8rem 0;
    overflow: hidden;
    /* CRITICAL FIX: Ensure sections are transparent to show video */
    background-color: transparent; 
}

/* --- HERO SECTION & CIRCULAR LOGO --- */
#hero {
    padding-top: 10rem;
    padding-bottom: 10rem;
    /* CRITICAL FIX: Must be transparent to show video */
    background-color: transparent; 
    margin: 0;
    text-align: center;
}

.hero-logo {
    display: block; 
    max-width: 200px !important;
    width: 80%; 
    aspect-ratio: 1 / 1;
    margin: 0 auto 3rem auto; 
    
    background-color: transparent; 
    border-radius:50%;
    overflow: hidden; 
    
    clip-path: circle(50% at center); 
    
    box-shadow: 
        0 0 10px rgba(158, 255, 0, 0.7), 
        0 0 20px rgba(158, 255, 0, 0.3), 
        0 0 30px rgba(158, 255, 0, 0.1); 

    border: none;
    padding: 0;
}
#hero h1 {
    margin-top: 2rem; 
}

/* --- FOOTER / CTA CONTACT --- */
.footer {
    /* CRITICAL FIX: Use semi-transparent dark to show video underneath */
    background-color: rgba(17, 17, 17, 0.9);
    text-align: left;
    padding: 6rem 0;
}

/* --- SAMPLE WORKS SECTION (UPDATED FOR STABILITY) --- */
.sample-works-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 3rem;
    /* FIX: Reserves vertical space to prevent layout collapse on reload */
    min-height: 450px; 
}

.video-box {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--color-secondary);
    /* FIX: Ensures internal elements like buttons align correctly */
    position: relative;
    display: block;
}

/* --- EXPLORE MORE BUTTON STYLES --- */
.explore-more-container {
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 10rem;
}

.explore-btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    background-color: var(--color-accent);
    border-radius: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(158, 255, 0, 0.3);
}

.explore-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(158, 255, 0, 0.6);
    background-color: #ffffff; /* Button background turns white */
    color: #000000 !important; /* text color turns black so it's visible */
}

.explore-btn i {
    margin-left: 15px;
}

/* --- Remaining Section Styles --- */

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}
.about-text {
    flex: 1;
    padding-right: 2rem;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.image-circle-container {
    flex: 1;
    position: relative;
    padding: 2rem;
}

/* --- TEAM SECTION SPECIFIC STYLES --- */
.team-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.team-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
}

.team-member h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.team-member p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* --- SERVICES SECTION SPECIFIC STYLES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
}

.service-box {
    display: flex;
    gap: 2rem;
}

.service-box h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0;
}

.service-box ul {
    list-style: none;
    padding-left: 0;
}

.service-box li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1rem;
}

.service-box li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* --- CONTACT INFO / FOOTER STYLES --- */
.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 4rem;
    justify-items: center; 
    align-items: center; 
    text-align: center;
}

.contact-info strong {
    color: var(--color-accent);
    display: block;
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* --- PLACEHOLDERS --- */
.placeholder {
    background-color: var(--color-secondary);
    border: 2px dashed var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
    min-height: 150px;
    border-radius: 8px;
    padding: 1rem;
}


/* --- MEDIA QUERIES (RESPONSIVENESS) --- */

@media (max-width: 1024px) {
    .team-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem; 
    }

    /* RESTORED: This is the 3-column mobile grid you wanted to keep */
    .sample-works-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
        max-width: 400px;
    }

    .nav-links {
        display: none !important; 
    }
    
    .large-heading {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

main {
    animation: fadeIn 0.5s ease-out; 
}

/* --- SCROLL ANIMATION EFFECTS --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    /* DO NOT use display: none; */
    /* DO NOT use visibility: hidden; */
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- OWNERS SECTION SPACING RESTORED --- */
.about-image-circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-bottom: 5rem;
}

.owners-word-heading {
    color: var(--color-accent);
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem); 
    text-transform: uppercase;
    margin-top: 4rem;
    margin-bottom: 6rem; 
    letter-spacing: 3px;
}

/* --- NEW VIDEO CONTROL STYLES --- */
.mute-toggle-btn {
    position: absolute; 
    bottom: 10px;      
    right: 10px;       
    background: rgba(0, 0, 0, 0.6); 
    color: var(--color-primary);
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    z-index: 10; 
    transition: background 0.2s;
}

.mute-toggle-btn.is-muted i::before { content: "\f026"; }
.mute-toggle-btn.is-unmuted i::before { content: "\f028"; }

/* --- FOOTER ICON BAR --- */
.footer-icon-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.footer-icon-bar a {
    font-size: 2.8rem;
    color: var(--color-accent); 
    transition: color 0.3s ease;
}

.footer-icon-bar a:hover {
    color: var(--color-primary); 
}

.seo-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Fixed: Combined duplicate scroll reveal logic into original style */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: transform, opacity;
}

.scroll-reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}