/* ==========================================================================
   mmahingu.com — Design System
   Fonts: Instrument Sans (body) · Syne (display) · Fira Code (mono)
   ========================================================================== */

/* ==========================================================================
   ██████████████████████████████████████████████████████████████████████████
   THEME DESIGN TOKENS — SINGLE SOURCE OF TRUTH
   Change colors in ONE place below to update the ENTIRE website automatically!

   HOW TO CHANGE ACCENT COLORS:
   ─ Dark theme   → edit --primary & --primary-rgb in [data-theme="dark"]  (below)
   ─ AMOLED theme → edit --primary & --primary-rgb in [data-theme="amoled"]
   ─ Light theme  → edit --primary & --primary-rgb in [data-theme="light"]
   All CTAs, borders, glows, active tabs, canvas particles, badges, and links
   inherit from --primary automatically via CSS variables!
   ██████████████████████████████████████████████████████████████████████████ */

/* --------------------------------------------------------------------------
   DARK THEME (Default)
   Aesthetic: Deep Carbon Obsidian & Electric Cyan (High-tech, sleek, executive)
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
  /* ── 1. PRIMARY ACCENT (Change these 2 lines to recolor the entire website!) ── */
  --primary:              #0ea5e9;                  /* Electric Cyan master accent */
  --primary-rgb:          14, 165, 233;             /* RGB channels for opacity/glows */
  --primary-hover:        #38bdf8;                  /* Interactive hover color */
  --primary-glow:         rgba(var(--primary-rgb), 0.28);
  --primary-subtle:       rgba(var(--primary-rgb), 0.12);

  /* ── 2. BACKGROUNDS & SURFACES ── */
  --bg-main:              #090a10;                  /* Main canvas background — deep carbon obsidian */
  --bg-surface:           #0f131d;                  /* Card/panel surface base */
  --bg-card:              rgba(15, 19, 29, 0.82);   /* Frosted glass cards */
  --bg-card-hover:        rgba(21, 27, 41, 0.96);   /* Card hover background */
  --bg-glass:             rgba(255, 255, 255, 0.04);
  --bg-code:              rgba(var(--primary-rgb), 0.08);
  --nav-bg:               rgba(9, 10, 16, 0.85);

  /* ── 3. BORDERS ── */
  --border-dim:           rgba(255, 255, 255, 0.07);
  --border-mid:           rgba(255, 255, 255, 0.13);
  --border-strong:        rgba(255, 255, 255, 0.22);
  --border-primary:       rgba(var(--primary-rgb), 0.32);

  /* ── 4. TYPOGRAPHY ── */
  --text-head:            #f1f5f9;                  /* Headings — crisp slate white */
  --text-body:            #8b97a8;                  /* Body text — cool slate */
  --text-dim:             #556172;                  /* Labels, metadata, dimmed */

  /* ── 5. SUPPORTING SEMANTIC ACCENTS ── */
  --accent-amber:         #f59e0b;                  /* DogStar audio / warm tags */
  --accent-amber-glow:    rgba(245, 158, 11, 0.22);
  --accent-amber-subtle:  rgba(245, 158, 11, 0.10);

  --accent-emerald:       #10b981;                  /* Success, live chips, copy buttons */
  --accent-emerald-glow:  rgba(16, 185, 129, 0.22);
  --accent-emerald-subtle:rgba(16, 185, 129, 0.10);

  --accent-indigo:        #6366f1;                  /* In-development, special badges */
  --accent-indigo-glow:   rgba(99, 102, 241, 0.22);
  --accent-indigo-subtle: rgba(99, 102, 241, 0.10);

  /* ── 6. DYNAMIC SYSTEM TOKENS ── */
  --card-shadow:          0 20px 60px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --canvas-color:         var(--primary-rgb);
  --spotlight-glow:       rgba(var(--primary-rgb), 0.06);

  /* ── 7. SEAMLESS COMPATIBILITY ALIASES ── */
  /* All existing styles using --accent-violet automatically inherit --primary */
  --accent-violet:        var(--primary);
  --accent-violet-glow:   var(--primary-glow);
  --accent-violet-subtle: var(--primary-subtle);
  --border-violet:        var(--border-primary);
}

/* --------------------------------------------------------------------------
   AMOLED THEME (True pitch black for OLED displays)
   -------------------------------------------------------------------------- */
