/* ==========================================================================
   MISSION CONTROL DESIGN SYSTEM - ABHISHEK.DEV (2026)
   Tokens, Typography, Ambient Mesh, Bento Grids, Sticky-Stack, Live Telemetry
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Theme Tokens (Dark-First "Mission Control")
   -------------------------------------------------------------------------- */
:root,
html[data-theme="cyber"] {
  --bg-ink: #070A12;
  --bg-surface: #0C1224;
  --bg-surface-elevated: #131B32;
  --bg-card: rgba(12, 18, 36, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 176, 32, 0.35);

  --accent-primary: #FFB020;
  --accent-hot: #FF7A00;
  --accent-blue: #4F7CFF;
  --accent-cyan: #22D3EE;
  --accent-green: #3DDC97;
  --accent-danger: #FF5C6C;

  --text-primary: #EAF0FF;
  --text-secondary: #9AA6C0;
  --text-muted: #64748B;
  --text-code: #F8FAFC;

  --glow-accent: 0 0 0 1px rgba(255, 176, 32, 0.3), 0 8px 36px rgba(255, 176, 32, 0.16);
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.3), 0 8px 32px rgba(34, 211, 238, 0.14);
  --glow-blue: 0 0 0 1px rgba(79, 124, 255, 0.3), 0 8px 32px rgba(79, 124, 255, 0.14);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --cursor-color: #FFB020;
  --cursor-ring: rgba(255, 176, 32, 0.4);
}

/* Theme 2: Matrix Green */
html[data-theme="matrix"] {
  --bg-ink: #040805;
  --bg-surface: #08120A;
  --bg-surface-elevated: #0F1E12;
  --bg-card: rgba(8, 18, 10, 0.85);
  --bg-glass: rgba(0, 255, 102, 0.03);
  --border-glass: rgba(0, 255, 102, 0.12);
  --border-active: rgba(0, 255, 102, 0.4);

  --accent-primary: #00FF66;
  --accent-hot: #10B981;
  --accent-blue: #06B6D4;
  --accent-cyan: #34D399;
  --accent-green: #00FF66;
  --accent-danger: #EF4444;

  --text-primary: #E6FFE6;
  --text-secondary: #85B88A;
  --text-muted: #4D7351;
  --text-code: #A7F3D0;

  --glow-accent: 0 0 0 1px rgba(0, 255, 102, 0.4), 0 8px 36px rgba(0, 255, 102, 0.2);
  --glow-cyan: 0 0 0 1px rgba(52, 211, 153, 0.3), 0 8px 32px rgba(52, 211, 153, 0.15);
  --glow-blue: 0 0 0 1px rgba(6, 182, 212, 0.3), 0 8px 32px rgba(6, 182, 212, 0.15);

  --cursor-color: #00FF66;
  --cursor-ring: rgba(0, 255, 102, 0.45);
}

/* Theme 3: Aurora Teal/Violet */
html[data-theme="aurora"] {
  --bg-ink: #0A0A16;
  --bg-surface: #101026;
  --bg-surface-elevated: #191938;
  --bg-card: rgba(16, 16, 38, 0.8);
  --bg-glass: rgba(168, 85, 247, 0.04);
  --border-glass: rgba(168, 85, 247, 0.12);
  --border-active: rgba(20, 184, 166, 0.4);

  --accent-primary: #2DD4BF;
  --accent-hot: #A855F7;
  --accent-blue: #818CF8;
  --accent-cyan: #38BDF8;
  --accent-green: #34D399;
  --accent-danger: #FB7185;

  --text-primary: #F3EEFF;
  --text-secondary: #A5A5C7;
  --text-muted: #64648A;
  --text-code: #DDD6FE;

  --glow-accent: 0 0 0 1px rgba(45, 212, 191, 0.35), 0 8px 36px rgba(168, 85, 247, 0.2);
  --glow-cyan: 0 0 0 1px rgba(56, 189, 248, 0.3), 0 8px 32px rgba(56, 189, 248, 0.15);
  --glow-blue: 0 0 0 1px rgba(129, 140, 248, 0.3), 0 8px 32px rgba(129, 140, 248, 0.15);

  --cursor-color: #2DD4BF;
  --cursor-ring: rgba(45, 212, 191, 0.45);
}

