/* ═══════════════════════════════════════════════
   MELANY JABANIAN — PORTFOLIO
   Dark · Engineered · Security-forward
   Fonts: Space Grotesk (display) + DM Mono (code) + Instrument Sans (body)
═══════════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── SKIP LINK (accessibility) ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: #080c12;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:root {
    --bg:           #080c12;
    --bg-2:         #0d1117;
    --bg-3:         #111820;
    --surface:      #141c26;
    --surface-2:    #1a2332;
    --border:       rgba(255,255,255,0.07);
    --border-glow:  rgba(var(--accent-rgb), 0.25);

    --text:         #e8edf5;
    --text-2:       #8a9ab5;
    --text-3:       #4a5a70;

    --accent:       #00d4b4;
    --accent-rgb:   0, 212, 180;
    --accent-dim:   rgba(var(--accent-rgb), 0.12);
    --accent-2:     #7c6af5;
    --accent-2-dim: rgba(124,106,245,0.12);
    --danger:       #f05d78;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Instrument Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;

    --radius:       12px;
    --radius-lg:    20px;
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow:       0 4px 32px rgba(0,0,0,0.4);
    --shadow-lg:    0 16px 64px rgba(0,0,0,0.6);
    --nav-blur-bg:  rgba(8,12,18,0.85);
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
    --bg:           #f4f6fb;
    --bg-2:         #eaecf4;
    --bg-3:         #dfe2ee;
    --surface:      #ffffff;
    --surface-2:    #f0f2fa;
    --border:       rgba(0,0,0,0.08);
    --border-glow:  rgba(var(--accent-rgb), 0.30);

    --text:         #0d1117;
    --text-2:       #475569;
    --text-3:       #94a3b8;

    --shadow:       0 4px 32px rgba(0,0,0,0.08);
    --shadow-lg:    0 16px 64px rgba(0,0,0,0.12);
    --nav-blur-bg:  rgba(244,246,251,0.92);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ── NOISE TEXTURE ── */
.noise {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    transition: opacity 0.3s ease;
}
[data-theme="light"] .noise { opacity: 0.012; }

/* ── UTILITY ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.accent { color: var(--accent); }

.section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 40px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.section-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 600;
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.3); }

.btn-ghost {
    display: inline-flex; align-items: center;
    padding: 13px 28px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════
   NAV — CLEAN REWRITE
══════════════════════════════════ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 40px;
    transition: background 0.3s, border-color 0.3s, padding 0.3s;
}
.nav.scrolled {
    background: var(--nav-blur-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
}
.nav.menu-open,
.nav.menu-open.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.4rem;
    color: var(--text); text-decoration: none;
    position: relative; z-index: 300;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links { list-style: none; display: flex; gap: 36px; }
.nli-orb, .nli-line, .nli-label { display: none; }

.nav-links a {
    font-family: var(--font-mono); font-size: 0.82rem;
    color: var(--text-2); text-decoration: none;
    letter-spacing: 0.05em; transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 6px; position: relative; z-index: 300; }

.theme-toggle, .accent-btn {
    width: 36px; height: 36px; background: none;
    border: 1px solid var(--border); border-radius: 8px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-2); transition: border-color 0.2s, color 0.2s, background 0.2s;
    padding: 0; flex-shrink: 0;
}
.theme-toggle:hover, .accent-btn:hover {
    border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}
.theme-toggle svg { width: 15px; height: 15px; pointer-events: none; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

.accent-preview {
    width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
    display: block; box-shadow: 0 0 0 2px rgba(var(--accent-rgb),0.35);
    pointer-events: none;
}
.accent-picker-wrap { position: relative; }
.accent-panel {
    position: absolute; top: calc(100% + 10px); right: 0; width: 186px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 0.18s, transform 0.18s; z-index: 1000;
}
.accent-panel.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.accent-panel-label {
    font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.accent-swatches { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; margin-bottom: 12px; }
.accent-swatch {
    aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; background: var(--c,#ccc);
    transition: transform 0.15s, border-color 0.15s; padding: 0; outline: none;
}
.accent-swatch:hover { transform: scale(1.15); }
.accent-swatch.active { border-color: var(--text); transform: scale(1.05); }
.accent-custom-wrap {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3);
    cursor: pointer; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px;
}
#accentCustom {
    width: 28px; height: 22px; border: 1px solid var(--border);
    border-radius: 4px; cursor: pointer; padding: 0 2px;
    background: var(--bg-3); margin-left: auto;
}

/* Hamburger */
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
    position: relative; z-index: 300;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s, background 0.25s;
}
.nav.menu-open .nav-toggle span   { background: var(--accent); }
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════
   MOBILE NAV DRAWER