[data-theme="amoled"] {
  /* ── 1. PRIMARY ACCENT ── */
  --primary:              #38bdf8;                  /* Bright electric sky pop */
  --primary-rgb:          56, 189, 248;
  --primary-hover:        #7dd3fc;
  --primary-glow:         rgba(var(--primary-rgb), 0.32);
  --primary-subtle:       rgba(var(--primary-rgb), 0.14);

  /* ── 2. BACKGROUNDS & SURFACES ── */
  --bg-main:              #000000;                  /* Pure pitch black */
  --bg-surface:           #07090e;                  /* Deepest panel */
  --bg-card:              rgba(8, 11, 18, 0.97);
  --bg-card-hover:        rgba(14, 18, 28, 1);
  --bg-glass:             rgba(255, 255, 255, 0.03);
  --bg-code:              rgba(var(--primary-rgb), 0.10);
  --nav-bg:               rgba(0, 0, 0, 0.92);

  /* ── 3. BORDERS ── */
  --border-dim:           rgba(255, 255, 255, 0.09);
  --border-mid:           rgba(255, 255, 255, 0.16);
  --border-strong:        rgba(255, 255, 255, 0.24);
  --border-primary:       rgba(var(--primary-rgb), 0.38);

  /* ── 4. TYPOGRAPHY ── */
  --text-head:            #ffffff;
  --text-body:            #94a3b8;
  --text-dim:             #606c7e;

  /* ── 5. SUPPORTING SEMANTIC ACCENTS ── */
  --accent-amber:         #fbbf24;
  --accent-amber-glow:    rgba(251, 191, 36, 0.25);
  --accent-amber-subtle:  rgba(251, 191, 36, 0.10);

  --accent-emerald:       #34d399;
  --accent-emerald-glow:  rgba(52, 211, 153, 0.24);
  --accent-emerald-subtle:rgba(52, 211, 153, 0.10);

  --accent-indigo:        #818cf8;
  --accent-indigo-glow:   rgba(129, 140, 248, 0.24);
  --accent-indigo-subtle: rgba(129, 140, 248, 0.10);

  /* ── 6. DYNAMIC SYSTEM TOKENS ── */
  --card-shadow:          0 24px 70px -15px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --canvas-color:         var(--primary-rgb);
  --spotlight-glow:       rgba(var(--primary-rgb), 0.07);

  /* ── 7. SEAMLESS COMPATIBILITY ALIASES ── */
  --accent-violet:        var(--primary);
  --accent-violet-glow:   var(--primary-glow);
  --accent-violet-subtle: var(--primary-subtle);
  --border-violet:        var(--border-primary);
}

/* --------------------------------------------------------------------------
   LIGHT THEME (Daylight porcelain & Cobalt)
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  /* ── 1. PRIMARY ACCENT ── */
  --primary:              #0284c7;                  /* High-contrast cobalt cyan */
  --primary-rgb:          2, 132, 199;
  --primary-hover:        #0369a1;
  --primary-glow:         rgba(var(--primary-rgb), 0.22);
  --primary-subtle:       rgba(var(--primary-rgb), 0.08);

  /* ── 2. BACKGROUNDS & SURFACES ── */
  --bg-main:              #f8fafc;                  /* Daylight porcelain slate */
  --bg-surface:           #ffffff;                  /* Pure white card */
  --bg-card:              rgba(255, 255, 255, 0.92);
  --bg-card-hover:        rgba(255, 255, 255, 1);
  --bg-glass:             rgba(0, 0, 0, 0.03);
  --bg-code:              rgba(var(--primary-rgb), 0.07);
  --nav-bg:               rgba(248, 250, 252, 0.88);

  /* ── 3. BORDERS ── */
  --border-dim:           rgba(0, 0, 0, 0.07);
  --border-mid:           rgba(0, 0, 0, 0.12);
  --border-strong:        rgba(0, 0, 0, 0.20);
  --border-primary:       rgba(var(--primary-rgb), 0.28);

  /* ── 4. TYPOGRAPHY ── */
  --text-head:            #0f172a;                  /* Crisp deep ink */
  --text-body:            #334155;                  /* High-readability body slate */
  --text-dim:             #64748b;                  /* Dimmed labels */

  /* ── 5. SUPPORTING SEMANTIC ACCENTS ── */
  --accent-amber:         #d97706;
  --accent-amber-glow:    rgba(217, 119, 6, 0.18);
  --accent-amber-subtle:  rgba(217, 119, 6, 0.08);

  --accent-emerald:       #059669;
  --accent-emerald-glow:  rgba(5, 150, 105, 0.18);
  --accent-emerald-subtle:rgba(5, 150, 105, 0.08);

  --accent-indigo:        #4f46e5;
  --accent-indigo-glow:   rgba(79, 70, 229, 0.18);
  --accent-indigo-subtle: rgba(79, 70, 229, 0.08);

  /* ── 6. DYNAMIC SYSTEM TOKENS ── */
  --card-shadow:          0 4px 24px -6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --canvas-color:         var(--primary-rgb);
  --spotlight-glow:       rgba(var(--primary-rgb), 0.04);

  /* ── 7. SEAMLESS COMPATIBILITY ALIASES ── */
  --accent-violet:        var(--primary);
  --accent-violet-glow:   var(--primary-glow);
  --accent-violet-subtle: var(--primary-subtle);
  --border-violet:        var(--border-primary);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Accessibility: Keyboard Skip Link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1.5rem;
  background: var(--primary);
  color: #000;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 99999;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus {
  top: 1.5rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; }

/* --------------------------------------------------------------------------
   3. Motion Canvas & Ambient Layers
   -------------------------------------------------------------------------- */
