*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #EDE6D4;
  --ink: #15171C;
  --red: #D6272A;
  --yellow: #F4C430;
  --blue: #1F3A78;
  --muted: #4D4A40;
  --panel-shadow: 7px 7px 0 var(--ink);
  --panel-shadow-sm: 4px 4px 0 var(--ink);
}

/* ── FEATURE 1: MULTIVERSE SPIDER-SUIT THEMES ────── */

/* 1. MILES MORALES (DARK CYBER NEON) */
body.theme-miles {
  --paper: #0F1018;
  --ink: #F2EFE4;
  --red: #FF2E4C;
  --yellow: #FFE600;
  --blue: #00F0FF;
  --muted: #A09D94;
  --panel-shadow: 7px 7px 0 var(--red);
  background-image: radial-gradient(circle, rgba(255,46,76,0.15) 1.2px, transparent 1.2px);
}

/* 2. SPIDER-MAN 2099 (MIGUEL O'HARA - DEEP NAVY & LASER RED) */
body.theme-2099 {
  --paper: #070B19;
  --ink: #E0E6FF;
  --red: #FF0055;
  --yellow: #00E5FF;
  --blue: #3A00E5;
  --muted: #8F9BBA;
  --panel-shadow: 7px 7px 0 #FF0055;
  background-image: radial-gradient(circle, rgba(0,229,255,0.15) 1.2px, transparent 1.2px);
}

/* 3. IRON SPIDER SUIT (MATTE SLATE & METALLIC GOLD) */
body.theme-iron {
  --paper: #12100E;
  --ink: #FFF8E7;
  --red: #E63946;
  --yellow: #FFD700;
  --blue: #C5A059;
  --muted: #B0A290;
  --panel-shadow: 7px 7px 0 #FFD700;
  background-image: radial-gradient(circle, rgba(255,215,0,0.12) 1.2px, transparent 1.2px);
}

html, body, a, button { cursor: none !important; }

html, body {
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  background-image:
    radial-gradient(circle, rgba(21,23,28,0.08) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.comic { font-family: 'Bangers', cursive; letter-spacing: 0.03em; }
.mono { font-family: 'IBM Plex Mono', monospace; }

/* ── SKIP NAVIGATION LINK (A11Y) ── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--yellow); color: #15171C;
  padding: 10px 20px; font-family: 'Bangers', cursive;
  font-size: 18px; border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); z-index: 9999;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ── DIRECT TELEGRAM CONTACT FORM ────────────────── */
.tg-contact-form {
  background: var(--paper); color: var(--ink);
  border: 3.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--red);
  padding: 22px; max-width: 580px; margin: 24px auto 32px;
  text-align: left;
}
.tg-form-header { margin-bottom: 12px; }
.tg-form-title { font-size: 15px; color: var(--red); letter-spacing: 0.04em; }
.tg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.tg-contact-form input, .tg-contact-form textarea {
  width: 100%; padding: 10px 14px;
  border: 2.5px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px;
  outline: none; transition: border-color 0.2s ease;
}
.tg-contact-form input:focus, .tg-contact-form textarea:focus {
  border-color: var(--red);
}
.tg-send-btn { width: 100%; margin-top: 8px; font-size: 19px; }
.tg-form-status {
  display: block; margin-top: 10px; font-size: 14px; color: var(--yellow); text-align: center;
}

/* ── FEATURE 4: SPIDER-SIGNAL SKY PROJECTION ─────── */
.spider-signal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7, 11, 25, 0.88);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.spider-signal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.signal-spotlight {
  width: 220px; height: 220px;
  filter: drop-shadow(0 0 45px var(--yellow)) drop-shadow(0 0 80px var(--red));
  animation: signal-beam-pulse 2s infinite ease-in-out;
}
.signal-mask-wrap {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4.5px solid var(--yellow);
  box-shadow: 0 0 30px var(--yellow);
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.signal-mask-img {
  width: 102%; height: 102%;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
@keyframes signal-beam-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.95; }
  50% { transform: scale(1.12) rotate(6deg); opacity: 1; }
}
.signal-text {
  font-size: clamp(16px, 5.2vw, 28px);
  color: var(--paper); margin-top: 24px;
  text-shadow: 3px 3px 0 var(--red); letter-spacing: 0.05em;
  text-align: center; padding: 0 16px;
  white-space: nowrap;
}
.signal-dismiss-btn {
  margin-top: 24px; padding: 10px 24px;
  background: transparent; color: var(--paper);
  border: 2px solid rgba(237,230,212,0.4);
  font-size: 16px; letter-spacing: 0.06em;
  opacity: 0.7; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.signal-dismiss-btn:hover, .signal-dismiss-btn:active {
  opacity: 1; border-color: var(--paper);
}

/* ── FEATURE 2: SKILLS SPLIT GRID & RADAR CANVAS ── */
.skills-split-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
}
.radar-box {
  background: var(--ink); color: var(--paper);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--red);
  padding: 16px; text-align: center;
}
.radar-title { display: block; font-size: 15px; color: var(--yellow); letter-spacing: 0.04em; margin-bottom: 8px; }
#skills-web-canvas {
  max-width: 100%; height: auto; display: block; margin: 0 auto;
}



