@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ════════════════════════════════════════════════
   TOKENS
════════════════════════════════════════════════ */
:root {
    --bg:            #030306;
    --bg-gradient:   radial-gradient(circle at 50% -20%, #14122a 0%, #030306 72%);
    --surface:       #08080f;
    --surface-2:     rgba(255,255,255,0.03);
    --surface-hover: #0e0e1a;
    --border:        rgba(255,255,255,0.07);
    --border-hover:  rgba(255,255,255,0.14);
    --text:          #eeeef4;
    --muted:         #8585a0;
    --subtle:        #13121e;
    --accent:        #7c6af7;
    --accent-dim:    rgba(124,106,247,0.12);
    --accent-glow:   rgba(124,106,247,0.35);
    --green:         #4ade80;
    --white:         #ffffff;

    /* Glass card */
    --glass-bg:      rgba(255,255,255,0.035);
    --glass-border:  rgba(255,255,255,0.09);
    --glass-blur:    18px;
    --glass-shadow:  0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.07);

    /* GitHub stat colours */
    --gh-lvl-0: rgba(255,255,255,0.06);
    --gh-lvl-1: rgba(124,106,247,0.25);
    --gh-lvl-2: rgba(124,106,247,0.45);
    --gh-lvl-3: rgba(124,106,247,0.7);
    --gh-lvl-4: #7c6af7;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    background: var(--bg-gradient);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
input, textarea { -webkit-user-select: auto; user-select: auto; }
img { -webkit-user-drag: none; user-drag: none; }

/* ════════════════════════════════════════════════
   CURSOR
════════════════════════════════════════════════ */
#cursor {
    width: 8px; height: 8px;
    background: var(--white);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform .1s ease, background-color .2s ease;
    display: none;
}
#cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform .15s ease-out, border-color .2s ease, width .2s, height .2s;
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    #cursor, #cursor-ring { display: block; }
}

/* ════════════════════════════════════════════════
   SCROLL PROGRESS
════════════════════════════════════════════════ */
#scroll-progress {
    position: fixed; top: 64px; left: 0;
    width: 0%; height: 2px;
    background: linear-gradient(to right, var(--accent), rgba(255,255,255,.8));
    z-index: 199;
    pointer-events: none;
    transition: width .1s ease-out;
}

/* ════════════════════════════════════════════════
   BACKGROUND LAYERS
════════════════════════════════════════════════ */
.bg-canvas {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 100% 55% at 70% 0%,  rgba(124,106,247,.07) 0%, transparent 55%),
        radial-gradient(ellipse 80%  70% at -5% 80%, rgba(80,60,200,.05)   0%, transparent 55%),
        radial-gradient(ellipse 60%  50% at 50% 50%, rgba(60,40,150,.03)   0%, transparent 70%),
        var(--bg);
    pointer-events: none;
}
.bg-canvas::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 10%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 35%, black 10%, transparent 80%);
}
.bg-canvas::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: .5;
}
#bg-particles {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none; opacity: 0;
    transition: opacity 2s ease;
}
#bg-particles.ready { opacity: .55; }
.bg-orbs { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); animation: orbFloat linear infinite; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(124,106,247,.09) 0%, transparent 70%); top: -10%; left: 60%; animation-duration: 22s; opacity: 1; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(80,140,255,.07) 0%, transparent 70%); top: 45%; left: -8%; animation-duration: 28s; animation-delay: -8s; opacity: 1; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(200,100,255,.06) 0%, transparent 70%); top: 70%; left: 75%; animation-duration: 18s; animation-delay: -4s; opacity: 1; }
.orb-4 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(60,200,180,.04) 0%, transparent 70%); top: 20%; left: 20%; animation-duration: 34s; animation-delay: -14s; opacity: 1; }
@keyframes orbFloat {
    0%   { transform: translate(0,0)     scale(1); }
    25%  { transform: translate(30px,20px) scale(1.04); }
    50%  { transform: translate(10px,50px) scale(0.97); }
    75%  { transform: translate(-20px,25px) scale(1.02); }
    100% { transform: translate(0,0)     scale(1); }
}
.bg-noise {
    position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}