.motion-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0; opacity: 0.5;
}
.spotlight-cursor {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--spotlight-glow) 0%, transparent 70%);
  pointer-events: none; transform: translate(-50%, -50%); z-index: 0;
  transition: opacity 0.3s ease;
}
.ambient-mesh {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(245,158,11,0.035) 0%, transparent 45%);
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--text-head);
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.eyebrow {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-violet);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.65;
}
.brand-dot { color: var(--accent-violet); }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; padding: 0.72rem 1.4rem;
  border-radius: 10px; text-decoration: none; cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent; position: relative;
}
.btn-primary {
  background: var(--accent-violet); color: #0d0420;
  box-shadow: 0 4px 20px var(--accent-violet-glow);
}
.btn-primary:hover {
  transform: translateY(-2px); filter: brightness(1.1);
  box-shadow: 0 8px 28px var(--accent-violet-glow);
}
.btn-ghost {
  background: transparent; color: var(--text-head);
  border-color: var(--border-mid); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--bg-glass); border-color: var(--border-strong); transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; border-radius: 8px; }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8, 8, 15, 0.97);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 1px 50px rgba(0,0,0,0.65);
}
[data-theme="amoled"] .navbar.scrolled { background: rgba(0,0,0,0.98); }
[data-theme="light"] .navbar.scrolled {
  background: rgba(245, 244, 248, 0.98);
  box-shadow: 0 1px 30px rgba(0,0,0,0.1);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.25rem; max-width: 1200px; margin: 0 auto; padding: 0 1.75rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-monogram {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent-violet);
  color: #0d0420; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem;
  box-shadow: 0 0 12px var(--accent-violet-glow);
}
.brand-text { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-head); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-link { color: var(--text-dim); font-size: 0.88rem; font-weight: 500; transition: color 0.2s ease; }
.nav-link:hover { color: var(--text-head); }
.nav-controls { display: flex; align-items: center; gap: 1rem; }

/* Mobile Navigation Featured Card (Strictly hidden on desktop!) */
.mobile-nav-featured {
  display: none !important; /* Only shown inside mobile drawer on <= 768px */
}

/* Header GitHub Backup Manager Pill Button */
.nav-btn-gbm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap !important;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.06);
}

.nav-btn-gbm:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

.nav-btn-gbm:active {
  transform: translateY(0);
}

.nav-gbm-icon {
  font-size: 0.85rem;
  line-height: 1;
  display: inline-block;
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.nav-gbm-text-full {
  display: inline;
  white-space: nowrap;
}

.nav-gbm-text-short {
  display: none !important; /* CRITICAL: Hidden on desktop */
  white-space: nowrap;
}

/* Theme variants for nav-btn-gbm */
[data-theme="light"] .nav-btn-gbm {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.32);
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.08);
}
[data-theme="light"] .nav-btn-gbm:hover {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(2, 132, 199, 0.6);
  color: #0369a1;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.2);
}
[data-theme="amoled"] .nav-btn-gbm {
  background: rgba(56, 189, 248, 0.04);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Theme Switcher */
.theme-switcher {
  display: flex; align-items: center; background: var(--bg-surface);
  border: 1px solid var(--border-dim); border-radius: 9999px; padding: 3px; gap: 2px;
}
.theme-btn {
  background: transparent; border: none; color: var(--text-dim);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
}
.theme-btn:hover { color: var(--text-head); }
.theme-btn.active { background: var(--accent-violet); color: #0d0420; box-shadow: 0 0 8px var(--accent-violet-glow); }

/* --------------------------------------------------------------------------
   7. Section Layout
   -------------------------------------------------------------------------- */
.section { padding: 6.5rem 0; position: relative; z-index: 1; }
.section-header { margin-bottom: 3.5rem; }
.section-header.text-center { text-align: center; }
.section-header.text-center .section-sub { margin: 0 auto; }

/* Scroll Reveal */
.reveal-item { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-item.visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   8. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 0 5rem; position: relative; z-index: 1;
}
.hero-container { display: flex; flex-direction: column; gap: 1.75rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--accent-violet-subtle); border: 1px solid var(--border-violet);
  border-radius: 9999px; padding: 0.35rem 1rem;
  font-size: 0.82rem; font-weight: 500; color: var(--accent-violet);
  width: fit-content;
}
.pulse-ring {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-emerald);
  position: relative; flex-shrink: 0;
}
.pulse-ring::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--accent-emerald); opacity: 0.6;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }

.hero-title {
  font-family: 'Syne', sans-serif; font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  color: var(--text-head);
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-body);
  max-width: 560px; line-height: 1.65;
}
.hero-lead strong { color: var(--text-head); font-weight: 600; }

