/* ============================================================
   CHITRANK GUPTA PORTFOLIO — styles.css
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0F0F0F;
    background-color: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- CUSTOM PROPERTIES ---- */
:root {
    --dark:         #0F0F0F;
    --dark-2:       #1A1A1A;
    --white:        #FFFFFF;
    --cream:        #F7F5F0;
    --orange:       #FF5B35;
    --orange-dark:  #E04A26;
    --purple:       #6B2FA0;
    --purple-dark:  #521C80;
    --blue:         #1B6CA8;
    --blue-dark:    #145189;
    --green:        #1A7F5A;
    --teal:         #0E7C7B;
    --text-muted:   #6B7280;
    --border:       #E5E7EB;
    --radius:       16px;
    --radius-sm:    8px;
    --shadow:       0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.14);
    --transition:   all 0.3s ease;
    --nav-height:   72px;
}

/* ---- CONTAINER ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 91, 53, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}
.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}
.btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* ---- EYEBROW LABELS ---- */
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.5); }

/* ---- SECTION HEADER ---- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 72px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dark);
    flex-shrink: 0;
    transition: color 0.2s;
}
.nav-logo:hover { color: var(--orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 100px;
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--dark);
    background: var(--cream);
}

.nav-cta-link {
    background: var(--dark);
    color: var(--white) !important;
    padding: 9px 22px;
    margin-left: 8px;
}
.nav-cta-link:hover {
    background: var(--orange) !important;
    color: var(--white) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #07070F;
    padding-top: var(--nav-height);
}

/* Atmospheric depth blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}
.hero-blob--1 {
    width: 900px;
    height: 900px;
    bottom: -280px;
    right: -180px;
    background: radial-gradient(circle at center,
        rgba(255, 91, 53, 0.28) 0%,
        rgba(255, 91, 53, 0.10) 38%,
        transparent 68%
    );
    filter: blur(70px);
}
.hero-blob--2 {
    width: 680px;
    height: 680px;
    top: -180px;
    left: -140px;
    background: radial-gradient(circle at center,
        rgba(107, 47, 160, 0.26) 0%,
        rgba(107, 47, 160, 0.08) 40%,
        transparent 68%
    );
    filter: blur(70px);
}

/* Dot-grid texture overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero-body {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 120px;
    display: grid;
    grid-template-columns: 1fr 272px;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--white);
    max-width: 820px;
}
.hero-headline em {
    font-style: normal;
    color: var(--orange);
}

.hero-sub {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    max-width: 520px;
    margin-top: 20px;
}
.hero-sub strong { color: var(--white); }

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}



/* Hero two-column grid */
.hero-left  { display: flex; flex-direction: column; }
.hero-right { display: flex; align-items: center; justify-content: flex-end; }

/* Headline line-mask reveal */
.hl-line  { display: block; overflow: hidden; line-height: 1.05; }
.hl-inner { display: block; }

@media (prefers-reduced-motion: no-preference) {
    .hl-inner {
        opacity: 0;
        transform: translateY(108%);
        animation: heroLineUp 0.88s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .hl-line:nth-child(1) .hl-inner { animation-delay: 0.10s; }
    .hl-line:nth-child(2) .hl-inner { animation-delay: 0.23s; }
    .hl-line:nth-child(3) .hl-inner { animation-delay: 0.35s; }
    @keyframes heroLineUp {
        to { opacity: 1; transform: translateY(0); }
    }
    .hero-eyebrow {
        opacity: 0;
        animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.02s forwards;
    }
    .hero-sub {
        opacity: 0;
        animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.50s forwards;
    }
    .hero-ctas {
        opacity: 0;
        animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.62s forwards;
    }
    .hero-right {
        opacity: 0;
        animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.58s forwards;
    }
    @keyframes heroFadeUp {
        from { opacity: 0; transform: translateY(22px); }
        to   { opacity: 1; transform: translateY(0);    }
    }
}

/* Glassmorphic info panel */
.hero-info-panel {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 8px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.04);
    width: 252px;
}
.hip-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
}
.hip-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 1px;
}
.hip-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.hip-suffix {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -0.03em;
    line-height: 1;
}
.hip-label {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.40);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 500;
}
.hip-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 24px;
}
.hip-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 24px 4px;
}
.hip-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.55); }
    60%       { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);    }
}
.hip-status-text {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 500;
}
.hip-location {
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.11em;
    padding: 0 24px 14px;
    margin: 0;
    text-transform: uppercase;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.2s;
}
.hero-scroll-hint:hover { color: rgba(255, 255, 255, 0.7); }

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50%       { opacity: 1;    transform: scaleY(1.15); }
}