/* Theme 4: Clean Paper Light */
html[data-theme="paper"] {
  --bg-ink: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(15, 23, 42, 0.03);
  --border-glass: rgba(15, 23, 42, 0.1);
  --border-active: rgba(37, 99, 235, 0.4);

  --accent-primary: #2563EB;
  --accent-hot: #D97706;
  --accent-blue: #0284C7;
  --accent-cyan: #0D9488;
  --accent-green: #059669;
  --accent-danger: #DC2626;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-code: #1E293B;

  --glow-accent: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 8px 30px rgba(37, 99, 235, 0.12);
  --glow-cyan: 0 0 0 1px rgba(13, 148, 136, 0.2), 0 8px 24px rgba(13, 148, 136, 0.1);
  --glow-blue: 0 0 0 1px rgba(2, 132, 199, 0.2), 0 8px 24px rgba(2, 132, 199, 0.1);
  --shadow-card: 0 15px 35px -10px rgba(15, 23, 42, 0.08);

  --cursor-color: #2563EB;
  --cursor-ring: rgba(37, 99, 235, 0.35);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-ink);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Ambient Gradient Mesh & Dot Grid */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: floatBlobs 24s infinite alternate ease-in-out;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -150px;
  left: -100px;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: var(--accent-blue);
  top: 40%;
  right: -200px;
  animation-delay: -8s;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  bottom: -150px;
  left: 20%;
  animation-delay: -16s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.08); }
  100% { transform: translate(-50px, 40px) scale(0.95); }
}

/* Dot Grid Background with Cursor Spotlight */
.dot-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 50%), black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle 420px at var(--mx, 50%) var(--my, 50%), black 0%, transparent 85%);
  opacity: 0.75;
}

/* Texture Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Top Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-hot), var(--accent-cyan));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 3;
}

/* --------------------------------------------------------------------------
   3. Custom Cursor System (Desktop)
   -------------------------------------------------------------------------- */
@media (pointer: fine) {
  body.has-custom-cursor {
    cursor: none;
  }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input,
  body.has-custom-cursor textarea {
    cursor: none;
  }

  #cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.2s;
  }

  #cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--cursor-ring);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s, background-color 0.25s, transform 0.1s ease-out;
  }

  #cursor-ring.cursor-hover {
    width: 58px;
    height: 58px;
    background-color: rgba(255, 176, 32, 0.12);
    border-color: var(--accent-primary);
  }

  #cursor-ring.cursor-view::after {
    content: "VIEW";
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 0.08em;
  }
  #cursor-ring.cursor-view {
    width: 64px;
    height: 64px;
    background-color: rgba(12, 18, 36, 0.85);
    border-color: var(--accent-primary);
  }

  #cursor-dot.cursor-hidden,
  #cursor-ring.cursor-hidden {
    opacity: 0;
  }
}

@media (pointer: coarse) {
  #cursor-dot, #cursor-ring {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. Boot-Sequence Preloader
   -------------------------------------------------------------------------- */
#boot-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #05080E;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  padding: 2rem;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#boot-preloader.boot-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-terminal-box {
  width: 100%;
  max-width: 680px;
  background: rgba(12, 18, 36, 0.95);
  border: 1px solid rgba(255, 176, 32, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--glow-accent);
}

.boot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.boot-dots {
  display: flex;
  gap: 6px;
}