.bg-grid {
    position: fixed; top: 0; left: 0; right: 0; height: 360px; z-index: 2; pointer-events: none;
    background: linear-gradient(to bottom, rgba(100,80,220,.05) 0%, rgba(80,60,180,.02) 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* ════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 0 6%; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(3,3,6,.8);
    backdrop-filter: blur(28px) saturate(1.5);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem; font-weight: 800;
    color: var(--white); letter-spacing: -.02em;
    cursor: pointer;
}
.nav-logo span { color: var(--muted); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
    font-size: .8rem; font-weight: 500;
    letter-spacing: .04em; color: var(--muted);
    text-decoration: none; transition: color .2s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -3px; left: 0; width: 0; height: 1px;
    background: var(--white);
    transition: width .3s cubic-bezier(.25,.46,.45,.94);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.nav-active { color: var(--white); }
.nav-links a.nav-active::after { width: 100%; }

.nav-status {
    display: flex; align-items: center; gap: .5rem;
    font-size: .72rem; font-weight: 600; color: var(--green);
    background: rgba(74,222,128,.05);
    border: 1px solid rgba(74,222,128,.15);
    border-radius: 100px; padding: .4rem .9rem;
    letter-spacing: .02em;
}
.nav-status .status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

/* Mobile hamburger */
.nav-mobile-menu {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-mobile-menu span {
    width: 22px; height: 2px;
    background: var(--muted);
    border-radius: 2px;
    transition: all .25s ease;
    display: block;
}
.nav-mobile-menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-menu.open span:nth-child(2) { opacity: 0; }
.nav-mobile-menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed; top: 64px; left: 0; right: 0;
    z-index: 190; background: rgba(3,3,6,.96);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0;
    transform: translateY(-110%);
    transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-nav-link {
    padding: 1rem 6%; font-size: .95rem; font-weight: 500;
    color: var(--muted); text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color .2s, background .2s;
}
.mobile-nav-link:hover { color: var(--text); background: rgba(255,255,255,.02); }

/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
    position: relative; z-index: 10;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    padding: 0 6% 0 6%;
    padding-top: 64px;
    gap: 4rem;
}
.hero-left { padding-top: 2rem; padding-bottom: 2rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 2rem;
}
.eyebrow-line {
    width: 0; height: 1px; background: var(--muted); opacity: .6;
    animation: drawLine 1.2s .5s ease forwards;
}
@keyframes drawLine { from { width: 0 } to { width: 20px } }

.hero-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.2rem, 5.8vw, 6.2rem);
    font-weight: 800; line-height: .95;
    letter-spacing: -.04em; color: var(--white);
    margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .line span { display: block; }
.hero-name .line.highlight span {
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
/* Glitch */
.hero-name .glitch { position: relative; }
.hero-name .glitch::before, .hero-name .glitch::after {
    content: attr(data-glitch);
    position: absolute; top: 0; left: 0; width: 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; pointer-events: none;
}
.hero-name .glitch:hover::before {
    opacity: .8; animation: glitch-before .35s steps(2,end) forwards;
    color: #a78bfa; -webkit-text-fill-color: #a78bfa;
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}
.hero-name .glitch:hover::after {
    opacity: .6; animation: glitch-after .35s steps(2,end) forwards;
    color: #38bdf8; -webkit-text-fill-color: #38bdf8;
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
}
@keyframes glitch-before {
    0%  { transform: translate(-3px, 1px); }
    25% { transform: translate(3px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, -1px); }
    100%{ transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch-after {
    0%  { transform: translate(3px, -1px); }
    25% { transform: translate(-3px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, 1px); }
    100%{ transform: translate(0, 0); opacity: 0; }
}

.hero-bio {
    font-size: 1.05rem; color: var(--muted);
    line-height: 1.75; max-width: 580px;
    margin-bottom: 2.2rem;
}
.hero-bio strong { color: var(--text); font-weight: 600; }

/* Metrics */
.hero-metrics {
    display: flex; align-items: center; gap: 2.2rem;
    margin-bottom: 2.5rem;
}
.metric-item { display: flex; flex-direction: column; gap: .35rem; }
.metric-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem; font-weight: 700;
    color: var(--white); line-height: 1;
}
.metric-label {
    font-size: .75rem; font-weight: 500;
    letter-spacing: .05em; color: var(--muted);
    text-transform: uppercase;
}
.metric-divider { width: 1px; height: 32px; background: var(--border); }
.status-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(74,222,128,.06);
    border: 1px solid rgba(74,222,128,.15);
    border-radius: 100px; padding: .45rem 1rem;
}
.status-badge .status-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
.status-badge .status-text {
    font-size: .72rem; font-weight: 600; color: var(--green);
    letter-spacing: .05em; text-transform: uppercase;
}
@keyframes pulse-dot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.95); }
}

/* Chips */
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip {
    padding: .35rem .85rem;
    font-size: .7rem; font-weight: 500;
    letter-spacing: .06em; color: var(--muted);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: rgba(255,255,255,.01);
    transition: color .2s, border-color .2s, background .2s;
    position: relative; overflow: hidden; cursor: default;
}
.chip::after {
    content: ''; position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
    transition: left .5s ease; pointer-events: none;
}
.chip:hover::after { left: 150%; }
.chip:hover { color: var(--text); border-color: var(--border-hover); background: rgba(255,255,255,.03); }

/* CTA */
.hero-cta { display: flex; align-items: center; gap: 1.2rem; }
.btn-solid {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.8rem;
    background: var(--white); color: #030306;
    font-size: .82rem; font-weight: 600;
    letter-spacing: .05em; border: none; border-radius: var(--radius-sm);
    cursor: pointer; position: relative; overflow: hidden;
    transition: background .2s, transform .2s, box-shadow .2s;
    animation: breatheGlow 3s ease-in-out infinite;
}
@keyframes breatheGlow {
    0%,100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
    50%      { box-shadow: 0 0 28px rgba(255,255,255,.1), 0 0 60px rgba(124,106,247,.08); }
}
.btn-solid:hover { background: #e4e4e7; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,255,255,.12); }
.btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.8rem;
    background: transparent; color: var(--text);
    font-size: .82rem; font-weight: 500;
    letter-spacing: .05em;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.03); color: var(--white); }
