/* ═══════════════════════════════════════════════════════════════════════
   DEV PORTFOLIO — styles.css
   hacker/terminal theme · matrix green
   ═══════════════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
     [0] THEME VARIABLES  ← edit colors/fonts here
     [1] base / reset
     [2] background layers (matrix canvas, CRT overlay)
     [3] navbar
     [4] hero (terminal window, glitch title, socials, buttons)
     [5] sections & titles
     [6] about
     [7] projects (filters, cards, tags)
     [8] skills
     [9] contact / footer
    [10] reveal-on-scroll animations
    [11] accessibility & reduced motion
    [12] responsive breakpoints
    [13] donate page
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   [0] THEME VARIABLES — ▓▓ EDIT ME ▓▓
   Change the whole look of the site from this one block.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  /* ── accent (matrix green) ─────────────────────────────────────────── */
  --accent:      #00ff41;          /* primary neon accent               */
  --accent-rgb:  0, 255, 65;       /* same color as r,g,b (for glows)   */
  --accent-soft: #7dffa0;          /* lighter tint (small highlights)   */

  /* ── surfaces & lines ──────────────────────────────────────────────── */
  --bg:            #050805;        /* page background (near-black)      */
  --bg-rgb:        5, 8, 5;
  --surface:       #0a100a;        /* cards / terminal background       */
  --surface-2:     #0d150d;        /* slightly lighter surface          */
  --border:        #162416;        /* default hairline borders          */
  --border-bright: #234023;        /* hover/emphasis borders            */

  /* ── text ──────────────────────────────────────────────────────────── */
  --text:        #d8e6d8;          /* body text                         */
  --text-bright: #f2fff2;          /* headings / emphasis               */
  --text-muted:  #8aa68a;          /* secondary text                    */

  /* ── fonts ─────────────────────────────────────────────────────────── */
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ── misc ──────────────────────────────────────────────────────────── */
  --nav-h: 64px;                   /* navbar height                     */
  --radius: 10px;                  /* card corner radius                */
  --glow-25: rgba(var(--accent-rgb), 0.25);
  --glow-15: rgba(var(--accent-rgb), 0.15);
  --glow-50: rgba(var(--accent-rgb), 0.50);
}

/* ─────────────────────────────────────────────────────────────────────
   ALTERNATE ACCENTS — paste one of these blocks BELOW the :root above
   (later rules win) to switch the whole theme in one move.

   CYAN:
   :root {
     --accent: #00e5ff;  --accent-rgb: 0, 229, 255;  --accent-soft: #8ff4ff;
     --bg: #04080a;      --bg-rgb: 4, 8, 10;
     --surface: #081014; --surface-2: #0b1519;
     --border: #10262e;  --border-bright: #1b4250;
     --text: #d7e9ee;    --text-bright: #f0fbff;     --text-muted: #85a3ac;
   }

   PURPLE:
   :root {
     --accent: #b85cff;  --accent-rgb: 184, 92, 255; --accent-soft: #d9a8ff;
     --bg: #070510;      --bg-rgb: 7, 5, 16;
     --surface: #0e0a1a; --surface-2: #130e22;
     --border: #221a38;  --border-bright: #3b2d61;
     --text: #e2dcee;    --text-bright: #f6f1ff;     --text-muted: #9c92b4;
   }

   (Remember to also update the two hard-coded colors in script.js →
    MATRIX_RAIN section, so the rain matches the new accent.)
   ───────────────────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════════════════
   [1] BASE / RESET
   ═══════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px); /* anchors land below navbar */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

::selection { background: var(--accent); color: #041004; }

/* thin custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.45); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* skip-to-content link — off-screen until focused by keyboard users */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  transform: translateY(-160%);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #041004;
  background: var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 20px var(--glow-50);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

.container { max-width: 1100px; margin-inline: auto; padding-inline: 24px; }

.noscript-note {
  font-family: var(--font-mono);
  color: var(--accent);
  text-align: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

/* blinking terminal cursor block (used in navbar brand + terminal) */
.cursor {
  display: inline-block;
  width: 0.55em; height: 1.05em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }


/* ═══════════════════════════════════════════════════════════════════════
   [2] BACKGROUND LAYERS
   ═══════════════════════════════════════════════════════════════════════ */

/* matrix rain canvas — drawn by script.js; sits behind everything */
#matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.55;               /* ← lower for a calmer background */
  pointer-events: none;
}

/* CRT overlay: scanlines + vignette + slow sweep bar. Sits above content
   but ignores the mouse. Tune the opacity below to taste. */
.crt {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.28;               /* ← scanline strength */
}

/* soft vignette around the edges */
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.42) 100%);
}