══════════════════════════════════ */
@media (max-width: 640px) {
    .nav { padding: 16px 20px; }
    .nav-actions { order: -1; }
    .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
    .nav-toggle { display: flex; margin-left: auto; }

    /* The drawer — always in DOM, always on GPU, slides from left */
    .nav-links {
        list-style: none;
        /* always flex so browser never has to compute layout on open */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        /* cover the whole screen */
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 200;
        background: var(--bg);
        padding: 80px 36px 60px;
        /* start off-screen LEFT — only transform changes, never layout */
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        /* on own GPU layer from the start */
        will-change: transform;
        /* inaccessible when hidden */
        pointer-events: none;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0s linear 0.3s;
    }
    .nav-links.open {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                    visibility 0s linear 0s;
    }

    /* Link style inside drawer */
    .nav-links a {
        display: flex; align-items: center; gap: 18px;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        color: var(--text);
        font-family: var(--font-display);
        font-size: 1.5rem; font-weight: 600;
        letter-spacing: -0.01em;
        transition: color 0.2s;
        text-decoration: none;
    }
    .nav-links a::after { display: none; }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-links a:hover { color: var(--accent); }

    /* Stagger items in */
    .nav-links.open li {
        opacity: 0; transform: translateX(-16px);
        animation: drawerItem 0.28s ease forwards;
    }
    .nav-links.open li:nth-child(1) { animation-delay: 0.12s; }
    .nav-links.open li:nth-child(2) { animation-delay: 0.17s; }
    .nav-links.open li:nth-child(3) { animation-delay: 0.22s; }
    .nav-links.open li:nth-child(4) { animation-delay: 0.27s; }
    .nav-links.open li:nth-child(5) { animation-delay: 0.32s; }
    @keyframes drawerItem { to { opacity: 1; transform: none; } }

    /* Orbs visible only inside open drawer */
    .nav-links.open .nli-orb  { display: flex; }
    .nav-links.open .nli-label { display: block; flex: 1; }
    .nav-links.open .nli-line  { display: block; }

    .nli-orb {
        flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
        align-items: center; justify-content: center;
    }
    .nli-orb svg { width: 22px; height: 22px; }
    .nli-orb--about   { background:rgba(0,212,180,0.12);  border:1px solid rgba(0,212,180,0.35);  color:#00d4b4; }
    .nli-orb--skills  { background:rgba(96,165,250,0.12); border:1px solid rgba(96,165,250,0.35); color:#60a5fa; }
    .nli-orb--work    { background:rgba(124,106,245,0.12);border:1px solid rgba(124,106,245,0.35);color:#7c6af5; }
    .nli-orb--quiz    { background:rgba(99,60,180,0.14);  border:1px solid rgba(99,60,180,0.35);  color:#a78bfa; }
    .nli-orb--contact { background:rgba(244,63,138,0.12); border:1px solid rgba(244,63,138,0.35); color:#f43f8a; }
    .nli-line { width: 28px; height: 1px; background: rgba(255,255,255,0.15); flex-shrink: 0; }
}


/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative;
    padding: 120px 40px 80px;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(var(--accent-rgb),0.06) 0%, transparent 60%),
                radial-gradient(ellipse 60% 80% at 20% 80%, rgba(124,106,245,0.05) 0%, transparent 60%),
                var(--bg);
    transition: background 0.3s ease;
}

.hero-grid-lines {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    transition: background-image 0.3s ease;
}
[data-theme="light"] .hero-grid-lines {
    background-image:
        linear-gradient(rgba(0,0,0,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.045) 1px, transparent 1px);
}

.hero > * { position: relative; z-index: 1; }

.hero { display: flex; gap: 60px; align-items: center; max-width: 1160px; margin: 0 auto; width: 100%; }
.hero-content { flex: 1; }
.hero-visual { flex: 0 0 420px; display: flex; align-items: center; justify-content: center; position: relative; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(var(--accent-rgb), 0.10);
    border: 1px solid rgba(var(--accent-rgb), 0.20);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 28px;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}
.hero-name .line-reveal {
    display: block;
    animation: slideUp 0.8s cubic-bezier(0.4,0,0.2,1) both;
}
.hero-name .delay-1 { animation-delay: 0.12s; color: var(--accent); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-2);
    margin-bottom: 20px;
    font-weight: 500;
}
.tagline-typed { color: var(--accent); font-weight: 700; }
.tagline-cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
    color: var(--text-2);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.8;
}
.hero-sub em { color: var(--accent); font-style: normal; font-weight: 600; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-scroll {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.scroll-line {
    width: 40px; height: 1px;
    background: linear-gradient(90deg, var(--text-3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Hero Visual */
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 6s ease-in-out infinite;
}
.orb-1 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(var(--accent-rgb),0.2), transparent 70%);
    top: -40px; right: -40px;
}
.orb-2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(124,106,245,0.2), transparent 70%);
    bottom: 20px; left: 20px;
    animation-delay: -3s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-12px, -16px); }
}

.hero-code-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--accent-rgb),0.05);
    width: 100%;
    max-width: 380px;
    animation: cardFloat 5s ease-in-out infinite;
    position: relative; z-index: 1;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