.btn-air {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.7rem;
    color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .05em;
    border: 1px solid rgba(124,106,247,.45); border-radius: var(--radius-sm);
    cursor: pointer; position: relative; overflow: hidden;
    background: linear-gradient(120deg, rgba(124,106,247,.22), rgba(124,106,247,.06));
    transition: transform .2s, box-shadow .2s, border-color .2s;
    box-shadow: 0 0 0 rgba(124,106,247,0);
}
.btn-air::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(124,106,247,.5), transparent);
    transform: translateX(-120%); transition: transform .6s ease;
}
.btn-air:hover { transform: translateY(-1px); border-color: rgba(124,106,247,.9);
    box-shadow: 0 8px 30px rgba(124,106,247,.35); }
.btn-air:hover::before { transform: translateX(120%); }
.btn-air-icon { font-size: 1rem; line-height: 1; }

/* Profile card */
.hero-right {
    position: relative; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.profile-card {
    position: relative; width: 100%; max-width: 410px;
    aspect-ratio: 1/1.15; border-radius: 2.5rem;
    background: transparent; overflow: hidden;
    animation: floatBob 6s ease-in-out infinite;
}
.profile-card:hover { animation-play-state: paused; }
.profile-card-glow { display: none; }
.profile-card-inner {
    position: relative; width: 100%; height: 100%;
    overflow: hidden; background: transparent;
    display: flex; align-items: flex-end; justify-content: center;
    z-index: 2;
}
.profile-card-inner::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: 0; height: 35%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none; z-index: 3;
}
.profile-photo {
    height: 100%; width: 100%;
    object-fit: contain; object-position: bottom center;
    transform-origin: bottom center;
    filter: saturate(.85) contrast(1.02) brightness(.92) drop-shadow(0 15px 30px rgba(0,0,0,.5));
    transition: transform .6s cubic-bezier(.16,1,.3,1);
    z-index: 2;
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.1) 4%, rgba(0,0,0,.8) 16%, black 30%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,.1) 4%, rgba(0,0,0,.8) 16%, black 30%);
}
.profile-card:hover .profile-photo { transform: scale(1.03); }
@keyframes floatBob {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 2rem; left: 50%;
    transform: translateX(-50%); z-index: 50;
    display: flex; flex-direction: column; align-items: center;
}
.scroll-line {
    width: 1px; height: 40px;
    background: var(--border); position: relative; overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 1px; height: 100%; background: var(--white);
    animation: trackDown 2.2s ease-in-out infinite;
}
@keyframes trackDown { 0% { top: -100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ════════════════════════════════════════════════
   GLASS CARD (shared)
════════════════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--glass-shadow);
    padding: 1.75rem;
    position: relative; overflow: hidden;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}
.glass-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    pointer-events: none;
}
.glass-card:hover {
    border-color: rgba(124,106,247,.25);
    box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(124,106,247,.1), inset 0 1px 0 rgba(255,255,255,.07);
    transform: translateY(-2px);
}
.glass-card.in-view { animation: cardFadeUp .6s ease forwards; }
@keyframes cardFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ════════════════════════════════════════════════
   GITHUB STATS SECTION
════════════════════════════════════════════════ */
.github-stats-section { padding: 6rem 6%; position: relative; z-index: 10; }

.section-sub {
    font-size: .9rem; color: var(--muted); margin-top: -.5rem; margin-bottom: 3rem;
}
.inline-link {
    color: var(--accent); text-decoration: none; font-weight: 500;
    transition: color .2s;
}
.inline-link:hover { color: var(--white); }

/* Stat cards row */
.gh-stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin-bottom: 1.5rem;
}
.gh-stat-card {
    text-align: center; cursor: default;
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}
.gh-stat-card.gh-card-loaded { opacity: 1; transform: translateY(0); }
.gh-stat-icon {
    width: 36px; height: 36px; margin: 0 auto .9rem;
    color: var(--accent); opacity: .8;
}
.gh-stat-icon svg { width: 100%; height: 100%; }
.gh-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem; font-weight: 800;
    color: var(--white); line-height: 1;
    margin-bottom: .4rem;
}
.gh-stat-label {
    font-size: .72rem; font-weight: 500;
    letter-spacing: .08em; color: var(--muted);
    text-transform: uppercase;
}

/* Split row */
.gh-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.2rem; margin-bottom: 1.2rem;
}

/* Card header */
.gh-card-header {
    display: flex; align-items: center; gap: .55rem;
    font-size: .82rem; font-weight: 600;
    color: var(--text); margin-bottom: 1.4rem;
    letter-spacing: .02em;
}
.gh-card-icon { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.gh-card-icon svg { width: 100%; height: 100%; }

/* Language bars */
.gh-lang-bars { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1rem; }
.gh-lang-row {}
.gh-lang-meta {
    display: flex; align-items: center; gap: .55rem;
    margin-bottom: .3rem;
}
.gh-lang-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.gh-lang-dot.sm { width: 6px; height: 6px; }
.gh-lang-name { font-size: .8rem; color: var(--text); flex: 1; }
.gh-lang-pct {
    font-size: .75rem; color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
}
.gh-lang-track {
    height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.06); overflow: hidden;
}
.gh-lang-fill {
    height: 100%; border-radius: 4px; width: 0;
    animation: fillBar .8s ease forwards;
}
@keyframes fillBar { to { width: var(--target-width); } }