/* ── COPY EMAIL TOAST ────────────────────────────── */
.copy-toast {
  position: fixed; bottom: 85px; left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--yellow); color: #15171C;
  border: 3.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 10px 22px; font-size: 16px;
  z-index: 220; opacity: 0; pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  user-select: none;
}
.copy-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
}

/* KEYBOARD HOTKEYS FOOTER HINT */
.keyboard-hints {
  margin-top: 10px; font-size: 12px; color: var(--muted);
  display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.keyboard-hints kbd {
  background: var(--ink); color: var(--paper);
  padding: 2px 6px; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--red);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
}

/* ── SPIDER WEB FLUID HUD GAUGE ─────────────────── */
.web-fluid-hud {
  position: fixed; bottom: 28px; left: 28px; z-index: 95;
  background: var(--ink); color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  padding: 8px 14px; min-width: 170px;
  user-select: none;
}
.web-fluid-hud.shake {
  animation: hud-shake 0.3s ease-in-out;
}
@keyframes hud-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.hud-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.05em; margin-bottom: 4px;
}
.hud-title { color: var(--paper); opacity: 0.9; }
.hud-count { color: var(--yellow); font-weight: 700; }

.hud-meter {
  height: 10px; background: rgba(237,230,212,0.2);
  border: 1.5px solid var(--paper); overflow: hidden;
}
.hud-fill {
  height: 100%; background: var(--red);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.hud-fill.low { background: var(--yellow); }
.hud-fill.empty { background: #555; }

/* WEB RELOAD TOAST ALERT */
.web-reload-toast {
  position: fixed; top: 75px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--red); color: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 10px 24px; font-size: 18px;
  z-index: 210; opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  user-select: none;
}
.web-reload-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
}

