* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #fbfbfb; font-family: "Helvetica Neue", Arial, sans-serif; color: #1a1a1a; overflow-x: hidden; }

/* HEADER */
.main-header { position: fixed; top: 0; width: 100%; padding: 35px 5%; display: flex; justify-content: center; align-items: center; z-index: 1000; }
.nav-pill { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(15px); padding: 10px 40px; border-radius: 100px; display: flex; gap: 50px; align-items: center; border: 1px solid rgba(0,0,0,0.05); }
.logo { font-weight: 700; text-transform: lowercase; }
.menu-trigger { background: none; border: none; font-size: 0.7rem; font-weight: 600; cursor: pointer; }

.clock-system { position: absolute; right: 5%; display: flex; gap: 20px; font-size: 0.65rem; opacity: 0.6; font-variant-numeric: tabular-nums; }

/* SECTION 1: HERO */
/* SECTION 1: HERO */
.hero { 
    height: 125vh; 
    padding: 0 5%; 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 100px;
    
    /* --- BACKGROUND IMAGE CODE --- */
    background-image: url('assets/images/your-bg-image1.png'); /* REPLACE WITH YOUR FILENAME */
    background-size: cover;      /* Ensures image covers the whole area */
    background-position: center; /* Keeps the subject centered */
    background-repeat: no-repeat;
    /* ----------------------------- */
}
.hero-content { margin-top: 20vh; width: 100%; display: flex; justify-content: space-between; align-items: flex-start; }
.hero-title { font-size: clamp(2.5rem, 6vw, 6rem); line-height: 0.85; letter-spacing: -4px; font-weight: 500; }
.hero-desc { max-width: 340px; font-size: 0.95rem; line-height: 1.5; padding-top: 20px; }

/* SECTION 2: STACKING DECK */
.projects-root { position: relative; padding-top: 100px; /* More breathing room */ 
background-color: #fbfbfb; /* Match your body color exactly */
isolation: isolate; /* Forces the deck into its own rendering world */
    z-index: 1;}
