:root {
    --bg-dark: #050505;
    --bg-light-dark: #0A0A0A;
    --accent-gold: rgb(5, 143, 255);
    --text-white: #FFFFFF;
    --text-silver: #CCCCCC;
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 1. Global Mobile Bug Fix */
* { margin: 0; padding: 0; box-sizing: border-box;}
html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-primary);
}
a{
    text-decoration: none;
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.preloader-text {
    color: var(--accent-gold);
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 4px;
    font-weight: bold;
    margin-top: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* --- HEADER --- */
 /* --- HEADER LOGO & ICON ALIGNMENT --- */
        .logo-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-container img {
            height: 28px; /* Adjust logo size here */
            width: auto;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: clamp(15px, 2vw, 25px);
        }

        .header-ig-icon {
            display: flex;
            align-items: center;
            z-index: 101; /* Keeps it clickable above overlays */
        }

        .header-ig-icon svg {
            transition: fill 0.3s ease, transform 0.3s ease;
        }

        .header-ig-icon:hover svg {
            fill: var(--accent-gold);
            transform: translateY(-2px);}
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; padding: 0 5vw; display: flex; justify-content: space-between; align-items: center; background: rgba(5, 5, 5, 0.4); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); z-index: 100; }
.logo { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: bold; color: var(--text-white); letter-spacing: 1px; }
.desktop-nav { display: flex; gap: 2vw; }
.desktop-nav a { color: var(--text-silver); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
.desktop-nav a:hover { color: var(--accent-gold); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 101; }
.mobile-menu-btn .line { position: absolute; width: 100%; height: 2px; background-color: var(--text-white); transition: 0.3s ease; left: 0; }
.mobile-menu-btn .top { top: 0; }
.mobile-menu-btn .bottom { bottom: 0; }
/* --- FULL-SCREEN MOBILE MENU OVERLAY --- */
/* 1. Update the main container to space elements evenly */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    justify-content: space-between; 
    padding: 15vh 5vw 6vh 5vw; 
}



/* Open State */
.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: clamp(25px, 6vw, 40px); 
    margin: auto 0; 
}


/* Staggered text reveal animation */
.mobile-nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: color 0.3s ease, opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

/* Timing delays for the waterfall effect */
.mobile-menu.is-open .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-nav-links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-nav-links a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.is-open .mobile-nav-links a:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--accent-gold);
}


/* 3. Remove absolute positioning from the footer */
.mobile-menu-footer {
    position: relative; 
    bottom: auto; 
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

.mobile-menu.is-open .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer p {
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}


/* --- HERO --- */


.hero-text-col { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; /* Centers the text and CTA button */
    z-index: 2; 
}
.hero { 
    min-height: 100vh; 
    padding-top: 80px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding-inline: 5vw; 
    gap: 10px; /* Significantly reduced to bring elements closer[cite: 2] */
    text-align: center;
    background: linear-gradient(rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.99)), url('assets/img/Texturelabs_Paper_204M.jpg') center/cover no-repeat;
}

.hero-title { 
    font-size: clamp(3.5rem, 8vw, 8.5rem); 
    font-weight: 900; 
    line-height: 0.9; 
    letter-spacing: -0.02em; 
    color: var(--text-white); 
    text-transform: uppercase; 
    margin-bottom: 0px; 
}

.hero-subtitle { 
    font-size: clamp(1rem, 1.5vw, 1.5rem); 
    color: var(--accent-gold); 
    letter-spacing: 0.1em; 
    margin-bottom: 5px; 
}

.hero-eye-col { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    height: auto; 
    gap: 20px; 
    margin: 0 0 15px 0; 
}

/* Upgraded CTA with Hover Animation */
.hero-cta { 
    padding: 15px 40px; 
    background: transparent; 
    border: 1px solid var(--accent-gold); 
    color: var(--text-white); 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-weight: bold;
    cursor: pointer; 
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1); 
    z-index: 10;
    margin-top: 15px;
}

.hero-cta::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 0%; 
    height: 100%; 
    background: var(--accent-gold); 
    transition: width 0.3s cubic-bezier(0.7, 0, 0.3, 1); 
    z-index: -1; 
}