/* ── TOP COMIC HEADER BANNER ────────────────────── */
.comic-header-banner {
  background: var(--ink); color: var(--paper);
  border-bottom: 3px solid var(--red);
  padding: 6px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.banner-badge {
  background: var(--yellow); color: #15171C;
  padding: 2px 8px; border: 1.5px solid var(--paper); font-weight: 700;
}

/* ── SPIDER-SENSE AURA ANIMATION ────────────────── */
.spider-sense-aura {
  position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 30px;
  pointer-events: none; z-index: 5;
}
.aura-line {
  position: absolute; inset: 0;
  border-top: 3px solid var(--yellow);
  border-radius: 50%; opacity: 0;
  animation: spider-sense-wave 1.8s infinite ease-out;
}
.aura-line.line-2 { animation-delay: 0.4s; border-color: var(--red); }
.aura-line.line-3 { animation-delay: 0.8s; border-color: var(--blue); }

@keyframes spider-sense-wave {
  0% { transform: scaleX(0.4) translateY(0); opacity: 1; }
  100% { transform: scaleX(1.4) translateY(-22px); opacity: 0; }
}

/* ── SPIDER-VERSE COMIC STAMP ───────────────────── */
.comic-stamp {
  font-size: 11px; background: var(--blue); color: var(--paper);
  padding: 3px 8px; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  letter-spacing: 0.04em;
}

/* ── SPIDER-VERSE GLITCH EFFECT ─────────────────── */
body.theme-miles .glitch-effect,
body.theme-2099 .glitch-effect,
body.theme-iron .glitch-effect {
  position: relative;
  text-shadow: 2px 0 var(--blue), -2px 0 var(--red);
  animation: glitch-anim 2.5s infinite ease-in-out;
}
@keyframes glitch-anim {
  0%, 100% { text-shadow: 2px 0 var(--blue), -2px 0 var(--red); }
  20% { text-shadow: -3px 0 var(--red), 3px 0 var(--yellow); }
  40% { text-shadow: 3px 0 var(--blue), -1px 0 var(--red); }
  60% { text-shadow: -2px 0 var(--yellow), 2px 0 var(--blue); }
}

/* ── FLOATING COMIC ACTION POP TEXT (THWIP! BAM! ZAP!) ── */
.comic-pop-text {
  position: fixed; pointer-events: none; z-index: 9999;
  font-family: 'Bangers', cursive; font-size: 26px;
  color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--red);
  transform: translate(-50%, -50%) scale(0.4);
  animation: comic-pop-float 0.75s ease-out forwards;
  user-select: none;
}
@keyframes comic-pop-float {
  0% { transform: translate(-50%, -50%) scale(0.3) rotate(-10deg); opacity: 1; }
  40% { transform: translate(-50%, -80%) scale(1.3) rotate(8deg); opacity: 1; }
  100% { transform: translate(-50%, -120%) scale(1) rotate(-5deg); opacity: 0; }
}

/* ── SPIDER-VERSE COMIC SFX BADGES ─────────────── */
.section-title-wrap {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px;
}

.comic-sfx {
  font-family: 'Bangers', cursive;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-transform: uppercase;
  display: inline-block;
  transform: rotate(-4deg);
  user-select: none;
}
.sfx-yellow { background: var(--yellow); color: #15171C; }
.sfx-red { background: var(--red); color: var(--paper); }
.sfx-blue { background: var(--blue); color: var(--paper); }

.bounce-anim {
  animation: sfx-pulse 2.2s infinite ease-in-out;
}
@keyframes sfx-pulse {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50% { transform: rotate(-2deg) scale(1.08); }
}

/* ── CORNER WEBS ───────────────────────────────── */
.corner-web {
  position: absolute;
  width: 90px; height: 90px;
  pointer-events: none;
  z-index: 2;
  color: var(--paper);
}
.corner-web.top-right { top: 0; right: 0; }
.corner-web.top-left { top: 0; left: 0; }

/* ── CUSTOM CURSOR ───────────────────────────── */
#web-canvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; width: 30px; height: 30px;
  top: -100px; left: -100px; opacity: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.3s ease;
  mix-blend-mode: difference;
  will-change: transform;
}
#cursor-ring.active { opacity: 1; }
#cursor-ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
#cursor-ring svg g { stroke: #F2EFE4; }
#cursor-ring.hover { width: 42px; height: 42px; }
#cursor-ring.hover svg .spider-body { fill: #FF6B6E; }

/* click/touch "web decal" impact */
.web-decal {
  position: fixed; pointer-events: none; z-index: 9997;
  width: 90px; height: 90px; transform: translate(-50%, -50%) scale(0.3);
  opacity: 0.9;
  animation: web-pop 0.6s ease-out forwards;
}
@keyframes web-pop {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0.95; }
  40%  { transform: translate(-50%, -50%) scale(1.05); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* ── NAV ──────────────────────────────────────── */
nav {
  border-bottom: 4px solid var(--ink);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 0 rgba(21,23,28,0.05);
  transition: background-color 0.3s ease;
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 26px; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--red); }