.projects-header { padding: 0 5% 80px; transition: opacity 0.3s ease-out; }
.projects-title { font-size: 5.5rem; line-height: 0.9; letter-spacing: -3px; }
.outline { color: transparent; -webkit-text-stroke: 1px #1a1a1a; opacity: 0.2; }

.stack-container { display: flex; flex-direction: column; align-items: center; width: 100%; }
.project-card {
    position: sticky;
    top: calc(110px + (var(--i) * 25px)); 
    width: 94%;
    height: 80vh;
    background: #000;
    border-radius: 15px;
    margin-bottom: 45vh; 
    overflow: hidden;
    /* This shadow is now safe to use! */
    box-shadow: 0 -20px 40px rgba(0,0,0,0.15); 
    
    /* Keep these for maximum scroll smoothness */
    will-change: transform;
    transform: translateZ(0);

}

.project-card:last-child { margin-bottom: 30vh; }
.video-mockup { width: 100%; height: 100%; position: relative; }
.video-mockup img { width: 100%; height: 100%; object-fit: cover;}
.project-name { position: absolute; top: 25px; left: 25px; color: #fff; font-size: 1.8rem; z-index: 10; }

/* MENU OVERLAY */
.overlay {
    position: fixed; inset: 0; background: #fdfdfd; z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}
.overlay.active { transform: translateY(0); }
.nav-links a { display: block; font-size: 4rem; text-decoration: none; color: #1a1a1a; margin: 15px 0; font-weight: 500; }
.close-btn { position: absolute; top: 40px; right: 5%; background: none; border: none; cursor: pointer; font-weight: 600; font-size: 1rem; }

/* MOBILE */
@media (max-width: 768px) {
    .main-header { flex-direction: column; padding: 20px 5%; gap: 15px; }
    .nav-pill { width: 100%; justify-content: space-between; padding: 10px 25px; }
    .clock-system { position: static; width: 100%; justify-content: center; gap: 15px; }
    .hero { margin-bottom: 50px; background-image: url('assets/images/bagroundimgmobile.png'); /* Mobile specific image */ background-position: center center; } 
    .hero-content { flex-direction: column; margin-top: 20vh; }
    .hero-title { font-size: 3.8rem; margin-bottom: 15px; }
    .hero-desc { padding-top: 0; max-width: 100%; }
    .projects-root { padding-top: 80px; }
    .projects-title { font-size: 3rem; }
    .project-card { height: 75vh; top: calc(160px + (var(--i) * 20px)); margin-bottom: 40vh; }
    .video-pc { display: none; }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Aligns text to the left for a premium feel */
        padding-left: 10%;
    }

    .nav-links a {
        font-size: 2.5rem; /* Reduced from 4rem so it fits the screen */
        margin: 10px 0;
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .close-btn {
        top: 30px; /* Moves it slightly up on mobile */
    }
}

@media (min-width: 769px) { .video-mob { display: none; } }








/* --- INFO BRIDGE SECTION --- */
.info-bridge {
    background-color: #fbfbfb;
    padding: 120px 5% 80px 5%;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.info-main h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    max-width: 90%;
    font-weight: 500;
    margin-bottom: 80px;
}

.gray-text {
    color: #a0a0a0; /* That soft gray from your ref */
}

.info-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.info-col {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.4;
    text-transform: capitalize;
}

.info-col span:first-child {
    font-weight: 600;
}

.right-align {
    text-align: right;
    
    letter-spacing: 1px;
}

/* MOBILE ADJUSTMENTS FOR BRIDGE */
@media (max-width: 768px) {
    .info-bridge { padding: 80px 5% 40px 5%; }
    .info-main h2 { font-size: 2.1rem; max-width: 100%; margin-bottom: 50px; }
    
    .info-footer { 
        flex-direction: row; 
        align-items: flex-start; 
        gap: 30px; 
        
    }
    
    .right-align { text-align: left; }
}










/* --- PROCESS SECTION --- */
.process-wrapper {
    height: 395vh; /* This controls how long the scroll lasts */
    position: relative;
    background: #1a1a1a; /* Dark background for contrast */
    color: #fff;
}

.process-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.process-container {
    display: flex;
    padding-left: 10%;
    will-change: transform;
}

.process-step {
    min-width: 600px; /* Width of each step */
    margin-right: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-num {
    font-size: 1rem;
    font-weight: 700;
    color: #a0a0a0;
    margin-bottom: 20px;
    display: block;
}

.process-step h3 {
    font-size: 5rem;
    letter-spacing: -3px;
    margin-bottom: 30px;
    font-weight: 500;
}

.process-step p {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e5e5e5;
    opacity: 0.8;
}

/* MOBILE PROCESS - PC VIBE ON MOBILE */
@media (max-width: 768px) {
    .process-wrapper { 
        height: 246vh; /* Keeps the scroll length for the slide effect */
    } 
    
    .process-sticky { 
        display: flex;
        align-items: center;
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .process-container { 
        display: flex; 
        flex-direction: row; /* Keeps it horizontal like PC */
        padding-left: 10%; 
    }

    .process-step { 
        min-width: 85vw; /* Each step takes up most of the screen width */
        margin-right: 50px; 
    }

    .process-step h3 { 
        font-size: 2.8rem; /* Scaled down for mobile */
        margin-bottom: 15px;
    }

    .process-step p {
        font-size: 0.95rem;
        max-width: 280px;
    }
}



.main-footer {
    background-color: #fcfcfc; /* Off-white from screenshot */
    padding: 100px 5% 40px 5%;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-top {
    margin-bottom: 80px;
}

.footer-cta {
    font-size: 5rem;
    font-weight: 500;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.footer-sub {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.get-in-touch {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid #d1d1d1;
    border-radius: 100px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.3s ease;
}

.get-in-touch:hover {
    background: #1a1a1a;
    color: #fff;
}

/* LINKS GRID */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 100px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a, .footer-col span {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
}

/* HUGE BRAND SIGNATURE */
.huge-brand {
    font-size: clamp(5rem, 10vw, 15rem);
    font-weight: 450;
    letter-spacing: -8px;
    text-align: left;
    margin-bottom: 55px;
    line-height: 0.8;
    color: #1a1a1a;
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: #a0a0a0;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: absolute;
    bottom: 40px;
    right: 5%;
    width: 45px;
    height: 45px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* MOBILE REFINEMENT */
@media (max-width: 768px) {
    .footer-cta { font-size: 2.5rem; }
    .footer-links-grid { 
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
        gap: 50px 20px;
    }
    .footer-col:first-child { grid-column: span 2; margin-bottom: 20px; }
    .huge-brand { 
        /* Lowered the scale so it fits the narrow mobile width */
        font-size: clamp(2.5rem, 5vw, 4rem); 
        letter-spacing: -3px; 
        margin-top: 40px;
        white-space: nowrap; /* Prevents the text from accidental wrapping */
        width: 100%;
        display: block;
    }
}


html {
    scroll-behavior: auto; /* Turn off "smooth" to see if it fixes the lag */
}
body {
    background-color: #fbfbfb;
    position: relative;
    /* Remove any height: 100% if you added it */
}








video {
    background-color: #000; /* Pre-fills the area so no "fade from white" occurs */
    image-rendering: optimizeSpeed; /* Tells browser to prioritize frame rate over sharpness */
}







/* 1. Target all your main text and content blocks */
.hero-title, .hero-desc, 
.info-main h2, .info-col,
.projects-header .tag, .projects-title, 
.process-step, 
.footer-cta, .footer-sub, .get-in-touch,
.huge-brand {
    opacity: 0;
    transform: translateY(40px); /* Spawns from 40px below */
    transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1), 
                opacity 1s ease;
    will-change: transform, opacity;
}

/* 2. The trigger class that JS will apply */
.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 3. Staggering: Makes elements in the same section pop up one by one */
.hero-desc { transition-delay: 0.2s; }
.info-footer .info-col:nth-child(2) { transition-delay: 0.1s; }
.info-footer .info-col:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(2) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(4) { transition-delay: 0.3s; }