.boot-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.boot-dot.red { background-color: #EF4444; }
.boot-dot.yellow { background-color: #F59E0B; }
.boot-dot.green { background-color: #10B981; }

.boot-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.boot-log-stream {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #E2E8F0;
}

.boot-log-stream .boot-line {
  opacity: 0;
  transform: translateY(4px);
  animation: bootLineIn 0.2s forwards;
}

@keyframes bootLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.boot-progress-wrap {
  margin-top: 1.25rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-hot));
  transition: width 0.15s ease-out;
}

.boot-footer-bar {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.boot-skip-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.boot-skip-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   5. Floating Dock Navigation
   -------------------------------------------------------------------------- */
.floating-dock-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(12, 18, 36, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
}

.floating-dock-nav.dock-hidden {
  transform: translate(-50%, -120%);
  opacity: 0;
}

.dock-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  padding: 0.3rem 0.6rem;
}

.dock-status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.dock-menu-list {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}

.dock-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dock-link:hover,
.dock-link.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.dock-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.dock-actions-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.4rem;
  border-left: 1px solid var(--border-glass);
  padding-left: 0.6rem;
}

.dock-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  text-decoration: none;
}

.dock-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

.dock-btn-highlight {
  background: rgba(255, 176, 32, 0.12);
  border-color: rgba(255, 176, 32, 0.3);
  color: var(--accent-primary);
}

.dock-btn-highlight:hover {
  background: var(--accent-primary);
  color: #070A12;
  box-shadow: var(--glow-accent);
}

.cmd-k-badge {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. Hero Section (Mission Control with 3D Tilt)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.25);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.amber-shine {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hot) 50%, var(--accent-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineSweep 6s linear infinite;
}

@keyframes shineSweep {
  to { background-position: 200% center; }
}

.hero-rotator-line {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent-cyan);
  min-height: 2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background-color: var(--accent-primary);
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-pitch {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-primary);
  color: #070A12;
  box-shadow: var(--glow-accent);
}