.code-card-header {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.red    { background: #f05d78; }
.dot.yellow { background: #f5c842; }
.dot.green  { background: #42f587; }
.code-filename {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
    margin-left: 8px;
}
.code-card-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    overflow: hidden;
    background: #0d1117;
}
.c-keyword { color: #f05d78; }
.c-class    { color: #f5c842; }
.c-fn       { color: var(--accent-2); }
.c-name     { color: var(--accent); }
.c-type     { color: #7ee8fa; }
.c-str      { color: #b8f5a0; }
.c-comment  { color: #4a5a70; }

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
.about { background: var(--bg-2); }

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}

/* ── Image column ── */
.about-image-wrap { position: relative; }

.about-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
}
.about-photo-placeholder img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.about-photo-placeholder.no-photo img { display: none; }
.placeholder-inner {
    position: absolute; inset: 0;
    display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    color: var(--text-3);
    font-size: 0.85rem;
    text-align: center;
}
.about-photo-placeholder.no-photo .placeholder-inner { display: flex; }
.placeholder-inner span { font-size: 2rem; }

.about-photo-decoration {
    position: absolute;
    width: 100%; height: 100%;
    top: 12px; left: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    z-index: -1;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--border);
}
.stat {
    background: var(--surface);
    padding: 18px 12px;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-3);
    margin-top: 2px;
    line-height: 1.3;
}

/* ── Text area with neon reveal ── */
.about-text-wrap {
    position: relative;
    padding-right: 88px;
    overflow: visible;
}

/* dark overlay — same color as section bg so edges are invisible */
.about-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-2);
    opacity: 0.95;
    z-index: 2;
    pointer-events: none;
    transition: opacity 1.4s ease;
}
.about-text-wrap.lit .about-overlay { opacity: 0; }

/* fast transitions during flicker sequence */
.about-text-wrap.flicker-mode .about-overlay    { transition: opacity 0.07s ease; }
.about-text-wrap.flicker-mode .neon-body        { transition: background 0.06s, box-shadow 0.06s; }
.about-text-wrap.flicker-mode .neon-inner       { transition: background 0.06s; }
.about-text-wrap.flicker-mode .about-tube-glow  { transition: opacity 0.06s; }

/* ambient teal bloom from tube spreading left */
.about-tube-glow {
    position: absolute;
    top: -40px; right: -10px; bottom: -40px;
    width: 80%;
    background: radial-gradient(ellipse at right center,
        rgba(var(--accent-rgb), 0.18) 0%,
        rgba(var(--accent-rgb), 0.07) 35%,
        transparent 70%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s ease;
}
.about-text-wrap.lit .about-tube-glow { opacity: 1; }

/* text content sits above overlay */
.about-text { position: relative; z-index: 1; }

.about-bio {
    color: var(--text-2);
    font-size: 1.02rem;
    margin-bottom: 18px;
    line-height: 1.85;
}
.about-bio strong { color: var(--text); font-weight: 600; }

.about-links { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.about-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.about-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── Neon tube — far right edge, full section height ── */
.about-neon-tube {
    position: absolute;
    right: 18px;
    top: -8px;
    bottom: 80px;
    width: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    pointer-events: none;
}

.neon-cap {
    flex-shrink: 0;
    width: 18px;
    height: 28px;
    background: linear-gradient(180deg, #252d3d 0%, #0f1420 100%);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.12);
}
.neon-cap--top { border-radius: 5px 5px 2px 2px; }
.neon-cap--bot { border-radius: 2px 2px 5px 5px; }

.neon-body {
    flex: 1;
    width: 8px;
    background: rgba(var(--accent-rgb), 0.05);
    border-radius: 3px;
    overflow: visible;
    position: relative;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}
.about-text-wrap.lit .neon-body {
    background: #c8f8f1;
    box-shadow:
        0 0 4px #fff,
        0 0 10px rgba(var(--accent-rgb), 1),
        0 0 25px rgba(var(--accent-rgb), 1),
        0 0 55px rgba(var(--accent-rgb), 0.8),
        0 0 110px rgba(var(--accent-rgb), 0.5),
        0 0 200px rgba(var(--accent-rgb), 0.25);
    animation: neonFlicker 0.7s ease forwards;
}

.neon-inner {
    width: 4px;
    height: 100%;
    margin: 0 auto;
    background: transparent;
    border-radius: 3px;
    transition: background 0.3s ease 0.4s;
}
.about-text-wrap.lit .neon-inner { background: rgba(255,255,255,0.95); }

@keyframes neonFlicker {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    11%  { opacity: 0.15; }
    17%  { opacity: 1; }
    21%  { opacity: 0.4; }
    27%  { opacity: 1; }
    33%  { opacity: 0.75; }
    40%  { opacity: 1; }
    100% { opacity: 1; }
}

/* ── Power button + hint ── */
.about-power-wrap {
    position: absolute;
    bottom: 0;
    right: 6px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.about-power-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-3);
    font-style: italic;
    line-height: 1.5;
    text-align: right;
    transition: opacity 0.5s ease;
}
.about-text-wrap.lit .about-power-hint { opacity: 0; pointer-events: none; }

.hint-arrow {
    width: 34px;
    height: 16px;
    color: var(--text-3);
    margin-top: 3px;
    align-self: flex-end;
}

.about-power-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1.5px solid rgba(var(--accent-rgb), 0.4);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.18);
    flex-shrink: 0;
}
.about-power-btn:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.65);
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.4);
}
.about-text-wrap.lit .about-power-btn {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--accent);
    box-shadow:
        0 0 20px rgba(var(--accent-rgb), 0.6),
        0 0 50px rgba(var(--accent-rgb), 0.25),
        inset 0 0 14px rgba(var(--accent-rgb), 0.12);
}

