/* ═══════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════ */
:root {
    --bg:       #07000F;
    --text-1:   #F5F4FF;
    --text-2:   #9090AA;
    --text-3:   #444455;
    --a1:       #8B5CF6;
    --a2:       #EC4899;
    --a-grad:   linear-gradient(135deg, #8B5CF6, #EC4899);
    --border:   rgba(139,92,246,0.14);
    --card-bg:  rgba(139,92,246,0.04);
    --card-hov: rgba(139,92,246,0.09);
    --nav-h:    64px;
    --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] {
    --bg:       #0D001A;
    --text-1:   #FFFFFF;
    --text-2:   #BBBBCC;
    --text-3:   #666677;
    --border:   rgba(139,92,246,0.22);
    --card-bg:  rgba(139,92,246,0.07);
    --card-hov: rgba(139,92,246,0.13);
}

/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--bg);
    color: var(--text-2);
    font-family: 'Inter', 'SF Pro Text', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════
   CANVAS BACKGROUND
═══════════════════════════════════════════════ */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY SCALE
═══════════════════════════════════════════════ */
.t-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--a1);
}
.t-display {
    font-size: clamp(3.6rem, 9vw, 9.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    color: var(--text-1);
}
.t-headline {
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-1);
}
.t-title {
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-1);
}
.t-body {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-2);
}
.t-mono {
    font-family: 'Fira Code', 'SF Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}
.g-text {
    background: var(--a-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════ */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
}


/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(139,92,246,0.2);
    box-shadow: 0 1px 30px rgba(139,92,246,0.08);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(10,0,0,0.9);
}

.nav-logo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-mark {
    width: 30px; height: 30px;
    background: var(--a-grad);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 4px;
}
.nav-link {
    color: var(--text-2);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-1);
    background: rgba(255,255,255,0.06);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}


.theme-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.theme-btn:hover { background: rgba(255,255,255,0.1); }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    transition: all 0.3s var(--ease);
}
.btn-primary {
    background: var(--a-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 24px rgba(139,92,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,0.5); }
.btn-outline {
    background: transparent;
    color: var(--text-1);
    border-color: var(--border);
}
.btn-outline:hover { background: var(--card-hov); border-color: rgba(255,255,255,0.2); }
.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--text-1); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; border-radius: 8px; }

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.up    { transform: translateY(48px); }
.reveal.left  { transform: translateX(-48px); }
.reveal.right { transform: translateX(48px); }
.reveal.scale { transform: scale(0.9) translateY(20px); }
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-d1  { transition-delay: 0.1s; }
.reveal-d2  { transition-delay: 0.2s; }
.reveal-d3  { transition-delay: 0.3s; }
.reveal-d4  { transition-delay: 0.4s; }
.reveal-d5  { transition-delay: 0.5s; }
.reveal-d6  { transition-delay: 0.6s; }

