/* =========================================================================
   ADNAN JAHANGIR — CREATIVE TECHNOLOGIST & SENIOR DATA ENGINEER PORTFOLIO

   Design System: Awwwards-Level Obsidian Noir • Cyber Coral • Editorial Serif
   Fonts: 'Space Grotesk', 'Instrument Serif', 'JetBrains Mono'
   ========================================================================= */


/* ── 1. DESIGN TOKENS & SYSTEM VARIABLES ────────────────────────────────── */
:root {
    --bg-void: #050608;
    --bg-primary: #0a0b0e;
    --bg-secondary: #101217;
    --bg-tertiary: #161920;
    --bg-glass: rgba(16, 18, 23, 0.78);
    --bg-glass-card: rgba(22, 25, 32, 0.65);
    --bg-glass-elevated: rgba(28, 32, 42, 0.85);

    --text-pure: #ffffff;
    --text-primary: #f1f3f7;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;

    --coral: #ff6b4a;
    --coral-glow: rgba(255, 107, 74, 0.35);
    --coral-dim: rgba(255, 107, 74, 0.12);

    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.3);

    --cyan: #00f2fe;
    --cyan-glow: rgba(0, 242, 254, 0.25);

    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);

    --violet: #8b5cf6;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 107, 74, 0.45);
    --border-bright: rgba(255, 255, 255, 0.18);

    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. GLOBAL RESET & BASE RULES ───────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-void);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--coral);
    color: #000;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-out-expo);
}

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

/* ── 3. FILM GRAIN & AMBIENT CANVAS OVERLAYS ────────────────────────────── */
.film-grain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: block;
    opacity: 0.65;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

/* ── 4. SECTION HEADERS (Awwwards Style) ─────────────────────────────────── */
.section-header {
    margin-bottom: 64px;
    position: relative;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--coral);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--coral-dim);
    border: 1px solid rgba(255, 107, 74, 0.25);
    border-radius: 100px;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 8px var(--coral);
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-pure);
}

.serif-italic,
.highlight-text,
.section-title span {
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 700;
    color: var(--coral);
    letter-spacing: inherit;
}

/* ── 5. FLOATING PILL NAVBAR ────────────────────────────────────────────── */
/* ── 5. FLOATING PILL NAVBAR (Original Restored) ─────────────────────── */
.navbar {
    position: fixed;
    top: 22px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: auto;
}

/* Brand Logo (Left) */
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.25s ease;
    padding: 4px 0;
}

.nav-logo:hover {
    opacity: 0.85;
}

.animated-logo-a {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 800;
    color: var(--coral);
    text-shadow: 0 0 18px var(--coral-glow);
}

.logo-text {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
}

/* Center Floating Pill Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 6px 10px;
    background: rgba(18, 16, 22, 0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 18px;
    text-decoration: none;
    position: relative;
    transition: color 0.25s var(--ease-out-expo), text-shadow 0.25s var(--ease-out-expo);
    border: none;
    background: transparent !important;
    border-radius: 0;
}

.nav-link:hover {
    color: #ffffff;
    background: transparent !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
    background: transparent !important;
    box-shadow: none !important;
}

/* Glowing orange indicator under active and hovered links (pure clean line, no curved box) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 24px);
    min-width: 18px;
    max-width: 34px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--coral);
    box-shadow: 0 0 10px var(--coral-glow), 0 0 3px var(--coral);
    transition: transform 0.25s var(--ease-out-expo), opacity 0.25s ease;
    opacity: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* Right Action: Pill Resume Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 16, 22, 0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    padding: 11px 26px;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s var(--ease-out-expo);
}

.nav-resume-btn i {
    color: var(--coral);
    font-size: 0.95rem;
}

.nav-resume-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 74, 0.45);
    box-shadow: 0 16px 44px rgba(255, 107, 74, 0.28);
    color: #ffffff;
}

/* ── 6. HERO SECTION (3D Stage + Editorial Split) ───────────────────────── */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000000;
    z-index: 2;
}

/* ── Hero Dashboard Mockup Background (Animated Living Visual) ── */
.hero-dashboard-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    perspective: 1400px;
}

.hero-dashboard-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-pipeline-3d-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-pipeline-3d-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    pointer-events: none;
}

.hero-dashboard-img {
    width: 100%;
    height: 100%;
    max-width: 1450px;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0.95;
    mix-blend-mode: screen;
    filter: contrast(1.1) brightness(1.05);
    /* Keep top 25% pitch black so headline & description NEVER clash with white cards */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 22%, rgba(0,0,0,0.3) 34%, black 48%, black 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 22%, rgba(0,0,0,0.3) 34%, black 48%, black 88%, transparent 100%);
    pointer-events: none;
    animation: dashboardGentlyDrift 10s ease-in-out infinite alternate;
}

/* ── Hero 3D Animated Data Pipeline Visualizer (Snappy 60fps Staggered Assemble) ── */
.hero-pipeline-wrap {
    width: 100%;
    max-width: 1350px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.9));
}

.hero-pipeline-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    will-change: transform;
    animation: dashboardGentlyDrift 14s ease-in-out infinite alternate 1.3s;
}

/* 1. Left Data Source Nodes - Snappy, silky slide-in */
#nodeSource1 {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform, opacity;
    animation: nodeSourceSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}
#nodeSource2 {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform, opacity;
    animation: nodeSourceSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
#nodeSource3 {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform, opacity;
    animation: nodeSourceSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