/* Skill marquee strip */
.hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 13px 0;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marqueeScroll 34s linear infinite;
}
.hero-marquee:hover .marquee-track { animation-play-state: paused; }
.mq-item {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.20);
    white-space: nowrap;
}
.mq-sep {
    color: var(--orange);
    opacity: 0.40;
    font-size: 0.68rem;
    flex-shrink: 0;
}
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ============================================================
   EDITORIAL STATEMENT SECTION
   ============================================================ */
.editorial-statement {
    background: #F2EDE6;
    padding: 110px 0 130px;
    overflow: hidden;
}
.editorial-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.editorial-line {
    display: flex;
    align-items: center;
    gap: 22px;
    line-height: 1;
}
.ed-word {
    font-size: clamp(2.6rem, 5vw, 5.6rem);
    font-weight: 900;
    color: #0F0F0F;
    letter-spacing: -0.04em;
    line-height: 0.9;
    white-space: nowrap;
}
.ed-word--italic {
    font-style: italic;
    font-weight: 700;
    color: var(--orange);
}
.ed-word--accent { color: var(--orange); }

.ed-pill {
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}
.ed-pill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}
.ed-pill:hover img { transform: scale(1.07); }
.ed-pill--land {
    width: 196px;
    height: 106px;
    animation: edFloat 7s ease-in-out infinite;
}
.ed-pill--port {
    width: 116px;
    height: 168px;
    animation: edFloat 9s ease-in-out infinite reverse;
}
@keyframes edFloat {
    0%, 100% { transform: translateY(0px)   rotate(0deg);   }
    33%       { transform: translateY(-10px) rotate(1deg);   }
    66%       { transform: translateY(6px)  rotate(-0.8deg); }
}
.ed-spark {
    font-size: 2.8rem;
    color: var(--orange);
    line-height: 1;
    flex-shrink: 0;
    display: inline-block;
    animation: edSparkSpin 10s linear infinite;
}
@keyframes edSparkSpin {
    to { transform: rotate(360deg); }
}

.ed-pill-wrap {
    display: inline-flex;
    flex-shrink: 0;
    will-change: transform;
}

.editorial-caption {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(15, 15, 15, 0.32);
    font-weight: 600;
    margin-top: 36px;
    padding-left: 4px;
}

body.dark .editorial-statement { background: #111111; }
body.dark .ed-word             { color: #F0EDE8; }
body.dark .editorial-caption   { color: rgba(240, 237, 232, 0.30); }

@media (max-width: 768px) {
    .editorial-statement { padding: 64px 0 80px; }
    .editorial-inner     { padding: 0 20px; }
    .editorial-line      { gap: 14px; flex-wrap: wrap; }
    .ed-pill--land       { width: 136px; height: 74px; }
    .ed-pill--port       { width: 80px;  height: 116px; }
    .ed-spark            { font-size: 2rem; }
}

/* ============================================================
   PORTFOLIO GALLERY
   ============================================================ */
.work {
    background: var(--cream);
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 56px;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--dark);
    color: var(--dark);
    background: var(--white);
}
.filter-btn.active {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

/* ---- Masonry Grid (CSS columns) ---- */
.masonry-grid {
    columns: 3;
    column-gap: 18px;
    transition: opacity 0.22s ease;
}
.masonry-grid.filtering {
    opacity: 0;
    pointer-events: none;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 18px;
    display: block;
}
.masonry-item.hidden { display: none; }

/* ---- Project Card ---- */
.project-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    display: block;
    line-height: 0;
}
.project-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.35s ease;
    filter: brightness(0.96);
}
.project-card:hover img {
    transform: scale(1.06);
    filter: brightness(0.65);
}

/* ---- Project Overlay ---- */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.93) 0%,
        rgba(10, 10, 10, 0.45) 45%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.32s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 20px;
    gap: 6px;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-cat-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
}

.project-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin: 0;
}

/* ============================================================
   WORK SCATTER STAGE
   ============================================================ */

/* Tall scroll driver — 320 vh gives comfortable animation */
.work-stage {
    position: relative;
    height: 320vh;
}

/* Sticky viewport-height panel that houses all the animation */
.work-stage-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--cream);
}