/* Rainbow strip */
.gh-lang-rainbow {
    display: flex; height: 6px; border-radius: 6px; overflow: hidden;
    gap: 1px; margin-top: -.4rem;
}
.gh-rainbow-seg { height: 100%; transition: flex .3s; cursor: default; }

/* Top repos */
.gh-top-repos { display: flex; flex-direction: column; gap: .6rem; }
.gh-repo-row {
    display: flex; flex-direction: column; gap: .35rem;
    padding: .85rem 1rem;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none; cursor: pointer;
    transition: background .2s, border-color .2s, transform .15s;
}
.gh-repo-row:hover {
    background: rgba(255,255,255,.045);
    border-color: var(--border-hover);
    transform: translateX(3px);
}
.gh-repo-info { display: flex; flex-direction: column; gap: .2rem; }
.gh-repo-name { font-size: .85rem; font-weight: 600; color: var(--accent); }
.gh-repo-desc {
    font-size: .78rem; color: var(--muted);
    line-height: 1.4; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 300px;
}
.gh-repo-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.gh-repo-lang { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--muted); }
.gh-repo-stat { font-size: .72rem; color: var(--muted); }

/* Heatmap */
.gh-heatmap-card { margin-bottom: 1.2rem; }
.gh-heatmap { overflow-x: auto; padding-bottom: .5rem; }
.gh-heatmap-loading {
    color: var(--muted); font-size: .82rem;
    padding: 1rem 0; text-align: center;
}
.gh-heatmap-grid {
    display: flex; gap: 3px;
    align-items: flex-start;
    min-width: max-content;
}
.gh-heatmap-day-labels {
    display: flex; flex-direction: column;
    gap: 3px; padding-top: 2px;
}
.gh-heatmap-day-labels span {
    height: 11px; font-size: .6rem;
    color: var(--muted); line-height: 11px;
    width: 26px; text-align: right;
    padding-right: 4px;
}
.gh-heatmap-week { display: flex; flex-direction: column; gap: 3px; }
.gh-cell {
    width: 11px; height: 11px; border-radius: 2px;
    background: var(--gh-lvl-0); cursor: default;
    transition: transform .1s;
}
.gh-cell[style*="--lvl:1"] { background: var(--gh-lvl-1); }
.gh-cell[style*="--lvl:2"] { background: var(--gh-lvl-2); }
.gh-cell[style*="--lvl:3"] { background: var(--gh-lvl-3); }
.gh-cell[style*="--lvl:4"] { background: var(--gh-lvl-4); box-shadow: 0 0 4px var(--accent-glow); }
.gh-cell:hover { transform: scale(1.4); z-index: 5; position: relative; }

.gh-month-labels {
    display: flex; gap: 3px;
    margin-top: .35rem; margin-left: 30px;
    min-width: max-content;
}
.gh-month-labels span {
    width: 11px; font-size: .62rem; color: var(--muted);
    text-align: center; white-space: nowrap;
}
.gh-heatmap-legend {
    display: flex; align-items: center; gap: .5rem;
    margin-top: 1rem; justify-content: flex-end;
    font-size: .7rem; color: var(--muted);
}
.gh-legend-cells { display: flex; gap: 3px; }

/* Commits */
.gh-commits-list { display: flex; flex-direction: column; gap: .5rem; }
.gh-commit-row {
    display: flex; align-items: center; gap: .85rem;
    padding: .7rem .85rem;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: background .2s, border-color .2s;
}
.gh-commit-row:hover { background: rgba(255,255,255,.04); border-color: var(--border-hover); }
.gh-commit-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
    box-shadow: 0 0 5px var(--accent-glow);
}
.gh-commit-info { flex: 1; min-width: 0; }
.gh-commit-msg {
    font-size: .82rem; color: var(--text);
    display: block; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    margin-bottom: .2rem;
}
.gh-commit-meta {
    display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
}
.gh-commit-repo {
    font-size: .7rem; color: var(--accent); font-weight: 500;
}
.gh-commit-sha {
    font-size: .68rem; color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255,255,255,.05);
    padding: 1px 5px; border-radius: 3px;
}
.gh-commit-time { font-size: .7rem; color: var(--muted); }
.gh-commit-link {
    color: var(--muted); padding: 4px;
    border-radius: 4px; transition: color .2s, background .2s;
    flex-shrink: 0;
}
.gh-commit-link:hover { color: var(--accent); background: var(--accent-dim); }

/* Skeletons */
.gh-skeleton-bar {
    height: 10px; border-radius: 4px; width: 100%;
    background: rgba(255,255,255,.06);
    animation: shimmer 1.5s ease-in-out infinite alternate;
}
@keyframes shimmer {
    from { opacity: .4; } to { opacity: .8; }
}
.gh-repo-skeleton {
    height: 58px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.04);
    animation: shimmer 1.5s ease-in-out infinite alternate;
}
.gh-commit-skeleton {
    height: 46px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.04);
    animation: shimmer 1.5s ease-in-out infinite alternate;
}
.gh-empty { color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem; }

/* ════════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
════════════════════════════════════════════════ */
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes rippleAnim { to { transform: scale(1); opacity: 0; } }