.btn-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 176, 32, 0.3);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-link {
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* 3D Tilt Hero Right Column & Orbiting Halo */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.tilt-portrait-card {
  width: 380px;
  height: 440px;
  position: relative;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.portrait-glow-ring {
  position: absolute;
  inset: -15px;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 176, 32, 0.25), transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.portrait-inner-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 32, 0.3);
  background: linear-gradient(180deg, #131B32 0%, #070A12 100%);
  box-shadow: var(--shadow-card), var(--glow-accent);
  z-index: 2;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Orbiting Tech Badges */
.orbit-ring {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px dashed rgba(255, 176, 32, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: rotateOrbit 40s linear infinite;
  z-index: 3;
}

.orbit-ring:hover {
  animation-play-state: paused;
}

@keyframes rotateOrbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-node {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  transition: all 0.2s;
}

.orbit-node:hover {
  transform: scale(1.25);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: var(--glow-accent);
}

.node-python { top: -21px; left: 50%; transform: translateX(-50%); }
.node-flask { top: 25%; right: -21px; }
.node-docker { bottom: 20%; right: -15px; }
.node-aws { bottom: -21px; left: 50%; transform: translateX(-50%); }
.node-nginx { bottom: 20%; left: -15px; }
.node-postgres { top: 25%; left: -21px; }

/* Floating Glass Micro-Cards */
.floating-status-pill {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(12, 18, 36, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 4;
  animation: floatBob 5s infinite alternate ease-in-out;
}

.floating-code-snippet {
  position: absolute;
  top: -20px;
  right: -25px;
  background: rgba(12, 18, 36, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 4;
  animation: floatBob 6s infinite alternate-reverse ease-in-out;
}

@keyframes floatBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Hero Stats Strip */
.hero-stats-strip {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. Bento Grid Sections: About & Skills
   -------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3rem;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: radial-gradient(circle 250px at var(--mx, 50%) var(--my, 50%), var(--border-active), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card), var(--glow-accent);
}

/* Specific Bento Tiles */
.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.editor-window {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
}

.editor-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.editor-tab-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
}

.editor-line-num {
  color: var(--text-muted);
  user-select: none;
  margin-right: 1rem;
}

/* --------------------------------------------------------------------------
   8. Projects Section (Sticky-Stack & Case Studies)
   -------------------------------------------------------------------------- */
.sticky-stack-wrap {
  display: flex;
  flex-direction: column;
  gap: 16vh; /* Ample scroll clearance before the next project card enters and scrolls up */
  padding-bottom: 12vh;
}

.project-case-card {
  position: sticky;
  top: 4.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-bottom: 2px solid rgba(255, 176, 32, 0.45); /* Clearly visible, accentuated lower border */
  border-radius: 20px;
  padding: 1.75rem 2.25rem;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 176, 32, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  box-sizing: border-box;
}

.project-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.25rem;
  align-items: center;
}

.project-badge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 176, 32, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 176, 32, 0.3);
  margin-bottom: 0.5rem;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.project-card-tagline {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.project-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.tech-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.tech-chip:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* Browser Mockup Chrome */
.browser-mockup {
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.mockup-header {
  background: #0F172A;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mockup-dot.r { background: #EF4444; }
.mockup-dot.y { background: #F59E0B; }
.mockup-dot.g { background: #10B981; }

.mockup-url-bar {
  background: #1E293B;
  border-radius: 6px;
  padding: 0.2rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.mockup-body {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.mockup-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.mockup-body:hover .mockup-screenshot {
  transform: scale(1.03);
}

/* Architecture Packet Flow SVG Strip */
.architecture-strip {
  margin-top: 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
}

.arch-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.arch-svg-diagram {
  width: 100%;
  height: 60px;
}

/* --------------------------------------------------------------------------
   9. Under the Hood: Live Engineering Panel
   -------------------------------------------------------------------------- */
.live-telemetry-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
}

.telemetry-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.telemetry-system-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-green);
}

.telemetry-uptime-badge {
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
}

.gauges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.gauge-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.gauge-svg-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 0.75rem;
}

.gauge-svg {
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-val-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gauge-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gauge-subtext {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* GitHub Activity Heatmap */
.github-heatmap-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.cell-l1 { background: rgba(61, 220, 151, 0.25); }
.cell-l2 { background: rgba(61, 220, 151, 0.5); }
.cell-l3 { background: rgba(61, 220, 151, 0.75); }
.cell-l4 { background: #3DDC97; }

/* --------------------------------------------------------------------------
   10. Skills Matrix Tabs
   -------------------------------------------------------------------------- */
.skills-tab-nav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.skills-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.skills-tab-btn.active {
  color: var(--accent-primary);
}

.skills-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -0.55rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  box-shadow: var(--glow-accent);
}

.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-bento-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-bento-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--glow-accent);
}

.skill-item-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.skill-item-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Education & Honors
   -------------------------------------------------------------------------- */
.timeline-scrub-wrap {
  position: relative;
  padding: 2rem 0;
}

.timeline-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.timeline-active-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-cyan));
  transform: translateX(-50%);
  box-shadow: var(--glow-accent);
  height: 0%;
  transition: height 0.1s linear;
}

.timeline-item-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 3.5rem;
  position: relative;
  width: 50%;
}

.timeline-item-row:nth-child(even) {
  margin-left: auto;
  padding-left: 3rem;
}

.timeline-item-row:nth-child(odd) {
  padding-right: 3rem;
  text-align: right;
}

.timeline-node-dot {
  position: absolute;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  z-index: 2;
}

.timeline-item-row:nth-child(odd) .timeline-node-dot {
  right: -7px;
}

.timeline-item-row:nth-child(even) .timeline-node-dot {
  left: -7px;
}

.timeline-card-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

/* Honors 2x2 Grid */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.honor-badge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.25s;
}

.honor-badge-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: var(--glow-accent);
}

.honor-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 176, 32, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Contact Section & Marquee
   -------------------------------------------------------------------------- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 4rem;
}

