/* ==========================================================
   Steve's Portfolio — Stylesheet
   Aesthetic: Retro-terminal meets modern hacker
   ========================================================== */

/* ---------- 0. Custom Properties ---------- */
:root {
    --bg-deepest: #030810;
    --bg-deep:    #060d1a;
    --bg-dark:    #0a1628;
    --bg-card:    #0c1e38;
    --bg-card-h:  #10284a;

    --green:      #00ff41;
    --green-dim:  rgba(0,255,65,.12);
    --cyan:       #00d4ff;
    --cyan-dim:   rgba(0,212,255,.12);
    --amber:      #ffb000;
    --amber-dim:  rgba(255,176,0,.12);
    --purple:     #a855f7;
    --purple-dim: rgba(168,85,247,.12);
    --orange:     #ff6b35;
    --orange-dim: rgba(255,107,53,.12);
    --red:        #ff2d55;
    --red-dim:    rgba(255,45,85,.12);

    --text:       #7a8fa3;
    --text-lt:    #a0b4c8;
    --text-br:    #d0dae4;
    --text-wh:    #edf2f7;

    --border:     #132640;
    --border-lt:  #1c3d66;

    --font-d: 'Oxanium', cursive;
    --font-b: 'Exo 2', sans-serif;
    --font-m: 'Fira Code', monospace;

    --section-py: 110px;
    --max-w:      1200px;
    --nav-h:      60px;
}

/* ---------- 1. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--border-lt) var(--bg-deepest); }
body {
    font-family: var(--font-b);
    background: var(--bg-deepest);
    color: var(--text-lt);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cyan); color: var(--bg-deepest); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--text-wh); font-weight: 600; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deepest); }
::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* Utility text colours */
.t-green  { color: var(--green); }
.t-cyan   { color: var(--cyan); }
.t-amber  { color: var(--amber); }
.t-purple { color: var(--purple); }
.t-orange { color: var(--orange); }
.t-red    { color: var(--red); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 2. Scanlines ---------- */
.scanlines {
    position: fixed; inset: 0; z-index: 9000;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0,0,0,.035) 1px,
        rgba(0,0,0,.035) 2px
    );
}