.hero-cta:hover { 
    color: var(--bg-dark); 
    transform: translateY(-5px) scale(1.02); /* Lifts and scales */
    border-color: transparent;
}
.hero-cta:hover::before { width: 100%; }
.hero-eye-col { display: flex; justify-content: center; align-items: center; width: 100%; height: auto; gap: 30px; margin: 20px 0 40px 0;}
.realistic-eye { width: 100%; max-width: 300px; filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.12)); }
/* --- ABOUT --- */
.about { 
    min-height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 15vh 5vw; 
    background: var(--bg-light-dark); 
    overflow: hidden; 
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5vw;
    width: 100%;
    max-width: 1400px;
}

.about-content { 
    flex: 1;
    text-align: left; /* Shifted to the left[cite: 2] */
    z-index: 2;
}

.about-line { 
    display: inline-block; 
    font-size: clamp(1.5rem, 3.5vw, 4rem); /* Slightly smaller to accommodate the images */
    font-weight: 700; 
    color: var(--text-silver); 
    line-height: 1.2; 
}
.about-line.accent { color: var(--accent-gold); font-style: italic; }

/* Image Overlap Architecture */
.about-images {
    flex: 1;
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img-main {
    width: 75%;
    height: 85%;
    object-fit: cover;
    border-radius: 20px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-img-overlap {
    width: 35%;
    height: 45%;
    object-fit: cover;
    border-radius: 15px;
    position: absolute;
    left: 20%;
    bottom: 5%;
    z-index: 2;
    border: 1px solid var(--bg-light-dark); /* Creates a seamless cutout effect against the background */
    box-shadow: -15px 15px 30px rgba(0,0,0,0.6);
}

/* Mobile Fallback */
@media (max-width: 899px) {

    .hero-eye-col { 
        gap: 10px; /* Change this to 5px or 0px if you want them even closer */
    }

    .about {
        height: auto; /* Allows the section to grow naturally with the stacked content */
        padding: 10vh 5vw;
    }
    
    .about-wrapper { 
        flex-direction: column; 
        gap: 40px; 
    }
    
    .about-content { 
        order: 2;
        text-align: center; 
        width: 100%;
        margin-bottom: 20px; 
    }
    
    .about-images { 
        order: 1;
        width: 100%; 
        height: 450px; 
        min-height: 450px; /* Strictly forces the container to stay open */
        flex: none; /* Prevents flexbox from collapsing the height */
        position: relative;
        margin-top: 10px;
    }
    
    .about-img-main { 
        width: 85%; 
        height: 80%; 
        right: 0;
        top: 0;
    }
    
    .about-img-overlap { 
        width: 50%; 
        height: 50%;
        left: 0;
        bottom: 5%;
    }
.about-line.accent { color: var(--accent-gold); font-style: italic; }
}
/* 2. SHOWREEL VIDEO ALIGNMENT */
.showreel { min-height: 100vh; background-color: var(--bg-dark); display: flex; align-items: center; justify-content: center; padding-top: 60px; }
.showreel-container { height: calc(100vh - 80px); width: 100vw; display: flex; align-items: center; justify-content: center; }
.video-placeholder { width: 150px; height: 150px; background: #000; border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 0 0px rgba(212,175,55,0); }
.video-placeholder video { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.5s; }
.video-placeholder:hover video { opacity: 1; }
.play-text { position: absolute; color: var(--accent-gold); font-weight: bold; letter-spacing: 2px; z-index: 2; pointer-events: none; }
.mobile-video { display: none; }

/* --- SERVICES --- */
.services { min-height: 100vh; padding: 120px 5vw; display: flex; align-items: center; position: relative; z-index: 2; width: 100%; box-sizing: border-box; }
.services-wrapper { width: 100%; max-width: 100vw; }
.services-heading { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--accent-gold); margin-bottom: 60px; letter-spacing: 2px; }
.services-list { list-style: none; display: flex; flex-direction: column; gap: clamp(30px, 6vw, 60px); width: 100%; }

.service-item { 
    /* Slightly scaled down for mobile safety */
    font-size: clamp(2rem, 6.5vw, 7.5rem); 
    font-weight: 900; 
    text-transform: uppercase; 
    color: transparent; 
    -webkit-text-stroke: 1.5px var(--text-silver); 
    cursor: pointer; 
    transition: 0.4s ease; 
    
    /* CRITICAL: Mobile overflow constraints */
    display: inline-block; 
    width: max-content;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.1;
}

.service-item:hover, .service-item.active { color: var(--accent-gold); -webkit-text-stroke: 1.5px transparent; transform: skewX(-3deg) translateX(20px); }

.service-bgs { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.service-bg { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    visibility: hidden; 
    transform: scale(1.05); 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important;
    /* REMOVED: transition: opacity 0.5s ease, transform 5s linear; */
}

/* Mobile Active State */
.service-item.is-active { 
    color: var(--accent-gold); 
    -webkit-text-stroke: 1.5px transparent; 
    transform: skewX(-3deg) translateX(20px); 
}

/* --- MOBILE SPACING FIX --- */
@media (max-width: 899px) {
    .services { 
        padding: 80px 5vw; /* Remove massive vertical padding */
        min-height: 60vh;  /* Stop forcing 100vh which creates dead space */
        align-items: flex-start; /* Flow naturally from the top */
    }
    
    .services-heading {
        margin-bottom: 30px; /* Bring heading closer to the list */
    }
    
    .services-list { 
        gap: 20px; /* Drastically reduce vertical gaps between text */
    }
    
    .service-item {
        /* Optional: Keeps items on one line or wraps cleanly on very small screens */
        padding: 10px 0; 
    }
}
/* --- THE PROCESS --- */
.process { padding: 15vh 10vw; background: var(--bg-light-dark); }
.process-header { margin-bottom: 80px; text-align: center; }
.process-header h2 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--text-white); }
.process-container { display: flex; gap: 5vw; position: relative; max-width: 1200px; margin: 0 auto; }
.process-line-wrapper { width: 2px; background: rgba(255,255,255,0.1); position: relative; margin-top: 20px; }
.process-line-fill { width: 100%; height: 0%; background: var(--accent-gold); position: absolute; top: 0; left: 0; }
.process-steps { display: flex; flex-direction: column; gap: 10vh; flex: 1; }
.step { position: relative; }
.step-num { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--accent-gold); margin-bottom: 10px; font-weight: 300; }
.step-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 15px; color: var(--text-white); }
.step p { font-size: clamp(1rem, 1.2vw, 1.2rem); color: var(--text-silver); max-width: 500px; line-height: 1.6; }