/* ════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(8,8,16,.9);
    backdrop-filter: blur(28px);
    display: flex; justify-content: center; align-items: center;
    z-index: 500; opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem; text-align: center;
    max-width: 380px; width: 90%;
    transform: translateY(16px);
    transition: transform .35s ease;
    position: relative; overflow: hidden;
}
.modal-box::after {
    content: ''; position: absolute; left: 0; right: 0; top: -5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124,106,247,.5), transparent);
    animation: scanline 2.5s linear infinite;
    pointer-events: none;
}
@keyframes scanline { 0% { top: -5%; } 100% { top: 105%; } }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-box h2 { font-family: 'Instrument Serif', serif; font-size: 1.7rem; font-weight: 400; margin-bottom: .6rem; color: var(--white); }
.modal-box p  { color: var(--muted); font-size: .88rem; margin-bottom: 1.8rem; line-height: 1.6; }
.modal-box input {
    width: 100%; padding: .85rem 1rem;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-family: 'Inter', sans-serif; font-size: .95rem;
    margin-bottom: 1rem; outline: none; transition: border-color .2s;
}
.modal-box input:focus { border-color: rgba(124,106,247,.6); }
.cta-button {
    width: 100%; padding: .85rem;
    background: var(--accent); color: #fff;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: .85rem;
    letter-spacing: .04em; border: none; border-radius: var(--radius-sm);
    cursor: pointer; transition: background .2s, box-shadow .2s;
}
.cta-button:hover { background: #9585fa; box-shadow: 0 6px 20px rgba(124,106,247,.35); }
.error { color: #f87171 !important; margin-top: .75rem; font-size: .82rem; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════════ */
.projects-section { padding: 7rem 6%; position: relative; z-index: 10; }
.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 400; margin-bottom: 2.5rem;
    color: var(--white); letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--muted); }

.projects-grid, .github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 1.2rem; margin-bottom: 4.5rem;
}
.project-card, .repo-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: border-color .2s, transform .25s, box-shadow .25s;
    cursor: pointer; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    backdrop-filter: blur(12px);
}
.project-card::before, .repo-card::before {
    content: ''; position: absolute; inset: -1px;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--mouse-x,0) var(--mouse-y,0), rgba(124,106,247,.1), transparent 50%);
    z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
}
.project-card:hover::before, .repo-card:hover::before { opacity: 1; }
.project-card > *, .repo-card > * { position: relative; z-index: 2; }
.project-card:hover, .repo-card:hover {
    border-color: rgba(124,106,247,.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 0 1px rgba(124,106,247,.12);
}
.project-icon { font-size: 1.6rem; margin-bottom: 1rem; display: inline-block; transition: transform .3s; }
.project-card:hover .project-icon { animation: iconBounce .6s cubic-bezier(.175,.885,.32,1.275) forwards; }
@keyframes iconBounce {
    0% { transform: scale(1) rotate(0); }
    30% { transform: scale(1.2) rotate(-10deg); }
    60% { transform: scale(1.1) rotate(10deg); }
    100%{ transform: scale(1.15) rotate(0); }
}
.project-card h3, .repo-card h3 {
    font-size: 1.05rem; font-weight: 600;
    margin-bottom: .6rem; color: var(--white);
}
.project-card p, .repo-card p {
    color: var(--muted); line-height: 1.7;
    margin-bottom: 1.4rem; flex-grow: 1; font-size: .875rem;
}
.project-link, .repo-link {
    color: var(--muted); text-decoration: none;
    font-size: .76rem; font-weight: 600;
    letter-spacing: .06em; margin-top: auto;
    transition: color .2s;
}
.project-link:hover, .repo-link:hover { color: var(--white); }

/* ════════════════════════════════════════════════
   CONTENT SECTIONS
════════════════════════════════════════════════ */
.content-section { padding: 6rem 6%; position: relative; z-index: 10; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.about-main { display: flex; flex-direction: column; gap: 1.5rem; }
.about-main p { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.about-main .lead-text { font-size: 1.25rem; line-height: 1.6; color: var(--text); font-weight: 500; }
.about-principles { display: flex; flex-direction: column; gap: 1.8rem; }
.principle-card {
    background: rgba(255,255,255,.01); border: 1px solid var(--border);
    border-left: 2px solid transparent;
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: border-color .3s, border-left-color .3s, background .3s, transform .3s;
}
.principle-card:hover {
    border-color: var(--border-hover);
    border-left-color: rgba(124,106,247,.6);
    background: rgba(255,255,255,.02);
    transform: translateY(-2px);
}
.principle-card h4 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; }
.principle-card p { font-size: .85rem; line-height: 1.6; color: var(--muted); }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.5rem; }
.stack-card {
    background: rgba(10,10,14,.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 2rem;
    backdrop-filter: blur(12px);
    transition: border-color .3s, transform .3s;
    position: relative; overflow: hidden;
    cursor: default;
}
.stack-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,106,247,0), rgba(124,106,247,.5), rgba(255,255,255,.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out; mask-composite: exclude;
    opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 0;
}
.stack-card:hover::after { opacity: 1; }
.stack-card:hover { border-color: rgba(124,106,247,.4); transform: translateY(-4px); }
.stack-card:hover .stack-icon { animation: iconBounce .6s cubic-bezier(.175,.885,.32,1.275) forwards; }
.stack-icon { font-size: 2rem; margin-bottom: 1.2rem; display: inline-block; transition: transform .3s; position: relative; z-index: 1; }
.stack-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: .8rem; position: relative; z-index: 1; }
.stack-card p  { color: var(--muted); font-size: .9rem; line-height: 1.6; position: relative; z-index: 1; }