/* Terminal */
.hero-terminal {
  background: var(--bg-surface); border: 1px solid var(--border-dim);
  border-radius: 14px; overflow: hidden; max-width: 600px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem; background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border-dim);
}
.t-lights { display: flex; gap: 6px; }
.t-l { width: 11px; height: 11px; border-radius: 50%; }
.t-r { background: #ff5f57; }
.t-y { background: #febc2e; }
.t-g { background: #28c840; }
.t-file { font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--text-dim); margin-left: auto; }
.t-status { display: flex; align-items: center; gap: 0.35rem; font-family: 'Fira Code', monospace; font-size: 0.7rem; color: var(--accent-emerald); }
.t-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-emerald); animation: blink 2.5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.terminal-body { padding: 1.25rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.t-row { display: flex; align-items: center; gap: 0.6rem; }
.t-prompt { font-family: 'Fira Code', monospace; color: var(--accent-violet); font-size: 0.9rem; }
.t-cmd { font-family: 'Fira Code', monospace; font-size: 0.88rem; color: var(--text-head); }
.t-cur {
  width: 2px; height: 1em; background: var(--accent-violet); display: inline-block;
  animation: curBlink 1.1s step-end infinite;
}
@keyframes curBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.t-outputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.t-out { display: flex; flex-direction: column; gap: 0.2rem; }
.t-key { font-family: 'Fira Code', monospace; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.t-val { font-size: 0.85rem; font-weight: 600; color: var(--text-head); }
.t-val.accent { color: var(--accent-emerald); }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Stats row */
.stat-row {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: var(--bg-surface); border: 1px solid var(--border-dim);
  border-radius: 14px; overflow: hidden; width: fit-content;
  max-width: 100%;
}
.stat-item { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.1rem 1.6rem; }
.stat-n { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text-head); line-height: 1; }
.stat-l { font-size: 0.72rem; color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.stat-sep { width: 1px; height: 2.5rem; background: var(--border-dim); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   9. App Cards Grid
   -------------------------------------------------------------------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px -15px rgba(0,0,0,0.8);
  border-color: var(--border-mid);
}

/* Accent bar */
.card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.card-accent--violet { background: linear-gradient(90deg, var(--accent-violet), transparent); }
.card-accent--amber  { background: linear-gradient(90deg, var(--accent-amber), transparent); }
.card-accent--emerald{ background: linear-gradient(90deg, var(--accent-emerald), transparent); }
.card-accent--indigo { background: linear-gradient(90deg, var(--accent-indigo), transparent); }
.card-accent--cyan   { background: linear-gradient(90deg, #0ea5e9, transparent); }

.card-top { display: flex; flex-direction: column; gap: 0.85rem; }
.card-identity { display: flex; align-items: flex-start; gap: 0.9rem; }
.app-title { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text-head); }
.app-tagline { font-size: 0.85rem; color: var(--accent-violet); font-weight: 500; margin-top: 0.1rem; line-height: 1.4; }

/* Badges */
.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  font-family: 'Fira Code', monospace; font-size: 0.68rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge--violet  { background: var(--accent-violet-subtle); color: var(--accent-violet); border: 1px solid var(--border-violet); }
.badge--amber   { background: var(--accent-amber-subtle);  color: var(--accent-amber);  border: 1px solid rgba(245,158,11,0.25); }
.badge--emerald { background: var(--accent-emerald-subtle);color: var(--accent-emerald);border: 1px solid rgba(52,211,153,0.22); }
.badge--indigo  { background: var(--accent-indigo-subtle); color: var(--accent-indigo); border: 1px solid rgba(129,140,248,0.22); }
.badge--cyan    { background: rgba(14,165,233,0.15); color: #0ea5e9; border: 1px solid rgba(14,165,233,0.3); }
.badge--subtle  { background: var(--bg-glass); color: var(--text-dim); border: 1px solid var(--border-dim); }

/* --------------------------------------------------------------------------
   10. Screenshot Carousel
   -------------------------------------------------------------------------- */
.screenshot-carousel {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  background: var(--bg-surface); border-radius: 14px; padding: 1rem;
  border: 1px solid var(--border-dim);
}
.carousel-track { width: 100%; display: flex; justify-content: center; }
.phone-shell {
  width: 160px; aspect-ratio: 9/19;
  background: #111; border-radius: 22px; overflow: hidden;
  border: 2px solid var(--border-mid);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  position: relative;
}
.carousel-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.45s ease;
}
.carousel-img.fading { opacity: 0; }
.carousel-dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-mid); transition: all 0.2s ease; cursor: pointer;
}
.carousel-dot.active { background: var(--accent-violet); width: 18px; border-radius: 9999px; }

/* --------------------------------------------------------------------------
   11. Feature List
   -------------------------------------------------------------------------- */
.feature-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.55rem;
  flex: 1;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.875rem; color: var(--text-body); line-height: 1.5;
}
.feature-list li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-violet); margin-top: 0.45em; flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Card Footer & Status Chips
   -------------------------------------------------------------------------- */
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-dim);
  flex-wrap: wrap;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.8rem;
  border-radius: 9999px; border: 1px solid;
}
.status-chip--testing { color: var(--accent-amber); background: var(--accent-amber-subtle); border-color: rgba(245,158,11,0.25); }
.status-chip--building { color: var(--accent-emerald); background: var(--accent-emerald-subtle); border-color: rgba(52,211,153,0.22); }

/* --------------------------------------------------------------------------
   13. WIP Card (mHired)
   -------------------------------------------------------------------------- */
.app-card--wip { border-style: dashed; border-color: var(--border-mid); }
.app-card--wip:hover { border-style: solid; border-color: var(--accent-indigo); }
.wip-ribbon {
  position: absolute; top: 1.1rem; right: -0.5rem;
  background: var(--accent-indigo); color: #ffffff;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.2rem 0.8rem 0.2rem 0.7rem;
  border-radius: 9999px 0 0 9999px;
  box-shadow: -3px 2px 14px rgba(129,140,248,0.3);
}
.wip-icon-box {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--accent-indigo-subtle); border: 1px solid var(--accent-indigo-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-indigo); flex-shrink: 0;
}
.wip-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.wip-desc { font-size: 0.875rem; color: var(--text-body); line-height: 1.65; }
.wip-progress-block { display: flex; flex-direction: column; gap: 0.45rem; }
.wip-prog-header { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-dim); }
.wip-pct { font-family: 'Fira Code', monospace; color: var(--accent-indigo); font-weight: 600; }
.wip-bar { height: 4px; background: var(--border-dim); border-radius: 9999px; overflow: hidden; }
.wip-fill { height: 100%; background: linear-gradient(90deg, var(--accent-indigo), var(--accent-violet)); border-radius: 9999px; }
.pill-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pill-sm {
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 9999px;
  background: var(--bg-glass); color: var(--text-dim); border: 1px solid var(--border-dim);
}

/* --------------------------------------------------------------------------
   14. Skills Section
   -------------------------------------------------------------------------- */