/* Hero elements — CSS-only, no JS dependency */
.hero-anim {
    opacity: 0;
    animation: hero-up 0.9s var(--ease) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes hero-up {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Word-by-word reveal */
.word-split .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.word-split.visible .word { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════════ */
.section {
    position: relative;
    padding: clamp(80px, 12vw, 160px) 0;
    overflow: hidden;
}
.section-inner { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.s-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--nav-h) + clamp(32px, 6vh, 80px));
    padding-bottom: 160px;
}

/* Dark vignette behind hero text so canvas doesn't bleed through */
.s-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 46%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.3) 55%, transparent 80%),
        radial-gradient(ellipse 90% 70% at 50% 46%, rgba(139,92,246,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Perspective grid floor */
.hero-grid {
    position: absolute;
    bottom: 0;
    left: -60%;
    right: -60%;
    height: 340px;
    background-image:
        linear-gradient(rgba(139,92,246,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.15) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: perspective(500px) rotateX(65deg);
    transform-origin: center bottom;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C4B5FD;
    padding: 8px 20px;
    border: 1px solid rgba(139,92,246,0.45);
    border-radius: 20px;
    background: rgba(139,92,246,0.10);
    box-shadow: 0 0 20px rgba(139,92,246,0.18), inset 0 0 20px rgba(139,92,246,0.05);
}
.hero-kicker::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--a1);
    border-radius: 50%;
    animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

.hero-name {
    font-size: clamp(4.8rem, 12vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
    color: #FFFFFF;
    text-align: center;
}
.hero-name .line-1 {
    display: block;
    color: #FFFFFF;
    text-shadow:
        0 0 40px rgba(255,255,255,0.15),
        0 0 80px rgba(139,92,246,0.3),
        0 0 140px rgba(236,72,153,0.12);
}
.hero-name .line-2 {
    display: block;
    background: linear-gradient(135deg, #C4B5FD 0%, #8B5CF6 30%, #EC4899 65%, #F9A8D4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: name-shimmer 4s linear infinite;
    filter: drop-shadow(0 0 28px rgba(139,92,246,0.65));
}
@keyframes name-shimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: #A0A0B8;
    max-width: 560px;
    text-align: center;
    line-height: 1.7;
}
.hero-tagline strong {
    color: #E0E0F0;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    animation: scroll-hint 2s ease-in-out infinite;
}
.hero-scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-3), transparent);
}
@keyframes scroll-hint {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   PIPELINE DAG
═══════════════════════════════════════════════ */
.s-pipeline {
    position: relative;
    padding: 56px 0 64px;
    overflow: hidden;
}
.pipeline-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139,92,246,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    z-index: 0;
}
.pipeline-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 40%, rgba(0,0,0,0.7));
}
.pipeline-eyebrow {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.pipeline-wrap {
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}
.pipeline-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}
.pipeline-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    position: relative;
    z-index: 2;
    padding: 24px 0;
    transition: padding-right 0.4s var(--ease);
}
.pipe-fork {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.s-pipeline.panel-open .pipeline-nodes { padding-right: 430px; }
.pipe-node {
    background: rgba(8, 12, 26, 0.92);
    border: 1px solid rgba(139,92,246,0.45);
    border-radius: 16px;
    padding: 22px 20px 18px;
    width: 170px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 0 rgba(139,92,246,0);
    position: relative;
}
.pipe-node::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(139,92,246,0.1));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}
.pipe-node:hover {
    border-color: rgba(139,92,246,0.85);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(139,92,246,0.2), 0 0 0 1px rgba(139,92,246,0.2);
}
.pipe-node:hover::before { opacity: 1; }
.pipe-icon  { font-size: 2rem; position: relative; z-index: 1; }
.pipe-title { font-size: 0.95rem; font-weight: 700; color: var(--text-1); position: relative; z-index: 1; }
.pipe-sub   { font-size: 0.7rem; color: var(--text-3); font-family: 'Fira Code', monospace; position: relative; z-index: 1; }

@media (max-width: 860px) {
    .pipeline-nodes { gap: 32px; }
    .pipe-node { width: 130px; padding: 16px 12px; }
    .pipe-icon { font-size: 1.5rem; }
    .pipe-title { font-size: 0.82rem; }
    .pipe-sub { display: none; }
}
@media (max-width: 600px) {
    .pipeline-nodes { gap: 16px; overflow-x: auto; justify-content: flex-start; padding: 24px 16px; }
    .pipeline-wrap { overflow-x: auto; }
}