.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 15px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* SPIDER-SUIT THEME TOGGLE BUTTON */
.suit-toggle-btn {
  background: var(--yellow); color: #15171C;
  border: 2.5px solid var(--ink);
  padding: 6px 14px; font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; gap: 6px;
  transition: transform 0.12s ease, background 0.2s ease;
  user-select: none;
}
.suit-toggle-btn:hover { transform: translate(-2px, -2px); }
.suit-toggle-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

body.theme-miles .suit-toggle-btn {
  background: var(--red); color: #FFF; border-color: var(--ink);
}
body.theme-2099 .suit-toggle-btn {
  background: #3A00E5; color: #FFF; border-color: var(--ink);
}
body.theme-iron .suit-toggle-btn {
  background: #FFD700; color: #12100E; border-color: var(--ink);
}

/* Mobile Nav Toggle (Hamburger) */
.nav-toggle {
  display: none;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 6px 12px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--red);
  transition: transform 0.1s ease;
}
.nav-toggle:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--red); }
.toggle-bar {
  width: 20px; height: 2.5px; background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.toggle-label {
  font-size: 11px; color: var(--yellow); letter-spacing: 0.05em; line-height: 1; margin-top: 1px;
}

/* Mobile Drawer Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(21, 23, 28, 0.75);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.active {
  opacity: 1; pointer-events: auto;
}
.mobile-menu-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 85%; max-width: 340px;
  background: var(--ink); color: var(--paper);
  border-left: 5px solid var(--red);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 25px rgba(0,0,0,0.5);
  background-image: radial-gradient(circle, rgba(237,230,212,0.06) 1px, transparent 1px);
  background-size: 10px 10px;
}
.mobile-menu.active .mobile-menu-inner {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 3px solid rgba(237,230,212,0.15); padding-bottom: 16px;
}
.close-menu {
  background: var(--red); color: var(--paper);
  border: 2px solid var(--paper); font-size: 24px; line-height: 1;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--paper);
}

.mobile-nav-links {
  list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 10px;
}
.mobile-link {
  color: var(--paper); text-decoration: none;
  font-family: 'Bangers', cursive; font-size: 20px; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: rgba(237,230,212,0.05);
  border: 2px solid rgba(237,230,212,0.15);
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.mobile-link span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--red); }
.mobile-link:active {
  background: var(--red); color: var(--paper); border-color: var(--paper);
  transform: translateX(-4px);
}
.mobile-link:active span { color: var(--paper); }

.mobile-suit-box { margin-bottom: 16px; }
.mobile-suit-btn { width: 100%; justify-content: center; padding: 10px; font-size: 16px; }

.mobile-menu-footer {
  border-top: 3px solid rgba(237,230,212,0.15); padding-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── HERO PANEL ───────────────────────────────── */
.hero-panel {
  background: var(--ink); color: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: var(--panel-shadow);
  max-width: 1040px;
  margin: 36px auto 0;
  padding: 64px 48px 78px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(237,230,212,0.08) 1px, transparent 1px);
  background-size: 8px 8px;
}
.hero-inner { position: relative; max-width: 640px; }
.hero-header-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.status-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--paper);
  padding: 5px 12px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--paper);
}
.status-tag .dot { width: 6px; height: 6px; background: #6BCB77; border-radius: 50%; }

.hero-title { font-size: clamp(44px, 8vw, 84px); line-height: 0.95; margin-bottom: 20px; }
.hero-title .accent { color: var(--red); -webkit-text-stroke: 1.5px var(--paper); }

.speech-box {
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--red);
  padding: 18px 20px; max-width: 480px; margin: 24px 0 34px;
  font-size: 16.5px; position: relative;
}
.speech-tag {
  display: block; font-size: 12px; color: var(--red); letter-spacing: 0.05em; margin-bottom: 4px;
}
.speech-box::before {
  content: ''; position: absolute; left: 30px; bottom: -14px;
  width: 0; height: 0;
  border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 14px solid var(--ink);
}
.speech-box::after {
  content: ''; position: absolute; left: 33px; bottom: -9px;
  width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 10px solid var(--paper);
}