/* ---------- 3. Boot Overlay ---------- */
.boot-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #000;
    transition: opacity .5s ease, visibility .5s ease;
}
.boot-overlay.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-text { font-family: var(--font-m); font-size: .85rem; color: var(--text); line-height: 2; }
.boot-line { opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.boot-line.visible { opacity: 1; transform: translateX(0); }
.boot-skip {
    position: absolute; bottom: 30px;
    font-family: var(--font-m); font-size: .7rem;
    color: var(--text); opacity: .35;
    animation: pulse 2s infinite;
}

/* ---------- 4. Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; z-index: 8000;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
    background: rgba(3,8,16,.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-brand { font-family: var(--font-m); font-size: .95rem; color: var(--text); letter-spacing: -.02em; }
.nav-prompt { color: var(--text); opacity: .5; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-socials { display: flex; gap: 10px; margin-left: 4px; }
.nav-social {
    color: var(--text); display: flex; align-items: center;
    opacity: .5; transition: opacity .25s, color .25s, transform .25s;
}
.nav-social:hover { opacity: 1; color: var(--cyan); transform: translateY(-1px); }
.nav-link {
    font-family: var(--font-m); font-size: .8rem; color: var(--text);
    position: relative; padding: 4px 0; transition: color .25s ease;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--cyan);
    transition: width .3s ease;
}
.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative; z-index: 8001;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--text-lt);
    position: absolute; left: 0; transition: all .3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); background: var(--cyan); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); background: var(--cyan); }

/* ---------- 5. Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; flex-direction: column;
    background: radial-gradient(ellipse at 50% 30%, #0b1a30 0%, var(--bg-deepest) 70%);
    overflow: hidden;
}
.circuit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content {
    position: relative; z-index: 1; text-align: center;
    padding: 0 24px; max-width: 860px; width: 100%;
}

/* Hero reveal stagger */
.reveal-hero {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: calc(var(--hi) * .12s);
}
.hero.active .reveal-hero { opacity: 1; transform: translateY(0); }

.hero-location {
    font-family: var(--font-m); font-size: .8rem;
    color: var(--text); letter-spacing: .15em; text-transform: uppercase;
    margin-bottom: 16px;
}
.hero-name {
    font-family: var(--font-d); font-size: clamp(3.5rem, 10vw, 7rem); font-weight: 700;
    line-height: 1; letter-spacing: -.02em;
    background: linear-gradient(135deg, var(--text-wh) 30%, var(--cyan) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
}
.hero-role {
    font-family: var(--font-b); font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 300;
    color: var(--text-lt); letter-spacing: .02em; margin-bottom: 32px;
}
.hero-amp { color: var(--cyan); font-weight: 400; }

.hero-badges {
    display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px;
    margin-bottom: 36px;
}
.badge {
    font-family: var(--font-m); font-size: .62rem;
    padding: 5px 11px; border-radius: 20px; white-space: nowrap;
    border: 1px solid var(--border-lt);
    color: var(--text); background: rgba(0,212,255,.04);
    position: relative; overflow: hidden; cursor: default;
    transition: border-color .35s, color .35s, background .35s, transform .35s, box-shadow .35s;
}
/* Per-badge accent colours */
.badge[data-badge="amber"]  { --ba: var(--amber);  --ba-dim: var(--amber-dim); }
.badge[data-badge="purple"] { --ba: var(--purple); --ba-dim: var(--purple-dim); }
.badge[data-badge="cyan"]   { --ba: var(--cyan);   --ba-dim: var(--cyan-dim); }
.badge[data-badge="blue"]   { --ba: #4ea0ff;       --ba-dim: rgba(78,160,255,.12); }
.badge[data-badge="green"]  { --ba: var(--green);  --ba-dim: var(--green-dim); }
.badge[data-badge="orange"] { --ba: var(--orange); --ba-dim: var(--orange-dim); }
.badge[data-badge="red"]    { --ba: var(--red);    --ba-dim: var(--red-dim); }

/* Glow sweep — a light streak that crosses on hover */
.badge::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
    transition: left .5s ease;
}
.badge:hover::before { left: 140%; }

.badge:hover {
    border-color: var(--ba, var(--cyan));
    color: var(--ba, var(--cyan));
    background: var(--ba-dim, var(--cyan-dim));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 20px var(--ba-dim, var(--cyan-dim));
}

/* Idle float animation — stagger per badge */
.hero-badges .badge:nth-child(1) { animation: badgeFloat 4.0s ease-in-out  .0s infinite; }
.hero-badges .badge:nth-child(2) { animation: badgeFloat 4.2s ease-in-out  .4s infinite; }
.hero-badges .badge:nth-child(3) { animation: badgeFloat 3.8s ease-in-out  .8s infinite; }
.hero-badges .badge:nth-child(4) { animation: badgeFloat 4.4s ease-in-out 1.2s infinite; }
.hero-badges .badge:nth-child(5) { animation: badgeFloat 3.6s ease-in-out 1.6s infinite; }
.hero-badges .badge:nth-child(6) { animation: badgeFloat 4.1s ease-in-out 2.0s infinite; }
.hero-badges .badge:nth-child(7) { animation: badgeFloat 3.9s ease-in-out 2.4s infinite; }
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
/* On narrow screens, allow wrapping and bump size back up */
@media (max-width: 640px) {
    .hero-badges { flex-wrap: wrap; }
    .badge { font-size: .65rem; padding: 5px 12px; }
}

.hero-cta { display: flex; justify-content: center; gap: 16px; margin-bottom: 48px; }
.btn {
    font-family: var(--font-d); font-size: .85rem; font-weight: 600;
    padding: 12px 28px; border-radius: 8px;
    letter-spacing: .04em; transition: all .3s ease; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.btn--filled {
    background: var(--cyan); color: var(--bg-deepest); border: 1px solid var(--cyan);
    box-shadow: 0 0 20px rgba(0,212,255,.2);
}
.btn--filled:hover {
    background: #33dfff; border-color: #33dfff;
    box-shadow: 0 0 30px rgba(0,212,255,.35); transform: translateY(-2px);
}
.btn--ghost {
    background: transparent; color: var(--text-lt);
    border: 1px solid var(--border-lt);
}
.btn--ghost:hover {
    border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px);
}

/* Mini terminal */
.mini-term {
    font-family: var(--font-m); font-size: .75rem;
    color: var(--text); opacity: .45;
    display: flex; justify-content: center; align-items: center; gap: 6px;
}
.mt-chr { color: var(--cyan); }
.cursor {
    display: inline-block; width: 7px; height: 14px;
    background: var(--cyan); vertical-align: middle; margin-left: 2px;
    animation: blink 1s step-end infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text); font-family: var(--font-m); font-size: .65rem;
    letter-spacing: .1em; text-transform: uppercase; opacity: .4;
}
.scroll-dot { animation: scroll-bob 1.8s ease-in-out infinite; }
@keyframes scroll-bob {
    0%, 100% { cy: 9; opacity: 1; }
    50%      { cy: 20; opacity: .2; }
}

/* ---------- 6. Sections ---------- */
.section { padding: var(--section-py) 0; position: relative; }
.section:nth-child(odd)  { background: var(--bg-deepest); }
.section:nth-child(even) { background: var(--bg-deep); }
.section-title {
    font-family: var(--font-d); font-size: 2rem; font-weight: 700;
    color: var(--text-wh); margin-bottom: 48px; text-align: center;
    letter-spacing: .04em;
}

/* Glitch effect on hover */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; opacity: 0;
}
.glitch:hover::before { animation: g1 .3s infinite; color: var(--cyan); opacity: .8; }
.glitch:hover::after  { animation: g2 .3s infinite; color: var(--red); opacity: .8; }
@keyframes g1 {
    0%   { clip-path: inset(40% 0 60% 0); transform: translateX(-3px); }
    20%  { clip-path: inset(10% 0 85% 0); transform: translateX(3px); }
    40%  { clip-path: inset(60% 0 20% 0); transform: translateX(-2px); }
    60%  { clip-path: inset(80% 0 5% 0);  transform: translateX(4px); }
    80%  { clip-path: inset(25% 0 55% 0); transform: translateX(-1px); }
    100% { clip-path: inset(50% 0 30% 0); transform: translateX(2px); }
}
@keyframes g2 {
    0%   { clip-path: inset(65% 0 15% 0); transform: translateX(3px); }
    20%  { clip-path: inset(20% 0 70% 0); transform: translateX(-4px); }
    40%  { clip-path: inset(45% 0 40% 0); transform: translateX(2px); }
    60%  { clip-path: inset(5% 0 85% 0);  transform: translateX(-3px); }
    80%  { clip-path: inset(70% 0 10% 0); transform: translateX(1px); }
    100% { clip-path: inset(35% 0 50% 0); transform: translateX(-2px); }
}