/* ═══════════════════════════════════════════════
   TICKER / MARQUEE
═══════════════════════════════════════════════ */
.ticker-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    padding: 18px 0;
    position: relative;
    z-index: 2;
}
.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}
.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}
.ticker {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-2);
    white-space: nowrap;
}
.ticker-item::after {
    content: '·';
    color: var(--a1);
    font-size: 1.2rem;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   IMPACT STATS
═══════════════════════════════════════════════ */
.s-impact {
    padding: clamp(80px, 12vw, 140px) 0;
    position: relative;
    overflow: hidden;
}
.s-impact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 80% at 50% 50%, rgba(139,92,246,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.impact-label {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 80px);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}
.impact-stat {
    background: var(--bg);
    padding: clamp(28px, 4vw, 52px) clamp(12px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: background 0.3s ease;
    min-width: 0;
    overflow: visible;
}
.impact-stat:hover { background: var(--card-bg); }
.impact-num {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-1);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.impact-unit {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.s-about { padding: clamp(80px, 14vw, 160px) 0; }

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.about-statement {
    font-size: clamp(1.6rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-1);
}
.about-statement em {
    font-style: normal;
    background: var(--a-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-right { display: flex; flex-direction: column; gap: 28px; }
.about-bio { font-size: 1.05rem; color: var(--text-2); line-height: 1.8; }

.about-photo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   DATA PIPELINE DAG
═══════════════════════════════════════════════ */
.s-dag {
    padding: clamp(80px, 12vw, 140px) 0;
    position: relative;
    overflow: hidden;
}

.s-dag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 80% at 50% 50%, rgba(236,72,153,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.dag-label {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.dag-label .t-headline {
    background: var(--a-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 12px;
}

.dag-canvas-wrap {
    position: relative;
    background: linear-gradient(135deg, rgba(139,92,246,0.04) 0%, rgba(236,72,153,0.04) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dag-canvas {
    display: block;
    width: 100%;
    height: 320px;
    background: transparent;
    border-radius: 16px;
}

.dag-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-2);
}

.dag-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dag-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dag-legend {
        gap: 16px;
        justify-content: flex-start;
        font-size: 0.75rem;
    }
    .dag-canvas {
        min-height: 220px;
    }
}
.about-photo-frame {
    width: 260px;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 60px rgba(139,92,246,0.1);
}
.about-photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}
.about-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--a-grad);
    color: #fff;
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 8px 24px rgba(139,92,246,0.4);
    text-align: center;
}

/* ═══════════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════════ */
.s-skills { padding: clamp(80px, 12vw, 160px) 0; }

.skills-header { margin-bottom: clamp(48px, 6vw, 80px); }

.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.skill-bars { display: flex; flex-direction: column; gap: 26px; }

.skill-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.skill-bar-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.skill-icon {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: rgba(139,92,246,0.1);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}
.skill-pct {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--a1);
    font-family: 'Fira Code', monospace;
}
.skill-track {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.skill-fill {
    height: 100%;
    background: var(--a-grad);
    border-radius: 2px;
    width: 0%;
    transition: width 1.4s var(--ease);
}
.skill-fill.animated { width: var(--pct); }

/* Logo grid */
.skill-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.skill-logo {
    aspect-ratio: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 6px;
    transition: all 0.3s var(--ease);
}
.skill-logo:hover {
    background: var(--card-hov);
    border-color: rgba(139,92,246,0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.skill-emoji { font-size: 1.6rem; }
.skill-lbl {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    text-align: center;
}
.skill-logo:hover .skill-lbl { color: var(--a1); }

/* ═══════════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════════ */
.s-experience { padding: clamp(80px, 12vw, 160px) 0; }

.exp-header { margin-bottom: clamp(48px, 6vw, 80px); }

.timeline { display: flex; flex-direction: column; gap: 1px; }
.tl-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s ease;
}
.tl-item:hover { border-color: rgba(139,92,246,0.3); }
.tl-item:last-child { border-bottom: 1px solid var(--border); }

.tl-date {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--a1);
    margin-bottom: 8px;
    font-family: 'Fira Code', monospace;
}
.tl-company {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}
.tl-type {
    font-size: 0.8rem;
    color: var(--text-3);
}

.tl-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.tl-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.tl-points li {
    font-size: 0.92rem;
    color: var(--text-2);
    padding-left: 16px;
    position: relative;
    line-height: 1.65;
}
.tl-points li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--a1);
    font-size: 0.7rem;
    top: 4px;
}
.tl-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.2);
    color: var(--a1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════ */
.s-projects { padding: clamp(80px, 12vw, 160px) 0; }
.proj-header { margin-bottom: clamp(48px, 6vw, 80px); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.proj-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(28px, 3.5vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s var(--ease);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.proj-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--a-grad);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.proj-card:hover {
    background: var(--card-hov);
    border-color: rgba(139,92,246,0.25);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.proj-card:hover::before { opacity: 1; }

.proj-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.proj-icon { font-size: 2.2rem; line-height: 1; }
.proj-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--a1);
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.2);
    padding: 4px 10px;
    border-radius: 20px;
}
.proj-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.proj-desc {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    flex: 1;
}
.proj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ═══════════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════════ */
.s-education { padding: clamp(80px, 12vw, 160px) 0; }
.edu-header { margin-bottom: clamp(48px, 6vw, 80px); }

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 60px;
}
.edu-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    align-items: start;
    transition: border-color 0.3s;
}
.edu-item:hover { border-color: rgba(139,92,246,0.3); }
.edu-item:last-child { border-bottom: 1px solid var(--border); }
.edu-year {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--a1);
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.04em;
    padding-top: 4px;
}
.edu-degree {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.edu-school {
    font-size: 0.88rem;
    color: var(--text-2);
    margin-bottom: 4px;
}
.edu-meta {
    font-size: 0.78rem;
    color: var(--text-3);
    font-family: 'Fira Code', monospace;
}

.certs-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.3s var(--ease);
}
.cert-card:hover {
    background: var(--card-hov);
    border-color: rgba(139,92,246,0.25);
    transform: translateY(-3px);
}
.cert-icon {
    font-size: 1.5rem;
    width: 44px; height: 44px;
    min-width: 44px;
    background: rgba(139,92,246,0.08);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.cert-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
    line-height: 1.3;
}
.cert-org {
    font-size: 0.78rem;
    color: var(--a1);
    font-weight: 600;
    margin-bottom: 2px;
}
.cert-date {
    font-size: 0.72rem;
    color: var(--text-3);
    font-family: 'Fira Code', monospace;
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.s-contact {
    padding: clamp(100px, 16vw, 200px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.s-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 50% 100%, rgba(139,92,246,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.contact-headline {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
    color: var(--text-1);
    margin-bottom: 24px;
}
.contact-sub {
    font-size: 1.1rem;
    color: var(--text-2);
    margin-bottom: 48px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 980px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-2);
    background: var(--card-bg);
    transition: all 0.3s var(--ease);
    letter-spacing: 0.02em;
}
.contact-link:hover {
    color: var(--text-1);
    border-color: rgba(139,92,246,0.4);
    background: var(--card-hov);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.contact-link-icon {
    font-size: 1.1rem;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(139,92,246,0.1);
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--a1);
}

/* ═══════════════════════════════════════════════
   PIPELINE SIDEBAR
═══════════════════════════════════════════════ */
.pipe-node { cursor: pointer; }

.pipe-sidebar {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    width: 420px;
    background: #0a0015;
    border-left: 1px solid rgba(139,92,246,0.2);
    z-index: 900;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pipe-sidebar.open { transform: translateX(0); }

.pipe-sb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.pipe-sb-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-1);
}
.pipe-sb-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-2);
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.pipe-sb-close:hover { background: rgba(139,92,246,0.1); color: #8B5CF6; border-color: rgba(139,92,246,0.4); }

.pipe-sb-body {
    overflow-y: auto;
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.pipe-sb-meta {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pipe-sb-meta p { font-size: 0.84rem; color: var(--text-2); }
.pipe-sb-meta strong { color: var(--text-1); font-weight: 600; }
.pipe-sb-state-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(139,92,246,0.12);
    color: #8B5CF6;
    border: 1px solid rgba(139,92,246,0.3);
}
.pipe-sb-logs-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 10px;
}
.pipe-sb-logs {
    background: #030506;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Fira Code', monospace;
    font-size: 0.74rem;
    max-height: 130px;
    overflow-y: auto;
    line-height: 1.85;
}
.pipe-sb-log-line { color: var(--text-3); }
.pipe-sb-log-line.info    { color: #EC4899; }
.pipe-sb-log-line.success { color: #10B981; }
.pipe-sb-content h3 { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.pipe-sb-content p  { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.pipe-sb-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}
.pipe-sb-metric {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.pipe-sb-metric-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: #8B5CF6;
    letter-spacing: -0.04em;
}
.pipe-sb-metric-lbl {
    font-size: 0.65rem;
    color: var(--text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Fira Code', monospace;
}
.pipe-sb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pipe-sb-chip {
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.25);
    color: #8B5CF6;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.pipe-sb-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 980px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.35);
    color: #8B5CF6;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    margin-top: 4px;
}
.pipe-sb-nav-link:hover { background: rgba(139,92,246,0.18); transform: translateX(4px); }

@media (max-width: 560px) { .pipe-sidebar { width: 100%; } }

/* ═══════════════════════════════════════════════
   MY STORY
═══════════════════════════════════════════════ */
.s-story {
    padding: clamp(80px, 10vw, 130px) 0;
    position: relative;
    border-top: 1px solid var(--border);
}
.s-story::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(139,92,246,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.story-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
}
.story-eyebrow { margin-bottom: 20px; }
.story-headline {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-1);
    margin-bottom: 44px;
}
.story-body {
    font-size: clamp(1rem, 1.4vw, 1.08rem);
    line-height: 1.9;
    color: var(--text-2);
}
.story-body p { margin-bottom: 22px; }
.story-body p:last-child { margin-bottom: 0; }
.story-highlight { color: var(--text-1); font-weight: 600; }
.story-cta {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}
.story-cta p {
    font-size: 1.05rem;
    color: var(--text-1);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px clamp(1.5rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-3);
    position: relative;
    z-index: 2;
    gap: 16px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   SPARKLE CURSOR
═══════════════════════════════════════════════ */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: sparkle-pop 0.8s ease-out forwards;
    user-select: none;
}
@keyframes sparkle-pop {
    0%   { opacity: 1; transform: scale(0) rotate(0deg); }
    50%  { opacity: 1; transform: scale(1.2) rotate(180deg); }
    100% { opacity: 0; transform: scale(0.4) rotate(360deg) translateY(-28px); }
}



/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 880px) {
    .about-split     { grid-template-columns: 1fr; gap: 48px; }
    .about-photo-wrap { order: -1; }
    .skills-layout   { grid-template-columns: 1fr; }
    .tl-item         { grid-template-columns: 1fr; gap: 16px; }
    .tl-meta         { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; }
    .projects-grid   { grid-template-columns: 1fr; }
    .certs-grid      { grid-template-columns: 1fr 1fr; }
    .edu-item        { grid-template-columns: 1fr; gap: 8px; }
    .impact-grid     { grid-template-columns: repeat(2, 1fr); }
    .nav-links       { display: none; }
}
@media (max-width: 560px) {
    .impact-grid  { grid-template-columns: repeat(2, 1fr); }
    .certs-grid   { grid-template-columns: 1fr; }
    .hero-name    { letter-spacing: -0.04em; }
    .site-footer  { justify-content: center; text-align: center; }
    .contact-headline { font-size: clamp(2.5rem, 12vw, 4rem); }
}

/* ═══════════════════════════════════════════════
   CREATIVE MOTION ANIMATIONS
═══════════════════════════════════════════════ */

/* ── Custom Spring Cursor ── */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 7px; height: 7px;
    background: var(--a1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    translate: -50% -50%;
    opacity: 0;
    transition: opacity 0.25s, background 0.2s;
    will-change: transform;
}
.cursor-dot.active { opacity: 1; }
.cursor-dot.on-hover { background: #fff; }

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    border: 1.5px solid rgba(139,92,246,0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    translate: -50% -50%;
    opacity: 0;
    transition: opacity 0.25s, width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.25s, background 0.25s;
    will-change: transform;
    box-shadow: 0 0 12px rgba(139,92,246,0.2);
}
.cursor-ring.active    { opacity: 1; }
.cursor-ring.on-hover  {
    width: 56px; height: 56px;
    border-color: rgba(236,72,153,0.9);
    background: rgba(139,92,246,0.06);
    box-shadow: 0 0 20px rgba(236,72,153,0.25);
}
.hide-cursor * { cursor: none !important; }

/* ── Aurora Glow Blobs ── */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: aurora-float 24s ease-in-out infinite alternate;
    will-change: transform;
}
.aurora-blob-1 {
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 62%);
    top: -180px; left: -110px;
    filter: blur(50px);
    animation-duration: 23s;
    z-index: 0;
}
.aurora-blob-2 {
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(236,72,153,0.10) 0%, transparent 62%);
    top: 80px; right: -100px;
    filter: blur(58px);
    animation-duration: 30s;
    animation-delay: -9s;
    z-index: 0;
}
.aurora-blob-3 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(196,181,253,0.09) 0%, transparent 62%);
    bottom: 60px; left: 38%;
    filter: blur(65px);
    animation-duration: 19s;
    animation-delay: -15s;
    z-index: 0;
}
@keyframes aurora-float {
    0%   { transform: translate(0px,   0px)   scale(1);    }
    30%  { transform: translate(44px, -36px)  scale(1.07); }
    60%  { transform: translate(-28px, 48px)  scale(0.95); }
    100% { transform: translate(32px,  -52px) scale(1.09); }
}