@keyframes nodeSourceSlideIn {
    0% {
        opacity: 0;
        transform: translate3d(-35px, 0, 0) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* 2. Connecting Neon Cables Draw Out to Central Hub */
#pipelineCables path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    will-change: stroke-dashoffset, opacity;
    animation: cableDrawIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

@keyframes cableDrawIn {
    0% {
        stroke-dashoffset: 400;
        opacity: 0;
    }
    35% {
        opacity: 0.7;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* 3. Central Processing Hub Ignition */
#centralHub {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform, opacity;
    animation: centralHubIgnite 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.32s both;
}

@keyframes centralHubIgnite {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }
    75% {
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* 4. Outflow Beams Shooting to Dashboard */
#pipelineOutflow {
    transform-box: fill-box;
    transform-origin: center left;
    will-change: transform, opacity;
    animation: outflowBeamShoot 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

@keyframes outflowBeamShoot {
    0% {
        opacity: 0;
        transform: translate3d(-25px, 0, 0) scaleX(0.5);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scaleX(1);
    }
}

/* 5. Right 3D Dashboard Tablet Glide-In */
#dashboardTablet {
    will-change: transform, opacity;
    animation: dashboardTabletGlide 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

@keyframes dashboardTabletGlide {
    0% {
        opacity: 0;
        transform: matrix(0.96, -0.06, 0.08, 0.96, 650, 90);
    }
    100% {
        opacity: 1;
        transform: matrix(0.96, -0.06, 0.08, 0.96, 600, 60);
    }
}

/* 6. Bullseye Target Float & Drop-In */
#bullseyeTarget {
    transform-box: fill-box;
    transform-origin: center;
    will-change: transform, opacity;
    animation: bullseyeTargetDrop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.52s both;
}

@keyframes bullseyeTargetDrop {
    0% {
        opacity: 0;
        transform: translate(860px, 460px) scale(0.65);
    }
    75% {
        transform: translate(860px, 417px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(860px, 420px) scale(1);
    }
}

/* 7. Data Packets / Pulses Wake-Up */
#pipelinePackets {
    will-change: opacity;
    animation: packetsWakeUp 0.5s ease-out 0.65s both;
}

@keyframes packetsWakeUp {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-pipeline-svg text {
    font-family: var(--font-sans);
    user-select: none;
}

/* Cable Pulse Particles */
.pipeline-pulse-cyan {
    filter: drop-shadow(0 0 8px #00f2fe);
}
.pipeline-pulse-purple {
    filter: drop-shadow(0 0 8px #c084fc);
}
.pipeline-pulse-coral {
    filter: drop-shadow(0 0 8px #ff6b4a);
}

/* Live Sparkline Line Drawing */
.pipeline-sparkline {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawSparkline 3.5s ease-in-out infinite alternate 0.9s;
}
@keyframes drawSparkline {
    0% { stroke-dashoffset: 200; opacity: 0.3; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Waterfall Bars Breathing with Intro Grow */
#chartWaterfall rect[class^="pipeline-bar-"] {
    transform-origin: bottom;
    transform-box: fill-box;
}
.pipeline-bar-1 { animation: barIntroGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both, pipelineBarGrow 2.8s ease-in-out infinite alternate 1.7s; }
.pipeline-bar-2 { animation: barIntroGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both, pipelineBarGrow 3.2s ease-in-out infinite alternate 1.8s; }
.pipeline-bar-3 { animation: barIntroGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both, pipelineBarGrow 2.5s ease-in-out infinite alternate 1.9s; }
.pipeline-bar-4 { animation: barIntroGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both, pipelineBarGrow 3.0s ease-in-out infinite alternate 2.0s; }
.pipeline-bar-5 { animation: barIntroGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both, pipelineBarGrow 2.7s ease-in-out infinite alternate 2.1s; }
.pipeline-bar-6 { animation: barIntroGrow 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.5s both, pipelineBarGrow 3.4s ease-in-out infinite alternate 2.2s; }

@keyframes barIntroGrow {
    0% { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 0.95; }
}

@keyframes pipelineBarGrow {
    0% { transform: scaleY(0.7); }
    100% { transform: scaleY(1.06); }
}

/* Cohort Matrix Shimmer */
.pipeline-cohort-cell {
    animation: pipelineCohortShimmer 4s ease-in-out infinite alternate;
}
@keyframes pipelineCohortShimmer {
    0% { opacity: 0.55; }
    50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.7)); }
    100% { opacity: 0.65; }
}

/* Bullseye Sonar Pulse - Hidden to prevent browser transform coordinate overflow */
.pipeline-sonar-ring-1,
.pipeline-sonar-ring-2 {
    display: none;
}
.pipeline-hub-core {
    animation: pipelineCoreBreath 3s ease-in-out infinite alternate;
    transform-origin: 460px 285px;
}
@keyframes pipelineCoreBreath {
    0% { transform: scale(0.92); opacity: 0.7; filter: drop-shadow(0 0 8px #00f2fe); }
    100% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 24px #ff6b4a); }
}

@keyframes dashboardGentlyDrift {
    0% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.015);
    }
    100% {
        transform: translateY(2px) scale(1);
    }
}



/* Subtle Breathing Pulse */
.hero-data-pulse {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 40%;
    background: radial-gradient(ellipse at center, rgba(255, 107, 74, 0.08) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: pulseAmbientGlow 5s ease-in-out infinite alternate;
}

@keyframes pulseAmbientGlow {
    0% { opacity: 0.35; transform: translateX(-50%) scale(0.96); }
    100% { opacity: 0.85; transform: translateX(-50%) scale(1.04); }
}

/* Overhead Ambient Spotlight Beam */
.hero-spotlight-beam {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 70%;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 2;
}

/* Bottom fade seamlessly blending hero black into following sections */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg-void));
    pointer-events: none;
    z-index: 3;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 940px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Developer Radar Status Pill */
.developer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #ffffff;
    margin-bottom: 26px;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.status-sep { opacity: 0.35; }
.status-geo { color: var(--coral); }
.status-geo i { margin-right: 4px; }

/* Hero Titles */
.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 22px;
    text-align: center;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0,0,0,0.9);
}

.hero-title .greeting {
    font-family: var(--font-mono);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    color: var(--coral);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    text-transform: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    animation: heroGreetingReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroGreetingReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, -14px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.name-editorial-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-name {
    font-weight: 700;
    color: #ffffff;
}

.hero-editorial-badge {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 0.85em;
    color: var(--amber);
    letter-spacing: 0.5px;
}

.hero-title .name {
    display: inline-block;
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: -1.5px;
    text-shadow: 0 0 35px rgba(255, 107, 74, 0.35), 0 4px 20px rgba(0, 0, 0, 0.9);
    animation: heroNameReveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}

@keyframes heroNameReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* CLI Typewriter Card */
.hero-cli-prompt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 0 auto;
    padding: 8px 18px;
    background: rgba(10, 10, 14, 0.88);
    border: 1px solid rgba(255, 107, 74, 0.35);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.34em;
    letter-spacing: 0.3px;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
    animation: heroPromptReveal 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.50s both;
}

@keyframes heroPromptReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.cli-prompt-symbol { color: var(--amber); font-weight: 700; }
.hero-cli-prompt .typewriter-text { color: #ffb88c; }
.hero-cli-prompt .cursor { color: var(--coral); animation: blink 0.9s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-subtitle {
    font-size: 1.28rem;
    color: #f8fafc;
    margin-bottom: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 760px;
    line-height: 1.5;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0,0,0,0.8);
}

.subtitle-bullet { color: var(--coral); margin: 0 8px; }

.hero-description {
    font-size: 1.08rem;
    color: #e2e8f0;
    max-width: 680px;
    line-height: 1.75;
    margin: 0 auto 36px auto;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0,0,0,0.8);
    animation: heroDescriptionReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.70s both;
}

@keyframes heroDescriptionReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Button Group */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px auto 40px auto;
    animation: heroCtaReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.90s both;
}

@keyframes heroCtaReveal {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    border: none;
}

.btn-primary {
    background: var(--coral);
    color: #050608 !important;
    font-weight: 700;
    box-shadow: 0 6px 25px var(--coral-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(255, 107, 74, 0.55);
    background: #ff7d5f;
}

.btn-secondary {
    background: rgba(16, 18, 23, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover {
    background: rgba(28, 32, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.cmdk-trigger-btn {
    background: rgba(16, 18, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.88rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.cmdk-trigger-btn:hover {
    background: rgba(255, 107, 74, 0.15);
    border-color: rgba(255, 107, 74, 0.45);
    color: var(--coral);
}

.cmdk-kbd-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--coral);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-only-inline { display: none !important; }
.desktop-only-inline { display: inline !important; }

/* Hero Metrics Telemetry Strip */
.hero-metrics-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 14px 34px;
    background: rgba(10, 11, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    width: auto;
    max-width: 620px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
    animation: heroMetricsReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.10s both;
}

@keyframes heroMetricsReveal {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.95);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    align-items: center;
}

.metric-num {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, #ffb88c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-num.metric-tech-stack {
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.metric-divider {
    color: rgba(255, 255, 255, 0.12);
    font-size: 1.3rem;
}

/* 3D Cyber Core Stage */
.hero-3d-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.hero-3d-canvas-wrap {
    width: 440px;
    height: 440px;
    position: relative;
    cursor: grab;
    user-select: none;
}

.hero-3d-canvas-wrap:active { cursor: grabbing; }

.hero-3d-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-3d-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 18, 23, 0.8);
    border: 1px solid rgba(255, 107, 74, 0.25);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    margin-top: 8px;
}

.badge-dot-cyan {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 8px var(--coral);
    animation: statusPulse 2s infinite;
}

/* ── 7. INFINITE TICKER MARQUEE TAPE ────────────────────────────────────── */
.marquee-ribbon {
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(14, 16, 21, 0.5);
    backdrop-filter: blur(10px);
}

.marquee-track-ribbon {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: ribbonScroll 32s linear infinite;
}

.marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.marquee-pill i { color: var(--coral); font-size: 1rem; }
.marquee-pill span.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }

@keyframes ribbonScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── 8. ABOUT SECTION ─────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 70px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-container {
    position: relative;
    max-width: 380px;
    width: 100%;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 1;
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.image-decoration {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--coral);
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
}

.image-dots {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--coral-glow) 2px, transparent 2px);
    background-size: 14px 14px;
    z-index: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    padding: 12px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    animation: float 3.5s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    color: var(--coral);
    font-size: 1.1rem;
}

.card-1 {
    top: 24px;
    right: -24px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30px;
    left: -24px;
    animation-delay: 1.75s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-narrative h3 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-pure);
}

.about-narrative p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.pillar-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s var(--ease-out-expo);
}