/* ══════════════════════════════════
   SKILLS — MARQUEE (desktop) + ORBS (mobile)
══════════════════════════════════ */
.skills {
    background: var(--bg);
    position: relative;
    box-shadow: inset 0 32px 48px -12px rgba(0,0,0,0.55), inset 0 -32px 48px -12px rgba(0,0,0,0.55);
    overflow: hidden;
    padding-bottom: 80px;
}

/* ── Ambient background ── */
.sk-bg { position: absolute; inset: 0; pointer-events: none; }
.sk-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.sk-bg-orb-1 {
    width: 480px; height: 480px;
    top: -10%; left: -8%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.055), transparent 70%);
}
.sk-bg-orb-2 {
    width: 360px; height: 360px;
    bottom: 0; right: -5%;
    background: radial-gradient(circle, rgba(124,106,245,0.05), transparent 70%);
}
.sk-bg-orb-3 {
    width: 280px; height: 280px;
    top: 40%; left: 50%;
    background: radial-gradient(circle, rgba(96,165,250,0.035), transparent 70%);
}

/* ── Desktop/Mobile visibility ── */
.sk-desktop { display: block; }
.sk-mobile  { display: none; }

/* ── Desktop intro ── */
.sk-intro {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-top: 8px;
    margin-bottom: 52px;
}

/* ── Marquee rows ── */
.sk-rows-container { overflow: hidden; }

.sk-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sk-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    transition: background 0.3s ease;
}
.sk-row:last-child { border-bottom: 1px solid var(--border); }
.sk-row:hover { background: rgba(255,255,255,0.012); }
.sk-row:hover .sk-track { animation-play-state: paused; }