/* ── Card Spotlight Glow ── */
.proj-card,
.cert-card {
    --spot-x: 50%;
    --spot-y: 50%;
}
.cert-card {
    position: relative;
    overflow: hidden;
}
.proj-card::after,
.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--spot-x) var(--spot-y),
        rgba(139,92,246,0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.proj-card:hover::after,
.cert-card:hover::after { opacity: 1; }

/* ── Impact stat hover glow ── */
.impact-stat {
    position: relative;
    overflow: hidden;
    --spot-x: 50%;
    --spot-y: 50%;
}
.impact-stat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(200px circle at var(--spot-x) var(--spot-y),
        rgba(139,92,246,0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.impact-stat:hover::after { opacity: 1; }

/* ── Photo Backdrop (Ken Burns animated) ── */
.photo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.photo-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.18;
    filter: blur(1px) saturate(0.5) brightness(0.55);
    animation: ken-burns 22s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform;
}
@keyframes ken-burns {
    0%   { transform: scale(1.0)  translate(0%,    0%); }
    33%  { transform: scale(1.06) translate(-0.8%, 1%); }
    66%  { transform: scale(1.10) translate(0.5%, -0.8%); }
    100% { transform: scale(1.13) translate(-0.5%, 0.5%); }
}
.photo-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%,
            rgba(7,0,15,0.45) 0%, rgba(7,0,15,0.88) 100%),
        linear-gradient(160deg,
            rgba(139,92,246,0.08) 0%,
            rgba(7,0,15,0.5) 50%,
            rgba(236,72,153,0.06) 100%);
    pointer-events: none;
}