.pillar-box:hover {
    border-color: var(--coral);
    transform: translateY(-2px);
    background: var(--bg-tertiary);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--coral-dim);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pillar-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-pure);
}

.pillar-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── 9. SKILLS BENTO GRID (4-Cell Matrix) ────────────────────────────────── */
.bento-skills-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.bento-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.bento-card:hover {
    border-color: rgba(255, 107, 74, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--coral-dim);
    transform: translateY(-3px);
}

.bento-card-1 { grid-column: span 7; }
.bento-card-2 { grid-column: span 5; }
.bento-card-3 { grid-column: span 5; }
.bento-card-4 { grid-column: span 7; }

.bento-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bento-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
}

.bento-title-group span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--coral);
}

.bento-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    font-size: 1.1rem;
}

.bento-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--text-primary);
    transition: all 0.2s var(--ease-out-expo);
}

.tech-chip:hover {
    background: rgba(255, 107, 74, 0.12);
    border-color: var(--coral);
    color: var(--coral);
}

.tech-chip i, .tech-chip img {
    font-size: 1rem;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Dual-Row Skills Marquee */
.skills-marquee-wrapper {
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}

.skills-marquee-wrapper::before,
.skills-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; width: 100px;
    z-index: 2;
    pointer-events: none;
}
.skills-marquee-wrapper::before { left: 0; background: linear-gradient(90deg, var(--bg-void), transparent); }
.skills-marquee-wrapper::after { right: 0; background: linear-gradient(-90deg, var(--bg-void), transparent); }