/* category label */
.sk-label {
    flex-shrink: 0;
    width: 200px;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sk-label-icon {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.sk-label-name {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
}
.sk-label-fe   .sk-label-icon { color: var(--accent); }
.sk-label-be   .sk-label-icon { color: #60a5fa; }
.sk-label-tools .sk-label-icon { color: var(--accent-2); }
.sk-label-sec  .sk-label-icon { color: #e879f9; }

/* scrolling track */
.sk-track-wrap {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

@keyframes sk-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes sk-scroll-right {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.sk-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    animation: sk-scroll-left linear infinite;
    will-change: transform;
}
.sk-track-rev { animation-name: sk-scroll-right; }

/* ── Skill pills ── */
.sp {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.sp:hover {
    transform: translateY(-3px);
}

/* Frontend — teal */
.sp-fe {
    background: rgba(var(--accent-rgb), 0.07);
    border-color: rgba(var(--accent-rgb), 0.2);
    color: rgba(var(--accent-rgb), 0.85);
    color: var(--accent);
}
.sp-fe.hi {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.35);
}
.sp-fe:hover {
    background: rgba(var(--accent-rgb), 0.18);
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.22);
}

/* Backend — blue */
.sp-be {
    background: rgba(96,165,250,0.07);
    border-color: rgba(96,165,250,0.2);
    color: #60a5fa;
}
.sp-be.hi {
    background: rgba(96,165,250,0.13);
    border-color: rgba(96,165,250,0.35);
}
.sp-be:hover {
    background: rgba(96,165,250,0.18);
    border-color: rgba(96,165,250,0.55);
    box-shadow: 0 0 18px rgba(96,165,250,0.2);
}

/* Tools — purple */
.sp-tools {
    background: rgba(124,106,245,0.07);
    border-color: rgba(124,106,245,0.2);
    color: var(--accent-2);
}
.sp-tools.hi {
    background: rgba(124,106,245,0.13);
    border-color: rgba(124,106,245,0.35);
}
.sp-tools:hover {
    background: rgba(124,106,245,0.18);
    border-color: rgba(124,106,245,0.55);
    box-shadow: 0 0 18px rgba(124,106,245,0.2);
}

/* Security — magenta */
.sp-sec {
    background: rgba(232,121,249,0.07);
    border-color: rgba(232,121,249,0.2);
    color: #e879f9;
}
.sp-sec.hi {
    background: rgba(232,121,249,0.13);
    border-color: rgba(232,121,249,0.35);
}
.sp-sec:hover {
    background: rgba(232,121,249,0.18);
    border-color: rgba(232,121,249,0.55);
    box-shadow: 0 0 18px rgba(232,121,249,0.2);
}

/* ── Light mode overrides ── */
[data-theme="light"] .sp-fe   { background: rgba(var(--accent-rgb),0.1); }
[data-theme="light"] .sp-be   { background: rgba(96,165,250,0.1); }
[data-theme="light"] .sp-tools { background: rgba(124,106,245,0.1); }
[data-theme="light"] .sp-sec  { background: rgba(232,121,249,0.1); }

/* ── MOBILE: Orbs ── */
.sk-orb-hint {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-top: 6px;
    margin-bottom: 44px;
}

.sk-orbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 320px;
    margin: 0 auto;
    padding: 0 0 8px;
}

@keyframes orb-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

.sk-orb {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    position: relative;
    animation: orb-float ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sk-orb:active { transform: scale(0.93); }

.orb-icon {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}
.orb-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1.3;
}

/* orb colours + sizes */
.sk-orb-fe {
    width: 140px; height: 140px;
    background: radial-gradient(circle at 38% 35%, rgba(var(--accent-rgb),0.35) 0%, rgba(var(--accent-rgb),0.06) 60%, transparent 100%);
    border: 1.5px solid rgba(var(--accent-rgb),0.4);
    box-shadow: 0 0 32px rgba(var(--accent-rgb),0.18), 0 0 70px rgba(var(--accent-rgb),0.07), inset 0 0 28px rgba(var(--accent-rgb),0.06);
    color: var(--accent);
    animation-duration: 4s;
    animation-delay: 0s;
    margin-top: 20px; /* offset so orbs look staggered */
}
.sk-orb-be {
    width: 118px; height: 118px;
    background: radial-gradient(circle at 38% 35%, rgba(96,165,250,0.3) 0%, rgba(96,165,250,0.06) 60%, transparent 100%);
    border: 1.5px solid rgba(96,165,250,0.38);
    box-shadow: 0 0 28px rgba(96,165,250,0.16), 0 0 60px rgba(96,165,250,0.06), inset 0 0 22px rgba(96,165,250,0.05);
    color: #60a5fa;
    animation-duration: 4.8s;
    animation-delay: 0.6s;
}
.sk-orb-tools {
    width: 118px; height: 118px;
    background: radial-gradient(circle at 38% 35%, rgba(124,106,245,0.3) 0%, rgba(124,106,245,0.06) 60%, transparent 100%);
    border: 1.5px solid rgba(124,106,245,0.38);
    box-shadow: 0 0 28px rgba(124,106,245,0.16), 0 0 60px rgba(124,106,245,0.06), inset 0 0 22px rgba(124,106,245,0.05);
    color: var(--accent-2);
    animation-duration: 5.2s;
    animation-delay: 1.2s;
    margin-top: 16px;
}
.sk-orb-sec {
    width: 106px; height: 106px;
    background: radial-gradient(circle at 38% 35%, rgba(232,121,249,0.28) 0%, rgba(232,121,249,0.06) 60%, transparent 100%);
    border: 1.5px solid rgba(232,121,249,0.36);
    box-shadow: 0 0 26px rgba(232,121,249,0.15), 0 0 55px rgba(232,121,249,0.06), inset 0 0 20px rgba(232,121,249,0.05);
    color: #e879f9;
    animation-duration: 4.4s;
    animation-delay: 1.8s;
}

.sk-tap-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-3);
    margin-top: 36px;
    letter-spacing: 0.06em;
}

/* ── MOBILE: Skills Panel ── */
.sk-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}
.sk-panel.open { transform: translateX(0); }

.sk-panel-body {
    flex: 1;
    padding: 28px 28px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 0;
}

.sk-panel-back {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 100px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    margin-bottom: 36px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.sk-panel-back:hover {
    background: rgba(var(--accent-rgb), 0.15);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.2);
}

.skp-orb-icon {
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.skp-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}

.skp-desc {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 36px;
}

.skp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@keyframes pill-appear {
    from { opacity: 0; transform: translateY(14px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.skp-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    border: 1px solid;
    opacity: 0;
    animation: pill-appear 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .sk-track   { animation-play-state: paused !important; }
    .sk-orb     { animation: none !important; }
    .skp-pill   { animation: none !important; opacity: 1 !important; }
}

/* ══════════════════════════════════
   PROJECTS
══════════════════════════════════ */
.projects { background: var(--bg-2); }

.projects-note {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 48px;
    padding: 12px 16px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.07), 0 1px 6px rgba(0,0,0,0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.18), 0 20px 48px rgba(0,0,0,0.4);
}
[data-theme="light"] .project-card:hover {
    box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.14), 0 20px 48px rgba(0,0,0,0.1);
}

[data-theme="light"] .skills,
[data-theme="light"] .contact {
    box-shadow: inset 0 32px 48px -12px rgba(0,0,0,0.08), inset 0 -32px 48px -12px rgba(0,0,0,0.08);
}