/* ── Angled Background Photos ── */
.bg-photos {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.bg-photos::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 70% at 50% 50%,
            rgba(7,0,15,0.55) 0%, rgba(7,0,15,0.92) 100%),
        linear-gradient(180deg, rgba(7,0,15,0.3) 0%, transparent 40%, rgba(7,0,15,0.5) 100%);
    pointer-events: none;
    z-index: 10;
}
.bg-frame {
    position: absolute;
    border-radius: 18px;
    overflow: hidden;
    opacity: 0.065;
    box-shadow:
        0 24px 80px rgba(0,0,0,0.9),
        0 0 0 1px rgba(139,92,246,0.15);
    transition: opacity 0.8s ease;
}
.bg-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.6) brightness(0.8);
}

/* Individual frame placements + drift animations */
.bp-1 {
    width: 260px; height: 360px;
    top: 6%; left: 2%;
    animation: drift-1 22s ease-in-out infinite alternate;
}
.bp-2 {
    width: 230px; height: 310px;
    top: 18%; right: 3%;
    animation: drift-2 28s ease-in-out infinite alternate;
}
.bp-3 {
    width: 380px; height: 220px;
    bottom: 6%; left: 8%;
    animation: drift-3 20s ease-in-out infinite alternate;
}
.bp-4 {
    width: 240px; height: 320px;
    bottom: 12%; right: 8%;
    animation: drift-4 26s ease-in-out infinite alternate;
}