.rapid-callout {
  display: flex; align-items: flex-start; gap: 1rem;
  background: linear-gradient(135deg, var(--accent-amber-subtle), var(--accent-violet-subtle));
  border: 1px solid rgba(245,158,11,0.2); border-radius: 14px;
  padding: 1.25rem 1.5rem; margin-bottom: 3rem;
  font-size: 0.93rem; line-height: 1.65; color: var(--text-body);
}
.rapid-callout strong { color: var(--text-head); font-weight: 600; }
.rc-icon {
  color: var(--accent-amber); flex-shrink: 0; margin-top: 0.1rem;
  background: var(--accent-amber-subtle); padding: 0.6rem; border-radius: 10px;
  border: 1px solid rgba(245,158,11,0.2);
}
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column;
  gap: 0.9rem; backdrop-filter: blur(10px); box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover { transform: translateY(-3px); border-color: var(--border-mid); }
.sk-icon {
  width: 42px; height: 42px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.sk-icon--violet { background: var(--accent-violet-subtle); color: var(--accent-violet); }
.sk-icon--amber  { background: var(--accent-amber-subtle); color: var(--accent-amber); }
.sk-icon--emerald{ background: var(--accent-emerald-subtle); color: var(--accent-emerald); }
.sk-title { font-family: 'Instrument Sans', sans-serif; font-size: 0.97rem; font-weight: 600; color: var(--text-head); }
.sk-desc { font-size: 0.84rem; color: var(--text-body); line-height: 1.65; flex: 1; }

/* --------------------------------------------------------------------------
   15. Process Section
   -------------------------------------------------------------------------- */
.process-section { background: linear-gradient(180deg, transparent, rgba(var(--primary-rgb), 0.02) 50%, transparent); }
.process-list { display: flex; flex-direction: column; margin-top: 3rem; }
.process-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 2rem;
  padding: 2rem 0; border-bottom: 1px solid var(--border-dim);
}
.process-item:last-child { border-bottom: none; }
.process-item:hover .pi-num { color: var(--accent-violet); border-color: var(--accent-violet); background: var(--accent-violet-subtle); }
.pi-num {
  font-family: 'Fira Code', monospace; font-size: 0.85rem; font-weight: 600;
  color: var(--text-dim); border: 1px solid var(--border-dim); border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.25s ease; background: var(--bg-card); margin-top: 0.15rem;
}
.pi-body { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 0.1rem; }
.pi-title { font-family: 'Instrument Sans', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--text-head); }
.pi-desc { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; max-width: 680px; }
.pi-desc code {
  font-family: 'Fira Code', monospace; font-size: 0.85em;
  color: var(--accent-violet); background: var(--bg-code);
  padding: 0.1em 0.4em; border-radius: 4px;
}

/* --------------------------------------------------------------------------
   16. About Section
   -------------------------------------------------------------------------- */
.about-layout {
  display: grid; grid-template-columns: 420px 1fr; gap: 5rem; align-items: start;
}
.about-photo-side { display: flex; flex-direction: column; gap: 1.25rem; }
.about-photo-wrap { position: relative; border-radius: 20px; overflow: hidden; }
.about-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,15,0.7) 0%, transparent 50%);
}
.about-mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border-dim); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-dim);
}
.mini-stat {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 0.75rem;
  background: var(--bg-card); text-align: center;
}
.ms-n { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--accent-violet); line-height: 1; }
.ms-l { font-size: 0.68rem; color: var(--text-dim); font-weight: 500; line-height: 1.3; }
.narrative-body { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.5rem 0; }
.narrative-body p { font-size: 0.96rem; color: var(--text-body); line-height: 1.75; }
.narrative-body strong { color: var(--text-head); font-weight: 600; }
.cred-grid { display: flex; flex-direction: column; gap: 0.65rem; padding-top: 1.5rem; border-top: 1px solid var(--border-dim); }
.cred-pair { display: flex; gap: 1.5rem; align-items: baseline; }
.cred-k { font-family: 'Fira Code', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); min-width: 100px; flex-shrink: 0; }
.cred-v { font-size: 0.9rem; font-weight: 500; color: var(--text-head); }

/* --------------------------------------------------------------------------
   17. Contact & Footer
   -------------------------------------------------------------------------- */
.footer-section { padding: 5rem 0 3rem; position: relative; z-index: 1; overflow: hidden; }

/* Animated ambient aurora glow */
.contact-aurora {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 440px;
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, rgba(16, 185, 129, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: auroraDrift 9s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate(-50%, -48%) scale(0.95); opacity: 0.6; }
  50%  { transform: translate(-47%, -53%) scale(1.12); opacity: 0.85; }
  100% { transform: translate(-52%, -49%) scale(1.02); opacity: 0.7; }
}