/* ── LIVE SPIDER-INTEL BROADCAST WIDGET ── */
.intel-broadcast-box {
  background: var(--ink); color: var(--paper);
  border: 3.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--red);
  padding: 14px 18px; max-width: 540px; margin: 24px 0 28px;
  position: relative; text-align: left;
}
.intel-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; margin-bottom: 6px;
}
.intel-title {
  font-size: 13.5px; color: var(--yellow); letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 8px;
}
.intel-title .dot.live-pulse {
  width: 8px; height: 8px; background: #6BCB77; border-radius: 50%;
  box-shadow: 0 0 8px #6BCB77;
  animation: pulse-dot 1.5s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.intel-time { font-size: 11px; color: var(--muted); opacity: 0.85; }
.intel-text {
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px;
  line-height: 1.45; color: var(--paper); font-weight: 500;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: 'Bangers', cursive; letter-spacing: 0.03em;
  font-size: 18px; text-decoration: none;
  padding: 10px 22px; border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease;
  display: inline-block; text-align: center;
}
.btn:hover { transform: translate(-2px,-2px); }
.btn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: #15171C; }

/* ── SECTION LABEL ────────────────────────────── */
.issue-tag {
  display: inline-block; font-family: 'Bangers', cursive;
  font-size: 15px; color: var(--paper); background: var(--blue);
  padding: 3px 12px; border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}
.panel-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }

section { padding: 56px 0 12px; }

/* ── PROJECT CATEGORY FILTER TABS ───────────────── */
.project-filters {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
}
.filter-tab {
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 16px; font-size: 16px; letter-spacing: 0.03em;
  transition: transform 0.12s ease, background 0.15s ease;
  user-select: none;
}
.filter-tab:hover { transform: translate(-2px, -2px); }
.filter-tab.active {
  background: var(--red); color: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.project-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-card.hidden-card {
  display: none !important;
}

/* ── ABOUT + EDU ROW ──────────────────────────── */
.split-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; max-width: 1040px; margin: 0 auto; }
.split-panel {
  border: 4px solid var(--ink);
  padding: 30px; position: relative;
}
.panel-dark { background: var(--ink); color: var(--paper); }
.panel-red { background: var(--red); color: var(--paper); }
.split-row .split-panel:first-child { border-right: none; }

.about-text p { margin-bottom: 14px; font-size: 16px; }
.about-text strong { font-weight: 700; color: var(--yellow); }

.edu-degree { font-family: 'Bangers', cursive; font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.edu-track { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; opacity: 0.9; }
.edu-uni { font-size: 14.5px; margin-bottom: 16px; opacity: 0.9; }
.edu-badge {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 12px; padding: 4px 10px; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1.5px solid var(--paper);
}
.panel-red .edu-badge { background: var(--paper); color: var(--red); border-color: var(--ink); }

/* ── FEATURED PROJECT ─────────────────────────── */
.feature-panel {
  border: 4px solid var(--ink); background: var(--paper);
  box-shadow: var(--panel-shadow);
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px;
  position: relative;
}
.feature-top-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 6px;
}
.feature-title { font-size: clamp(28px, 4.5vw, 40px); line-height: 1; }
.feature-title .flag { color: var(--red); }
.feature-live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue); color: var(--paper);
  border: 2px solid var(--ink); padding: 5px 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
}
.feature-live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #6BCB77;
}
.feature-tagline {
  color: var(--red); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.03em; margin: 6px 0 18px;
}
.feature-desc { font-size: 15.5px; color: var(--muted); margin-bottom: 20px; max-width: 66ch; }
.feature-desc strong { color: var(--ink); font-weight: 700; }

.feature-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.feature-stat {
  border: 3px solid var(--ink); padding: 12px 10px; text-align: center;
  background: var(--paper); box-shadow: 3px 3px 0 var(--ink);
}
.feature-stat b {
  display: block; font-family: 'Bangers', cursive; font-size: 24px; color: var(--red);
}
.feature-stat span {
  display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em;
}

.feature-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.feature-tool {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  background: var(--ink); color: var(--paper);
  padding: 5px 10px; border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--red);
}