@keyframes drift-1 {
    0%   { transform: rotate(-8deg) translate(0px, 0px); }
    100% { transform: rotate(-8deg) translate(16px, -12px); }
}
@keyframes drift-2 {
    0%   { transform: rotate(6deg) translate(0px, 0px); }
    100% { transform: rotate(6deg) translate(-12px, 10px); }
}
@keyframes drift-3 {
    0%   { transform: rotate(-4deg) translate(0px, 0px); }
    100% { transform: rotate(-4deg) translate(10px, -8px); }
}
@keyframes drift-4 {
    0%   { transform: rotate(9deg) translate(0px, 0px); }
    100% { transform: rotate(9deg) translate(-14px, 8px); }
}

/* Subtle hover reveal — photos brighten when nearby sections scroll */
body:hover .bg-frame { opacity: 0.09; }

/* ── Scroll Progress Bar ── */
.scroll-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #8B5CF6, #EC4899, #8B5CF6);
    background-size: 200% 100%;
    animation: bar-shimmer 3s linear infinite;
    z-index: 10001;
    box-shadow: 0 0 10px rgba(139,92,246,0.8), 0 0 4px rgba(236,72,153,0.6);
}
@keyframes bar-shimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ── Hero Typed Text ── */
.hero-typed {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fira Code', monospace;
    font-size: clamp(0.78rem, 1.4vw, 0.92rem);
    color: var(--a2);
    letter-spacing: 0.04em;
}
.hero-typed-prefix {
    color: var(--a1);
    font-size: 0.7rem;
    animation: prefix-blink 1.4s ease-in-out infinite;
}
@keyframes prefix-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}
.typed-caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--a2);
    margin-left: 1px;
    animation: caret-blink 0.9s step-end infinite;
    vertical-align: text-bottom;
    border-radius: 1px;
}
@keyframes caret-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ── About Photo Float ── */
.about-photo-wrap {
    animation: photo-float 7s ease-in-out infinite;
}
@keyframes photo-float {
    0%,100% { translate: 0 0px; }
    50%      { translate: 0 -14px; }
}
.about-photo-wrap:hover { animation-play-state: paused; }