/* ---- Centre reveal (title + tags) ---- */
.work-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    transition: opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 24px;
}
.work-center.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.work-center .eyebrow {
    color: var(--orange);
    display: block;
    margin-bottom: 8px;
}
.work-scatter-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.work-scatter-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ---- Scatter cards ---- */
.scatter-card {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    will-change: transform;
    background: #ccc;
    cursor: default;
    pointer-events: none;
    transition: box-shadow 0.28s ease;
}
.scatter-card.is-scattered {
    cursor: pointer;
    pointer-events: all;
}
.scatter-card.is-scattered:hover {
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.32);
}
.scatter-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/*
 * Card sizes — sized to match the reference clustering:
 * sc-0 / sc-4 = top-left pair (back / front)
 * sc-6        = top-center single (landscape)
 * sc-1        = top-right single  (tall portrait, bleeds off edge)
 * sc-2 / sc-7 = bottom-left pair  (large back / front)
 * sc-3 / sc-5 = bottom-right pair (back / front)
 */
.sc-0 { width: 255px; height: 320px; }   /* top-left  BACK  */
.sc-1 { width: 212px; height: 375px; }   /* top-right       */
.sc-2 { width: 300px; height: 380px; }   /* btm-left  BACK (large) */
.sc-3 { width: 242px; height: 338px; }   /* btm-right BACK  */
.sc-4 { width: 186px; height: 232px; }   /* top-left  FRONT */
.sc-5 { width: 205px; height: 258px; }   /* btm-right FRONT */
.sc-6 { width: 255px; height: 190px; }   /* top-center landscape */
.sc-7 { width: 233px; height: 290px; }   /* btm-left  FRONT */

/* ---- Gallery below the stage ---- */
.work-gallery {
    padding: 96px 0 128px;
    background: var(--cream);
}

/* Scroll-down hint arrow shown while cards are stacked */
.scatter-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.scatter-hint.hidden { opacity: 0; }
.scatter-hint span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.scatter-hint-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: hintBounce 1.4s ease-in-out infinite;
}
@keyframes hintBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(5px); }
}

/* Responsive — tablet (≈ 80 %) */
@media (max-width: 1024px) {
    .sc-0 { width: 204px; height: 256px; }
    .sc-1 { width: 170px; height: 300px; }
    .sc-2 { width: 240px; height: 304px; }
    .sc-3 { width: 194px; height: 270px; }
    .sc-4 { width: 149px; height: 186px; }
    .sc-5 { width: 164px; height: 206px; }
    .sc-6 { width: 204px; height: 152px; }
    .sc-7 { width: 186px; height: 232px; }
}

/* Responsive — mobile (≈ 62 %) */
@media (max-width: 768px) {
    .work-stage { height: 280vh; }
    .sc-0 { width: 158px; height: 198px; }
    .sc-1 { width: 131px; height: 233px; }
    .sc-2 { width: 186px; height: 236px; }
    .sc-3 { width: 150px; height: 210px; }
    .sc-4 { width: 115px; height: 144px; }
    .sc-5 { width: 127px; height: 160px; }
    .sc-6 { width: 158px; height: 118px; }
    .sc-7 { width: 144px; height: 180px; }
    .work-scatter-desc { display: none; }
    .work-gallery { padding: 72px 0 96px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}
.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
}

/* Close button */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.3s ease;
}
.lightbox-close:hover {
    background: rgba(255, 91, 53, 0.35);
    transform: rotate(90deg);
}

/* Prev / Next */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.25s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
.lightbox-nav:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* Body / content */
.lightbox-body {
    position: relative;
    z-index: 9001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 90%;
    max-width: 860px;
    max-height: 92vh;
    padding: 0 64px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lightbox-body::-webkit-scrollbar { display: none; }

/* Image */
.lightbox-img-wrap {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    line-height: 0;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.35s ease;
}
.lightbox.open .lightbox-img-wrap {
    transform: scale(1);
    opacity: 1;
}
.lightbox-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

/* Info bar */
.lightbox-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding-bottom: 20px;
}
.lightbox-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
}
.lightbox-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0;
}

/* Counter pill */
.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9001;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    letter-spacing: 0.04em;
}

/* ============================================================
   SERVICES (What I Do)
   ============================================================ */