.feature-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.feature-credit { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.feature-credit b { color: var(--ink); }

/* ── MORE BUILDS (secondary project cards) ────── */
.mini-title-wrap {
  display: flex; align-items: center; gap: 12px; margin-top: 36px; margin-bottom: 16px;
}
.mini-issue-tag {
  display: inline-block; font-family: 'Bangers', cursive;
  font-size: 16px; color: var(--ink); background: transparent;
  letter-spacing: 0.04em;
}
.mini-projects-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 1040px;
  margin: 0 auto 8px;
}
.mini-project-panel {
  border: 4px solid var(--ink); background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 26px; display: flex; flex-direction: column;
}
.mini-project-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 4px;
}
.mini-project-title { font-size: 24px; line-height: 1; }
.mini-project-title .flag { color: var(--red); }
.mini-project-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--ink); padding: 4px 10px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.mini-project-badge.live { background: var(--blue); color: var(--paper); }
.mini-project-badge.wip { background: var(--paper); color: var(--muted); }
.mini-project-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #6BCB77; }
.mini-project-tagline {
  color: var(--red); font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.03em; margin: 6px 0 12px;
}
.mini-project-desc { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; flex-grow: 1; }
.mini-project-desc strong { color: var(--ink); font-weight: 700; }
.mini-project-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.mini-project-tool {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  background: var(--ink); color: var(--paper);
  padding: 4px 8px; border: 2px solid var(--ink);
}
.mini-project-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm { font-size: 15px; padding: 7px 16px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:active { box-shadow: 1px 1px 0 var(--ink); }

/* ── STATS CARD (SKILLS) ──────────────────────── */
.stats-wrap { max-width: 1040px; margin: 0 auto; }
.stats-card {
  border: 4px solid var(--ink); background: var(--paper);
  box-shadow: var(--panel-shadow);
  padding: 32px;
}
.stat-row { margin-bottom: 20px; }
.stat-row:last-child { margin-bottom: 0; }
.stat-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.stat-name { font-family: 'Bangers', cursive; font-size: 18px; letter-spacing: 0.02em; }
.stat-level { font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat-meter { display: flex; gap: 4px; }
.stat-seg {
  height: 14px; flex: 1; background: rgba(21,23,28,0.1);
  border: 2px solid var(--ink); transition: background 0.2s ease;
}
.stat-seg.on { background: var(--red); }

.tool-list { margin-top: 6px; font-size: 13px; color: var(--muted); }
.tool-list b { color: var(--ink); font-weight: 600; }

/* ── EXPERIENCE & CERTIFICATES ────────────────── */
.exp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.exp-panel {
  border: 4px solid var(--ink); padding: 28px; background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink); display: flex; flex-direction: column;
  justify-content: space-between;
}
.exp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.exp-company { font-family: 'Bangers', cursive; font-size: 26px; }
.exp-via { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.exp-role { color: var(--red); font-weight: 700; font-size: 14px; text-transform: uppercase; margin-bottom: 12px; }
.exp-desc { font-size: 15px; color: var(--muted); margin-bottom: 18px; flex-grow: 1; }

.exp-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto;
}
.cert-view-btn {
  font-size: 14px; padding: 6px 12px;
  background: var(--yellow); color: #15171C;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease;
}
.cert-view-btn:hover { transform: translate(-2px, -2px); }
.cert-view-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.cert-pdf-btn {
  font-size: 14px; padding: 6px 12px;
  background: var(--red); color: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none; display: inline-block;
  transition: transform 0.12s ease;
}
.cert-pdf-btn:hover { transform: translate(-2px, -2px); }
.cert-pdf-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* ── CERTIFICATE MODAL DIALOG ──────────────────── */
.cert-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(21, 23, 28, 0.8);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.cert-modal.active {
  opacity: 1; pointer-events: auto;
}
.cert-modal-dialog {
  background: var(--paper); color: var(--ink);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
  max-width: 520px; width: 100%;
  padding: 32px 28px; position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cert-modal.active .cert-modal-dialog {
  transform: scale(1) translateY(0);
}
.cert-close-btn {
  position: absolute; top: 16px; right: 16px;
  background: var(--red); color: var(--paper);
  border: 2px solid var(--ink); font-size: 22px; line-height: 1;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--ink);
}
.cert-badge-stamp {
  display: inline-block; background: var(--blue); color: var(--paper);
  font-size: 12px; padding: 4px 10px; border: 2px solid var(--ink);
  transform: rotate(-3deg); margin-bottom: 12px;
}
.cert-modal-title { font-size: 28px; line-height: 1.1; margin-bottom: 4px; }
.cert-modal-subtitle { font-size: 13px; color: var(--red); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.cert-modal-body { font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.cert-modal-body ul { margin-left: 20px; margin-top: 8px; }
.cert-modal-body li { margin-bottom: 6px; }
.cert-modal-footer { display: flex; gap: 10px; justify-content: flex-end; }

/* ── INTERESTS ────────────────────────────────── */
.caption-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 24px; }
.caption-box {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  background: var(--paper); border: 3px solid var(--ink);
  padding: 8px 14px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.caption-box:active { transform: scale(0.96); background: var(--yellow); }

/* ── FINALE / CONTACT ─────────────────────────── */
.finale-panel {
  background: var(--ink); color: var(--paper);
  border: 4px solid var(--ink); box-shadow: var(--panel-shadow);
  max-width: 1040px;
  margin: 56px auto 40px; padding: 56px 40px; text-align: center;
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
  position: relative;
}
.finale-sfx { margin-bottom: 16px; }
.finale-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 8px; }
.finale-title .accent { color: var(--red); }
.finale-sub { font-size: 15px; opacity: 0.75; margin-bottom: 28px; }
.finale-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { text-align: center; padding: 20px 24px 40px; }
.footer-text { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); }

/* ── REVEAL ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── MOBILE / TOUCH SPECIFIC RESPONSIVE DESIGN ─── */
@media (max-width: 760px) {
  html, body { cursor: auto !important; }
  a, button { cursor: pointer !important; }
  #cursor-ring, #web-canvas { display: none !important; }

  /* Force all scroll reveal elements to be 100% visible on mobile */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* Mobile Header / Nav */
  .nav-links, .nav-actions #pitch-toggle, .nav-actions #sound-toggle, .nav-actions .suit-toggle-btn { display: none !important; }
  .nav-toggle { display: flex; }
  .comic-header-banner { font-size: 9.5px; padding: 5px 12px; }
  .banner-badge { display: none; }

  .mobile-tools-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px;
  }
  .mobile-tools-row .btn, .mobile-tools-row .sound-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 8px; font-size: 15px; margin: 0;
    box-shadow: 3px 3px 0 var(--ink); width: 100%;
  }
  .mobile-suit-btn {
    width: 100%; height: 44px; display: flex; align-items: center; justify-content: center;
  }

  /* Mobile Container Padding & Margins */
  .container { padding: 0 16px; }
  .hero-panel {
    padding: 40px 20px 52px;
    margin: 16px 12px 0;
    box-shadow: 5px 5px 0 var(--ink);
    clip-path: none !important;
  }
  .hero-title { font-size: clamp(38px, 11vw, 56px); margin-bottom: 16px; }
  
  .speech-box {
    margin: 18px 0 26px; padding: 14px 16px; font-size: 15px;
    box-shadow: 4px 4px 0 var(--red);
  }
  
  .btn-row { flex-direction: column; gap: 10px; width: 100%; }
  .btn { width: 100%; display: block; padding: 12px 18px; font-size: 20px; }

  /* Layout grids on mobile */
  .split-row, .exp-row { grid-template-columns: 1fr; gap: 16px; margin: 0 12px; }
  .split-row .split-panel:first-child { border-right: 4px solid var(--ink); }
  .split-panel, .exp-panel { padding: 22px 18px; }

  .feature-panel {
    margin: 0 12px; padding: 24px 18px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .feature-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .feature-stat { padding: 10px 6px; }
  .feature-stat b { font-size: 20px; }

  .mini-projects-row { grid-template-columns: 1fr; margin: 0 12px 8px; gap: 16px; }
  .mini-project-panel { padding: 20px 18px; }
  
  .stats-wrap, .caption-row, .finale-panel { margin-left: 12px; margin-right: 12px; }
  .stats-card { padding: 22px 18px; }
  .skills-split-grid { grid-template-columns: 1fr; }
  
  #contact { padding-bottom: 0 !important; }
  .finale-panel {
    padding: 32px 18px; margin: 32px 12px 12px !important;
    clip-path: none !important;
  }
  .finale-btns { flex-direction: column; width: 100%; gap: 10px; }
  footer { padding: 16px 16px max(20px, env(safe-area-inset-bottom)) !important; margin: 0 !important; }

  .project-filters { margin-left: 12px; margin-right: 12px; }
  .filter-tab { flex: 1 1 auto; text-align: center; font-size: 14px; padding: 6px 10px; }

  .web-fluid-hud { bottom: 16px; left: 16px; min-width: 140px; padding: 6px 10px; }
  .sim-controls { grid-template-columns: 1fr; }

  /* Web Decal Touch Feedback on Mobile */
  .web-decal {
    width: 60px; height: 60px;
    animation: web-pop-mobile 0.45s ease-out forwards;
  }
  @keyframes web-pop-mobile {
    0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0.85; }
    50%  { transform: translate(-50%, -50%) scale(0.95); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
  }

  /* Hide desktop-only keyboard hints on mobile */
  .keyboard-hints { display: none !important; }
}