/* 4. UPGRADED PORTFOLIO (9:16 Cards) */
.portfolio {
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    /* Pushes content safely below the 60px header */
    padding-top: 60px; 
    box-sizing: border-box;
}

.portfolio-wrapper {
    width: 100%;
    /* Changed from 100vh to 100% so it doesn't break out of the bottom of the screen */
    height: 100%; 
    display: flex;
    align-items: center;
}

.portfolio-track {
    display: flex;
    align-items: center;
    gap: 1.5vw;
    padding: 0 8vw;
}

/* 4:5 DESKTOP RATIO */
.portfolio-card {
    /* 100vh minus 60px header minus 60px of breathing room = 120px */
    height: calc(100vh - 80px); 
    width: calc((100vh - 80px) * 0.8); 
    aspect-ratio: 4 / 5;
    
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    flex-shrink: 0;
    background: #111;
}
.card-image-wrapper {
    width: 100%;
    height: 100%;

    position: relative;

    overflow: hidden;
}

.card-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.25);
    will-change: transform;
}


/* MOBILE */
@media (max-width: 899px) {

    .portfolio-wrapper {
        height: 78vh;
        overflow: visible;
    }

    .portfolio-track {
        gap: 0;
        padding: 0;
    }

    .portfolio-card.swiper-slide {
        width: 82vw !important;

        max-width: 360px;
        min-width: 280px;

        height: 72vh !important;
    }
}

