/* ---- Custom cursor ---- */

/* Hide the native cursor on non-touch devices */
@media (pointer: fine) {
    * { cursor: none !important; }
}

/* Wrapper — positioned by JS via left/top */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

/* Outer ring — theme purple/indigo */
.cursor .outer {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.12);
    border: 1.5px solid rgba(102, 126, 234, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease,
                background 0.2s ease, border-color 0.2s ease;
}

/* Inner dot — solid white */
.cursor .inner {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease,
                background 0.15s ease;
}

/* Hover state: ring expands, shifts toward accent-purple */
.cursor.cursor--hover .outer {
    width: 52px;
    height: 52px;
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.9);
}

/* Hover state: inner dot picks up the accent-purple */
.cursor.cursor--hover .inner {
    width: 10px;
    height: 10px;
    background: #8b5cf6;
}

/* Click state: both compress and glow */
.cursor.cursor--click .outer {
    width: 22px;
    height: 22px;
    background: rgba(102, 126, 234, 0.35);
    border-color: rgba(102, 126, 234, 1);
}

.cursor.cursor--click .inner {
    width: 5px;
    height: 5px;
    background: #667eea;
}

/* ---- Experience card cursor state ---- */

/* Label element — hidden by default */
.cursor-label {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(14px, -50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* Large ring when hovering experience cards */
.cursor.cursor--exp .outer {
    width: 90px;
    height: 90px;
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.85);
    border-width: 1.5px;
}

/* Inner dot shrinks to near-nothing so the label reads cleanly */
.cursor.cursor--exp .inner {
    width: 4px;
    height: 4px;
    background: #667eea;
}

/* Show the label */
.cursor.cursor--exp .cursor-label {
    opacity: 1;
}

/* ---- CSS Custom Properties */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #111111;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --border-color: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --font-primary: 'Space Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --highlight-glow: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background: 
        radial-gradient(ellipse 800px 600px at 50% 20%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 600px 600px at 20% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 600px 600px at 80% 80%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
        var(--primary-bg);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation: blob1 25s ease-in-out infinite;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: blob2 20s ease-in-out infinite;
}

@keyframes blob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(100px, 150px) scale(1.1);
    }
    50% {
        transform: translate(200px, 50px) scale(0.9);
    }
    75% {
        transform: translate(50px, 200px) scale(1.05);
    }
}

@keyframes blob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-150px, -100px) scale(1.15);
    }
    66% {
        transform: translate(-50px, -200px) scale(0.95);
    }
}

/* Third blob - center */
.blob-3 {
    position: fixed;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blob3 30s ease-in-out infinite;
}

@keyframes blob3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    20% {
        transform: translate(-40%, -60%) scale(1.1);
    }
    40% {
        transform: translate(-60%, -40%) scale(0.9);
    }
    60% {
        transform: translate(-45%, -55%) scale(1.05);
    }
    80% {
        transform: translate(-55%, -45%) scale(0.95);
    }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem;
    padding: 0 2.5rem;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
}

.navbar.scrolled {
    padding: 0.85rem 1.5rem;
}

/* The actual pill container */
.nav-inner {
    width: 100%;
    max-width: 860px;
    padding: 0.6rem 0.75rem 0.6rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    background: rgba(12, 12, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .nav-inner {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.13);
}

/* Logo icon */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    overflow: hidden;
    /* padding: 2px; */
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.nav-logo-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

/* Center nav links — no background pill of their own now, just spaced links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Right side */
.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.nav-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-resume-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.75);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* =============================================
   HERO SECTION — 3-column grid layout
   ============================================= */

/* ── Outer shell ── */
.hero-section {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    display: grid;
    /* Equal left | center | right columns */
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    z-index: 1;
    /* background: var(--primary-bg); */
    /* No overflow:hidden — scroll animation slides elements outward */
}

/* ── Noise grain texture ── */
.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
}

/* ══════════════════════════════════════════
   COLUMN BASE
══════════════════════════════════════════ */
.hero-col {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: calc(80px + 5rem) 5vw 5rem;
    z-index: 2;
}

/* ══════════════════════════════════════════
   COL LEFT — Greeting + Specs + CTA
══════════════════════════════════════════ */
.hero-col--left {
    grid-column: 1;
    grid-row: 1;
    justify-content: space-between;
}

/* Greeting block */
.hero-greeting-block {
    will-change: transform, opacity;
}

.hero-hello {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.hero-welcome {
    font-family: var(--font-primary);
    font-size: clamp(0.7rem, 0.9vw, 0.82rem);
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0.04em;
}

.hero-welcome em { font-style: italic; }

/* Availability badge */
.hero-avail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.32rem 0.9rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #34d399;
    will-change: transform, opacity;
}

.avail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: pulseGreen 2.4s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12); }
}

/* Specialisms list */
.hero-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    will-change: transform, opacity;
}

.hero-spec-list li {
    font-family: var(--font-primary);
    font-size: clamp(0.65rem, 0.9vw, 0.8rem);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* CTA row */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    will-change: transform, opacity;
}