/* Contact */
.contact-wrapper { max-width: 600px; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 1rem 1.2rem;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-family: 'Inter', sans-serif; font-size: .95rem;
    transition: border-color .3s, background .3s, box-shadow .3s; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: rgba(124,106,247,.55);
    background: rgba(124,106,247,.04);
    box-shadow: 0 0 0 3px rgba(124,106,247,.08);
}

/* Footer */
footer {
    padding: 4rem 6% 2rem; border-top: 1px solid var(--border);
    position: relative; z-index: 10; margin-top: 4rem;
}
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-socials { display: flex; gap: 2rem; margin-bottom: 2rem; }
.footer-socials a {
    color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
    transition: color .3s; position: relative;
}
.footer-socials a::after {
    content: ''; position: absolute; bottom: -2px; left: 50%;
    width: 0; height: 1px; background: var(--white);
    transform: translateX(-50%); transition: width .3s;
}
.footer-socials a:hover { color: var(--white); }
.footer-socials a:hover::after { width: 100%; }
.copyright { color: var(--muted); font-size: .8rem; opacity: .7; }

/* ════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════
   TYPEWRITER CURSOR
════════════════════════════════════════════════ */
.typewriter-cursor {
    display: inline-block; width: 2px; height: 1em;
    background: var(--white); margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ════════════════════════════════════════════════
   METRIC COUNTING GLOW
════════════════════════════════════════════════ */
.metric-num.counting { text-shadow: 0 0 20px rgba(255,255,255,.4); }

/* Local scan CSS (keep from original) */
.scan-prompt { display:flex;flex-direction:column;align-items:center;gap:1.2rem;padding:3rem 2rem;text-align:center;grid-column:1/-1; }
.scan-prompt-icon { font-size:2.8rem;animation:floatBob 4s ease-in-out infinite; }
.scan-prompt-desc { color:var(--muted);font-size:.9rem;line-height:1.75;max-width:440px; }
.scan-prompt-desc code { color:var(--text);background:rgba(255,255,255,.06);padding:2px 7px;border-radius:4px;font-size:.85em; }
.scan-status-line { color:var(--muted);font-size:.78rem;letter-spacing:.03em;min-height:1.2em;animation:pulseText 1.8s ease-in-out infinite; }
@keyframes pulseText { 0%,100%{opacity:1}50%{opacity:.5} }
.local-project-card { display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden; }
.proj-header { display:flex;align-items:flex-start;gap:.9rem;padding:1.4rem 1.4rem 1rem;border-bottom:1px solid var(--border); }
.proj-icon-wrap { font-size:1.6rem;flex-shrink:0;line-height:1;margin-top:2px; }
.proj-title-group h3 { font-size:1rem;font-weight:600;color:var(--white);margin-bottom:.25rem;word-break:break-all; }
.proj-meta { font-size:.72rem;color:var(--muted);letter-spacing:.02em;font-family:'JetBrains Mono',monospace;opacity:.8; }
.ftree-scroll { max-height:240px;overflow-y:auto;padding:.8rem 1.2rem;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.08) transparent; }
.ftree-row { display:flex;align-items:center;gap:.45rem;padding:.22rem 0;border-radius:4px;transition:background .15s; }
.ftree-row:hover { background:rgba(255,255,255,.03); }
.ftree-entry { background:rgba(124,106,247,.07);border-radius:5px;padding-left:6px !important;border-left:2px solid rgba(124,106,247,.5); }
.ftree-icon { font-size:.9rem;flex-shrink:0;width:1.1rem;text-align:center; }
.ftree-name { font-size:.78rem;color:var(--muted);font-family:'JetBrains Mono',monospace;flex-grow:1;word-break:break-all; }
.ftree-entry .ftree-name { color:var(--text);font-weight:600; }
.ftree-dirname { color:var(--text) !important;font-weight:500;opacity:.75; }
.ftree-badge { font-size:.6rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:1px 6px;border-radius:20px;flex-shrink:0;background:rgba(255,255,255,.06);color:var(--muted); }
.ftree-badge--entry { background:rgba(124,106,247,.2);color:#a78bfa;border:1px solid rgba(124,106,247,.3); }
.proj-footer { display:flex;flex-wrap:wrap;gap:.4rem;padding:.9rem 1.2rem;border-top:1px solid var(--border);margin-top:auto; }
.proj-tag { font-size:.65rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);background:rgba(255,255,255,.04);border:1px solid var(--border);border-radius:20px;padding:2px 9px; }