/* Reveal animation */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 7. About ---------- */
.about {
    background-image:
        radial-gradient(rgba(0,212,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 32px; position: relative; overflow: hidden;
    transition: border-color .4s ease, box-shadow .4s ease;
    animation: cardGlow 4s ease-in-out infinite;
}
@keyframes cardGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(0,212,255,0), 0 4px 20px rgba(0,0,0,.3); }
    50%      { box-shadow: 0 0 30px rgba(0,212,255,.04), 0 4px 20px rgba(0,0,0,.3); }
}
.about-card:hover {
    border-color: var(--border-lt);
    box-shadow: 0 0 40px rgba(0,212,255,.08), 0 8px 30px rgba(0,0,0,.4);
}
/* Corner brackets */
.about-card::before {
    content: ''; position: absolute; top: 8px; left: 8px;
    width: 18px; height: 18px;
    border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan);
    opacity: .2; transition: opacity .4s ease;
    pointer-events: none;
}
.about-card::after {
    content: ''; position: absolute; bottom: 8px; right: 8px;
    width: 18px; height: 18px;
    border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan);
    opacity: .2; transition: opacity .4s ease;
    pointer-events: none;
}
.about-card:hover::before,
.about-card:hover::after { opacity: .5; }

/* Card header (terminal-style) */
.card-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 22px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.card-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cyan); flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0,212,255,.5);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0,212,255,.5); }
    50%      { opacity: .5; box-shadow: 0 0 3px rgba(0,212,255,.2); }
}
.about-card h3 {
    font-family: var(--font-m); font-size: .9rem; color: var(--text-wh);
    margin: 0;
}
.about-card p { margin-bottom: 14px; font-size: .95rem; }
.about-card p:last-of-type { margin-bottom: 0; }