.project-img-wrap { position: relative; overflow: hidden; }
.project-img-placeholder {
    height: 200px;
    background: var(--ph-color, var(--bg-3));
    display: flex; align-items: flex-end;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.project-img-placeholder img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.ph-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    position: relative; z-index: 1;
}
.project-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}
.project-visit {
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-family: var(--font-display);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}
.project-visit:hover { filter: brightness(1.12); transform: scale(1.05); }

.project-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.project-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.project-desc {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 14px;
}
.project-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: auto;
}
.project-tags span {
    padding: 3px 10px;
    background: var(--bg-3);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-3);
}

.projects-more {
    text-align: center;
    color: var(--text-3);
    font-size: 0.9rem;
}
.projects-more p { margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.8rem; }
.agency-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.agency-links a {
    color: var(--accent-2);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: color var(--transition);
}
.agency-links a:hover { color: var(--accent); }

/* ══════════════════════════════════
   QUIZ
══════════════════════════════════ */
.quiz-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.quiz-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(124,106,245,0.07), transparent 70%);
}
.binary-rain-canvas {
    position: absolute;
    right: 0; top: 0;
    width: 48%; height: 100%;
    pointer-events: none;
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 25%, black 55%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 25%, black 55%);
}
@media (max-width: 900px) {
    .binary-rain-canvas {
        width: 100%;
        right: auto; left: 0;
        opacity: 0.07;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

.quiz-intro {
    color: var(--text-2);
    max-width: 600px;
    margin-bottom: 48px;
    font-size: 1.02rem;
}

.quiz-card {
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative; z-index: 1;
}

.quiz-progress {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
}
.quiz-progress-bar {
    flex: 1; height: 4px;
    background: var(--bg-3);
    border-radius: 4px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%; width: 20%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
#quizProgressText {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-3);
    white-space: nowrap;
}

.quiz-q {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.45;
}
.quiz-context {
    background: var(--bg-3);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.8;
    border-left: 3px solid var(--accent-2);
}
.quiz-context .highlight { color: var(--danger); font-weight: 700; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    padding: 14px 18px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex; align-items: center; gap: 12px;
}
.quiz-option:hover:not(:disabled) { border-color: var(--accent-2); color: var(--text); background: var(--accent-2-dim); }
.quiz-option.correct { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.quiz-option.wrong { border-color: var(--danger); color: var(--danger); background: rgba(240,93,120,0.08); }
.quiz-option:disabled { cursor: default; }
.option-letter {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg-2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-3);
    flex-shrink: 0;
}

.quiz-feedback {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.correct { background: var(--accent-dim); border: 1px solid rgba(var(--accent-rgb), 0.2); color: var(--accent); }
.quiz-feedback.wrong { background: rgba(240,93,120,0.08); border: 1px solid rgba(240,93,120,0.2); color: #f8a0b0; }

.quiz-next {
    margin-top: 24px;
    display: none;
}
.quiz-next.show { display: block; }

.quiz-result {
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    position: relative; z-index: 1;
}
.result-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
#resultTitle {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
#resultDesc { color: var(--text-2); margin-bottom: 24px; }
.result-score {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 32px;
}

/* ══════════════════════════════════
   CERTIFICATIONS
══════════════════════════════════ */
.certs { background: var(--bg-2); }

.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cert-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}
.cert-card:hover { border-color: var(--border-glow); transform: translateY(-2px); }
.cert-card.featured-cert { border-color: rgba(124,106,245,0.3); background: var(--accent-2-dim); }

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}
.cert-card h4 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}
.cert-verify { margin-top: 10px; }
.cert-verify a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-2);
    text-decoration: none;
}
.cert-verify a:hover { color: var(--accent); }

/* ── CYBER EYES — HUD line-art (desktop, Certifications section) ── */
.certs .container { position: relative; }

.cert-cyber-eyes {
    position: absolute;
    top: 10px;
    right: 28px;
    display: flex;
    gap: 54px;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0.42;
    transition: opacity 0.8s ease;
}

.certs[data-eyes-lit] .cert-cyber-eyes { opacity: 0.7; }

.cyber-eye {
    position: relative;
    width: 130px;
    height: 70px;
    color: var(--accent);
    overflow: visible;
}

.eye-svg {
    position: absolute;
    inset: 0;
    width: 130px;
    height: 70px;
    overflow: visible;
    filter:
        drop-shadow(0 0 3px rgba(var(--accent-rgb), 0.72))
        drop-shadow(0 0 9px rgba(var(--accent-rgb), 0.24));
}

/* Iris glow sits on top of the SVG iris rings */
.eye-iris {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 35px;
    left: 65px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        circle at 42% 38%,
        rgba(var(--accent-rgb), 0.42) 0%,
        rgba(var(--accent-rgb), 0.1)  48%,
        transparent 72%
    );
    pointer-events: none;
}