.contact-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 24px;
  padding: 3.5rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--bg-surface), rgba(var(--primary-rgb), 0.04));
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  z-index: 1;
}
.contact-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0.6rem 0 1rem;
}
.contact-lead {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.contact-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Connect Channels Grid (4 Interactive Motion Cards) */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}
.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 18px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.connect-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-mid);
}
.connect-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.connect-card--play::before {
  background: linear-gradient(90deg, #34d399, transparent);
}
.connect-card--play:hover {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 20px 50px -10px rgba(52, 211, 153, 0.22);
}
.connect-card--linkedin::before {
  background: linear-gradient(90deg, #38bdf8, transparent);
}
.connect-card--linkedin:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 50px -10px rgba(56, 189, 248, 0.22);
}
.connect-card--insta-apps::before {
  background: linear-gradient(90deg, #ec4899, #f59e0b, transparent);
}
.connect-card--insta-apps:hover {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 20px 50px -10px rgba(236, 72, 153, 0.22);
}
.connect-card--insta-personal::before {
  background: linear-gradient(90deg, #f43f5e, #a855f7, transparent);
}
.connect-card--insta-personal:hover {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 20px 50px -10px rgba(244, 63, 94, 0.22);
}

.connect-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.connect-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.connect-card:hover .connect-icon-wrap {
  transform: scale(1.14) rotate(5deg);
}
.connect-card--play .connect-icon-wrap { color: #34d399; }
.connect-card--linkedin .connect-icon-wrap { color: #38bdf8; }
.connect-card--insta-apps .connect-icon-wrap { color: #ec4899; }
.connect-card--insta-personal .connect-icon-wrap { color: #f43f5e; }
.connect-icon { width: 22px; height: 22px; }

.connect-arrow {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-dim);
  color: var(--text-dim);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.connect-card:hover .connect-arrow {
  color: var(--primary);
  border-color: var(--border-mid);
  transform: translate(2px, -2px);
  background: var(--bg-surface);
}
.connect-card--play:hover .connect-arrow { color: #34d399; border-color: rgba(52, 211, 153, 0.4); }
.connect-card--linkedin:hover .connect-arrow { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.connect-card--insta-apps:hover .connect-arrow { color: #ec4899; border-color: rgba(236, 72, 153, 0.4); }
.connect-card--insta-personal:hover .connect-arrow { color: #f43f5e; border-color: rgba(244, 63, 94, 0.4); }

.connect-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.connect-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.25;
}
.connect-handle {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 0.1rem;
  font-weight: 500;
}

.connect-card-foot {
  display: flex;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-dim);
  margin-top: auto;
}
.connect-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-head);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.connect-card:hover .connect-action {
  color: var(--primary);
  transform: translateX(5px);
}

/* Footer bottom bar & quick social icons */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.footer-brand { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text-head); }
.footer-copy { color: var(--text-dim); }
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.footer-social-btn:hover {
  color: var(--primary);
  border-color: var(--border-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   18. Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  backdrop-filter: blur(6px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-panel {
  background: var(--bg-surface); border: 1px solid var(--border-mid);
  border-radius: 20px; max-width: 620px; width: 100%; max-height: 85vh;
  overflow-y: auto; display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: translateY(16px); transition: transform 0.25s ease;
}
.modal-backdrop.open .modal-panel { transform: none; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 1.5rem 0;
}
.modal-ident { display: flex; align-items: flex-start; gap: 1rem; }
.modal-app-icon { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; flex-shrink: 0; }
.modal-app-name { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--text-head); }
.modal-app-tag { font-size: 0.83rem; color: var(--text-dim); margin-top: 0.2rem; }
.modal-close {
  width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--text-dim); flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--bg-glass); color: var(--text-head); }
.modal-tabs { display: flex; gap: 0; padding: 1rem 1.5rem 0; border-bottom: 1px solid var(--border-dim); }
.m-tab {
  padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--text-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.18s ease;
  cursor: pointer;
}
.m-tab.active { color: var(--accent-violet); border-color: var(--accent-violet); }
.modal-content { padding: 1.5rem; flex: 1; }
.modal-foot { padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border-dim); }
.modal-desc { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; margin-bottom: 1rem; }
.modal-why-grid { display: flex; flex-direction: column; gap: 0.85rem; }
.modal-why-item { display: flex; flex-direction: column; gap: 0.2rem; }
.modal-why-item strong { font-size: 0.88rem; color: var(--text-head); }
.modal-why-item p { font-size: 0.84rem; color: var(--text-body); line-height: 1.6; }
.modal-feature-list { display: flex; flex-direction: column; gap: 1rem; }
.modal-feature-item { display: flex; flex-direction: column; gap: 0.2rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border-dim); }
.modal-feature-item:last-child { border-bottom: none; }
.modal-feature-item strong { font-size: 0.88rem; color: var(--text-head); }
.modal-feature-item p { font-size: 0.84rem; color: var(--text-body); line-height: 1.6; }
.modal-privacy-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.modal-privacy-list li { display: flex; gap: 0.6rem; font-size: 0.88rem; color: var(--text-body); line-height: 1.6; }
.modal-privacy-list li::before { content: '✓'; color: var(--accent-emerald); font-weight: 700; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   19. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; bottom: 1.75rem; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--text-head); color: var(--bg-main); font-size: 0.85rem;
  font-weight: 600; padding: 0.6rem 1.2rem; border-radius: 9999px;
  opacity: 0; pointer-events: none; transition: all 0.25s ease; white-space: nowrap; z-index: 2000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------------------------------
   20. Mobile Navigation & Responsive
   -------------------------------------------------------------------------- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.mobile-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-mid);
}
.hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--text-head);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { aspect-ratio: 16/9; }
}

@media (max-width: 860px) {
  .app-grid { grid-template-columns: 1fr; }
  .stat-row { width: 100%; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .mobile-nav-featured {
    display: block !important;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-mid);
  }
  .nav-gbm-text-full { display: none !important; }
  .nav-gbm-text-short { display: inline !important; }
  .nav-btn-gbm {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.28rem;
  }
  .mobile-nav-featured-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    color: var(--text-head);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .mobile-nav-featured-link:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(99, 102, 241, 0.22));
    border-color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
  }
  .mobile-nav-featured-icon {
    font-size: 1.2rem;
    line-height: 1;
  }
  .mobile-nav-featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mobile-nav-featured-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #38bdf8;
  }
  .mobile-nav-featured-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-mid);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; animation: slideDown 0.22s ease-out; }
  .nav-link {
    padding: 0.7rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-dim);
  }
  .nav-link:last-child { border-bottom: none; }

  .container { padding: 0 1.25rem; }
  .hero-section { padding: 5rem 0 3.5rem; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 4.5rem); }
  .skills-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .t-outputs { grid-template-columns: 1fr 1fr; }
  .about-mini-stats { grid-template-columns: repeat(3, 1fr); }
  .connect-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-card { padding: 2.4rem 1.4rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1.25rem; }
  .footer-links { justify-content: center; }
  .footer-social-icons { justify-content: center; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .nav-btn-gbm {
    padding: 0.32rem 0.6rem;
    font-size: 0.74rem;
    gap: 0.25rem;
  }
}