/* ── SOUND EFFECTS TOGGLE BUTTON ───────────────── */
.sound-toggle-btn {
  background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--ink);
  padding: 6px 14px; font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex; align-items: center; gap: 6px;
  transition: transform 0.12s ease, background 0.2s ease;
  user-select: none;
}
.sound-toggle-btn:hover { transform: translate(-2px, -2px); }
.sound-toggle-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* ── FLOATING WEB-SLING TO TOP BUTTON ───────────── */
.scroll-top-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  background: var(--red); color: var(--paper);
  border: 3.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 16px; font-size: 16px;
  display: flex; align-items: center; gap: 6px;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.15s ease;
  user-select: none;
}
.scroll-top-btn.visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.scroll-top-btn:hover {
  transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink);
}
.scroll-top-btn:active {
  transform: translateY(1px); box-shadow: 2px 2px 0 var(--ink);
}

/* ── PRINT / PDF EXPORT RESUME MODE (`Ctrl + P`) ── */
@media print {
  html, body {
    cursor: auto !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    background-image: none !important;
    font-size: 14px !important;
  }
  
  nav, #web-canvas, #cursor-ring, .mobile-menu, .comic-header-banner,
  .sound-toggle-btn, .suit-toggle-btn, .scroll-top-btn,
  .corner-web, .project-filters, .cert-modal, .comic-sfx, .spider-sense-aura, .web-fluid-hud,
  .ml-simulator-box, .copy-toast, .keyboard-hints, .spider-signal-overlay, #skills-web-canvas {
    display: none !important;
  }
  
  .hero-panel, .feature-panel, .mini-project-panel,
  .split-panel, .stats-card, .exp-panel, .finale-panel {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 12px 0 !important;
    padding: 16px !important;
    clip-path: none !important;
    page-break-inside: avoid;
  }

  .speech-box {
    background: #FFF !important; color: #000 !important;
    border: 2px solid #000 !important; box-shadow: none !important;
  }
  .speech-box::before, .speech-box::after { display: none !important; }

  .hero-title, .panel-title, .feature-title,
  .mini-project-title, .edu-degree, .exp-company {
    color: #000000 !important;
    -webkit-text-stroke: 0 !important;
  }

  .btn {
    border: 1.5px solid #000000 !important;
    box-shadow: none !important;
    color: #000000 !important;
    background: #FFFFFF !important;
  }

  .tg-contact-form { display: none !important; }
}