.marquee-content {
  display: inline-block;
  animation: marqueeLoop 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
}

@keyframes marqueeLoop {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-info-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.contact-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.contact-card-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  color: var(--text-secondary);
}

/* Form Styles */
.form-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.15);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 5rem 0 2.5rem;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-ink);
  position: relative;
  z-index: 3;
}

.giant-footer-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6.8rem);
  font-weight: 800;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  user-select: none;
  transition: color 0.5s ease;
}

.giant-footer-name.in-view {
  color: rgba(255, 176, 32, 0.88);
  -webkit-text-stroke: 1.5px var(--accent-primary);
}

.footer-meta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.hosting-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hosting-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.lucknow-clock {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.back-to-top-ring-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.back-to-top-ring-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   14. Modals: Command Palette, Terminal, Case Study
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 7, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Command Palette Modal */
.cmd-palette-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), var(--glow-accent);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .cmd-palette-box {
  transform: scale(1);
}

.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
  list-style: none;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text-secondary);
}

.cmd-item:hover,
.cmd-item.selected {
  background: var(--bg-surface-elevated);
  color: var(--accent-primary);
}

.cmd-item-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.cmd-shortcut {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Terminal Modal */
.terminal-window {
  width: 100%;
  max-width: 780px;
  height: 520px;
  background: #060911;
  border: 1px solid var(--accent-primary);
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), var(--glow-accent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-header {
  background: #0B1120;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.terminal-output {
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-prompt {
  color: var(--accent-green);
  font-weight: 700;
  user-select: none;
}

.terminal-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #F8FAFC;
}

/* Case Study Modal */
.case-study-box {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.case-study-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   15. Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-pitch {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-social-row {
    justify-content: center;
  }
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-layout-grid {
    grid-template-columns: 1fr;
  }
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .gauges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .timeline-center-line, .timeline-active-glow {
    left: 20px;
  }
  .timeline-item-row {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-node-dot {
    left: 13px !important;
  }
}

@media (max-width: 768px) {
  .floating-dock-nav {
    top: auto;
    bottom: 1.25rem;
    padding: 0.35rem 0.6rem;
  }
  .dock-link-label {
    display: none;
  }
  .hero-stats-strip {
    grid-template-columns: 1fr;
  }
  .gauges-grid {
    grid-template-columns: 1fr;
  }
  .honors-grid {
    grid-template-columns: 1fr;
  }
  .tilt-portrait-card {
    width: 280px;
    height: 330px;
  }
  .orbit-ring {
    width: 360px;
    height: 360px;
  }
}

/* --------------------------------------------------------------------------
   16. Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ambient-blob, .orbit-ring, .floating-status-pill, .floating-code-snippet {
    animation: none !important;
  }
  .dot-grid-overlay {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. UI/UX Master Plan Enhancements (Audio, Dual Marquees, CGPA Gauge, etc.)
   -------------------------------------------------------------------------- */

/* Hero Mouse Scroll Cue */
.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.hero-scroll-cue:hover {
  color: var(--accent-primary);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-glass);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.2s;
}

.hero-scroll-cue:hover .mouse-icon {
  border-color: var(--accent-primary);
}

.mouse-travel-dot {
  width: 4px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseScrollAnim 1.8s infinite ease-in-out;
}

@keyframes mouseScrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* Scroll-Scrubbed Word Highlight */
.bio-scrub-word {
  opacity: 0.28;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s;
  display: inline-block;
}

.bio-scrub-word.active-word {
  opacity: 1;
  color: var(--text-primary);
}

/* Animated CGPA Radial Ring Gauge */
.cgpa-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.cgpa-ring-svg {
  transform: rotate(-90deg);
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.cgpa-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.cgpa-ring-fill {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 175.9;
  stroke-dashoffset: 175.9;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Two-Row Opposing Tech Logo Marquees */
.skills-marquees-section {
  margin-top: 3.5rem;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.skills-marquee-row {
  display: flex;
  gap: 1rem;
  width: max-content;
  margin-bottom: 1rem;
}

.marquee-left {
  animation: scrollLeft 32s linear infinite;
}

.marquee-right {
  animation: scrollRight 32s linear infinite;
}

.skills-marquee-row:hover {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s;
}

.marquee-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

/* TMA Multi-Tenant Switcher Pill Bar */
.tenant-switcher-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tenant-pill-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tenant-pill-btn.active {
  background: rgba(255, 176, 32, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Case Study Syntax-Highlighted Code Viewer */
.code-viewer-container {
  margin-top: 1.5rem;
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.code-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #0B1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tabs-list {
  display: flex;
  gap: 0.5rem;
}

.code-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-tab-btn.active {
  background: rgba(255, 176, 32, 0.15);
  color: var(--accent-primary);
}

.code-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.code-copy-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.code-pre-block {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #E2E8F0;
  white-space: pre;
}

/* Contact Mode Switcher (GUI vs Terminal) */
.contact-mode-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-surface-elevated);
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}

.mode-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-tab-btn.active {
  background: var(--bg-surface);
  color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.terminal-contact-view {
  background: #060911;
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Circular SVG Scroll Progress on Back to Top */
.back-to-top-ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  width: 44px;
  height: 44px;
  pointer-events: none;
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.progress-ring-circle {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.1s linear;
}

/* Konami Code "Hire Mode" Golden Matrix Easter Egg */
body.hire-mode-active {
  --accent-primary: #FFD700 !important;
  --accent-hot: #FF8C00 !important;
  --glow-accent: 0 0 0 2px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.4) !important;
}

body.hire-mode-active .ambient-blob {
  background: #FFD700 !important;
  opacity: 0.35 !important;
}

/* ==========================================================================
   18. Protected Developer Dashboard & Comprehensive Form Controls
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.3rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.theme-switcher-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-btn:hover {
  color: var(--text-primary);
}

.theme-btn.active {
  background: var(--bg-surface);
  color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-sm {
  padding: 0.42rem 0.9rem !important;
  font-size: 0.82rem !important;
  border-radius: 6px !important;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
}

.dash-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-glass);
  padding: 1.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  box-sizing: border-box;
  overflow-y: auto;
}

.dash-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.dash-nav-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.dash-nav-btn.active {
  background: rgba(255, 176, 32, 0.1);
  color: var(--accent-primary);
  border-color: rgba(255, 176, 32, 0.28);
  font-weight: 600;
}

.dash-content {
  padding: 2.5rem 3rem;
  overflow-y: auto;
  max-width: 1250px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.dash-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.dash-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.85rem;
  margin: 0;
}

/* Complete Form Controls & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.5rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-surface-elevated) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  outline: none !important;
  transition: all 0.2s !important;
}

.form-control:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.2) !important;
  background: var(--bg-surface) !important;
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
}

.form-control[readonly] {
  background: rgba(0, 0, 0, 0.3) !important;
  color: var(--text-secondary) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  cursor: default;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
}

/* ==========================================================================
   19. Developer Workbench: Keyboard Shortcuts, API Playground & SQL Sandbox
   ========================================================================== */
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.6rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  font-size: 0.85rem;
}

.shortcut-item span {
  color: var(--text-secondary);
}

kbd {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* API Playground */
.api-playground-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.api-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.method-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(61, 220, 151, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(61, 220, 151, 0.3);
}

.api-url-select {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  min-width: 200px;
}

.api-url-select option {
  background: #0C1224;
  color: #EAF0FF;
}

.api-status-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(61, 220, 151, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.api-response-pre {
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #E2E8F0;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* SQL Sandbox */
.sql-sandbox-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.sql-presets-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.sql-preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sql-preset-btn:hover, .sql-preset-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(255, 176, 32, 0.1);
}

.sql-input-row {
  position: relative;
  margin-bottom: 1rem;
}

.sql-query-input {
  width: 100%;
  box-sizing: border-box;
  background: #060912;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #E2E8F0;
  outline: none;
  resize: vertical;
  min-height: 70px;
}

.sql-query-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(255, 176, 32, 0.2);
}

.sql-result-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  background: var(--bg-surface);
}

.sql-result-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: left;
}

.sql-result-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-primary);
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-glass);
}

.sql-result-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.sql-result-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* Git Changelog Stream */
.git-changelog-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.git-commit-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.git-commit-row:last-child {
  border-bottom: none;
}

.git-hash-pill {
  background: rgba(255, 176, 32, 0.12);
  color: var(--accent-primary);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.git-msg-text {
  flex: 1;
  color: var(--text-primary);
  min-width: 220px;
}

.git-time-text {
  color: var(--text-muted);
  font-size: 0.75rem;
}


/* --------------------------------------------------------------------------
   20. Milestone 2 & 3: Architecture Flow, Code Diff, Radar, Bookshelf, Recruiter
   -------------------------------------------------------------------------- */

/* Architecture Telemetry Flow */
.arch-flow-section {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
}

.arch-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}

.arch-nodes-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: thin;
}

.arch-node-item {
  flex: 1;
  min-width: 140px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.arch-node-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  background: rgba(255, 176, 32, 0.05);
}

.arch-node-item.active {
  border-color: var(--accent-primary);
  background: rgba(255, 176, 32, 0.1);
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.25);
}