/* Callout box */
.about-callout {
    display: flex; align-items: center; gap: 14px;
    margin-top: 20px; padding: 14px 18px;
    background: rgba(0,212,255,.05); border-left: 3px solid var(--cyan);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-m); font-size: .82rem; color: var(--text-lt);
}
.callout-icon {
    color: var(--cyan); font-weight: 600; font-size: .9rem;
    flex-shrink: 0; opacity: .7;
}

/* Skills */
.skills-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.skill-group h4 {
    font-family: var(--font-d); font-size: .8rem; font-weight: 600;
    margin-bottom: 10px; letter-spacing: .06em; text-transform: uppercase;
}
.skill-group li {
    font-family: var(--font-m); font-size: .78rem; color: var(--text);
    padding: 6px 0 10px 16px; position: relative;
    transition: color .25s ease;
}
.skill-group li:hover { color: var(--text-wh); }
.skill-group li::before {
    content: '>'; position: absolute; left: 0; color: var(--cyan); opacity: .5;
}
/* Skill level bar */
.skill-group li::after {
    content: ''; position: absolute; bottom: 0; left: 16px; right: 0;
    height: 2px; border-radius: 1px;
    background: linear-gradient(90deg, var(--cyan), rgba(0,212,255,.2));
    width: 0; opacity: .4;
    transition: width 1s ease .2s;
}
.reveal.visible .skill-group li::after {
    width: var(--lv, 70%);
}

/* ---------- 8. Hobbies ---------- */

/* Accent colour per card */
.hobby-card[data-accent="amber"]  { --ac: var(--amber);  --ac-dim: var(--amber-dim); }
.hobby-card[data-accent="purple"] { --ac: var(--purple); --ac-dim: var(--purple-dim); }
.hobby-card[data-accent="green"]  { --ac: var(--green);  --ac-dim: var(--green-dim); }
.hobby-card[data-accent="cyan"]   { --ac: var(--cyan);   --ac-dim: var(--cyan-dim); }
.hobby-card[data-accent="orange"] { --ac: var(--orange); --ac-dim: var(--orange-dim); }
.hobby-card[data-accent="red"]    { --ac: var(--red);    --ac-dim: var(--red-dim); }

/* Layout rows */
.hobby-row { margin-bottom: 24px; }
.hobby-row:last-child { margin-bottom: 0; }
.hobby-row--feat { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hobby-row--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Base card */
.hobby-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 28px 24px; position: relative; overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* Top accent line (animated width on hover) */
.hobby-card::after {
    content: ''; position: absolute; top: 0; left: 0; height: 3px;
    width: 40px; background: var(--ac); border-radius: 0 0 2px 0;
    transition: width .4s ease;
}
.hobby-card:hover::after { width: 100%; }
/* Background glow */
.hobby-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 0%, var(--ac-dim) 0%, transparent 55%);
    opacity: 0; transition: opacity .35s ease;
}
.hobby-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-lt);
    box-shadow: 0 8px 36px rgba(0,0,0,.4), 0 0 24px var(--ac-dim);
}
.hobby-card:hover::before { opacity: 1; }

/* Wide card (featured) — horizontal layout */
.hobby-card--wide { padding: 32px 28px; }
.hobby-card-inner {
    display: flex; gap: 22px; align-items: flex-start;
    position: relative; z-index: 1;
}
.hobby-card--wide .hobby-icon { flex-shrink: 0; margin-bottom: 0; }
/* Accent bar at bottom of featured cards */
.hobby-accent-bar {
    height: 2px; margin-top: 20px; border-radius: 1px;
    background: linear-gradient(90deg, var(--ac), transparent 70%);
    opacity: .25; position: relative; z-index: 1;
    transition: opacity .35s ease;
}
.hobby-card:hover .hobby-accent-bar { opacity: .5; }

.hobby-icon {
    width: 40px; height: 40px; color: var(--ac); margin-bottom: 16px;
    position: relative; z-index: 1;
    transition: transform .35s ease;
}
.hobby-card:hover .hobby-icon { transform: scale(1.12); }
.hobby-card h3 {
    font-family: var(--font-d); font-size: 1.05rem; font-weight: 600;
    color: var(--text-wh); margin-bottom: 10px; position: relative; z-index: 1;
}
.hobby-card p {
    font-size: .85rem; color: var(--text); margin-bottom: 14px;
    position: relative; z-index: 1; line-height: 1.65;
}
.hobby-link {
    font-family: var(--font-m); font-size: .75rem; color: var(--ac);
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    transition: gap .25s ease;
}
.hobby-link:hover { gap: 10px; }
.hobby-tag {
    display: inline-flex; gap: 6px; font-family: var(--font-m); font-size: .68rem;
    color: var(--text); opacity: .5; position: relative; z-index: 1;
    padding: 4px 0; border-top: 1px solid var(--border); margin-top: auto;
}