/* ════════════════════════════════════════════════
   RESPONSIVE — ≤900px
════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: calc(64px + 3rem); gap: 3rem; padding-bottom: 4rem; }
    .hero-right { order: -1; width: 100%; display: flex; justify-content: center; }
    .profile-card { max-width: 300px; }
    .hero-metrics { justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
    .hero-chips, .hero-cta { justify-content: center; }
    .hero-bio { margin: 0 auto 1.5rem; }
    .nav-links, .nav-status { display: none; }
    .nav-mobile-menu { display: flex; }
    .scroll-hint { display: none; }
    .gh-stat-cards { grid-template-columns: repeat(2,1fr); }
    .gh-split { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ════════════════════════════════════════════════
   SHOWREEL (second video, below)
════════════════════════════════════════════════ */
.showreel-section { padding-top: 5rem; padding-bottom: 5rem; }
.showreel-section .section-sub {
    color: rgba(255,255,255,0.6);
    margin: -0.4rem 0 2rem;
    font-size: .95rem;
}

.showreel-frame {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 40px 80px -28px rgba(0,0,0,0.7),
        0 0 0 1px rgba(124,92,255,0.08) inset;
    isolation: isolate;
}

.showreel-glow {
    position: absolute;
    inset: -40%;
    z-index: 0;
    background:
        radial-gradient(45% 60% at 30% 30%, rgba(124,92,255,0.35), transparent 60%),
        radial-gradient(50% 70% at 70% 70%, rgba(255,107,107,0.25), transparent 65%);
    filter: blur(40px);
    opacity: .55;
    animation: showreel-rotate 22s linear infinite;
    pointer-events: none;
}
@keyframes showreel-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.showreel-video {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.showreel-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255,255,255,0.65);
    z-index: 2;
    pointer-events: none;
    transition: border-color .3s ease, width .3s ease, height .3s ease;
}
.showreel-corner--tl { top: 12px;    left: 12px;    border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.showreel-corner--tr { top: 12px;    right: 12px;   border-left:  none; border-bottom: none; border-top-right-radius: 6px; }
.showreel-corner--bl { bottom: 12px; left: 12px;    border-right: none; border-top:    none; border-bottom-left-radius: 6px; }
.showreel-corner--br { bottom: 12px; right: 12px;   border-left:  none; border-top:    none; border-bottom-right-radius: 6px; }
.showreel-frame:hover .showreel-corner { width: 34px; height: 34px; border-color: rgba(124,92,255,0.85); }

.showreel-play {
    position: absolute;
    z-index: 3;
    inset: auto auto 22px 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.15rem .7rem .9rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, opacity .25s ease;
    box-shadow: 0 6px 24px -8px rgba(0,0,0,0.6);
}
.showreel-play svg { display: block; }
.showreel-play:hover { background: rgba(124,92,255,0.85); transform: translateX(-50%) translateY(-2px); }
.showreel-play.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }

@media (max-width: 900px) {
    .showreel-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .showreel-frame { border-radius: 16px; }
    .showreel-play { padding: .6rem 1rem; font-size: .78rem; }
    .showreel-corner { width: 18px; height: 18px; }
}

/* ════════════════════════════════════════════════
   BGM TOGGLE (floating)
════════════════════════════════════════════════ */
.bgm-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem .55rem .75rem;
    border-radius: 999px;
    background: rgba(10,10,18,0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.82);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease, transform .15s ease, color .2s ease, border-color .2s ease;
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
}
.bgm-toggle:hover {
    background: rgba(124,92,255,0.22);
    border-color: rgba(124,92,255,0.55);
    color: #fff;
    transform: translateY(-2px);
}
.bgm-toggle.is-playing {
    background: linear-gradient(135deg, rgba(124,92,255,0.45), rgba(255,107,107,0.35));
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.bgm-label { display: inline-block; }
.bgm-wave  {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-left: 2px;
}
.bgm-wave span {
    display: inline-block;
    width: 2px;
    background: currentColor;
    border-radius: 1px;
    height: 4px;
    opacity: .35;
    transition: opacity .2s ease;
}
.bgm-toggle.is-playing .bgm-wave span {
    opacity: 1;
    animation: bgm-wave 1.05s ease-in-out infinite;
}
.bgm-toggle.is-playing .bgm-wave span:nth-child(2) { animation-delay: .15s; }
.bgm-toggle.is-playing .bgm-wave span:nth-child(3) { animation-delay: .3s;  }
.bgm-toggle.is-playing .bgm-wave span:nth-child(4) { animation-delay: .45s; }
@keyframes bgm-wave {
    0%, 100% { height: 4px; }
    50%      { height: 12px; }
}

@media (max-width: 600px) {
    .bgm-toggle { right: 12px; bottom: 12px; padding: .45rem .7rem .45rem .6rem; }
    .bgm-label  { display: none; }
}

/* ════════════════════════════════════════════════
   CONTACT FORM STATUS
════════════════════════════════════════════════ */
.contact-status {
    margin: .25rem 0 0;
    font-size: .9rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.65);
    min-height: 1.2em;
    transition: color .2s ease;
}
.contact-status.is-pending { color: #c9bdff; }
.contact-status.is-success {
    color: #6effb1;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: rgba(110,255,177,0.08);
    border: 1px solid rgba(110,255,177,0.25);
}
.contact-status.is-error {
    color: #ff8a8a;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: rgba(255,107,107,0.08);
    border: 1px solid rgba(255,107,107,0.25);
}

#contact-submit-btn[disabled] {
    opacity: .65;
    cursor: progress;
}