/* slow sweep line drifting down the screen (very subtle) */
.crt::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -10%;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.05), transparent);
  animation: crt-sweep 9s linear infinite;
}
@keyframes crt-sweep {
  0%   { transform: translateY(-10vh); }
  100% { transform: translateY(115vh); }
}


/* ═══════════════════════════════════════════════════════════════════════
   [3] NAVBAR
   ═══════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}
.nav-brand .brand-prompt { color: var(--accent); }
.nav-brand:hover { text-shadow: 0 0 12px var(--glow-50); }

.nav-links { display: flex; gap: 28px; }

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  text-shadow: 0 0 10px var(--glow-50);
}

/* hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--accent);
  transition: transform 0.25s, opacity 0.25s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ═══════════════════════════════════════════════════════════════════════
   [4] HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 72px;
  text-align: center;
}

/* staggered fade-up on first load */
.hero-inner > * { animation: fade-up 0.7s ease both; }
.hero-inner > :nth-child(2) { animation-delay: 0.10s; }
.hero-inner > :nth-child(3) { animation-delay: 0.18s; }
.hero-inner > :nth-child(4) { animation-delay: 0.26s; }
.hero-inner > :nth-child(5) { animation-delay: 0.34s; }
.hero-inner > :nth-child(6) { animation-delay: 0.42s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── terminal window ──────────────────────────────────────────────────── */
.terminal {
  width: min(640px, 100%);
  margin: 0 auto 40px;
  background: rgba(10, 16, 10, 0.92);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 22px var(--glow-15);
  text-align: left;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot-r { background: #ff5f56; }
.tdot-y { background: #ffbd2e; }
.tdot-g { background: #27c93f; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.75;
  min-height: 12.3em;             /* reserves space so typing doesn't shift layout */
}
.t-line { display: block; white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: var(--accent); font-weight: 700; }
.t-cmd { color: var(--text-bright); }
.t-out { color: var(--text-muted); }
.t-out .t-ok { color: var(--accent); font-weight: 700; }

/* ── kicker + glitch title ────────────────────────────────────────────── */
.hero-kicker {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.glitch {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--text-bright);
  text-shadow: 0 0 24px var(--glow-25);
}

/* two ghost copies for the RGB-split glitch — visible only during bursts */
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50% 0 50% 0);
}
.glitch::before { color: #ff2d78; animation: glitch-a 5.2s infinite; }  /* red split   */
.glitch::after  { color: #00e5ff; animation: glitch-b 5.2s infinite; }  /* cyan split  */

@keyframes glitch-a {
  0%, 11%, 15.5%, 62%, 66.5%, 100% { opacity: 0; transform: none; clip-path: inset(50% 0 50% 0); }
  11.5% { opacity: 0.85; transform: translate(-4px, -2px); clip-path: inset(8% 0 76% 0); }
  12.5% { transform: translate(3px, 1px);  clip-path: inset(58% 0 10% 0); }
  13.5% { transform: translate(-2px, 0);   clip-path: inset(30% 0 52% 0); }
  14.5% { opacity: 0.85; transform: translate(4px, 2px); clip-path: inset(78% 0 4% 0); }
  62.5% { opacity: 0.85; transform: translate(-3px, 1px); clip-path: inset(16% 0 70% 0); }
  64%   { transform: translate(2px, -1px); clip-path: inset(66% 0 12% 0); }
  65.5% { opacity: 0.85; transform: translate(-4px, 0); clip-path: inset(40% 0 44% 0); }
}
@keyframes glitch-b {
  0%, 11%, 15.5%, 62%, 66.5%, 100% { opacity: 0; transform: none; clip-path: inset(50% 0 50% 0); }
  11.5% { opacity: 0.85; transform: translate(4px, 2px);   clip-path: inset(64% 0 6% 0); }
  12.5% { transform: translate(-3px, -1px); clip-path: inset(12% 0 72% 0); }
  13.5% { transform: translate(2px, 1px);   clip-path: inset(46% 0 38% 0); }
  14.5% { opacity: 0.85; transform: translate(-4px, -2px); clip-path: inset(4% 0 82% 0); }
  62.5% { opacity: 0.85; transform: translate(3px, -1px);  clip-path: inset(72% 0 8% 0); }
  64%   { transform: translate(-2px, 1px);  clip-path: inset(20% 0 64% 0); }
  65.5% { opacity: 0.85; transform: translate(4px, 0);     clip-path: inset(52% 0 30% 0); }
}

.hero-tagline {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── social buttons ──────────────────────────────────────────────────── */
.socials {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  padding-top: 16px;              /* headroom for the badge pill */
}

.social-btn {
  position: relative;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: rgba(10, 16, 10, 0.7);
  color: var(--text-muted);
  transition: color 0.22s, border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow-25), inset 0 0 10px rgba(var(--accent-rgb), 0.06);
  transform: translateY(-3px);
}

/* small pill badge (e.g. "🎮 gaming content" on the YouTube link) */
.social-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 99px;
  background: var(--bg);
  color: var(--accent);
  pointer-events: none;
}

/* ── buttons ─────────────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 12px 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 6px;
  color: var(--accent);
  background: transparent;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s, background 0.22s, color 0.22s;
}
.btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--glow-25), inset 0 0 12px rgba(var(--accent-rgb), 0.07);
  text-shadow: 0 0 8px var(--glow-50);
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--accent);
  color: #041004;
  font-weight: 700;
}
.btn-solid:hover {
  box-shadow: 0 0 26px var(--glow-50);
  text-shadow: none;
}
.btn-lg { padding: 14px 34px; font-size: 1rem; }

/* ── scroll hint ─────────────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
}
.scroll-hint:hover { color: var(--accent); }
.scroll-hint-arrow { animation: bob 1.8s ease-in-out infinite; font-size: 1rem; }
@keyframes bob { 50% { transform: translateY(5px); } }


/* ═══════════════════════════════════════════════════════════════════════
   [5] SECTIONS & TITLES
   ═══════════════════════════════════════════════════════════════════════ */
.section { padding: 104px 0; }

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--text-bright);
  margin-bottom: 16px;
}
.section-cmd { color: var(--accent); text-shadow: 0 0 14px var(--glow-25); }

.section-sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 34px;
}