.services {
    padding: 128px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.service-icon--orange { background: rgba(255, 91, 53, 0.1);  color: var(--orange); }
.service-icon--purple { background: rgba(107, 47, 160, 0.1); color: var(--purple); }
.service-icon--blue   { background: rgba(27, 108, 168, 0.1); color: var(--blue); }

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.service-item p {
    font-size: 0.95rem;
    line-height: 1.78;
    color: var(--text-muted);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 128px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: center;
}

.about-visual {
    position: relative;
    padding-bottom: 24px;
    padding-right: 24px;
    /* 3-D stage for the tilt effect */
    perspective: 900px;
    perspective-origin: center center;
}
.about-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #D1C9BE;
    box-shadow: var(--shadow-lg);
    will-change: transform;
    transform-origin: center center;
    /* transitions handled by rAF; only transition non-transform props here */
    transition: box-shadow 0.4s ease;
    position: relative; /* needed for glare child */
}
.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* slightly oversized so parallax shift never reveals edges */
    transform: scale(1.06);
    will-change: transform;
}

/* Glare layer — JS updates --glare-x / --glare-y */
.about-img-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--glare-x, 50%) var(--glare-y, 50%),
        rgba(255, 255, 255, 0.22) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    mix-blend-mode: screen;
}

.about-floating-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--white);
    border-radius: 100px;
    padding: 12px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-content .section-title { margin-bottom: 8px; }
.about-content p {
    font-size: 1rem;
    line-height: 1.82;
    color: #374151;
}
.about-content p strong { color: var(--dark); font-weight: 700; }

.about-stats {
    display: flex;
    gap: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 8px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-num {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.045em;
    color: var(--dark);
    line-height: 1;
}
.stat-lbl {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 500;
}

.about-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience {
    padding: 128px 0;
    background: var(--white);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 210px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    display: grid;
    grid-template-columns: 210px 1fr;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 48px;
    padding-top: 4px;
    position: relative;
}

.timeline-period {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    line-height: 1.6;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--orange);
    flex-shrink: 0;
}

.timeline-card { padding-bottom: 4px; }

.timeline-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.timeline-card-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.company-badge {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}
.badge--orange { background: rgba(255, 91, 53, 0.1);  color: var(--orange); }
.badge--purple { background: rgba(107, 47, 160, 0.1); color: var(--purple); }
.badge--blue   { background: rgba(27, 108, 168, 0.1); color: var(--blue); }
.badge--green  { background: rgba(26, 127, 90, 0.1);  color: var(--green); }
.badge--teal   { background: rgba(14, 124, 123, 0.1); color: var(--teal); }

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.timeline-list li {
    font-size: 0.93rem;
    line-height: 1.72;
    color: #374151;
    padding-left: 18px;
    position: relative;
}
.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0.7;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
    padding: 128px 0;
    background: var(--cream);
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.skills-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skill-tag {
    font-size: 0.86rem;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--dark);
    transition: var(--transition);
    cursor: default;
}
.skill-tag:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    transform: translateY(-2px);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}
.software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}
.software-item:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 20px rgba(255, 91, 53, 0.12);
    transform: translateY(-4px);
}
.software-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.software-item > span {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.education {
    padding: 128px 0;
    background: var(--white);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    padding: 36px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}
.edu-card:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 32px rgba(255, 91, 53, 0.08);
    transform: translateY(-5px);
}
.edu-card--cert {
    border-color: rgba(255, 91, 53, 0.3);
    background: linear-gradient(135deg,
        rgba(255, 91, 53, 0.03) 0%,
        rgba(107, 47, 160, 0.03) 100%
    );
}

.edu-year {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 4px;
}
.edu-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.35;
}
.edu-spec {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}
.edu-inst {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 4px;
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact {
    padding: 128px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Spotlight glow that follows cursor */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        900px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 91, 53, 0.14) 0%,
        rgba(107, 47, 160, 0.08) 42%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    transition: background 0.05s linear;
}

/* Particle canvas */
.contact-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.contact-canvas.ready { opacity: 1; }

/* Push content above canvas */
.contact .container { position: relative; z-index: 1; }