/* ════════════════════════════════════════════════
   ANNOUNCEMENT PANEL
════════════════════════════════════════════════ */
.announcement-panel {
    position: relative;
    margin: 2.5rem auto 3rem;
    padding: 0 2rem;
    max-width: 1280px;
    z-index: 5;
    animation: announcement-rise .7s cubic-bezier(.2,.7,.2,1) both;
    scroll-margin-top: 80px;
}
.announcement-panel.is-hidden { display: none; }

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

.announcement-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    align-items: center;
    padding: 1.6rem 1.8rem;
    border-radius: 22px;
    background:
        radial-gradient(120% 180% at 0% 0%, rgba(124,92,255,0.18), transparent 55%),
        radial-gradient(120% 180% at 100% 100%, rgba(255,107,107,0.12), transparent 55%),
        rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow:
        0 30px 60px -20px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}

.announcement-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,92,255,0.55), transparent 35%, rgba(255,107,107,0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .8;
}

.announcement-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
    z-index: 2;
}
.announcement-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    transform: rotate(90deg);
}

.announcement-meta { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }

.announcement-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    align-self: flex-start;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: rgba(124,92,255,0.14);
    border: 1px solid rgba(124,92,255,0.35);
    color: #c9bdff;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.announcement-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7c5cff;
    box-shadow: 0 0 0 0 rgba(124,92,255,0.7);
    animation: announcement-pulse 1.8s ease-out infinite;
}
@keyframes announcement-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(124,92,255,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(124,92,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(124,92,255,0); }
}

.announcement-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.announcement-text {
    margin: 0;
    color: rgba(255,255,255,0.65);
    font-size: .92rem;
    line-height: 1.55;
    max-width: 46ch;
}

.announcement-video-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px -16px rgba(0,0,0,0.6);
}

.announcement-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.announcement-unmute {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .75rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    cursor: pointer;
    z-index: 2;
    transition: transform .15s ease, background .2s ease;
    animation: announcement-unmute-pulse 2.6s ease-in-out infinite;
}
.announcement-unmute:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-1px);
}
@keyframes announcement-unmute-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
    50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

@media (max-width: 900px) {
    .announcement-panel { padding: 0 1.25rem; margin-top: 80px; }
    .announcement-inner { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.3rem 1.3rem 1.4rem; }
    .announcement-title { font-size: 1.35rem; }
}

@media (max-width: 480px) {
    .announcement-panel { padding: 0 1rem; margin-top: 70px; }
    .announcement-inner { padding: 1.1rem 1rem 1.2rem; border-radius: 18px; }
    .announcement-title { font-size: 1.2rem; }
    .announcement-text { font-size: .85rem; }
    .announcement-tag { font-size: .6rem; }
}

/* ════════════════════════════════════════════════
   RESPONSIVE — ≤480px
════════════════════════════════════════════════ */
@media (max-width: 480px) {
    html { font-size: 14px; }
    nav { padding: 0 1rem; height: 50px; }
    .nav-logo { font-size: 1rem; }
    #scroll-progress { top: 50px; }
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 1rem 2.5rem; gap: 1.5rem; text-align: center; }
    .hero-right { order: -1; display: flex; justify-content: center; }
    .hero-left { padding: 0; }
    .hero-name { font-size: 2.4rem; line-height: 1; }
    .eyebrow { font-size: .6rem; letter-spacing: .1em; margin-bottom: 1rem; justify-content: center; }
    .hero-bio { font-size: .85rem; }
    .profile-card { width: 180px; height: 210px; max-width: 180px; }
    .hero-metrics { gap: .8rem 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.2rem; }
    .metric-num { font-size: 1.4rem; }
    .metric-label { font-size: .6rem; }
    .metric-divider { display: none; }
    .hero-chips { gap: .4rem; justify-content: center; }
    .chip { font-size: .62rem; padding: .28rem .65rem; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: .6rem; width: 100%; }
    .btn-solid, .btn-outline, .btn-air { width: 100%; justify-content: center; }
    .scroll-hint { display: none; }
    .content-section { padding: 3rem 1rem; }
    .github-stats-section { padding: 3rem 1rem; }
    .gh-stat-cards { grid-template-columns: repeat(2,1fr); gap: .7rem; }
    .gh-stat-value { font-size: 1.6rem; }
    .gh-split { grid-template-columns: 1fr; }
    .section-title { font-size: 1.7rem; }
    .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .stack-grid { grid-template-columns: 1fr; gap: .8rem; }
    .projects-grid { grid-template-columns: 1fr; gap: .8rem; }
    .github-grid { grid-template-columns: 1fr; }
    footer { padding: 1.8rem 1rem; }
    .footer-socials { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .modal-box { padding: 1.5rem; margin: 1rem; width: calc(100% - 2rem); }
    #cursor, #cursor-ring { display: none !important; }
}

/* Tablet 481-768 */
@media (min-width: 481px) and (max-width: 768px) {
    html { font-size: 15px; }
    .hero { padding-left: 2rem; padding-right: 2rem; }
    .content-section { padding: 4rem 2rem; }
    .github-stats-section { padding: 4rem 2rem; }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .hero-name { font-size: 3rem; }
}