/* ═══════════════════════════════════════════════════════════════════════
   [6] ABOUT
   ═══════════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 26px;
}

.about-bio p { margin-bottom: 18px; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio strong { color: var(--accent-soft); font-weight: 600; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.about-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 22px var(--glow-15);
}
.about-card-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 18px;
}
.about-facts { list-style: none; }
.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.about-facts li:last-child { border-bottom: none; }
.fact-key { color: var(--text-muted); }
.fact-key::before { content: "> "; color: var(--accent); }
.fact-val { color: var(--text-bright); text-align: right; }


/* ═══════════════════════════════════════════════════════════════════════
   [7] PROJECTS
   ═══════════════════════════════════════════════════════════════════════ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--glow-15);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #041004;
  font-weight: 700;
  box-shadow: 0 0 18px var(--glow-25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: card-in 0.45s ease both;
  animation-delay: var(--d, 0ms);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 20px var(--glow-15);
}

.project-thumb { border-bottom: 1px solid var(--border); }
.project-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.035); }

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.project-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.project-title {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -2px 0 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-soft);
}
.project-meta-key {
  color: var(--text-muted);
}
.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.project-details {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: -6px 0 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--accent-soft);
  background: rgba(var(--accent-rgb), 0.05);
}

.project-links {
  display: flex;
  gap: 18px;
  margin-top: auto;               /* pins links to the card bottom */
  padding-top: 4px;
}
.plink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.plink svg { width: 14px; height: 14px; }
.plink:hover { color: var(--accent); text-shadow: 0 0 8px var(--glow-50); }
.project-status {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.project-status::before {
  content: "[";
  color: var(--accent);
  margin-right: 3px;
}
.project-status::after {
  content: "]";
  color: var(--accent);
  margin-left: 3px;
}


/* ═══════════════════════════════════════════════════════════════════════
   [8] SKILLS
   ═══════════════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.skill-group:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 20px var(--glow-15);
  transform: translateY(-3px);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.skill-group-title::before { content: "▸ "; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 12px;
  border: 1px solid var(--border-bright);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--glow-15);
}


/* ═══════════════════════════════════════════════════════════════════════
   [9] CONTACT / FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.03));
  padding-bottom: 40px;
}

.footer .section-title { text-align: center; }

.footer-note {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--text-muted);
}

/* contact actions: send-message button + copyable email */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.email-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  background: rgba(10, 16, 10, 0.6);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-width: 100%;
}
.email-link {
  color: var(--text);
  overflow-wrap: anywhere;
  transition: color 0.2s, text-shadow 0.2s;
}
.email-link:hover { color: var(--accent); text-shadow: 0 0 8px var(--glow-50); }