.contact-inner {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.75;
    margin-bottom: 44px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.contact-or {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.contact-socials {
    display: flex;
    gap: 28px;
}

.social-link {
    font-size: 0.93rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
}
.social-link:hover {
    color: var(--white);
    border-bottom-color: var(--orange);
}

/* Text parallax layers — JS writes transform, CSS smooths it */
.contact-title {
    will-change: transform;
    transition: transform 0.18s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s;
}
.contact .eyebrow--light {
    will-change: transform;
    transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
}
.contact-desc {
    will-change: transform;
    transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Magnetic email button — spring via JS, shape stays */
.contact .btn-white {
    transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
}
.contact .btn-white:hover {
    box-shadow: 0 0 40px rgba(255, 91, 53, 0.35);
}

/* Scroll-in stagger for contact elements */
.contact-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.contact-stagger.in { opacity: 1; transform: translateY(0); }

/* Social links hover underline animation */
.social-link {
    position: relative;
    border-bottom-color: transparent;
}
.social-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.social-link:hover::after { transform: scaleX(1); }
.social-link:hover { border-bottom-color: transparent; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark-2);
    padding: 72px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.72;
    max-width: 260px;
}
.footer-location {
    margin-top: 14px !important;
    font-size: 0.83rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.58);
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .masonry-grid { columns: 2; }

    .lightbox-body { padding: 0 56px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .about-visual { max-width: 420px; margin: 0 auto; }

    .edu-grid { grid-template-columns: 1fr 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

    .timeline::before { left: 170px; }
    .timeline-item { grid-template-columns: 170px 1fr; }
    .timeline-meta { padding-right: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }

    /* Mobile nav slide-down */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease;
        z-index: 999;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
    .nav-cta-link { text-align: center; margin-left: 0; margin-top: 8px; }
    .hamburger { display: flex; }

    /* Hero */
    .hero-headline { font-size: clamp(2.4rem, 9vw, 3.5rem); }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .hero-body { padding: 64px 24px 100px; gap: 40px; grid-template-columns: 1fr; }
    .hero-right { display: none; }

    /* Work */
    .services, .about, .experience, .skills, .education, .contact { padding: 88px 0; }
    .masonry-grid { columns: 1; }
    .filter-bar { gap: 8px; }
    .filter-btn { font-size: 0.8rem; padding: 8px 16px; }

    /* Lightbox */
    .lightbox-body { padding: 0 16px; width: 100%; max-height: 95vh; }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-title { font-size: 1rem; }
    .lightbox-img-wrap img { max-height: 60vh; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 36px; }

    /* About */
    .about-floating-tag { display: none; }
    .about-stats { gap: 28px; flex-wrap: wrap; }

    /* Timeline */
    .timeline::before { display: none; }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 36px 0;
    }
    .timeline-meta {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding-right: 0;
        padding-top: 0;
    }
    .timeline-period { text-align: left; }
    .timeline-dot { position: static; flex-shrink: 0; }

    /* Education */
    .edu-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Section header spacing */
    .section-header { margin-bottom: 48px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero-headline { font-size: 2.2rem; }
    .hero-body { grid-template-columns: 1fr; }
    .badge-num { font-size: 2.2rem; }
    .hero-badges { gap: 20px; }

    .software-grid { grid-template-columns: repeat(3, 1fr); }

    .footer-grid { grid-template-columns: 1fr; }

    .contact-title { font-size: 2rem; }

    .about-stats { gap: 20px; }
    .stat-num { font-size: 2rem; }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
                transform 0.22s ease;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--cream);
    color: var(--dark);
    border-color: rgba(15, 15, 15, 0.3);
    transform: rotate(12deg) scale(1.08);
}

/* Which icon shows in each mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ============================================================
   DARK MODE — smooth page transition
   ============================================================ */
body.theme-transitioning,
body.theme-transitioning * {
    transition:
        background-color 0.38s ease,
        color 0.38s ease,
        border-color 0.38s ease,
        box-shadow 0.38s ease !important;
}

/* ============================================================
   DARK MODE — token overrides + component fixes
   ============================================================ */
body.dark {
    /* ── Core palette ── */
    --dark:       #F0EDE8;   /* primary text → warm light */
    --dark-2:     #D8D3CC;
    --white:      #1E1E1E;   /* card / section surfaces */
    --cream:      #141414;   /* page background */
    --text-muted: #9CA3AF;
    --border:     #2E2E2E;
    --shadow:     0 4px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg:  0 16px 48px rgba(0, 0, 0, 0.65);

    background-color: #141414;
    color: #F0EDE8;
}

/* ── Navbar ── */
body.dark .navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.dark .navbar.scrolled {
    background: rgba(14, 14, 14, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
body.dark .nav-link:hover,
body.dark .nav-link.active {
    background: #262626;
    color: #F0EDE8;
}
body.dark .nav-cta-link {
    background: #F0EDE8;
    color: #141414 !important;
    border-color: #F0EDE8;
}
body.dark .nav-cta-link:hover {
    background: var(--orange) !important;
    color: var(--white) !important;
    border-color: var(--orange);
}
body.dark .bar { background: #F0EDE8; }
body.dark .theme-toggle {
    border-color: #3A3A3A;
    color: #9CA3AF;
}
body.dark .theme-toggle:hover {
    background: #262626;
    color: #F0EDE8;
    border-color: #555;
}
body.dark .theme-toggle .icon-sun  { display: block; }
body.dark .theme-toggle .icon-moon { display: none; }

/* ── Buttons ── */
body.dark .btn-ghost {
    border-color: rgba(240, 237, 232, 0.35);
    color: #F0EDE8;
}
body.dark .btn-ghost:hover {
    background: rgba(240, 237, 232, 0.1);
    border-color: rgba(240, 237, 232, 0.7);
}

/* ── Hero — force white text since --white is remapped to #1E1E1E in dark mode ── */
body.dark .hero-headline   { color: #FFFFFF; }
body.dark .hero-sub        { color: rgba(255, 255, 255, 0.82); }
body.dark .hero-sub strong { color: #FFFFFF; }
body.dark .hip-num         { color: #FFFFFF; }

/* ── Work scatter stage ── */
body.dark .work-stage-sticky { background: #141414; }
body.dark .scatter-card      { background: #2A2A2A; }
body.dark .scatter-hint span { color: #6B7280; }
body.dark .scatter-hint-arrow {
    border-right-color: #6B7280;
    border-bottom-color: #6B7280;
}

/* ── Work gallery / filter ── */
body.dark .filter-btn {
    color: #9CA3AF;
    border-color: #333;
}
body.dark .filter-btn:hover {
    border-color: #F0EDE8;
    color: #F0EDE8;
    background: #262626;
}
body.dark .filter-btn.active {
    background: #F0EDE8;
    color: #141414;
    border-color: #F0EDE8;
}

/* ── Services ── */
body.dark .service-item {
    background: #1E1E1E;
    border-color: #2E2E2E;
}
body.dark .service-item h3 { color: #F0EDE8; }
body.dark .service-item p  { color: #9CA3AF; }

/* ── About ── */
body.dark .about-img-wrap  { background: #2A2A2A; }
body.dark .about-floating-tag {
    background: #1E1E1E;
    border-color: #3A3A3A;
    color: #F0EDE8;
}
body.dark .stat-num   { color: var(--orange); }
body.dark .stat-label { color: #9CA3AF; }

/* ── Experience timeline ── */
body.dark .timeline::before { background: #2E2E2E; }
body.dark .timeline-dot {
    background: var(--orange);
    border-color: #141414;
}
body.dark .timeline-period,
body.dark .timeline-company { color: #9CA3AF; }
body.dark .timeline-card-head h3 { color: #F0EDE8; }
body.dark .timeline-list li      { color: #C0BAB2; }

/* ── Skills ── */
body.dark .skill-tag {
    background: #1E1E1E;
    border-color: #333;
    color: #D8D3CC;
}
body.dark .skill-tag:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
body.dark .software-item {
    background: #1E1E1E;
    border-color: #2E2E2E;
    color: #D8D3CC;
}
body.dark .software-item:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* ── Education cards ── */
body.dark .edu-card {
    background: #1E1E1E;
    border-color: #2E2E2E;
}
body.dark .edu-card-title,
body.dark .edu-degree    { color: #F0EDE8; }
body.dark .edu-year,
body.dark .edu-meta      { color: #9CA3AF; }

/* ── Lightbox (already dark — minor tweaks) ── */
body.dark .lightbox-backdrop { background: rgba(0, 0, 0, 0.96); }

/* ── Section headers ── */
body.dark .section-title { color: #F0EDE8; }
body.dark .section-desc  { color: #9CA3AF; }
body.dark .eyebrow       { color: var(--orange); }

/* ── Reveal animation: start state stays visible on dark bg ── */
body.dark .reveal:not(.revealed) {
    opacity: 0;
}

/* ── Mobile nav dropdown (dark) — scoped to mobile only so desktop nav has no background ── */
@media (max-width: 768px) {
    body.dark .nav-links {
        background: #1A1A1A;
        border-bottom-color: #2E2E2E;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
}