/* ---------- 9. Gallery ---------- */
.gallery-count {
    text-align: center; font-family: var(--font-m); font-size: .85rem;
    color: var(--text); margin-bottom: 28px;
}

.gallery-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-bottom: 36px;
}
.filter-btn {
    font-family: var(--font-m); font-size: .75rem;
    padding: 8px 18px; border-radius: 6px;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text); cursor: pointer;
    transition: all .25s ease;
}
.filter-btn:hover { border-color: var(--cyan); color: var(--text-wh); }
.filter-btn.active {
    background: var(--cyan-dim); border-color: var(--cyan); color: var(--cyan);
}
.filter-count {
    display: inline-block; margin-left: 6px; font-size: .65rem;
    background: var(--border); border-radius: 3px; padding: 1px 5px;
    vertical-align: 1px;
}

/* Masonry grid via CSS columns */
.gallery-grid { column-count: 4; column-gap: 14px; }
.gallery-item {
    break-inside: avoid; margin-bottom: 14px;
    border-radius: 8px; overflow: hidden; position: relative;
    cursor: pointer; background: var(--bg-dark);
    transition: opacity .35s ease, transform .35s ease;
}
.gallery-item.hidden { display: none; }
.gallery-item:hover { transform: scale(1.015); }
.gallery-img { width: 100%; display: block; transition: filter .35s ease; }
.gallery-item:hover .gallery-img { filter: brightness(1.1); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(3,8,16,.75) 0%, transparent 50%);
    display: flex; align-items: flex-end; padding: 14px;
    opacity: 0; transition: opacity .3s ease;
}
.gallery-overlay span { font-family: var(--font-m); font-size: .72rem; color: var(--cyan); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- 10. Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 9500;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90vw; max-height: 85vh; border-radius: 6px;
    box-shadow: 0 0 80px rgba(0,0,0,.6);
    transform: scale(.92); transition: transform .35s ease;
}
.lightbox.open img { transform: scale(1); }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: none; border: none; color: var(--text-lt);
    font-size: 2rem; cursor: pointer; transition: color .2s ease;
    z-index: 9501;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--cyan); }
.lb-close { top: 20px; right: 28px; font-size: 2.4rem; }
.lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-info {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 20px; font-family: var(--font-m); font-size: .75rem; color: var(--text);
}

/* ---------- 11. Footer ---------- */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border);
    background: var(--bg-deepest);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-prompt { font-family: var(--font-m); font-size: .75rem; color: var(--text); }
.footer-socials { display: flex; gap: 14px; }
.social-link {
    color: var(--text); display: flex; align-items: center;
    padding: 6px; border-radius: 6px; border: 1px solid var(--border);
    transition: color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.social-link:hover {
    color: var(--cyan); border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,212,255,.15);
}
.footer-copy { font-family: var(--font-b); font-size: .78rem; color: var(--text); opacity: .5; }

/* ---------- 12. Keyframes ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: .6; } }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1024px) {
    .hobby-row--grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid  { column-count: 3; }
}
@media (max-width: 768px) {
    :root { --section-py: 72px; }
    .about-grid      { grid-template-columns: 1fr; }
    .hobby-row--feat { grid-template-columns: 1fr; }
    .hobby-row--grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid    { column-count: 2; }
    .section-title   { font-size: 1.5rem; }
    .nav-socials     { display: none; }

    /* Mobile nav */
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: 0;
        width: 220px; height: 100vh;
        background: rgba(6,13,26,.97);
        backdrop-filter: blur(16px);
        flex-direction: column; gap: 0; padding: 80px 32px 32px;
        border-left: 1px solid var(--border);
        transform: translateX(100%); transition: transform .35s ease;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-links .nav-socials { display: flex; padding-top: 16px; }
}
@media (max-width: 540px) {
    .hobby-row--grid { grid-template-columns: 1fr; }
    .gallery-grid { column-count: 1; }
    .terminal-body { font-size: .75rem; padding: 16px; }
    .hero-tagline  { font-size: .9rem; }
}