/* Pupil — dark ring, the only element JS moves */
.eye-pupil {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 35px;
    left: 65px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #030508;
    border: 1.5px solid rgba(var(--accent-rgb), 0.78);
    box-shadow:
        0 0 3px  rgba(var(--accent-rgb), 0.95),
        0 0 9px  rgba(var(--accent-rgb), 0.45);
    will-change: transform;
}

[data-theme="light"] .cert-cyber-eyes                        { opacity: 0.35; }
[data-theme="light"] .certs[data-eyes-lit] .cert-cyber-eyes  { opacity: 0.55; }

@media (max-width: 991px) {
    .cert-cyber-eyes { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .eye-pupil       { will-change: auto; }
    .cert-cyber-eyes { transition: none; }
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact {
    background: var(--bg);
    box-shadow: inset 0 32px 48px -12px rgba(0,0,0,0.55), inset 0 -32px 48px -12px rgba(0,0,0,0.55);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    color: var(--text-2);
    font-size: 1.02rem;
    margin-bottom: 36px;
    line-height: 1.8;
}

.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
    display: flex; align-items: center; gap: 14px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.contact-item:hover { color: var(--accent); }
.ci-icon {
    width: 36px; height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(240,93,120,0.1);
}

.field-error {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--danger);
    margin-top: 4px;
}

.form-feedback {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
}
.form-feedback.success { display: block; background: var(--accent-dim); color: var(--accent); }
.form-feedback.error { display: block; background: rgba(240,93,120,0.08); color: var(--danger); }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}
.footer-content { text-align: center; }
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-copy {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    margin-bottom: 8px;
}
.footer-mission {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-style: italic;
}

/* ══════════════════════════════════
   WIP MODAL
══════════════════════════════════ */
.wip-modal {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.wip-modal.open {
    opacity: 1; pointer-events: all;
}

.wip-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid #f5c842;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 460px; width: 100%;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    text-align: center;
}
.wip-modal.open .wip-window {
    transform: translateY(0) scale(1);
}

.wip-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    display: block;
}

.wip-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.wip-project {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #f5c842;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.wip-body {
    font-size: 0.95rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 12px;
}
.wip-body:last-of-type { margin-bottom: 28px; }

.wip-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.wip-actions .btn-ghost,
.wip-actions .btn-primary {
    min-width: 140px; justify-content: center;
}

/* ══════════════════════════════════
   TERMINAL
══════════════════════════════════ */
.terminal-trigger {
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 800;
    width: 52px; height: 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.terminal-trigger:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.15);
}
.terminal-icon {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.terminal-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
}
.terminal-modal.open { opacity: 1; pointer-events: all; }

.terminal-window {
    width: 680px; max-width: 95vw;
    background: #0d1117;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(var(--accent-rgb), 0.08);
    transform: scale(0.96) translateY(16px);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.terminal-modal.open .terminal-window { transform: scale(1) translateY(0); }

.terminal-header {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    background: #161c24;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #4a5a70;
    margin-left: 10px;
}
.terminal-header .dot.red { cursor: pointer; }
.terminal-header .dot.red:hover { filter: brightness(1.3); }

.terminal-body {
    min-height: 280px; max-height: 360px;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    color: #8a9ab5;
}
.terminal-line { padding: 1px 0; }
.terminal-line.output { color: #8a9ab5; }
.terminal-line.cmd-echo { color: var(--accent); }
.terminal-line.cmd-echo::before { content: '$ '; color: #4a5a70; }
.terminal-line.success { color: var(--accent); }
.terminal-line.error { color: #f05d78; }
.terminal-line.info { color: var(--accent-2); }
.terminal-line.highlight { color: #f5c842; }
.cmd { color: var(--accent); font-weight: 700; }

.terminal-input-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: #0d1117;
}
.terminal-prompt {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}
.terminal-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #e8edf5;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    caret-color: var(--accent);
}

/* ══════════════════════════════════
   BUBBLE CTA
══════════════════════════════════ */
.bubble-cta {
    position: fixed;
    bottom: 110px;
    left: 28px;
    z-index: 800;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.4) translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.34,1.56,0.64,1),
                transform 0.7s cubic-bezier(0.34,1.56,0.64,1);
    animation: bubbleFloat 4.5s ease-in-out infinite;
    user-select: none;
}
.bubble-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}
.bubble-cta.popping {
    pointer-events: none;
    animation: bubblePop 0.38s cubic-bezier(0.36,0.07,0.19,0.97) forwards !important;
}

.bubble-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(
        circle at 32% 28%,
        rgba(255,255,255,0.22) 0%,
        rgba(var(--accent-rgb), 0.1) 28%,
        rgba(124,106,245,0.07) 55%,
        rgba(244,63,138,0.05) 78%,
        rgba(0,0,0,0.04) 100%
    );
    border: 1.5px solid rgba(255,255,255,0.28);
    box-shadow:
        inset 0 0 24px rgba(var(--accent-rgb), 0.07),
        inset 0 -6px 12px rgba(0,0,0,0.1),
        0 12px 40px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* soap-bubble highlight */