/* ── Experience Timeline Animated Line ── */
.timeline {
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--a1), var(--a2), transparent);
    transition: height 2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(139,92,246,0.4);
}
.timeline.tl-drawn::before { height: 100%; }

/* ── Skill Bar Glowing Tip ── */
.skill-fill::after {
    content: '';
    position: absolute;
    right: 0; top: -3px;
    width: 8px; height: 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 0 10px var(--a2), 0 0 6px #fff;
}
.skill-fill {
    position: relative;
}
.skill-fill.animated::after { opacity: 1; }

/* ── Section headings — letter stagger via Motion ── */
.t-headline .char {
    display: inline-block;
}

/* ── Tl items — active dot ── */
.tl-item {
    position: relative;
}
.tl-item::before {
    content: '';
    position: absolute;
    left: -13px; top: 44px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--a1);
    box-shadow: 0 0 10px var(--a1), 0 0 4px var(--a1);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    z-index: 3;
}
.tl-item.reveal.visible::before {
    opacity: 1;
    transform: scale(1);
}
.tl-item:first-child::before { background: #EC4899; box-shadow: 0 0 14px #EC4899, 0 0 28px rgba(236,72,153,0.4); }

/* ════════════════════════════════════════════════
   RED + BLACK THEME — NEW EFFECTS
════════════════════════════════════════════════ */

/* ── Hero name — subtle pulse glow (replaces glitch for clean look) ── */
.hero-name {
    animation: name-pulse 5s ease-in-out infinite;
}
@keyframes name-pulse {
    0%,100% { filter: drop-shadow(0 0 0px rgba(139,92,246,0)); }
    50%      { filter: drop-shadow(0 0 40px rgba(139,92,246,0.22)) drop-shadow(0 0 80px rgba(236,72,153,0.1)); }
}

/* ── Hero perspective grid — red ── */
.hero-grid {
    background-image:
        linear-gradient(rgba(139,92,246,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.18) 1px, transparent 1px);
}

/* ── Neon red glow on section headlines ── */
.t-headline .g-text {
    filter: drop-shadow(0 0 20px rgba(139,92,246,0.5));
}

/* ── Impact numbers red glow ── */
.impact-num {
    text-shadow: 0 0 30px rgba(139,92,246,0.3);
}
.impact-stat:hover .impact-num {
    text-shadow: 0 0 30px rgba(139,92,246,0.6), 0 0 60px rgba(236,72,153,0.2);
    color: #C4B5FD;
    transition: color 0.3s, text-shadow 0.3s;
}

/* ── Project cards — terminal header ── */
.proj-card .terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(139,92,246,0.06);
    border-bottom: 1px solid rgba(139,92,246,0.12);
    border-radius: 4px 4px 0 0;
    margin: -44px -44px 16px;
}
.terminal-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.t-dot-red    { background: #8B5CF6; box-shadow: 0 0 6px #8B5CF6; }
.t-dot-yellow { background: #FF8800; }
.t-dot-green  { background: #22C55E; }
.terminal-filename {
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    color: rgba(139,92,246,0.5);
    letter-spacing: 0.04em;
    margin-left: 6px;
}

/* ── Cert cards red glow border on hover ── */
.cert-card:hover {
    box-shadow: 0 0 0 1px rgba(139,92,246,0.4), 0 12px 40px rgba(139,92,246,0.15);
}

/* ── Skill bars purple→pink gradient ── */
.skill-fill {
    background: linear-gradient(90deg, #7C3AED, #8B5CF6 50%, #EC4899);
    box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

/* ── Pipeline node hover red glow ── */
.pipe-node:hover {
    border-color: rgba(139,92,246,0.85) !important;
    box-shadow: 0 0 20px rgba(139,92,246,0.3), 0 8px 32px rgba(139,92,246,0.15) !important;
}

/* ── Contact section red glow ── */
.contact-headline {
    text-shadow: 0 0 60px rgba(139,92,246,0.25);
}

/* ── Buttons red glow upgrade ── */
.btn-primary {
    box-shadow: 0 4px 24px rgba(139,92,246,0.45), 0 0 0 1px rgba(139,92,246,0.2);
}
.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(139,92,246,0.65), 0 0 0 1px rgba(139,92,246,0.4) !important;
}

/* ── Purple + pink aurora blobs ── */
.aurora-blob-1 {
    background: radial-gradient(circle, rgba(139,92,246,0.20) 0%, transparent 62%);
}
.aurora-blob-2 {
    background: radial-gradient(circle, rgba(236,72,153,0.16) 0%, transparent 62%);
}
.aurora-blob-3 {
    background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 62%);
}

/* ── Hero "scroll" indicator — red ── */
.hero-scroll { color: rgba(139,92,246,0.4); }
.hero-scroll::after {
    background: linear-gradient(to bottom, rgba(139,92,246,0.4), transparent);
}

/* ── Nav logo mark red gradient ── */
.logo-mark {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    box-shadow: 0 0 16px rgba(139,92,246,0.4);
}

/* ── Ticker items red dot separator ── */
.ticker-item { color: rgba(255,255,255,0.55); }
.ticker-item::after { color: #8B5CF6; }

/* ── About section glow ── */
.about-photo-frame {
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.2);
}
.about-badge {
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
    box-shadow: 0 8px 24px rgba(139,92,246,0.5);
}

/* ── Scroll bar purple→pink shimmer ── */
.scroll-bar {
    background: linear-gradient(90deg, #7C3AED, #8B5CF6, #EC4899, #F9A8D4, #EC4899, #8B5CF6);
    background-size: 300% 100%;
    animation: bar-shimmer 3s linear infinite;
    box-shadow: 0 0 10px rgba(139,92,246,0.85), 0 0 4px rgba(236,72,153,0.5);
}

/* ── Story section highlights ── */
.story-highlight {
    color: #C084FC;
}

/* ── Pipe sidebar chips red ── */
.pipe-sb-chip {
    background: rgba(139,92,246,0.08);
    border-color: rgba(139,92,246,0.25);
    color: #C084FC;
}
.pipe-sb-nav-link {
    background: rgba(139,92,246,0.1);
    border-color: rgba(139,92,246,0.35);
    color: #C084FC;
}
.pipe-sb-nav-link:hover { background: rgba(139,92,246,0.18); }
.pipe-sb-metric-val { color: #A78BFA; }
.pipe-sb-state-badge {
    background: rgba(139,92,246,0.12);
    color: #C084FC;
    border-color: rgba(139,92,246,0.3);
}
.pipe-sb-close:hover { background: rgba(139,92,246,0.1); color: #A78BFA; border-color: rgba(139,92,246,0.4); }
