@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
    --bg-dark: #050505;
    --bg-light: #ffffff;
    --text-dark: #ffffff;
    --text-light: #050505;
    --accent: #ccff00;
    /* Neon Green for Timeline/Expertise */
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
    --border: rgba(255,255,255,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Poppins", sans-serif; */
}

/* Small inner cursor */
  .cursor-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
  }

  /* Outer trailing cursor */
  .cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border 0.3s ease;
  }

  /* Hover effect */
  .cursor-hover {
    width: 70px !important;
    height: 70px !important;
    border: 2px solid #00ffff !important;
  }

  /* Click pulse animation */
  .cursor-click {
    animation: clickPulse 0.4s ease;
  }

  @keyframes clickPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.7); }
    100% { transform: translate(-50%, -50%) scale(1); }
  }

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, .section-title, .logo {
    font-family: "Poppins", sans-serif;
}


/* THEMES */
.theme-dark {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.theme-light {
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* UTILS */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.mb-5 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.reveal-box {
    overflow: hidden;
}

/* 1. VERTICAL LOADER (Centered & Stacked) */
.loader-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-loader-text {
    display: flex;
    flex-direction: row;
    /* VERTICAL STACK */
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.vertical-loader-text span {
    display: block;
    opacity: 0;
    transform: translateY(20px);
}





.section-header {
    margin-bottom: 80px;
    position: relative;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.8;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
}

.section-title span {
    display: block;
}

.section-sub {
    margin-top: 25px;
    font-size: 1.1rem;
    opacity: 0.6;
    max-width: 600px;
}

/* Subtle glow accent line */
.section-header::after {
    content: "";
    width: 80px;
    height: 3px;
    background: var(--accent);
    display: block;
    margin-top: 30px;
    box-shadow: 0 0 15px var(--accent);
}



/* 2. NAVBAR (MIX BLEND MODE - MAGIC VISIBILITY) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 100;
    mix-blend-mode: difference;
    /* White text on Black, Black on White */
    color: white;
    opacity: 0;
    transform: translateY(-20px);
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: white;
}

.dot {
    color: white;
}

/* Difference mode handles color */
.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.nav-cta {
    margin-left: 40px;
    padding: 10px 24px;
    background: white;
    color: black;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.nav-cta:hover {
    transform: scale(1.05);
}


/* HAMBURGER */

.hamburger {
    display: none;
    width: 28px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    height: 2px;
    width: 100%;
    background: white;
    transition: 0.4s ease;
}

/* Mobile Menu Overlay */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.25,1,0.5,1);
    z-index: 150;
}

.mobile-menu a {
    font-size: 2rem;
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: 0.3s;
}

.mobile-menu a:hover {
    opacity: 1;
    color: var(--accent);
}

/* Active states */

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

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.hamburger.active span:nth-child(2) {
    transform: rotate(-45deg) translateY(-6px);
}

/* MOBILE BREAKPOINT */

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

}

.hero-fixed {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transform: scale(1.1);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(204,255,0,0.15), transparent 60%),
        linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9));
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-inner {
    max-width: 900px;
}

.hero-tag {
    display: inline-block;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.05;
    overflow: hidden;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: inline-block;
}

.hero-sub {
    margin-top: 25px;
    font-size: 1.3rem;
    opacity: 0;
    transform: translateY(40px);
}

.hero-scroll {
    margin-top: 80px;
    font-size: 0.8rem;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: #fff;
    margin: 10px auto 0;
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0% { height: 60px; opacity: 1; }
    50% { height: 80px; opacity: 0.5; }
    100% { height: 60px; opacity: 1; }
}


/* 4. MAIN CONTENT */
.main-content {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    will-change: transform;
}

.work-stack {
    position: relative;
    background: #fff;
}

.stack-wrapper {
    position: relative;
    height: 300vh; /* transitions = cards - 1 */
}

.stack-card {
    position: sticky;
    top: 120px;
    height: 70vh;
    /* max-width: 900px; */
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
    will-change: transform;
}
.stack-card h4{
    position: absolute;
    bottom: 40px;
    left: 20px;
    color: #fff;
    font-size: 1.5rem;
    z-index: 2;
}
.stack-card p{
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.8;
    z-index: 2;
    margin-top: 30px;
}

/* Proper stacking order */
.stack-card:nth-child(1) { z-index: 1; }
.stack-card:nth-child(2) { z-index: 2; }
.stack-card:nth-child(3) { z-index: 3; }
.stack-card:nth-child(4) { z-index: 4; }

.stack-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* SERVICES (5 Cards Accordion) */
.accordion {
    display: flex;
    gap: 12px;
    height: 500px;
}

/* All cards start equal */
.acc-card {
    flex: 1;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transition:
        flex 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        background 0.6s ease;
}

/* Hover expands */
.acc-card:hover {
    flex: 3.5;
    background: #222;
}

/* Vertical Label */
.acc-label {
    position: absolute;
    top: 30px;
    left: 30px;

    writing-mode: vertical-rl;
    transform: rotate(180deg);

    font-size: 1.1rem;
    font-weight: 600;
    color: #666;

    transition: opacity 0.3s ease;
}