.copy-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.copy-btn:hover { border-color: var(--accent); box-shadow: 0 0 12px var(--glow-15); }
.copy-btn.copied { background: var(--accent); color: #041004; border-color: var(--accent); }
.copy-btn.copy-failed { color: #ffbd2e; border-color: rgba(255, 189, 46, 0.7); }

.footer .socials { margin-top: 40px; }

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-exit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--border-bright);
  margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════════════════
   [10] REVEAL-ON-SCROLL
   (.reveal elements fade/slide in when they enter the viewport —
    only active when JS is running, so content is never hidden without it)
   ═══════════════════════════════════════════════════════════════════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--rd, 0ms);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}


/* ═══════════════════════════════════════════════════════════════════════
   [11] ACCESSIBILITY & REDUCED MOTION
   Users with "reduce motion" enabled get a calm, static version:
   no rain, no glitch, no sweep — just a faint fixed grid.
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  #matrix-canvas { display: none; }

  body {
    background-image:
      linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
  }

  .crt::before,
  .glitch::before,
  .glitch::after,
  .scroll-hint-arrow { animation: none !important; opacity: 0; }
  .scroll-hint-arrow { opacity: 1; }

  .hero-inner > *, .project-card { animation: none !important; }

  .js .reveal { opacity: 1; transform: none; transition: none; }

  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
   [12] RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 84px 0; }
}

@media (max-width: 720px) {
  /* collapse nav links into a dropdown panel */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 22px 24px 26px;
    background: var(--bg);   /* solid — keeps menu crisp over page content */
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s;
  }
  .nav.open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-link { font-size: 1rem; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .terminal-body { font-size: 0.8rem; min-height: 13em; }
  .section { padding: 68px 0; }
  .socials { gap: 14px; }
  .social-btn { width: 48px; height: 48px; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   [13] DONATE PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.donate-main {
  min-height: calc(100svh - var(--nav-h));
  padding-top: var(--nav-h);
}

.donate-section { padding: clamp(72px, 10vw, 112px) 0 96px; }

.donate-intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.donate-kicker {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.donate-lead {
  max-width: 620px;
  color: var(--text-muted);
}

.network-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 189, 46, 0.48);
  border-radius: var(--radius);
  background: rgba(255, 189, 46, 0.055);
  box-shadow: inset 3px 0 0 rgba(255, 189, 46, 0.75);
}

.warning-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 189, 46, 0.75);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #ffbd2e;
}

.network-warning h2 {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: #ffe19a;
}

.network-warning p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wallet-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 16, 10, 0.92);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.wallet-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 24px var(--glow-15), 0 14px 36px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.wallet-card-header {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.wallet-prompt {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wallet-card h2 {
  font-size: 1.05rem;
  color: var(--accent);
  text-shadow: 0 0 10px var(--glow-25);
}

.wallet-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  background: rgba(5, 8, 5, 0.72);
}

.wallet-address {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-bright);
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}

.wallet-copy {
  min-width: 86px;
  justify-self: end;
}

.donate-footer { padding: 42px 0 32px; }
.donate-footer .footer-bottom { margin-top: 30px; }

@media (max-width: 800px) {
  .wallet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .donate-section { padding: 60px 0 72px; }
  .network-warning { padding: 16px; }
  .wallet-card { padding: 18px; }
  .wallet-copy { width: 100%; }
}