@media (max-width: 400px) {
  .nav-controls { gap: 0.45rem; }
  .nav-container { padding: 0 1rem; }
  .nav-btn-gbm { padding: 0.3rem 0.52rem; font-size: 0.72rem; }
}

@media (max-width: 540px) {
  .container { padding: 0 1rem; }
  .stat-row { flex-direction: column; align-items: stretch; border-radius: 12px; }
  .stat-sep { width: 100%; height: 1px; }
  .stat-item { padding: 0.85rem 1.2rem; }
  .t-outputs { grid-template-columns: 1fr; }
  .about-mini-stats { grid-template-columns: 1fr; }
  .nav-cta { display: none !important; } /* Saves navbar space on narrow mobile screens */
  .nav-btn-gbm {
    display: inline-flex !important;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    gap: 0.22rem;
  }

  /* Modal scaling for small screens */
  .testing-backdrop { padding: 0.75rem; }
  .testing-panel { border-radius: 16px; }
  .testing-body { padding: 1.15rem; gap: 0.85rem; }
  .testing-step { padding: 0.85rem 0.95rem; }
  .step-links { padding-left: 0; }
  .step-note { padding-left: 0; }
  .step-link-row { padding: 0.45rem 0.65rem; }
  .step-link-text { font-size: 0.68rem; }
  .step-copy-btn { font-size: 0.65rem; padding: 0.25rem 0.5rem; }

  .modal-backdrop { padding: 0.75rem; }
  .modal-panel { border-radius: 16px; }
  .modal-head { padding: 1.25rem 1.25rem 0; }
  .modal-tabs { padding: 0.75rem 1.25rem 0; }
  .modal-content { padding: 1.25rem; }
  .modal-foot { padding: 0.85rem 1.25rem 1.25rem; }
}

@media (max-width: 380px) {
  .brand-text { font-size: 0.95rem; }
  .hero-title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-badge { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   21. ResumeSpot Testing Modal
   -------------------------------------------------------------------------- */
.testing-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  backdrop-filter: blur(8px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.testing-backdrop.open { opacity: 1; pointer-events: all; }
.testing-panel {
  background: var(--bg-surface); border: 1px solid var(--border-mid);
  border-radius: 20px; max-width: 540px; width: 100%;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  transform: translateY(16px); transition: transform 0.25s ease;
}
.testing-backdrop.open .testing-panel { transform: none; }
.testing-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.5rem 1.15rem; border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}
.testing-head-left { display: flex; align-items: center; gap: 0.85rem; }
.testing-head-icon { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border-dim); }
.testing-head-icon img { width: 100%; height: 100%; object-fit: cover; }
.testing-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text-head); }
.testing-subtitle { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.1rem; }
.testing-close {
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: var(--text-dim);
  transition: background 0.15s, color 0.15s; cursor: pointer; border: none; background: none;
}
.testing-close:hover { background: var(--bg-glass); color: var(--text-head); }
.testing-body {
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.testing-note {
  background: var(--accent-amber-subtle); border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px; padding: 0.85rem 1rem;
  font-size: 0.82rem; color: var(--text-body); line-height: 1.55;
}
.testing-note strong { color: var(--accent-amber); }
.testing-steps { display: flex; flex-direction: column; gap: 0.85rem; }
.testing-step {
  display: flex; flex-direction: column; gap: 0.55rem;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: 12px; padding: 1rem 1.1rem;
}
.testing-step-head { display: flex; align-items: flex-start; gap: 0.7rem; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.28); color: var(--accent-emerald);
  font-family: 'Fira Code', monospace; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.1rem;
}
.step-label { font-size: 0.88rem; font-weight: 600; color: var(--text-head); line-height: 1.35; }
.step-links { display: flex; flex-direction: column; gap: 0.4rem; padding-left: 1.9rem; }
.step-note {
  font-size: 0.75rem; color: var(--text-dim);
  margin-top: 0.35rem; margin-bottom: 0.12rem; font-style: italic;
}
.step-link-row {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-surface); border: 1px solid var(--border-dim);
  border-radius: 8px; padding: 0.42rem 0.7rem; overflow: hidden;
}
.step-link-text {
  font-family: 'Fira Code', monospace; font-size: 0.72rem; color: var(--text-dim);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.step-link-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.step-copy-btn {
  flex-shrink: 0; background: var(--primary-subtle); border: 1px solid var(--border-primary);
  color: var(--primary); border-radius: 6px; padding: 0.25rem 0.6rem;
  font-size: 0.68rem; font-weight: 600; cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
}
.step-copy-btn:hover { background: var(--primary); color: #07090e; }
.step-copy-btn.copied { background: var(--accent-emerald); border-color: var(--accent-emerald); color: #06180f; }



/* Desktop hide for mobile-only nav links */
@media (min-width: 769px) {
  .nav-link-mobile-only { display: none !important; }
}


/* ==========================================================================
   2-Column Hero Layout (Left: Developer Profile · Right: Steam-Style Flagship Showcase)
   ========================================================================== */
.hero-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1360px;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
  }
}

.hero-col-left {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-col-right {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

/* ==========================================================================
   Steam-Style Launch Showcase (GitHub Backup Manager)
   ========================================================================== */
.steam-launch-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(9, 14, 26, 0.98));
  border: 1px solid rgba(14, 165, 233, 0.38);
  border-radius: 24px;
  padding: 1.85rem 2rem;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.8), 0 0 45px -10px rgba(14, 165, 233, 0.25);
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.steam-launch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #6366f1, #0ea5e9);
  background-size: 200% 100%;
  animation: steam-top-shimmer 4s linear infinite;
}