.bubble-shine {
    position: absolute;
    top: 10%;
    left: 16%;
    width: 38%;
    height: 22%;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
    filter: blur(5px);
    transform: rotate(-30deg);
    pointer-events: none;
}
/* secondary small highlight */
.bubble-inner::after {
    content: '';
    position: absolute;
    bottom: 18%;
    right: 14%;
    width: 14%;
    height: 10%;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    filter: blur(3px);
    pointer-events: none;
}

.bubble-emoji {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}
.bubble-text {
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    position: relative;
    z-index: 1;
}
.bubble-text em {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}

@keyframes bubbleFloat {
    0%   { transform: translateY(0)     rotate(-1.5deg) scale(1); }
    30%  { transform: translateY(-14px) rotate(1deg)    scale(1.02); }
    60%  { transform: translateY(-8px)  rotate(-0.5deg) scale(0.99); }
    100% { transform: translateY(0)     rotate(-1.5deg) scale(1); }
}

@keyframes bubblePop {
    0%   { transform: scale(1);    opacity: 1;   filter: blur(0px); }
    35%  { transform: scale(1.22); opacity: 0.85; filter: blur(0px); }
    65%  { transform: scale(1.38); opacity: 0.4;  filter: blur(3px); }
    100% { transform: scale(0.6);  opacity: 0;   filter: blur(10px); }
}

/* pop particles */
.bubble-particle {
    position: fixed;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 801;
    opacity: 0.9;
    animation: particleFly 0.55s ease-out forwards;
}
@keyframes particleFly {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ══════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════
   PROJECT CARD BOUNCE & CAROUSEL DOTS
══════════════════════════════════ */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-7px); }
}
.project-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
}

.carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.carousel-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.carousel-dots .dot.active {
    background: var(--accent);
    width: 22px;
    border-radius: 4px;
}
.carousel-swipe-hint {
    display: none;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-3);
    letter-spacing: 0.08em;
    margin-top: 10px;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding: 100px 24px 60px; }
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-visual { width: 100%; max-width: 380px; }
    .hero-scroll { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrap { max-width: 360px; margin: 0 auto; flex-direction: column; }
    .projects-grid { grid-template-columns: repeat(2,1fr); }
    .certs-grid { grid-template-columns: repeat(2,1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .sk-label { width: 160px; padding: 0 20px; }
}

/* ══════════════════════════════════
   MOBILE — layout (≤640px)
══════════════════════════════════ */
@media (max-width: 640px) {
    .hero { flex-direction: column; text-align: center; padding: 45px 24px 60px; }
    .code-card-body { text-align: left; }

    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-image-wrap { display: flex; flex-direction: row; align-items: stretch; gap: 12px; max-width: 100%; margin: 0; }
    .about-photo-placeholder { width: 140px; flex-shrink: 0; aspect-ratio: unset; height: auto; border-radius: 16px; }
    .about-photo-decoration { display: none; }
    .about-stats { flex: 1; display: flex; flex-direction: column; gap: 8px; background: none; border: none; border-radius: 0; margin-top: 0; overflow: visible; }
    .stat { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
    .stat-number { font-size: 1.45rem; }
    .stat-label  { font-size: 0.65rem; }
    .about-text-wrap { padding-right: 76px; padding-top: 16px; }
    .about-neon-tube { right: 14px; top: 0; bottom: 72px; }
    .about-power-wrap { bottom: 0; right: 4px; }
    .about-power-btn { width: 48px; height: 48px; }

    .sk-desktop { display: none; }
    .sk-mobile  { display: block; }
    .sk-panel-body { justify-content: center; padding-top: 60px; }
    .sk-panel-back { align-self: flex-start; margin-bottom: 40px; }

    .projects-grid { display: flex !important; grid-template-columns: unset !important; overflow-x: scroll; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0; padding: 16px 10vw 32px; }
    .projects-grid::-webkit-scrollbar { display: none; }
    .project-card { flex: 0 0 82vw; max-width: 82vw; scroll-snap-align: center; margin: 0 8px; animation: cardFloat 2.4s ease-in-out infinite; }
    .project-card:nth-child(2) { animation-delay: 0.4s; }
    .project-card:nth-child(3) { animation-delay: 0.8s; }
    .project-card:nth-child(4) { animation-delay: 1.2s; }
    .project-card:nth-child(5) { animation-delay: 1.6s; }
    .project-card:nth-child(6) { animation-delay: 2.0s; }
    .carousel-dots { display: flex; }
    .carousel-swipe-hint { display: block; }

    .certs-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
    .cert-card { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
    .cert-card .cert-verify { margin-top: auto; padding-top: 12px; }

    .quiz-card { padding: 24px; }
    .terminal-window { width: 95vw; }
    .accent-panel { right: -100px; }
}