/* Hide label on hover */
.acc-card:hover .acc-label {
    opacity: 0;
}

/* Content hidden initially */
.acc-content {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
    transition-delay: 0s;
}

/* Show content after expand */
.acc-card:hover .acc-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

/* TIMELINE (Simple & Robust) */
/* ================= ADVANCED TIMELINE ================= */

.timeline-wrapper {
    position: relative;
}

.center-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.line-fill {
    width: 100%;
    height: 0%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

.timeline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 140px 0;
    position: relative;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.timeline-row.dimmed {
    opacity: 0.25;
    filter: blur(2px);
}

.timeline-row.active {
    opacity: 1;
    filter: blur(0);
}

.timeline-row.active .row-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow:
        0 0 15px var(--accent),
        0 0 40px rgba(204,255,0,0.6);
}


.row-dot {
    width: 20px;
    height: 20px;
    background: #000;
    border: 2px solid #444;
    border-radius: 50%;
    z-index: 2;
    transition: 0.4s ease;
}
    

.row-content {
    width: 45%;
    padding: 40px;
    background: linear-gradient(145deg, #111, #383838);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
}


.row-content h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.6rem;
}


.row-empty {
    width: 45%;
}

.row-content.left {
    text-align: right;
}

.row-content.right {
    text-align: left;
}



/* ================= ABOUT SECTION ================= */

.about-section {
    padding: 140px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-title span {
    display: block;
}

.about-text {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
    line-height: 1.7;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-info span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 8px;
}

.about-info a,
.about-info p {
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}

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

/* subtle divider lines */
.about-info {
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}



/* BIG FOOTER */
.big-footer {
    padding: 100px 0 50px;
    border-top: 1px solid #333;
}

.footer-cta {
    font-size: 8vw;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
}

.footer-cta:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: #888;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* ================= PREMIUM POPUP ================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

/* --- MODAL BOX --- */

.popup-box {
    width: 100%;
    max-width: 560px;
    padding: 60px 50px;
    border-radius: 24px;
    background: linear-gradient(145deg, #0f0f0f, #151515);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.6),
        inset 0 0 40px rgba(255,255,255,0.02);
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s var(--ease), opacity 0.4s ease;
    color: #fff;
}

.popup-overlay.open .popup-box {
    transform: translateY(0) scale(1);
}

/* --- Heading --- */

.popup-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* --- Close Button --- */

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.6rem;
    cursor: pointer;
    transition: 0.3s ease;
}

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

/* ================= FORM ================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(204,255,0,0.25);
    background: rgba(255,255,255,0.06);
}

/* --- Floating Labels --- */

.form-group label {
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 13px;
    color: #777;
    pointer-events: none;
    transition: 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: -10px;
    left: 14px;
    font-size: 11px;
    color: var(--accent);
    background: #111;
    padding: 0 6px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
}
.form-group select option {
    background: #111;
    color: #fff;
}

.form-alert {
    padding:12px 15px;
    border-radius:8px;
    margin-bottom:20px;
    font-size:14px;
}

.form-alert.error {
    background:#2a1111;
    border:1px solid #5c1f1f;
    color:#ff6b6b;
}


/* --- Submit Button --- */

.submit-btn {
    margin-top: 10px;
    padding: 16px;
    border-radius: 50px;
    border: none;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(204,255,0,0.35);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .popup-box {
        padding: 40px 25px;
        margin: 20px;
    }

    .popup-box h2 {
        font-size: 1.6rem;
    }

}






@media (max-width: 992px) {
    .cursor-dot, .cursor-outline{
        display: none;
    }
    .container {
        padding: 0 25px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-inner {
        max-width: 600px;
    }

    .accordion {
        height: auto;
        flex-direction: column;
    }

    .acc-card {
        min-height: 140px;
    }

    .acc-card:hover {
        flex: 1;
    }

}
@media (max-width: 768px) {

 
    .nav-cta {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .navbar {
        padding: 18px 0;
    }

    /* ===== HERO ===== */

    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-scroll {
        margin-top: 40px;
    }

    /* Disable heavy parallax on mobile */
    .hero-bg video {
        transform: scale(1.1) !important;
    }
    .hero-noise {
        display: none;
    }

    /* ===== WORK GRID ===== */

    .stack-wrapper {
        height: auto;
    }

    .stack-card {
        position: relative;
        height: 60vh;
        margin-bottom: 40px;
        top: auto;
    }

    

    /* ===== TIMELINE ===== */

    .timeline-wrapper {
        padding: 40px 0;
    }

    .timeline-row {
        flex-direction: column;
        margin: 60px 0;
    }

    .row-content {
        width: 100%;
        text-align: center !important;
    }

    .center-line,
    .row-dot,
    .row-empty {
        display: none;
    }



    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .about-text {
        margin: 0 auto;
    }

    .about-right {
        align-items: center;
    }


    

    /* ===== FOOTER ===== */

    .footer-cta {
        font-size: 12vw;
        margin-bottom: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

}
@media (max-width: 480px) {

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tag {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .section {
        padding: 80px 0;
    }

    .popup-box {
        width: 90%;
        padding: 30px;
    }

}