/* 5. TESTIMONIALS AUTO-CAROUSEL */
.testimonials { padding: 15vh 0; background: var(--bg-light-dark); overflow: hidden; position: relative; }
.section-title { text-align: center; font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 60px; }
.testimonials-slider-wrap { width: 100%; max-width: 800px; margin: 0 auto; position: relative; overflow: hidden; }
.testimonials-track { display: flex; transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1); }
.testimonial-card { min-width: 100%; padding: 40px 60px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.quote { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.6; color: var(--text-white); font-style: italic; margin-bottom: 30px; }
.author { color: var(--accent-gold); font-size: 0.9rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.carousel-controls { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.carousel-controls button { background: none; border: 1px solid var(--text-silver); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.carousel-controls button svg { fill: var(--text-silver); width: 20px; height: 20px; transition: 0.3s; }
.carousel-controls button:hover { border-color: var(--accent-gold); }
.carousel-controls button:hover svg { fill: var(--accent-gold); }

/* --- SWIPER SPECIFIC OVERRIDES --- */
.testimonials-swiper .swiper-slide { height: auto; display: flex; min-width: unset; }

/* Desktop: Stop Swiper classes from breaking original GSAP flex layout */
/* Desktop: Stop Swiper classes from breaking original GSAP flex layout */
/* Desktop: Stop Swiper classes from breaking original GSAP flex layout */
@media (min-width: 900px) {
    .portfolio-swiper { overflow: visible !important; }
    .portfolio-track.swiper-wrapper { display: flex; width: auto !important; box-sizing: border-box; }
    /* Updated to match the new 120px math */
    .portfolio-card.swiper-slide { 
        width: calc((100vh - 80px) * 0.8) !important; 
        height: calc(100vh - 80px) !important; /* Added height lock just in case */
        flex-shrink: 0; 
        margin-right: 0 !important; 
    }
}
/* Mobile: Optimize Portfolio for Swiper */
@media (max-width: 899px) {

    .portfolio-wrapper {
        height: 80vh;
        overflow: visible;
    }

    .portfolio-card.swiper-slide {
        width: 78vw !important;
        max-width: 320px;
        min-width: 260px;
        height: 72vh !important;
    }

    .portfolio-track {
        gap: 0;
        padding: 0;
    }
    .testimonials-track.swiper-wrapper { transition-property: transform; } /* Let Swiper control transitions */
}

/* 6. MARQUEE STRIP (MOBILE OPTIMIZED) */
.marquee-strip { width: 100%; background: var(--accent-gold); padding: 25px 0; display: flex; overflow: hidden; white-space: nowrap; }
.marquee-content { font-size: 1.8rem; font-weight: 900; color: var(--bg-dark); text-transform: uppercase; letter-spacing: 2px; padding-right: 30px; animation: marquee-scroll 20s linear infinite; }
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

@media (max-width: 768px) {
    .marquee-strip { padding: 12px 0; }
    .marquee-content { font-size: 1rem; padding-right: 15px; }
}

/* 7. PREMIUM FOOTER REDESIGN */
/* --- 7. PREMIUM FOOTER REDESIGN (With Magnetic CTA) --- */
.footer { background: var(--bg-dark); padding: 10vh 5vw 20px 5vw; display: flex; flex-direction: column; }
.footer-top { border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 40px; text-align: center; }
.footer-title { font-size: clamp(3rem, 10vw, 12rem); font-weight: 900; color: var(--bg-dark); -webkit-text-stroke: 1.5px var(--text-silver); text-transform: uppercase; transition: 0.4s; }
.footer-title:hover { -webkit-text-stroke: 1.5px var(--accent-gold); color: rgba(212, 175, 55, 0.05); }

/* Updated Grid to center the CTA */
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; margin: 60px 0; align-items: center; }
.footer-col { display: flex; flex-direction: column; gap: 15px; }
.footer-col.align-center { align-items: center; justify-content: center; }
.footer-col.align-right { align-items: flex-end; text-align: right; }
.footer-col h4 { color: var(--accent-gold); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.footer-col a, .footer-col p { color: var(--text-silver); text-decoration: none; font-size: 1rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--text-white); }

/* Circular Magnetic Button */
.footer-magnetic-cta {
    width: clamp(140px, 15vw, 200px);
    height: clamp(140px, 15vw, 200px);
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.4s, color 0.4s;
    overflow: hidden;
}
.footer-magnetic-cta:hover { background: var(--accent-gold); color: var(--bg-dark); }
.footer-magnetic-cta .btn-text { pointer-events: none; max-width: 80%; display: block;}

/* Bottom Bar & Social Icons */
.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--accent-gold); padding-top: 20px; flex-wrap: wrap; gap: 20px; }
.footer-bottom-bar p { color: var(--text-silver); font-size: 0.9rem; }
.footer-social-icons { display: flex; gap: 25px; align-items: center; }
.footer-social-icons svg { width: 20px; height: 20px; fill: var(--text-silver); transition: 0.3s; }
.footer-social-icons a:hover svg { fill: var(--accent-gold); transform: translateY(-3px); }

#back-to-top { background: none; border: none; color: var(--accent-gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
#back-to-top:hover { color: var(--text-white); }



/* Mobile Adjustments */
@media (max-width: 899px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .process-container { flex-direction: row; gap: 8vw; }
    .desktop-video { display: none; }
    .mobile-video { display: block; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .footer-col.align-right { align-items: center; text-align: center; }
    .footer-bottom-bar { flex-direction: column-reverse; text-align: center; gap: 30px; }
}