.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: #ffffff;
    color: #0a0a0a;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.hero-cta-primary:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.14);
}

.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.hero-cta-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   COL CENTER — Avail badge + Photo frame + Scroll hint
══════════════════════════════════════════ */
.hero-col--center {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(80px + 4rem) 3vw 4rem;
    z-index: 3;
}

/* Avail badge sits at the very top of center col */
.hero-col--center .hero-avail {
    align-self: center;
    margin-bottom: 2.2rem;
    will-change: transform, opacity;
}

/* Wrapper — holds the shape behind the photo frame */
.hero-photo-wrap {
    position: relative;
    flex-shrink: 0;
    margin-bottom: 3rem;
    display: flex;    align-items: center;
    justify-content: center;
}

/* ── Large decorative circle shape behind the photo ── */
.hero-photo-wrap::before {
    content: none;
}

/* ── Smaller offset ring ── */
.hero-photo-wrap::after {
    content: none;
}

/* ── SVG organic blob shape ── */
.hero-shape-blob {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: blobMorph 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-shape-blob path {
    fill: rgba(66, 69, 245, 0.22);
    /* stroke: rgba(139, 92, 246, 0.55); */
    /* stroke-width: 1.2; */
}

@keyframes blobMorph {
    0%   { transform: translate(-50%, -50%) rotate(0deg)   scale(1); }
    50%  { transform: translate(-50%, -50%) rotate(8deg)   scale(1.05); }
    100% { transform: translate(-50%, -50%) rotate(-4deg)  scale(0.97); }
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    height: 460px;
    max-width: 400px;
    /* border-radius: 0; */
    overflow: visible;
    flex-shrink: 0;
    z-index: 1;
    background: transparent;
}

/* Remove inner border ring */
/* .hero-photo-frame::after {
    content: none;
} */

/* No overlay on photo frame */
.hero-photo-frame::after {
    content: none;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* display: block; */
    filter: brightness(0.92) contrast(1.05);
    transition: transform 0.8s ease;
}

/* .hero-photo-frame:hover .hero-photo {
    transform: scale(1.03);
} */

/* Scroll hint — below photo frame */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.2rem;
    will-change: transform, opacity;
}

.scroll-label {
    font-family: var(--font-primary);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.22), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow {
    color: rgba(255,255,255,0.22);
    animation: scrollPulse 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3;  transform: translateY(0); }
    50%       { opacity: 0.75; transform: translateY(4px); }
}

/* ══════════════════════════════════════════
   COL RIGHT — Descriptor + Name
══════════════════════════════════════════ */
.hero-col--right {
    grid-column: 3;
    grid-row: 1;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
}

.hero-descriptor {
    font-family: var(--font-primary);
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    color: var(--text-secondary);
    line-height: 2.2;
    letter-spacing: 0.01em;
    will-change: transform, opacity;
    align-self: flex-end;
    text-align: right;
    margin: 0;
}

.hero-descriptor em {
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
}

.hero-name-block {
    will-change: transform, opacity;
    align-self: flex-end;
}