@keyframes steam-top-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.steam-launch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.16), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #38bdf8;
  position: relative;
  overflow: hidden;
}

.steam-launch-banner::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: steam-shimmer 3s infinite;
}

@keyframes steam-shimmer {
  0% { left: -100%; }
  35%, 100% { left: 150%; }
}

.steam-launch-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f8fafc;
}

.steam-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: steam-pulse 1.8s infinite;
}

@keyframes steam-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.steam-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.steam-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 25px -4px rgba(14, 165, 233, 0.4);
}

.steam-app-titles h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 0;
  line-height: 1.2;
}

.steam-app-titles p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0.2rem 0 0 0;
}

/* Motion Graphics Preview Console */
.steam-visualizer {
  background: #080c14;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
  font-family: 'Fira Code', monospace;
  font-size: 0.74rem;
}

.steam-vis-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
}

.steam-vis-lights {
  display: flex;
  gap: 5px;
}

.steam-vis-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.steam-vis-light.red { background: #ef4444; }
.steam-vis-light.yellow { background: #f59e0b; }
.steam-vis-light.green { background: #10b981; }

.steam-vis-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #cbd5e1;
}

.steam-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.steam-telemetry-key {
  color: #94a3b8;
}

.steam-telemetry-val {
  color: #38bdf8;
  font-weight: 600;
}

.steam-telemetry-val.green {
  color: #34d399;
}

.steam-progress-container {
  margin-top: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  height: 6px;
  overflow: hidden;
}

.steam-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #10b981);
  border-radius: 6px;
  animation: steam-progress-pulse 2.5s infinite;
}

@keyframes steam-progress-pulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.35) drop-shadow(0 0 6px #38bdf8); }
  100% { filter: brightness(1); }
}

.steam-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.steam-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.steam-pricing-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.65rem;
}

.steam-price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.35rem 0.2rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.steam-price-box--pop {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.12);
}

.steam-price-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.steam-price-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0.1rem 0;
}

.steam-price-dur {
  font-size: 0.62rem;
  color: #64748b;
}

.steam-cta-row {
  display: flex;
  gap: 0.75rem;
}

.steam-btn-launch {
  flex: 1;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #07090e !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.steam-btn-launch:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.6);
  transform: translateY(-2px);
}

.steam-btn-pricing {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-head) !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.steam-btn-pricing:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

.steam-delivery-note {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
}

/* ==========================================================================
   Multi-Column Vertical Footer (Dribbble Layout matching Pic 1)
   ========================================================================== */
.footer-nav-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.footer-nav-title a {
  color: var(--text-head);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-title a:hover {
  color: var(--primary);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-nav-list a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-brand-bio {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0.35rem 0 0.85rem 0;
}

.footer-social-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Bottom copyright and MoR line */
.footer-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.footer-legal-bar-links {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-legal-bar-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.18s ease;
}

.footer-legal-bar-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-legal-bar-links .sep {
  color: var(--border-mid);
}

@media (max-width: 1024px) {
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-sub-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .steam-pricing-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   Card Skills & Architecture Styling
   ========================================================================== */
.card-skills-block {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-skills-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.skill-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.52rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-body);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: rgba(var(--primary-rgb), 0.4);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}


/* Steam policy links at bottom of launch card */
.steam-policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.steam-policy-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.steam-policy-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.steam-policy-links .policy-sep {
  color: #475569;
}




/* ==========================================================================
   Hobby Skills & Systems Automation Hub (Horizontal Section in Skills)
   ========================================================================== */
.hobby-scripts-section {
  margin-top: 3.5rem;
  padding: 2.25rem 2.25rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.hobby-scripts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), rgba(168, 85, 247, 0.6), transparent);
}

.hobby-scripts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hobby-tag-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.hobby-badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}

.hobby-subtag {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hobby-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-head);
  margin: 0 0 0.4rem 0;
}

.hobby-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 760px;
  line-height: 1.6;
  margin: 0;
}

.hobby-demo-btn {
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8 !important;
  white-space: nowrap;
}

.hobby-demo-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.hobby-scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.hobby-script-card {
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.hobby-script-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  background: rgba(14, 25, 45, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hobby-script-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hobby-script-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .hobby-scripts-section {
    padding: 1.5rem 1.25rem;
  }
  .hobby-scripts-grid {
    grid-template-columns: 1fr;
  }
  .hobby-scripts-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