.marquee-row { overflow: hidden; margin-bottom: 12px; }
.marquee-track { display: flex; width: max-content; gap: 14px; }
.marquee-row-left .marquee-track { animation: marqueeScrollLeft 36s linear infinite; }
.marquee-row-right .marquee-track { animation: marqueeScrollRight 36s linear infinite; }

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.marquee-item img, .marquee-item i { width: 18px; height: 18px; }

@keyframes marqueeScrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marqueeScrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* ── 10. PROJECTS SECTION (Showcase Grid + Filter Controls) ─────────────── */
.project-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
}

.filter-btn:hover {
    color: var(--text-pure);
    background: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background: var(--coral);
    color: #050608 !important;
    font-weight: 600;
    border-color: var(--coral);
    box-shadow: 0 4px 18px var(--coral-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s var(--ease-out-expo);
}

.project-card:hover {
    border-color: rgba(255, 107, 74, 0.45);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 35px var(--coral-dim);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 107, 74, 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.project-card:hover::after { opacity: 1; }

.project-language-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    padding: 5px 12px;
    background: rgba(10, 11, 14, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-primary);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #000;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 8, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-bright);
    color: var(--text-pure);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.project-link:hover {
    background: var(--coral);
    color: #050608;
    transform: scale(1.1);
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--coral);
    background: var(--coral-dim);
    padding: 3px 10px;
    border-radius: 4px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.project-result {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--amber);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 20px;
}

.project-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.project-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-out-expo);
}

.project-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-pure);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-btn-live {
    background: var(--coral);
    color: #050608 !important;
    font-weight: 600;
    border-color: var(--coral);
}

.project-btn-live:hover {
    background: #ff7d5f;
    color: #050608 !important;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}
.no-results.show { display: block; }

/* ── 11. EDUCATION & LEADERSHIP TIMELINE ─────────────────────────────────── */
.education-category {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--coral-dim);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-pure);
}

.category-line {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

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

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    transition: all 0.25s var(--ease-out-expo);
}

.timeline-content:hover {
    border-color: rgba(255, 107, 74, 0.35);
    background: var(--bg-tertiary);
}

.timeline-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--coral);
    background: var(--coral-dim);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--amber);
    margin-bottom: 12px;
}

.timeline-institution {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.institution-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.timeline-gpa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

/* Leadership Feature Card */
.leadership-feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 32px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.leadership-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--coral), var(--amber), transparent);
}

.leadership-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.leadership-logo-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--coral);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 74, 0.25);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
}

.leadership-logo-box:hover .leadership-logo-circle {
    transform: scale(1.05);
    border-color: #ff8566;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 107, 74, 0.45);
}

.leadership-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.leadership-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 12px;
    border-radius: 100px;
}

.status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    animation: statusPulse 2s infinite;
}

.leadership-role-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 4px;
}

.leadership-role-subtitle {
    font-size: 0.95rem;
    color: var(--coral);
    margin-bottom: 14px;
}

.leadership-role-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ── 12. CERTIFICATES SHOWCASE ─────────────────────────────────────────── */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.cert-compact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s var(--ease-out-expo);
}

.cert-compact-card:hover {
    border-color: rgba(255, 107, 74, 0.4);
    transform: translateY(-3px);
}

.cert-compact-img-box {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #000;
}

.cert-compact-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 8, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cert-compact-card:hover .cert-img-overlay { opacity: 1; }

.cert-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--coral);
    color: #050608 !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.cert-compact-info {
    padding: 18px;
}

.cert-compact-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cert-org { color: var(--coral); }
.cert-compact-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-pure);
}

/* ── 13. CONTACT SECTION (Interactive Terminal Style) ───────────────────── */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 12px;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s var(--ease-out-expo);
}

.contact-card:hover {
    border-color: rgba(255, 107, 74, 0.4);
    background: var(--bg-tertiary);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--coral-dim);
    color: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-card-content h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.contact-card-content a,
.contact-card-content span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-pure);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.06);
    color: #ffffff;
}

/* WhatsApp: Official Green #25D366 */
.social-link.social-whatsapp:hover,
.social-link:has(.fa-whatsapp):hover,
.social-link[title*="WhatsApp"]:hover {
    background: #25D366;
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* GitHub: Clean Crisp Contrast #FFFFFF / #121316 */
.social-link.social-github:hover,
.social-link:has(.fa-github):hover,
.social-link[title*="GitHub"]:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #121316;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.35);
}

/* LinkedIn: Official Blue #0A66C2 */
.social-link.social-linkedin:hover,
.social-link:has(.fa-linkedin-in):hover,
.social-link:has(.fa-linkedin):hover,
.social-link[title*="LinkedIn"]:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.45);
}

/* Facebook: Official Blue #1877F2 */
.social-link.social-facebook:hover,
.social-link:has(.fa-facebook-f):hover,
.social-link:has(.fa-facebook):hover,
.social-link[title*="Facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    background: rgba(255, 107, 74, 0.03);
    box-shadow: 0 0 16px rgba(255, 107, 74, 0.15);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

/* ── 14. FOOTER ─────────────────────────────────────────────────────────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── 15. COMMAND PALETTE MODAL ──────────────────────────────────────────── */
.cmdk-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.85);
    backdrop-filter: blur(18px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--ease-out-expo);
}