.hero-im {
    font-family: var(--font-primary);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: var(--text-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0 0 0.1rem;
    font-style: italic;
    display: block;
}

.hero-name {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 0.88;
    letter-spacing: -0.03em;
    /* font-size: clamp(4rem, 8.5vw, 10rem); */
    font-size: clamp(2.8rem, 6vw, 6.5rem);
    display: block;
}

.hn-line {
    display: block;
    will-change: transform, opacity;
}

/* ══════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════ */
.hero-marquee-strip {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 28s linear infinite;
    will-change: transform;
}

.marquee-track span {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 1.4rem;
    white-space: nowrap;
}

.marquee-track .msep {
    color: rgba(99, 102, 241, 0.5);
    font-size: 0.5rem;
    padding: 0;
    letter-spacing: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   ENTRANCE ANIMATIONS
   fill-mode: both → `from` hides before delay fires,
   `to` holds final state. JS strips `animation` after
   entrance ends and takes over via inline style.
══════════════════════════════════════════ */

/* ── Left column ── */
/* greeting: slides up from below */
.hero-greeting-block { animation: heroFadeUp    0.65s cubic-bezier(0.22,1,0.36,1) 0.20s both; }
/* avail badge: pops in with a slight scale bounce — green badge deserves a spring */
.hero-avail          { animation: heroBounceIn  0.60s cubic-bezier(0.34,1.56,0.64,1) 0.38s both; }
/* spec list: slides up, slightly after greeting */
.hero-spec-list      { animation: heroFadeUp    0.65s cubic-bezier(0.22,1,0.36,1) 0.52s both; }

/* ── Center column ── */
/* photo frame: scales up from slightly smaller — focal reveal */
.hero-photo-wrap     { animation: heroScaleIn   0.90s cubic-bezier(0.22,1,0.36,1) 0.10s both; }
/* CTA buttons: slide up as a unit after photo settles */
.hero-cta-row        { animation: heroFadeUp    0.65s cubic-bezier(0.22,1,0.36,1) 0.68s both; }

/* ── Right column ── */
/* descriptor: fades down from above, text flows in */
.hero-descriptor        { animation: heroFadeDown   0.65s cubic-bezier(0.22,1,0.36,1) 0.28s both; }
/* name block container: slides up */
.hero-name-block        { animation: heroFadeUp     0.65s cubic-bezier(0.22,1,0.36,1) 0.40s both; }
/* each name line slides in from the right with increasing stagger */
.hn-line[data-line="0"] { animation: heroSlideRight 0.70s cubic-bezier(0.22,1,0.36,1) 0.48s both; }
.hn-line[data-line="1"] { animation: heroSlideRight 0.70s cubic-bezier(0.22,1,0.36,1) 0.60s both; }
.hn-line[data-line="2"] { animation: heroSlideRight 0.70s cubic-bezier(0.22,1,0.36,1) 0.72s both; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideRight {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroScaleIn {
    from { opacity: 0; transform: scale(0.90) translateY(18px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Spring-pop for the availability badge */
@keyframes heroBounceIn {
    from { opacity: 0; transform: scale(0.75) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Tablet (≤960px): 2-col — center photo spans full top, left+right side by side below */
@media (max-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    .hero-col--left {
        grid-column: 1; grid-row: 2;
        padding: 2rem 2rem 2rem;
        align-items: flex-start;
        gap: 2rem;
    }
    .hero-col--center {
        grid-column: 1 / -1; grid-row: 1;
        padding: calc(80px + 1.5rem) 2rem 1.5rem;
        align-items: center;
    }
    .hero-col--right {
        grid-column: 2; grid-row: 2;
        padding: 2rem 2rem 2rem;
        align-items: flex-end;
    }
    .hero-photo-frame { max-width: 260px; height: 320px; }
    .hero-name        { font-size: clamp(3rem, 10vw, 6rem); }
    .hero-cta-row     { justify-content: center; }
}

/* Mobile (≤600px): single column, everything centered */
@media (max-width: 600px) {
    .hero-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        min-height: auto;
        max-height: none;
        padding-bottom: 3rem;
    }

    /* Order: center (photo) → right (name) → left (greeting+spec) */
    .hero-col--center {
        grid-column: 1; grid-row: 1;
        padding: calc(80px + 1rem) 1.5rem 1rem;
        align-items: center;
        justify-content: flex-start;
    }
    .hero-col--right {
        grid-column: 1; grid-row: 2;
        padding: 1.25rem 1.5rem 0;
        align-items: center;
        text-align: center;
    }
    .hero-col--left {
        grid-column: 1; grid-row: 3;
        padding: 1.5rem 1.5rem 2rem;
        align-items: center;
        text-align: center;
    }

    /* Center all text on mobile */
    .hero-greeting-block { text-align: center; }
    .hero-spec-list      { text-align: center; align-items: center; }
    .hero-descriptor     { align-self: center; text-align: center; }
    .hero-name-block     { text-align: center; align-self: center; }
    .hero-im             { text-align: center; }
    .hero-avail          { align-self: center; }
    .hero-cta-row        { justify-content: center; flex-direction: row; flex-wrap: wrap; }

    /* .hero-photo-frame { max-width: 200px; height: 260px; } */
    .hero-name        { font-size: clamp(3.2rem, 16vw, 5.5rem); }
    .hero-descriptor  { font-size: 0.78rem; }
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}


.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.logo-item {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.logo-box {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-box:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.logo-box svg {
    width: 45px;
    height: 45px;
}

/* Breaking Animation */
.logos-break {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.break-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: breakApart 1.5s ease-out forwards;
    opacity: 0;
}

.break-logo svg {
    width: 40px;
    height: 40px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breakApart {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    /* background: rgba(10, 10, 10, 0.3); */
    backdrop-filter: blur(10px);
    position: relative;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    /* opacity: 0;
    transform: translateY(30px); */
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    /* background: rgba(10, 10, 10, 0.3); */
    backdrop-filter: blur(10px);
}

.skills .section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.skills .section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-primary);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
}

.skill-tag {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Experience Section */
.experience {
    padding: 5rem 0;
    /* background: rgba(10, 10, 10, 0.3); */
    backdrop-filter: blur(10px);
    position: relative;
}

.experience .section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.experience .section-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--text-primary);
}

/* .experience-list {
    max-width: 1000px;
    margin: 0 auto;
} */


.experience-left {
    flex: 1;
}

.experience-left h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.5px;
}

.experience-right {
    text-align: right;
    min-width: 250px;
}

.experience-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    font-weight: 400;
}

.experience-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-weight: 300;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    /* background: rgba(10, 10, 10, 0.3); */
    backdrop-filter: blur(10px);
}

/* FAQ grid — replaced by faq-layout two-column design */

.faq-item {
    /* Overridden by new faq-layout styles at the bottom of this file */
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-blue);
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}


.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   DEVICE MOCKUPS (legacy — kept for reference)
   ============================================= */

/* Device Mockups */
.device-mockup {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.phone-mockup,
.tablet-mockup,
.desktop-mockup {
    position: relative;
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.phone-mockup {
    width: 120px;
    height: 240px;
    border-radius: 20px;
}

.phone-mockup.green {
    border-color: var(--accent-green);
}

.tablet-mockup {
    width: 180px;
    height: 240px;
    border-radius: 16px;
}

.desktop-mockup {
    width: 300px;
    height: 200px;
    border-radius: 12px;
}

.desktop-mockup.purple {
    border-color: var(--accent-purple);
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 8px;
    opacity: 0.8;
}

/* =============================================
   FOOTER — full-screen contact section (design match)
   ============================================= */
.footer {
    position: relative;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Subtle dot-grid texture */
.footer-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    display: none;
}

/* Center column */
.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
}

/* Avatar photo */
.footer-avatar-wrap {
    margin-bottom: 2.5rem;
}

.footer-avatar {
    width: 160px;
    height: 240px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    filter: grayscale(100%) contrast(1.05);
    display: block;
}

/* Headline block */
.footer-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 2rem;
}

.footer-hl-bold {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4.5vw, 4.2rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    display: block;
}

.footer-hl-italic {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 3vw, 2.6rem);
    font-weight: 500;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: block;
    margin-top: 1rem;
}

/* Sub copy */
.footer-sub {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.9;
    letter-spacing: 0.04em;
    margin-bottom: 4rem;
}

/* Email CTA — red/accent monospace link */
.footer-email {
    font-family: var(--font-primary);
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    font-weight: 400;
    color: #ef4444;
    text-decoration: none;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(239,68,68,0.3);
    padding-bottom: 2px;
    margin-bottom: 3rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-email:hover {
    color: #f87171;
    border-color: rgba(248,113,113,0.6);
}

/* Social nav */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.footer-socials a {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: rgba(255,255,255,0.85);
}

.footer-social-sep {
    color: rgba(255,255,255,0.1);
    font-size: 0.75rem;
    user-select: none;
}

/* Bottom bar */
.footer-bar {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
    width: 100%;
}

.footer-bar p {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Remove old footer styles that no longer apply */
.footer-cta-card,
.footer-cta-label,
.footer-cta-title,
.footer-cta-divider,
.footer-cta-actions,
.footer-profile,
.footer-profile-img,
.footer-profile-name,
.footer-content,
.footer-left,
.footer-right { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
    .footer { min-height: auto; }
    .footer-inner { padding: 5rem 1.5rem 3rem; }
    .footer-avatar { width: 90px; height: 110px; }
    .footer-hl-bold { font-size: clamp(1.3rem, 7vw, 2.4rem); }
    .footer-hl-italic { font-size: clamp(1rem, 5.5vw, 1.8rem); }
    .footer-sub { font-size: 0.75rem; }
    .footer-socials { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .footer-email { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .footer-inner { padding: 4rem 1rem 2.5rem; }
    .footer-hl-bold { font-size: clamp(1.75rem, 11vw, 2.5rem); }
    .footer-hl-italic { font-size: clamp(1.1rem, 7.5vw, 1.8rem); }
    .footer-socials { gap: 0.75rem; }
    .footer-social-sep { display: none; }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Container */
    .container { padding: 0 1.25rem; }

    /* Nav */
    .nav-links  { display: none; }
    .nav-right  { display: none; }
    .hamburger  { display: flex; margin-left: auto; }
    .nav-inner  {
        grid-template-columns: auto 1fr auto;
        max-width: 100%;
    }

    /* Hero — handled inside the hero block's own media queries */
    .hero-scroll-hint { display: none; }

    /* About section */
    .about-section { padding: 3rem 0; min-height: auto; }
    .about-text { font-size: clamp(1.05rem, 4.5vw, 1.35rem); }

    /* Projects */
    .projects { padding: 4rem 0; }
    .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
    .work-card-preview { border-radius: 12px; }
    .work-card-title { font-size: 1.05rem; }
    .work-card-desc { font-size: 0.8rem; }

    /* Skills */
    .skills         { padding: 4rem 0; }
    .skills-layout  { grid-template-columns: 1fr; gap: 2rem; }
    .skills-header-col { position: static; }
    .skills-title   { font-size: 2rem; }

    /* Experience */
    .experience     { padding: 4rem 0; }
    .experience .section-header { margin-bottom: 2.5rem; }
    .experience-timeline { padding-left: 2rem; }
    .timeline-dot-wrap   { left: -2rem; }
    .timeline-content    { padding: 1.1rem; }
    .timeline-role       { font-size: 0.95rem; }
    .timeline-meta       { gap: 0.5rem; }

    /* FAQ */
    .faq        { padding: 4rem 0; }
    .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
    .faq-header-col { position: static; }
    .faq-title  { font-size: 2rem; }
    .faq-question { padding: 1.1rem 0; }
    .faq-answer p { padding-bottom: 1.1rem; }
    .faq-q-inner  { gap: 0.75rem; }

    /* Footer */
    .footer { padding: 0; }
    .footer-cta-actions { gap: 0.75rem; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
    .footer-content { flex-direction: column; gap: 1.25rem; text-align: center; }
    .footer-right   { justify-content: center; }
}

@media (max-width: 480px) {
    /* Container */
    .container  { padding: 0 1rem; }
    .nav-inner  { padding: 0.5rem 0.6rem 0.5rem 0.75rem; gap: 0.5rem; }
    .navbar     { padding: 0.75rem 1rem; }

    /* Hero — handled inside the hero block's own @media queries */

    /* About section */
    .about-section { padding: 2.5rem 0; }
    .about-text { font-size: 1rem; }

    /* Projects */
    .work-card-title { font-size: 0.98rem; }
    .work-card-desc  { font-size: 0.78rem; }
    .wc-tag          { font-size: 0.6rem; }

    /* Skills */
    .skills-title  { font-size: 1.75rem; }
    .skill-chips   { gap: 0.4rem; }
    .chip          { font-size: 0.68rem; padding: 0.28rem 0.7rem; }

    /* Experience */
    .experience-timeline { padding-left: 1.75rem; }
    .timeline-dot-wrap   { left: -1.75rem; }
    .timeline-dot        { width: 12px; height: 12px; }
    .timeline-role       { font-size: 0.9rem; }
    .timeline-desc       { font-size: 0.8rem; }
    .timeline-tags       { display: none; }

    /* FAQ */
    .faq-title  { font-size: 1.75rem; }
    .faq-num    { font-size: 0.62rem; min-width: 1.6rem; }
    .faq-question h3 { font-size: 0.82rem; }
    .faq-answer p    { font-size: 0.8rem; }

    /* Footer */
    .footer-cta-title { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .btn-primary, .btn-secondary { max-width: 100%; font-size: 0.82rem; padding: 0.75rem 1.5rem; }
    .footer-profile-name { font-size: 0.68rem; }}


/* =============================================
   HERO BADGE
   ============================================= */
.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #93c5fd;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeSlideDown 0.8s ease-out both;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   ABOUT / QUOTE SECTION — scroll opacity reveal
   ============================================= */
.about-section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
    /* Make it tall so scroll animation has room */
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    transition: opacity 0.1s linear;
    will-change: opacity;
}

.about-text {
    font-family: var(--font-primary);
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.65;
    letter-spacing: -0.01em;
    /* words will control individual opacity via JS */
}

/* About page CTA button */
.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    background: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.about-cta-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(3px);
}

.about-cta-btn svg {
    transition: transform 0.2s ease;
}

.about-cta-btn:hover svg {
    transform: translateX(3px);
}

/* Each word container */
.about-word {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0.28em;
}

/* Each letter starts dim */
.about-letter {
    display: inline-block;
    color: rgba(255, 255, 255, 0.12);
    transition: color 0.15s ease, text-shadow 0.15s ease;
    will-change: color, transform;
}

/* Highlighted = full brightness */
.about-letter.highlighted {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 5rem 0;
        min-height: auto;
    }
    .about-text {
        font-size: clamp(1.05rem, 4.5vw, 1.35rem);
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .about-section { padding: 4rem 0; }
    .about-text { font-size: 1rem; }
}

/* =============================================
   PROJECTS SECTION — WORK CARDS
   ============================================= */
.projects {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.projects-header {
    margin-bottom: 3.5rem;
}

.projects-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.projects-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 2-column responsive grid */
/* 2-column responsive grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 3-column grid for large screens */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Work Card ---- */
.work-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Staggered reveal — each card enters slightly after the previous */
.work-card.fade-in { transition-delay: 0ms; }
.work-card.fade-in:nth-child(2) { transition-delay: 80ms; }
.work-card.fade-in:nth-child(3) { transition-delay: 160ms; }
.work-card.fade-in:nth-child(4) { transition-delay: 240ms; }
.work-card.fade-in:nth-child(5) { transition-delay: 320ms; }
.work-card.fade-in:nth-child(6) { transition-delay: 400ms; }
.work-card.fade-in:nth-child(7) { transition-delay: 480ms; }

.work-card:hover .work-card-preview {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
}

.work-card:hover .work-card-title {
    color: rgba(255, 255, 255, 0.85);
}

/* Preview image area — top rounded rectangle */
.work-card-preview {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle dot-grid texture inside preview */
.wcp-grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

/* Blurred background blobs inside preview */
.wcp-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.wcp-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

/* Theme colour variants for preview */
.wcp-blue   { background: linear-gradient(140deg, #0f1e3d 0%, #0d1b4b 100%); }
.wcp-purple { background: linear-gradient(140deg, #1a0f3d 0%, #210d4b 100%); }
.wcp-green  { background: linear-gradient(140deg, #0a2218 0%, #082e1c 100%); }
.wcp-teal   { background: linear-gradient(140deg, #071e2e 0%, #0a2a3a 100%); }
.wcp-orange { background: linear-gradient(140deg, #2e1800 0%, #3a1f00 100%); }
.wcp-pink   { background: linear-gradient(140deg, #2e0a1e 0%, #3a0a24 100%); }

/* Blob shapes per theme */
.wcp-blue .ws1   { width: 220px; height: 220px; background: #3b82f6; top: -60px; right: -40px; }
.wcp-blue .ws2   { width: 140px; height: 140px; background: #1d4ed8; bottom: -40px; left: -20px; }
.wcp-blue .ws3   { width: 100px; height: 100px; background: #60a5fa; top: 40%; left: 40%; }

.wcp-purple .ws1 { width: 220px; height: 220px; background: #8b5cf6; top: -60px; right: -40px; }
.wcp-purple .ws2 { width: 140px; height: 140px; background: #7c3aed; bottom: -40px; left: -20px; }
.wcp-purple .ws3 { width: 100px; height: 100px; background: #a78bfa; top: 40%; left: 40%; }

.wcp-green .ws1  { width: 220px; height: 220px; background: #10b981; top: -60px; right: -40px; }
.wcp-green .ws2  { width: 140px; height: 140px; background: #065f46; bottom: -40px; left: -20px; }
.wcp-green .ws3  { width: 100px; height: 100px; background: #34d399; top: 40%; left: 40%; }

.wcp-teal .ws1   { width: 220px; height: 220px; background: #06b6d4; top: -60px; right: -40px; }
.wcp-teal .ws2   { width: 140px; height: 140px; background: #0e7490; bottom: -40px; left: -20px; }
.wcp-teal .ws3   { width: 100px; height: 100px; background: #22d3ee; top: 40%; left: 40%; }

.wcp-orange .ws1 { width: 220px; height: 220px; background: #f59e0b; top: -60px; right: -40px; }
.wcp-orange .ws2 { width: 140px; height: 140px; background: #b45309; bottom: -40px; left: -20px; }
.wcp-orange .ws3 { width: 100px; height: 100px; background: #fbbf24; top: 40%; left: 40%; }

.wcp-pink .ws1   { width: 220px; height: 220px; background: #ec4899; top: -60px; right: -40px; }
.wcp-pink .ws2   { width: 140px; height: 140px; background: #9d174d; bottom: -40px; left: -20px; }
.wcp-pink .ws3   { width: 100px; height: 100px; background: #f472b6; top: 40%; left: 40%; }

/* ---- Project photo inside preview (replaces abstract mockup) ---- */
/*
 * .wcp-photo fills the preview frame as a cover image.
 * A subtle dark gradient at the bottom keeps the chip label legible.
 * On hover the image scales slightly for a tactile feel.
 */
.wcp-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: inherit;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s ease;
    filter: brightness(0.92) saturate(0.95);
}

/* Gradient overlay so chip label stays readable over any image */
.work-card-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.18) 0%,
        transparent 35%,
        transparent 60%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
}

/* Lift & brighten on card hover */
.work-card:hover .wcp-photo {
    transform: scale(1.035);
    filter: brightness(1) saturate(1.05);
}

/* Chip sits above the gradient */
.wcp-label-chip {
    z-index: 10;
}

/* Chip label at top-left of preview (replaces badge) */
.wcp-label-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.28rem 0.75rem;
}

/* ---- Desktop mockup inside preview ---- */
.wcp-mockup {
    position: relative;
    z-index: 5;
}

.wcp-mockup-desktop {
    width: 68%;
    background: rgba(8, 8, 16, 0.85);
    border-radius: 10px 10px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Title bar dots */
.wcp-screen-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wcp-screen-bar span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

/* Screen content skeleton */
.wcp-screen-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcp-screen-row {
    border-radius: 4px;
    height: 8px;
}

.r-wide  { width: 70%; }
.r-med   { width: 45%; }
.r-short { width: 30%; }

/* Row colours */
.r-blue        { background: rgba(59,  130, 246, 0.7); }
.r-blue-dim    { background: rgba(59,  130, 246, 0.25); }
.r-purple      { background: rgba(139, 92,  246, 0.7); }
.r-purple-dim  { background: rgba(139, 92,  246, 0.25); }
.r-green       { background: rgba(16,  185, 129, 0.7); }
.r-green-dim   { background: rgba(16,  185, 129, 0.25); }
.r-teal        { background: rgba(6,   182, 212, 0.7); }
.r-teal-dim    { background: rgba(6,   182, 212, 0.25); }
.r-orange      { background: rgba(245, 158, 11,  0.7); }
.r-orange-dim  { background: rgba(245, 158, 11,  0.25); }
.r-pink        { background: rgba(236, 72,  153, 0.7); }
.r-pink-dim    { background: rgba(236, 72,  153, 0.25); }

/* Column skeleton row */
.wcp-screen-cols {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.wcp-screen-col {
    flex: 1;
    height: 36px;
    border-radius: 6px;
}

/* Column colours */
.c-blue        { background: rgba(59,  130, 246, 0.18); }
.c-blue-dim    { background: rgba(59,  130, 246, 0.07); }
.c-purple      { background: rgba(139, 92,  246, 0.18); }
.c-purple-dim  { background: rgba(139, 92,  246, 0.07); }
.c-green       { background: rgba(16,  185, 129, 0.18); }
.c-green-dim   { background: rgba(16,  185, 129, 0.07); }
.c-teal        { background: rgba(6,   182, 212, 0.18); }
.c-teal-dim    { background: rgba(6,   182, 212, 0.07); }
.c-orange      { background: rgba(245, 158, 11,  0.18); }
.c-orange-dim  { background: rgba(245, 158, 11,  0.07); }
.c-pink        { background: rgba(236, 72,  153, 0.18); }
.c-pink-dim    { background: rgba(236, 72,  153, 0.07); }

/* ---- Phone mockup (for mobile-first projects) ---- */
.wcp-mockup-phone {
    width: 30%;
    background: rgba(8, 8, 16, 0.9);
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding-top: 8px;
}

.wcp-phone-notch {
    width: 36px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin: 0 auto 10px;
}

.wcp-phone-body {
    padding: 0 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* ---- Info section below preview ---- */
.work-card-info {
    padding: 0 0.25rem;
}

.work-card-title {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.work-card-desc {
    font-family: var(--font-primary);
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.9rem;
}

/* Tag pills row */
.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wc-tag {
    font-family: var(--font-primary);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 0.28rem 0.72rem;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.work-card:hover .wc-tag {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   EXPERIENCE — enhanced
   ============================================= */
.exp-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
    max-width: 480px;
}

.exp-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.exp-badge.current {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* =============================================
   BUTTONS — Classic, Theme-Consistent
   ============================================= */

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: #ffffff;
    color: #0a0a0a;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Secondary / outline button */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* CTA action row — defined in footer section above */

/* Nav contact button updated */
.nav-contact-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    transition: background 0.25s ease, border-color 0.25s ease !important;
}

.nav-contact-btn:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: var(--text-primary) !important;
}

/* =============================================
   RESPONSIVE — Projects grid
   ============================================= */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .projects {
        padding: 4rem 0;
    }

    .work-card-preview {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .work-card-title {
        font-size: 1.1rem;
    }

    .work-card-desc {
        font-size: 0.8rem;
    }

    .footer-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        gap: 2rem;
    }

    .work-card-title {
        font-size: 1rem;
    }

    .work-card-desc {
        font-size: 0.78rem;
    }

    .wc-tag {
        font-size: 0.6rem;
    }
}


/* =============================================
   HERO IMAGE — updated for new photo style
   ============================================= */
.hero-photo-blob {
    position: absolute;
    width: 80%;
    height: 80%;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.hero-image {
    position: relative;
    will-change: transform, opacity;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* .hero-photo {
    width: clamp(240px, 26vw, 380px);
    object-fit: contain;
    object-position: bottom center;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
} */

.hero-photo-ring {
    display: none; /* not needed with transparent PNG */
}

/* =============================================
   SKILLS — two-column layout with groups
   ============================================= */
.skills {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.skills-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
}

/* Left header column */
.skills-header-col {
    position: sticky;
    top: 100px;
}

.skills-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--accent-blue);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.skills-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.skills-tagline {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* Right skills body */
.skills-body-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-group {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    transition: border-color 0.3s ease;
}

.skill-group:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.skill-group-icon {
    font-size: 0.9rem;
    color: var(--accent-blue);
    opacity: 0.7;
    line-height: 1;
}

.skill-group-label {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* AI chips get a subtle blue tint */
.chip.chip-ai {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.chip.chip-ai:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.45);
}

/* =============================================
   EXPERIENCE — vertical scroll timeline
   ============================================= */
.experience {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

/* Dedicated header — not using .section-header to avoid conflicts */
.exp-section-header {
    margin-bottom: 4rem;
}

.exp-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--accent-blue);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.exp-section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Timeline wrapper */
.experience-timeline {
    position: relative;
    padding-left: 3rem;
}

/* The vertical track (background line + animated fill) */
.timeline-track {
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
}

.timeline-line-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.timeline-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6, #10b981);
    border-radius: 2px;
    transition: height 0.1s linear;
    will-change: height;
}

/* Each timeline item */
.timeline-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 3.5rem;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

/* Dot */
.timeline-dot-wrap {
    position: absolute;
    left: -3rem;
    top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
}

.timeline-dot.active,
.timeline-dot.lit {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Content */
.timeline-content {
    flex: 1;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.timeline-company {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
}

.timeline-date {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.timeline-role {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.t-tag {
    font-family: var(--font-primary);
    font-size: 0.64rem;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================================
   FAQ — two-column sticky layout
   ============================================= */
.faq {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 5rem;
    align-items: start;
}

.faq-header-col {
    position: sticky;
    top: 100px;
}

.faq-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--accent-purple);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.faq-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.faq-list-col {
    display: flex;
    flex-direction: column;
}

/* Individual FAQ item */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    transition: background 0.25s ease;
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.025);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    gap: 1rem;
}

.faq-q-inner {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    flex: 1;
}

.faq-num {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    transition: color 0.25s ease;
    min-width: 2rem;
    padding: 0 0.5rem;
}

.faq-item.active .faq-num {
    color: var(--accent-purple);
}

.faq-question h3 {
    font-family: var(--font-primary);
    font-size: clamp(0.88rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.faq-toggle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
    transition: transform 0.3s ease, color 0.25s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-purple);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 220px;
}

.faq-answer p {
    padding: 0 0 1.5rem 2.4rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.85rem;
    margin: 0;
    font-style: italic;
}

/* =============================================
   RESPONSIVE — skills, timeline, FAQ (900px breakpoint)
   ============================================= */
@media (max-width: 900px) {
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .skills-header-col {
        position: static;
    }
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .faq-header-col {
        position: static;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .skills { padding: 4rem 0; }
    .faq    { padding: 4rem 0; }
    .experience { padding: 4rem 0; }

    .experience-timeline { padding-left: 2rem; }
    .timeline-dot-wrap   { left: -2rem; }
    .timeline-content    { padding: 1.25rem; }
    .timeline-role       { font-size: 1rem; }
    .faq-answer p        { padding-left: 0; }
    .faq-q-inner         { gap: 0.75rem; }
}

/* =============================================
   EDUCATION SECTION
   ============================================= */
.education {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.edu-section-header {
    margin-bottom: 4rem;
}

.edu-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    color: var(--accent-purple);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.edu-section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Two-column grid, same as projects */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Card */
.edu-card {
    position: relative;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s ease;
}

.edu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Top accent bar — reuses existing .accent-* classes */
.edu-card-accent {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

/* Card body */
.edu-card-body {
    padding: 1.75rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta row: date + badge */
.edu-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.edu-date {
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.edu-badge {
    font-family: var(--font-primary);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.edu-degree {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.edu-institution {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.edu-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .education {
        padding: 4rem 0;
    }

    .edu-section-header {
        margin-bottom: 2.5rem;
    }

    .edu-card-body {
        padding: 1.25rem 1.25rem 1rem;
    }

    .edu-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .education {
        padding: 3rem 0;
    }

    .edu-degree {
        font-size: 1.05rem;
    }

    .edu-desc {
        font-size: 0.82rem;
    }
}


/* ============================================================
   PAGE LOADER
   Full-screen overlay that plays on every page load.
   Matches the site's dark monospace aesthetic exactly.
   ============================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fade out when .pl-done is added */
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.page-loader.pl-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Center column */
.pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  /* Slide up slightly as loader exits */
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.pl-done .pl-inner {
  transform: translateY(-12px);
}

/* Logo mark — pulsing glow */
.pl-logo {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pl-pulse 1.8s ease-in-out infinite;
}

.pl-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

@keyframes pl-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.08); }
}

/* Progress bar track */
.pl-bar-track {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

/* Animated fill — driven by JS width, but also has a shimmer */
.pl-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #10b981 100%);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Shimmer on top of the fill */
.pl-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60px;
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: pl-shimmer 1.1s ease-in-out infinite;
}

@keyframes pl-shimmer {
  0%   { left: -60px; }
  100% { left: calc(100% + 60px); }
}

/* Label */
.pl-label {
  font-family: var(--font-primary);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  animation: pl-blink 1.4s ease-in-out infinite;
}

@keyframes pl-blink {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.7;  }
}

/* Prevent scroll while loader is visible */
body.loading {
  overflow: hidden;
}


/* =============================================
   BACK TO TOP — circle ghost design
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* Visible state */
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Circle arrow */
.btt-arrow {
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, color 0.25s ease,
                background 0.25s ease, transform 0.25s ease,
                box-shadow 0.25s ease;
}

.btt-arrow svg {
    width: 15px;
    height: 15px;
}

.back-to-top:hover .btt-arrow {
    border-color: rgba(139, 92, 246, 0.7);
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
}

/* Label */
.btt-label {
    font-family: var(--font-primary);
    font-size: 0.48rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.25s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.back-to-top:hover .btt-label {
    color: rgba(255, 255, 255, 0.55);
}

/* Breathing line */
.btt-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent);
    border-radius: 1px;
    animation: btt-line-breathe 2.2s ease-in-out infinite;
}

@keyframes btt-line-breathe {
    0%, 100% { height: 32px; opacity: 0.5; }
    50%       { height: 20px; opacity: 0.9; }
}

/* Active */
.back-to-top:active .btt-arrow {
    transform: scale(0.93);
}

/* Click pulse ring */
@keyframes btt-ring-pulse {
    0%   { box-shadow: 0 0 0 0   color-mix(in srgb, var(--btt-color) 70%, transparent); }
    70%  { box-shadow: 0 0 0 16px color-mix(in srgb, var(--btt-color) 0%,  transparent); }
    100% { box-shadow: 0 0 0 0   color-mix(in srgb, var(--btt-color) 0%,  transparent); }
}

.back-to-top.pulse {
    animation: btt-ring-pulse 0.65s ease-out;
}

/* Mobile */
@media (max-width: 480px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1rem;
        width: 30px;
    }
    .btt-label { font-size: 8px; }
    .btt-line  { height: 22px; }
}