.arch-node-icon {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.arch-node-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-node-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.arch-flow-arrow {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-primary);
  opacity: 0.6;
  user-select: none;
  animation: pulse-arrow 2s infinite ease-in-out;
}

@keyframes pulse-arrow {
  0%, 100% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}

.arch-inspector-card {
  background: #060912;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}

.arch-inspector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.arch-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.arch-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arch-stat-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Side-by-Side Code Diff Viewer */
.diff-viewer-wrap {
  margin-top: 1.5rem;
  background: #060912;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
}

.diff-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

.diff-col {
  padding: 1.25rem;
  overflow-x: auto;
}

.diff-col.naive {
  background: rgba(239, 68, 68, 0.04);
  border-right: 1px solid var(--border-glass);
}

.diff-col.optimized {
  background: rgba(61, 220, 151, 0.04);
}

.diff-col-title {
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diff-del-line {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  display: block;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  margin: 0.1rem 0;
}

.diff-add-line {
  color: #4ade80;
  background: rgba(61, 220, 151, 0.1);
  display: block;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  margin: 0.1rem 0;
}

.diff-neutral-line {
  color: var(--text-secondary);
  display: block;
  padding: 0.15rem 0.35rem;
}

/* Engineering Tech Radar */
.tech-radar-wrap {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.tech-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.radar-tier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
}

.radar-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-glass);
}

.radar-tier-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radar-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.radar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: var(--bg-surface-elevated);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Distributed Systems Bookshelf */
.bookshelf-wrap {
  margin-top: 2.5rem;
}

.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.book-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s;
}

.book-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
}

.book-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.book-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.book-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Recruiter Quick-Scan Modal */
.recruiter-modal-box {
  width: min(94vw, 760px);
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: 18px;
  padding: 2.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), var(--glow-accent);
  max-height: 90vh;
  overflow-y: auto;
}

.recruiter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.recruiter-stat-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.recruiter-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.recruiter-stat-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 0.25rem;
}

.recruiter-actions-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Neofetch Styling */
.neofetch-output {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  padding: 1rem;
  background: #060912;
  border-radius: 8px;
  overflow-x: auto;
}

.neofetch-ascii {
  color: var(--accent-primary);
  font-weight: 700;
  user-select: none;
  white-space: pre;
}

.neofetch-specs {
  white-space: pre;
}