.cmdk-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cmdk-dialog {
    width: 100%;
    max-width: 640px;
    background: #0f1116;
    border: 1px solid rgba(255, 107, 74, 0.35);
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 107, 74, 0.15);
    overflow: hidden;
    transform: scale(0.96) translateY(-10px);
    transition: transform 0.25s var(--ease-out-expo);
}

.cmdk-backdrop.active .cmdk-dialog {
    transform: scale(1) translateY(0);
}

.cmdk-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.cmdk-search-icon { font-size: 1.1rem; color: var(--coral); }

.cmdk-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-pure);
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.cmdk-badge kbd {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-muted);
}

.cmdk-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 12px;
}

.cmdk-group-header {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--coral);
    padding: 10px 14px 6px;
}

.cmdk-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cmdk-item:hover, .cmdk-item.selected {
    background: var(--coral-dim);
}

.cmdk-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.cmdk-item:hover .cmdk-item-icon, .cmdk-item.selected .cmdk-item-icon {
    background: var(--coral);
    color: #050608;
}

.cmdk-item-content { flex: 1; }
.cmdk-item-title { font-size: 0.94rem; font-weight: 500; color: var(--text-pure); }
.cmdk-item-desc { font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); }
.cmdk-item-enter kbd {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-muted);
}

.cmdk-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.cmdk-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 12px 22px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cmdk-footer kbd {
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
}

/* Modals (README & Cert) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.88);
    backdrop-filter: blur(16px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container, .cert-modal-container {
    width: 90%;
    max-width: 800px;
    background: #101217;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close, .cert-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-close:hover, .cert-modal-close:hover { color: var(--coral); }

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.cert-modal-container img {
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 11, 14, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 10px 0;
}

.mobile-bottom-links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    list-style: none;
}

.mobile-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mobile-bottom-link i { font-size: 1.1rem; }
.mobile-bottom-link.active { color: var(--coral); }

/* ── Mobile Resume Floating Toggle ── */
.mobile-resume-fab {
    display: none;
    position: fixed;
    bottom: 78px;
    right: 16px;
    z-index: 1001;
}

.resume-fab-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 13, 18, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    color: #ff6b4a;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: resumeFabPulse 3.5s ease-in-out infinite;
}

.resume-fab-trigger:active {
    transform: scale(0.9);
}

@keyframes resumeFabPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
    50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 6px rgba(255, 107, 74, 0.1); }
}

.resume-fab-expanded {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 13px 22px 13px 18px;
    border-radius: 100px;
    background: rgba(12, 13, 18, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: resumeFabSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.resume-fab-expanded i:first-child {
    font-size: 1rem;
    color: #ff6b4a;
}

.resume-fab-arrow {
    font-size: 0.75rem;
    opacity: 0.75;
}

@keyframes resumeFabSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Expanded state */
.mobile-resume-fab.expanded .resume-fab-trigger {
    display: none;
}
.mobile-resume-fab.expanded .resume-fab-expanded {
    display: flex;
}

/* ── 16. SCROLL REVEAL ANIMATION SYSTEM ──────────────────────────────────── */

/* ---- Base: All scroll-animated elements start hidden ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    filter: blur(4px);
}

/* ---- Triggered: Element is now in viewport ---- */
.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: blur(0px);
}

/* ---- Section-Specific Scroll Variants ---- */

/* About cards: slide from left */
.about-image-wrapper.animate-on-scroll {
    transform: translateX(-60px) translateY(20px);
}
.about-image-wrapper.animate-on-scroll.animate {
    transform: translateX(0) translateY(0);
}

/* About narrative: slide from right */
.about-narrative.animate-on-scroll {
    transform: translateX(80px) translateY(30px);
}
.about-narrative.animate-on-scroll.animate {
    transform: translateX(0) translateY(0);
}

/* Bento skills grid: scale up with blur */
.bento-skills-grid.animate-on-scroll {
    transform: translateY(50px) scale(0.96);
    filter: blur(6px);
}
.bento-skills-grid.animate-on-scroll.animate {
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Skills marquee: fade without vertical shift */
.skills-marquee-wrapper.animate-on-scroll {
    transform: translateY(20px);
    filter: blur(2px);
}
.skills-marquee-wrapper.animate-on-scroll.animate {
    transform: translateY(0);
    filter: blur(0px);
}

/* Project cards: stagger from below with rotation */
.project-card.animate-on-scroll {
    transform: translateY(80px) rotate(1.5deg) scale(0.95);
    filter: blur(5px);
}
.project-card.animate-on-scroll.animate {
    transform: translateY(0) rotate(0deg) scale(1);
    filter: blur(0px);
}

/* Category headers: slide from left with line grow */
.category-header.animate-on-scroll {
    transform: translateX(-40px) translateY(20px);
}
.category-header.animate-on-scroll.animate {
    transform: translateX(0) translateY(0);
}

/* Leadership feature card: scale up with glow */
.leadership-feature-card.animate-on-scroll {
    transform: translateY(50px) scale(0.97);
    filter: blur(3px);
}
.leadership-feature-card.animate-on-scroll.animate {
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Timeline items: alternating left/right */
.timeline-content.animate-on-scroll {
    transform: translateX(-50px) translateY(20px);
}
.timeline-content.animate-on-scroll.animate {
    transform: translateX(0) translateY(0);
}
.timeline-content:nth-child(even).animate-on-scroll {
    transform: translateX(50px) translateY(20px);
}
.timeline-content:nth-child(even).animate-on-scroll.animate {
    transform: translateX(0) translateY(0);
}

/* Certificate cards: pop in with scale */
.cert-compact-card.animate-on-scroll {
    transform: translateY(40px) scale(0.92);
    filter: blur(4px);
}
.cert-compact-card.animate-on-scroll.animate {
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Contact info: slide from left */
.contact-info.animate-on-scroll {
    transform: translateX(-60px) translateY(20px);
}
.contact-info.animate-on-scroll.animate {
    transform: translateX(0) translateY(0);
}

/* Contact form: slide from right */
.contact-form.animate-on-scroll {
    transform: translateX(60px) translateY(20px);
}
.contact-form.animate-on-scroll.animate {
    transform: translateX(0) translateY(0);
}

/* ---- Staggered Children (auto-cascading effect) ---- */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.25s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.35s; }

/* ---- Hero Section Entrance Animations ---- */
.animate-fade-in {
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}
.animate-fade-in-delay {
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}
.animate-fade-in-delay-2 {
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
    opacity: 0;
}
.animate-fade-in-delay-3 {
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.98);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* ---- Section Header Parallax Effect ---- */
.section-header {
    animation: none;
    position: relative;
}

.section .section-header {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(3px);
}

.section.header-visible .section-header {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

/* ---- Bento Card Individual Stagger ---- */
.bento-card {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s var(--ease-out-expo),
                box-shadow 0.3s var(--ease-out-expo);
}
.bento-skills-grid.animate .bento-card {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}
.bento-skills-grid.animate .bento-card-1 { transition-delay: 0s; }
.bento-skills-grid.animate .bento-card-2 { transition-delay: 0.12s; }
.bento-skills-grid.animate .bento-card-3 { transition-delay: 0.24s; }
.bento-skills-grid.animate .bento-card-4 { transition-delay: 0.36s; }

/* ---- Tech Chip Cascading Reveal ---- */
.bento-skills-grid.animate .tech-chip {
    animation: chipReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
@keyframes chipReveal {
    from { opacity: 0; transform: translateY(12px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.bento-skills-grid.animate .bento-card-1 .tech-chip:nth-child(1) { animation-delay: 0.15s; }
.bento-skills-grid.animate .bento-card-1 .tech-chip:nth-child(2) { animation-delay: 0.2s; }
.bento-skills-grid.animate .bento-card-1 .tech-chip:nth-child(3) { animation-delay: 0.25s; }
.bento-skills-grid.animate .bento-card-1 .tech-chip:nth-child(4) { animation-delay: 0.3s; }
.bento-skills-grid.animate .bento-card-1 .tech-chip:nth-child(5) { animation-delay: 0.35s; }
.bento-skills-grid.animate .bento-card-1 .tech-chip:nth-child(6) { animation-delay: 0.4s; }
.bento-skills-grid.animate .bento-card-2 .tech-chip:nth-child(1) { animation-delay: 0.25s; }
.bento-skills-grid.animate .bento-card-2 .tech-chip:nth-child(2) { animation-delay: 0.3s; }
.bento-skills-grid.animate .bento-card-2 .tech-chip:nth-child(3) { animation-delay: 0.35s; }
.bento-skills-grid.animate .bento-card-2 .tech-chip:nth-child(4) { animation-delay: 0.4s; }
.bento-skills-grid.animate .bento-card-2 .tech-chip:nth-child(5) { animation-delay: 0.45s; }
.bento-skills-grid.animate .bento-card-3 .tech-chip:nth-child(1) { animation-delay: 0.35s; }
.bento-skills-grid.animate .bento-card-3 .tech-chip:nth-child(2) { animation-delay: 0.4s; }
.bento-skills-grid.animate .bento-card-3 .tech-chip:nth-child(3) { animation-delay: 0.45s; }
.bento-skills-grid.animate .bento-card-3 .tech-chip:nth-child(4) { animation-delay: 0.5s; }
.bento-skills-grid.animate .bento-card-3 .tech-chip:nth-child(5) { animation-delay: 0.55s; }
.bento-skills-grid.animate .bento-card-3 .tech-chip:nth-child(6) { animation-delay: 0.6s; }
.bento-skills-grid.animate .bento-card-4 .tech-chip:nth-child(1) { animation-delay: 0.45s; }
.bento-skills-grid.animate .bento-card-4 .tech-chip:nth-child(2) { animation-delay: 0.5s; }
.bento-skills-grid.animate .bento-card-4 .tech-chip:nth-child(3) { animation-delay: 0.55s; }
.bento-skills-grid.animate .bento-card-4 .tech-chip:nth-child(4) { animation-delay: 0.6s; }
.bento-skills-grid.animate .bento-card-4 .tech-chip:nth-child(5) { animation-delay: 0.65s; }
.bento-skills-grid.animate .bento-card-4 .tech-chip:nth-child(6) { animation-delay: 0.7s; }

/* ---- Pillar Box Stagger ---- */
.about-narrative.animate .pillar-box {
    animation: pillarSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
@keyframes pillarSlideIn {
    from { opacity: 0; transform: translateX(-20px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
.about-narrative.animate .pillar-box:nth-child(1) { animation-delay: 0.3s; }
.about-narrative.animate .pillar-box:nth-child(2) { animation-delay: 0.4s; }
.about-narrative.animate .pillar-box:nth-child(3) { animation-delay: 0.5s; }
.about-narrative.animate .pillar-box:nth-child(4) { animation-delay: 0.6s; }

/* ---- Project Card Show/Hide for Filter ---- */
.project-card.show {
    display: flex;
}
.project-card.hide {
    display: none;
}

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--coral), var(--amber), var(--cyan));
    z-index: 99998;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--coral-glow);
}

/* ---- Notification Toasts ---- */
.notification {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-glass-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-pure);
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 100001;
    transition: bottom 0.4s var(--ease-out-expo);
}
.notification.show {
    bottom: 40px;
}
.notification.success i { color: var(--emerald); }
.notification.error i { color: var(--coral); }

/* ---- Spinner ---- */
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: spinRotate 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spinRotate {
    to { transform: rotate(360deg); }
}

/* ---- Contact Card Cascade ---- */
.contact-info.animate .contact-card {
    animation: contactCardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
@keyframes contactCardReveal {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.contact-info.animate .contact-card:nth-child(1) { animation-delay: 0.15s; }
.contact-info.animate .contact-card:nth-child(2) { animation-delay: 0.25s; }
.contact-info.animate .contact-card:nth-child(3) { animation-delay: 0.35s; }

/* ---- Form Input Focus Glow Animation ---- */
.contact-form.animate .form-group {
    animation: formGroupFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
@keyframes formGroupFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.contact-form.animate .form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-form.animate .form-group:nth-child(2) { animation-delay: 0.2s; }
.contact-form.animate .form-group:nth-child(3) { animation-delay: 0.3s; }
.contact-form.animate .btn-full { 
    animation: formGroupFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* ── 17. RESPONSIVE MEDIA QUERIES ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-title .greeting { justify-content: center; }
    .hero-description { margin: 0 auto 34px; }
    .hero-cta { justify-content: center; }
    .hero-metrics-strip { justify-content: center; }
    .hero-3d-canvas-wrap { width: 360px; height: 360px; margin: 0 auto; }
    .hero-3d-stage { align-items: center; }
    .about-grid { grid-template-columns: 1fr; }
    .about-narrative { text-align: left; }
    .bento-card-1, .bento-card-2, .bento-card-3, .bento-card-4 { grid-column: span 12; }
    .leadership-feature-card { grid-template-columns: 1fr; text-align: center; }
    .leadership-logo-box { margin-bottom: 20px; }
    .leadership-details { text-align: left; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .project-filters { justify-content: center; }
}

@media (max-width: 768px) {
    .navbar { display: none; }
    .mobile-bottom-nav { 
        display: block; 
        padding: 10px 0 max(10px, env(safe-area-inset-bottom));
    }
    .mobile-resume-fab {
        display: block;
        bottom: calc(62px + max(10px, env(safe-area-inset-bottom)));
    }
    .section { padding: 70px 0; }
    
    /* ── Hero Mobile Architecture ── */
    .hero { 
        min-height: 100svh;
        padding: 85px 16px 95px 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
    }
    
    .hero::after {
        height: 40px;
    }
    
    .hero-dashboard-backdrop {
        opacity: 0.92;
        transform: scale(1.22) translateY(8px);
        filter: saturate(1.2) brightness(1.1);
        pointer-events: none;
        overflow: hidden;
    }
    
    .hero-pipeline-wrap {
        width: 100%;
        max-width: 900px;
    }
    
    .hero-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 auto;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 4px;
    }
    
    .hero-title { 
        font-size: clamp(2rem, 8vw, 2.7rem); 
        line-height: 1.1;
        letter-spacing: -1px;
        margin-bottom: 10px;
        word-break: break-word;
    }
    
    .hero-title .greeting { 
        font-size: clamp(0.8rem, 3.2vw, 0.92rem); 
        letter-spacing: 1px;
        margin-bottom: 6px;
        justify-content: center;
    }
    
    .name-editorial-row {
        justify-content: center;
        gap: 8px;
    }
    
    .hero-cli-prompt { 
        margin: 10px auto 0 auto;
        padding: 6px 14px;
        font-size: clamp(0.74rem, 3.2vw, 0.88rem);
        max-width: 100%;
        white-space: normal;
        text-align: center;
        word-break: break-word;
        line-height: 1.35;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
    }
    
    .hero-description { 
        font-size: 0.94rem;
        line-height: 1.55;
        max-width: 360px;
        margin: 0 auto 14px auto;
        padding: 0 8px;
        text-align: center;
    }
    
    .hero-cta { 
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 330px;
        margin: 0 auto 18px auto;
    }
    
    .hero-cta .btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.84rem;
        justify-content: center;
        white-space: nowrap;
    }
    
    .mobile-only-inline { display: inline !important; }
    .desktop-only-inline { display: none !important; }
    
    /* ── Mobile Telemetry Strip (Ultra-Sleek Glass Micro-Pill) ── */
    .hero-metrics-strip { 
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 6px 14px;
        border-radius: 100px;
        width: auto;
        max-width: 96%;
        margin: 0 auto;
        background: rgba(10, 11, 16, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    
    .hero-metrics-strip .metric-divider { 
        display: inline-block;
        color: rgba(255, 255, 255, 0.2);
        font-size: 0.75rem;
    }
    
    .hero-metrics-strip .metric-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        white-space: nowrap;
    }
    
    .hero-metrics-strip .metric-item:nth-child(3) {
        grid-column: auto;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .hero-metrics-strip .metric-num {
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1.1;
    }
    
    .hero-metrics-strip .metric-num.metric-tech-stack {
        font-size: 0.72rem;
        letter-spacing: 0.2px;
        white-space: nowrap;
        line-height: 1.1;
    }
    
    .hero-metrics-strip .metric-label {
        font-size: 0.58rem;
        letter-spacing: 0.5px;
        color: #94a3b8;
        line-height: 1;
        text-transform: uppercase;
    }
    
    .hero-3d-canvas-wrap { width: 280px; height: 280px; }
    .form-row { grid-template-columns: 1fr; }
    .about-pillars { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .cmdk-backdrop { padding: 40px 16px 20px; }
    .container { padding: 0 20px; }
    .section-title { font-size: clamp(2rem, 6vw, 3rem); }
    .developer-status-pill { flex-wrap: wrap; justify-content: center; font-size: 0.72rem; }
    .certificates-grid { grid-template-columns: 1fr; }
    .timeline-tags { justify-content: flex-start; }

    /* Reduce scroll animations on mobile */
    .animate-on-scroll {
        transform: translateY(30px);
        filter: blur(2px);
    }
    .about-image-wrapper.animate-on-scroll,
    .about-narrative.animate-on-scroll {
        transform: translateY(30px);
    }
    .about-image-container { max-width: 300px; }
    .card-1 { right: -8px; top: 12px; padding: 8px 14px; font-size: 0.82rem; }
    .card-2 { left: -8px; bottom: 20px; padding: 8px 14px; font-size: 0.82rem; }
    .project-card.animate-on-scroll {
        transform: translateY(40px) scale(0.98);
    }
    .contact-info.animate-on-scroll,
    .contact-form.animate-on-scroll {
        transform: translateY(30px);
    }
    .timeline-content.animate-on-scroll,
    .timeline-content:nth-child(even).animate-on-scroll {
        transform: translateY(25px);
    }
}

/* ── Extra Small Mobile (< 400px: iPhone SE, Compact Android) ── */
@media (max-width: 400px) {
    .hero {
        padding: 70px 10px 80px 10px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 7.5vw, 2.15rem);
        letter-spacing: -0.5px;
    }
    .hero-cta {
        flex-direction: row;
        gap: 8px;
        max-width: 310px;
        margin-bottom: 14px;
    }
    .hero-cta .btn {
        flex: 1;
        padding: 9px 10px;
        font-size: 0.8rem;
    }
    .hero-metrics-strip {
        gap: 8px;
        padding: 5px 10px;
        max-width: 98%;
    }
    .hero-metrics-strip .metric-num {
        font-size: 0.82rem;
    }
    .hero-metrics-strip .metric-num.metric-tech-stack {
        font-size: 0.68rem;
    }
    .hero-metrics-strip .metric-label {
        font-size: 0.54rem;
    }
    .hero-metrics-strip .metric-item:nth-child(3) {
        padding-top: 0;
    }
}

/* ── 18. SITE FOOTER ── */
.site-footer {
    position: relative;
    background: var(--bg-void);
    border-top: 1px solid var(--border-subtle);
    padding: 30px 0 20px;
    overflow: hidden;
    z-index: 10;
}

.footer-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    z-index: 2;
}

/* ── Center Animated Flip-Fade Typography ── */
.footer-watermark-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    padding: 4px 0;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}

.flip-fade-text {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: var(--font-sans);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    max-width: 100%;
}

.flip-fade-word {
    display: inline-flex;
    align-items: center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.flip-fade-char {
    display: inline-block;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    background: linear-gradient(180deg, #ffffff 15%, rgba(255, 255, 255, 0.6) 75%, rgba(255, 107, 74, 0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
    transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 0.9),
                opacity 0.6s cubic-bezier(0.2, 0.65, 0.3, 0.9),
                filter 0.6s cubic-bezier(0.2, 0.65, 0.3, 0.9);
    will-change: transform, opacity, filter;
}

/* Space characters between words */
.flip-fade-char.char-space {
    width: 0.3em;
}

/* Watermark Flip-Fade 3D States */
.flip-fade-char.char-initial {
    transform: rotateX(90deg) translateY(18px);
    opacity: 0;
    filter: blur(6px);
}

.flip-fade-char.char-animate {
    transform: rotateX(0deg) translateY(0);
    opacity: 1;
    filter: blur(0px);
}

.flip-fade-char.char-exit {
    transform: rotateX(-90deg) translateY(-18px);
    opacity: 0;
    filter: blur(6px);
    transition-duration: 0.4s;
    transition-timing-function: ease-in;
}

/* ── Sleek Minimal Bottom Bar ── */
.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.footer-admin-link {
    display: inline-flex;
    color: var(--text-dim);
    font-size: 0.72rem;
    opacity: 0.35;
    transition: opacity 0.3s ease;
    text-decoration: none;
}
.footer-admin-link:hover {
    opacity: 0.8;
}

/* ── Footer Responsive ── */
@media (max-width: 768px) {
    .site-footer {
        /* Lift footer content & animation safely above mobile bottom nav */
        padding-top: 50px;
        padding-bottom: calc(105px + env(safe-area-inset-bottom, 16px));
    }
    .footer-container {
        padding: 0 18px;
        gap: 20px;
        margin-bottom: 8px;
    }
    .footer-watermark-container {
        padding: 14px 0 10px;
        margin-bottom: 6px;
        overflow: visible;
    }
    .flip-fade-text {
        letter-spacing: -0.5px;
        min-height: 2.8rem;
    }
    .flip-fade-char {
        -webkit-text-stroke: 0.85px rgba(255, 255, 255, 0.45);
        text-shadow: 0 0 20px rgba(255, 107, 74, 0.35), 0 0 10px rgba(255, 255, 255, 0.25);
    }
    .footer-bottom-bar {
        gap: 10px;
    }
    .footer-copyright {
        font-size: 0.78rem;
        color: var(--text-muted);
    }
    .footer-admin-link {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .site-footer {
        padding-top: 42px;
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 12px));
    }
    .footer-container {
        padding: 0 12px;
        gap: 16px;
    }
    .footer-watermark-container {
        padding: 10px 0 6px;
    }
    .footer-copyright {
        font-size: 0.72rem;
    }
}

/* ── 19. REDUCED MOTION ACCESSIBILITY ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .section .section-header {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .bento-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
