/* ═══════════════════════════════════════════════════════════════════════════
   SAURABH KUMAR // SPIDER-VERSE HERO CYBER DESIGN SYSTEM
   Deep Stealth Obsidian, Venom Crimson (#ef4444), Electric Cobalt (#38bdf8)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. TOKENS & DESIGN SYSTEM ──────────────────────────────────────────── */
:root {
  --font-sans: 'Anthropic Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-w: 1120px;
  --nav-h: 70px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── SCROLL PROGRESS INDICATOR (TOP VIEWPORT) ────────────────────────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #ef4444 0%, #38bdf8 50%, #eab308 100%);
  z-index: 10000;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7), 0 0 6px rgba(56, 189, 248, 0.7);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Dark Theme (Deep Stealth Obsidian with Crimson & Electric Cobalt Glows) */
[data-theme="dark"] {
  --bg-base: #060913;
  --bg-surface: rgba(12, 17, 29, 0.82);
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --bg-badge: rgba(239, 68, 68, 0.08);
  --bg-input: rgba(8, 12, 22, 0.85);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(239, 68, 68, 0.45);
  --border-highlight: rgba(56, 189, 248, 0.4);

  /* Strict 3-Color Hierarchy: 1. Crimson Red | 2. Electric Cobalt | 3. Canvas & Slate Base */
  --accent-primary: #ef4444;       /* 1. Crimson Red Accent */
  --accent-secondary: #38bdf8;     /* 2. Electric Cobalt Cyan Accent */
  --accent-emerald: #38bdf8;       /* Unified to Cobalt */
  --accent-gold: #ef4444;          /* Unified to Crimson */
  --accent-gradient: linear-gradient(135deg, #ef4444 0%, #38bdf8 100%);
  --accent-glow: rgba(239, 68, 68, 0.35);

  --shadow-card: 0 10px 35px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-hover: 0 18px 45px -10px rgba(239, 68, 68, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);

  --vignette-color: #060913;
  color-scheme: dark;
}

/* Light Theme (Eye-Comforting Soft Slate & High Contrast) */
[data-theme="light"] {
  --bg-base: #f1f4f8;
  --bg-surface: rgba(255, 255, 255, 0.90);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-badge: rgba(239, 68, 68, 0.06);
  --bg-input: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(239, 68, 68, 0.4);
  --border-highlight: rgba(2, 132, 199, 0.4);

  /* Strict 3-Color Hierarchy in Light Mode */
  --accent-primary: #dc2626;       /* 1. Deep Crimson Red */
  --accent-secondary: #0284c7;     /* 2. Deep Cobalt Cyan */
  --accent-emerald: #0284c7;       /* Unified to Cobalt */
  --accent-gold: #dc2626;          /* Unified to Crimson */
  --accent-gradient: linear-gradient(135deg, #dc2626 0%, #0284c7 100%);
  --accent-glow: rgba(220, 38, 38, 0.15);

  --shadow-card: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 28px -4px rgba(220, 38, 38, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);

  --vignette-color: transparent;
  color-scheme: light;
}

/* ─── 2. BASE RESET & CUSTOM SCROLLBAR ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 68, 68, 0.4) transparent;
}

[data-theme="light"] * {
  scrollbar-color: rgba(220, 38, 38, 0.4) transparent;
}

/* WebKit (Chrome, Edge, Safari, Opera) Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-pill);
  transition: background 0.2s, box-shadow 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(220, 38, 38, 0.35);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.4);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

.section {
  padding: 46px 0;
  position: relative;
  z-index: 1;
}

/* Section Headers & Dynamic Spider-Sense Hierarchy */
.section-head {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: relative;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  transition: transform 0.4s var(--ease-spring), color 0.3s;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.25;
  display: block;
  width: 100%;
  transition: color 0.3s, transform 0.4s var(--ease-spring);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 2px;
  max-width: 680px;
}

/* ─── 3. 3-2-1 CINEMATIC COUNTDOWN INTRO ─────────────────────────────────── */
.cinematic-intro-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060913;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
  overflow: hidden;
}

.cinematic-intro-screen.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-spider-web-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.12) 0%, rgba(6, 9, 19, 0.95) 75%);
  pointer-events: none;
}

.intro-countdown-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 380px;
}

.intro-mask-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
  margin-bottom: 10px;
  animation: maskGlowPulse 2s infinite ease-in-out;
}

.intro-sarcasm-quote {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@keyframes maskGlowPulse {
  0% {
    transform: scale(0.95);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
  }
  50% {
    transform: scale(1.06);
    filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(239, 68, 68, 1)) drop-shadow(0 0 14px rgba(56, 189, 248, 0.9));
  }
  100% {
    transform: scale(0.95);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
  }
}

.intro-countdown-digits {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  color: #ef4444;
  text-shadow: 0 0 18px rgba(239, 68, 68, 0.9), 0 0 32px rgba(56, 189, 248, 0.5);
  line-height: 1;
  margin-bottom: 6px;
}

.intro-countdown-digits.pulse-digit {
  animation: digitPop 0.4s var(--ease-spring);
}

@keyframes digitPop {
  0% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.intro-countdown-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-secondary);
  margin-bottom: 18px;
}

.intro-progress-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}

.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  animation: introFill 3.8s linear forwards;
}

@keyframes introFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.intro-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.intro-skip-btn {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  background: transparent;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.intro-skip-btn:hover { color: #ffffff; }
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.intro-skip-btn:hover { color: #ffffff; }

/* ─── 4. 3D WEBGL BACKGROUND & SIDELINE GLYPHS ──────────────────────────── */
#webgl-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 35%, var(--vignette-color) 92%);
  pointer-events: none;
}

.sideline-track {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  opacity: 0.22;
}

.sideline-left { left: 12px; }
.sideline-right { right: 12px; }

.sideline-glyph {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-dim);
  transition: color 0.3s;
}

.sideline-glyph i { width: 18px; height: 18px; }

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  display: none;
}

@media (pointer: fine) {
  .custom-cursor { display: block; }
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
}

.cursor-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.custom-cursor.hovering .cursor-ring {
  width: 44px;
  height: 44px;
  border-color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.06);
}

/* ─── 5. MINIMAL NAVBAR ─────────────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav-wrapper.scrolled {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 0 14px var(--accent-glow);
}

.brand-mask-accent {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(239, 68, 68, 0.8));
  margin-left: -2px;
}

[data-theme="light"] .brand-mask-accent {
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--accent-primary);
}

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

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: var(--border-hover);
  color: var(--accent-primary);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.theme-toggle i { width: 16px; height: 16px; }

.cta-quick-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.2s;
}

/* Mobile Nav Drawer */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    backdrop-filter: blur(20px);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease-smooth);
  }

  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: flex; }
  .cta-quick-btn { display: none; }
}

/* ─── 6. BUTTONS & CARD UTILITIES ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-glass {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  border-color: var(--border-hover);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.w-full { width: 100%; }

.tilt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.tilt-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* ─── 7. HERO SECTION & 3D POPOUT WITH ARACHNID CREST ───────────────────── */
.hero-section {
  padding-top: calc(var(--nav-h) + 50px);
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text-main);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.hero-bio strong { color: var(--text-main); }

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 3D Popout Card & Geometric Arachnid Crest Portal */
.hero-visual {
  display: flex;
  justify-content: center;
}

.popout-3d-card {
  perspective: 1200px;
  width: 100%;
  max-width: 360px;
  cursor: pointer;
}

.popout-box-container {
  position: relative;
  aspect-ratio: 1 / 1.15;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-smooth);
}

.box-back-plate {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 40%, rgba(239, 68, 68, 0.15) 0%, rgba(12, 17, 29, 0.95) 75%);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-portal-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.real-spider-emblem-img {
  width: 235px;
  height: 235px;
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.75));
  opacity: 0.82;
  transform: translateZ(15px);
  transition: transform 0.4s var(--ease-spring), filter 0.4s, opacity 0.4s;
  pointer-events: none;
}

.popout-3d-card:hover .real-spider-emblem-img {
  transform: translateY(-10px) scale(1.08) translateZ(22px);
  opacity: 1;
  filter: drop-shadow(0 0 26px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 14px rgba(56, 189, 248, 0.7));
}

.box-subject-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateZ(40px);
  pointer-events: none;
}

.popout-avatar-img {
  width: 88%;
  height: auto;
  max-height: 104%;
  object-fit: cover;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7));
  transition: transform 0.35s var(--ease-smooth);
}

.popout-3d-card:hover .popout-avatar-img {
  transform: scale(1.05) translateY(-4px);
}

.box-front-pedestal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 16px;
  border-bottom: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
}

/* Floating Badges on Card */
.holo-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateZ(60px);
}

.badge-top {
  top: -12px;
  left: -12px;
}

.badge-bottom {
  bottom: 16px;
  right: -12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.badge-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

.badge-text strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-main);
}

.badge-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── 8. ABOUT & FOCUS DOMAINS ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-text-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.paragraph {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.paragraph strong { color: var(--text-main); }

.paragraph-highlight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.paragraph-highlight i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.focus-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.focus-icon i { width: 18px; height: 18px; }

.focus-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.focus-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── 9. ACADEMICS & CA LEDGER ───────────────────────────────────────────── */
.edu-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.ca-journey-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.card-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 12px;
}

.ca-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.ca-inst {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ca-stages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ca-stage-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
}

.stage-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.stage-status-icon i { width: 15px; height: 15px; }

.ca-stage-item.cleared .stage-status-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ca-stage-item.pursuing .stage-status-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.ca-stage-item.pending .stage-status-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.stage-info { flex-grow: 1; }

.stage-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-title {
  font-size: 0.95rem;
  color: var(--text-main);
}

.status-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.status-tag.success {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.status-tag.in-progress {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-tag.pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.stage-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.degrees-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.degree-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.degree-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.degree-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--accent-primary);
}

.badge-pursuing {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-secondary);
}

.degree-time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.degree-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-main);
}

.degree-uni {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.degree-uni i { width: 14px; height: 14px; color: var(--accent-primary); }

.degree-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ─── 10. CAREER TRAJECTORY & WEB-CRAWLING JOURNEY ──────────────────────── */
.flight-journey-container {
  position: relative;
  padding-left: 56px;
  max-width: 920px;
  margin: 0 auto;
}

/* Glowing Web Silk Track */
.flight-track-line {
  position: absolute;
  left: 18px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.flight-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #ef4444 0%, #38bdf8 100%);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  transition: height 0.15s ease-out;
}

/* Crawling Cyber Arachnid Beacon */
.flight-rocket-beacon {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: top 0.2s var(--ease-smooth);
}

.cyber-spider-chassis {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.85));
  animation: spiderWiggle 0.4s infinite alternate ease-in-out;
}

@keyframes spiderWiggle {
  0% { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}

.spider-crawler-svg {
  width: 100%;
  height: 100%;
}

.spider-sense-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 68, 68, 0.7);
  animation: spiderSensePulse 1.8s infinite;
  pointer-events: none;
}

@keyframes spiderSensePulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Dynamic Silk Particles */
.rocket-smoke-emitter {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.smoke-cloud-puff {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.6);
  filter: blur(3px);
  animation: silkFade 1.2s ease-out forwards;
}

@keyframes silkFade {
  0% { opacity: 0.8; transform: translate(-50%, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, 28px) scale(2.2); }
}

/* Touchdown Web Anchor */
.flight-landing-pad {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.landing-pad-ring {
  width: 40px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

.flight-landing-pad.active .landing-pad-ring {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 16px var(--accent-secondary), inset 0 0 8px var(--accent-secondary);
}

.landing-beacon-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.4s var(--ease-smooth);
}

.flight-landing-pad.active .landing-beacon-tag {
  opacity: 1;
  transform: translateY(0);
  color: var(--accent-secondary);
  border-color: rgba(56, 189, 248, 0.4);
}

.flight-stations-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.flight-station {
  position: relative;
  padding: 24px 28px;
  transition: all 0.3s var(--ease-smooth);
}

.station-beacon-dot {
  position: absolute;
  left: -46px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  transition: all 0.3s;
}

.flight-station.active .station-beacon-dot {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-primary);
}

.station-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.station-year {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.station-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.station-role {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.station-org {
  font-size: 0.86rem;
  color: var(--accent-secondary);
  display: block;
  margin-bottom: 8px;
}

.station-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.station-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.station-tags span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  transition: all 0.2s;
}

.station-tags span:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Muted Skillveri Sub-track */
.skillveri-muted-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  opacity: 0.72;
  transition: opacity 0.3s;
}

.skillveri-muted-card:hover {
  opacity: 0.92;
  border-color: rgba(255, 255, 255, 0.15);
}

.muted-dot {
  border-style: dashed;
  background: transparent !important;
  box-shadow: none !important;
  border-color: var(--text-dim) !important;
}

.muted-year { color: var(--text-dim); font-size: 0.76rem; }
.muted-pill { color: var(--text-dim); background: transparent; border-color: rgba(255, 255, 255, 0.06); }
.muted-role { font-size: 0.96rem; color: var(--text-muted); }
.muted-org { color: var(--text-dim); font-size: 0.8rem; }
.muted-desc { font-size: 0.84rem; color: var(--text-dim); }

/* ─── 11. CATEGORIZED CERTIFICATIONS & TROPHY SHOWCASE ───────────────────── */
.cert-trophy-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .cert-trophy-banner {
  background: radial-gradient(circle at 12% 50%, rgba(239, 68, 68, 0.14) 0%, rgba(12, 17, 29, 0.92) 80%);
}

[data-theme="light"] .cert-trophy-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, #ffffff 85%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.06);
}

.trophy-spidey-character {
  position: relative;
  width: 72px;
  height: 78px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.trophy-spidey-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(239, 68, 68, 0.45));
  position: relative;
  z-index: 2;
  transition: transform 0.3s var(--ease-smooth);
}

.cert-trophy-banner:hover .trophy-spidey-img {
  transform: scale(1.06) rotate(1.5deg);
}

.trophy-ambient-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}

[data-theme="light"] .trophy-ambient-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
}

.trophy-text-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trophy-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trophy-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.trophy-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cert-category-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-category-header {
  display: flex;
  align-items: center;
}

.cert-cat-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.cert-cat-pill.cat-other {
  color: var(--accent-primary);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cert-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cert-provider-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-primary);
}

.cert-provider-badge.hplife {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-secondary);
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cert-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cert-issuer code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-secondary);
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.cert-skills span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.28);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  transition: all 0.2s;
}

[data-theme="light"] .cert-skills span {
  background: rgba(220, 38, 38, 0.07);
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
}

.cert-skills span:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-top: 4px;
  text-decoration: none;
  transition: gap 0.2s;
}

.cert-link i { width: 14px; height: 14px; }
.cert-link:hover { gap: 8px; }

.extra-certs-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.extra-certs-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.extra-cert-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.extra-cert-tags span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

[data-theme="light"] .extra-cert-tags span {
  background: rgba(2, 132, 199, 0.07);
  border-color: rgba(2, 132, 199, 0.22);
  color: #075985;
}

.extra-cert-tags span:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* ─── 12. BLOG & COMFORTING ESSAY TYPOGRAPHY ─────────────────────────────── */
.blog-head-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.bot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-secondary);
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.bot-badge i { width: 14px; height: 14px; color: var(--accent-primary); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth);
}

.blog-card:hover .blog-img { transform: scale(1.04); }

.blog-cat-badges-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  z-index: 5;
  max-width: calc(100% - 95px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-cat-badges-container::-webkit-scrollbar {
  display: none;
}

.blog-cat-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(12, 17, 29, 0.88);
  border: 1px solid var(--border-hover);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--accent-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  letter-spacing: 0.02em;
}

.blog-cat-badge:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
}

[data-theme="light"] .blog-cat-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .blog-cat-badge:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.blog-upvote-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-main);
  backdrop-filter: blur(8px);
  z-index: 5;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), color 0.2s;
}

.blog-upvote-btn:hover {
  transform: scale(1.08);
  color: #ef4444;
}

.blog-upvote-btn.liked {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.blog-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.blog-title:hover { color: var(--accent-primary); }

.blog-overview-box {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--border-hover);
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}

.blog-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-primary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.blog-read-more-btn:hover { gap: 9px; }

/* Modal Reader */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 740px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  position: relative;
  background: #0c111d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 68, 68, 0.45) transparent;
}

[data-theme="light"] .modal-card {
  background: #ffffff;
}

.modal-card::-webkit-scrollbar {
  width: 5px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-pill);
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

[data-theme="light"] .modal-card::-webkit-scrollbar-thumb {
  background: rgba(220, 38, 38, 0.35);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s;
  z-index: 50;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--border-hover);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 50px;
}

.modal-tag {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--bg-badge);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.modal-upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-upvote-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.modal-upvote-btn.liked {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.modal-article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.modal-datetime {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-text {
  font-size: 0.95rem;
  font-weight: 400 !important;
  color: var(--text-muted);
  line-height: 1.85;
}

.modal-text p {
  font-size: 0.95rem;
  font-weight: 400 !important;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.modal-text h4 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal-share-toolbar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.share-toolbar-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.share-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.share-pill-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* ─── 13. BLOG MODAL COMMENTS & NESTED REPLIES ──────────────────────────── */
.modal-comments-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.comments-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.comment-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.comment-auth-pill i { width: 13px; height: 13px; }

.comment-input-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.comment-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-main);
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.comment-submit-row {
  display: flex;
  justify-content: flex-end;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.comment-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-secondary);
}

.comment-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: #ffffff;
}

.admin-badge.gold {
  background: linear-gradient(135deg, #eab308 0%, #f59e0b 50%, #d97706 100%) !important;
  color: #0b0f19 !important;
  font-weight: 700;
  border: 1px solid rgba(234, 179, 8, 0.5);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.badge-blue-tick {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #38bdf8;
  vertical-align: middle;
}

.badge-gold-admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.tick-svg {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.tick-svg.blue {
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}

.tick-svg.gold {
  filter: drop-shadow(0 0 7px rgba(234, 179, 8, 0.85));
}

.comment-timestamp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.comment-content-text {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

.comment-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.comment-reply-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  background: transparent;
  transition: all 0.2s;
}

.admin-action-btn.delete {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.admin-action-btn.delete:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.admin-edit-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-edit-article-btn:hover {
  background: rgba(234, 179, 8, 0.25);
  border-color: #f59e0b;
  color: #fef08a;
  transform: translateY(-1px);
}

.admin-add-article-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0b0f19;
  background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
  border: 1px solid #fde047;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.35);
  transition: all 0.25s var(--ease-spring);
}

.admin-add-article-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(234, 179, 8, 0.6);
}

/* Admin Article Editor Modal */
.admin-editor-card {
  max-width: 680px;
  width: 100%;
}

.editor-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.editor-input, .editor-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  box-sizing: border-box;
}

.editor-input:focus, .editor-textarea:focus {
  border-color: #eab308;
  outline: none;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.editor-textarea {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
}

.editor-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Category Filter Pills on Dedicated Blogs Page */
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
  background: var(--bg-card-hover);
}

.filter-pill.active {
  color: #ffffff;
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.btn-view-all-blogs {
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.editor-image-preview-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Inline Reply Box */
.inline-reply-box {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.inline-reply-box.open { display: flex; }

.inline-reply-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--text-main);
  resize: none;
}

.inline-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.reply-cancel-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.reply-cancel-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
}

.reply-submit-btn {
  font-size: 0.76rem;
  padding: 4px 12px;
}

/* Nested Replies */
.comment-replies-thread {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-item {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.reply-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-emerald);
}

.reply-body { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.reply-meta-row { display: flex; justify-content: space-between; align-items: center; }
.reply-author-name { font-size: 0.82rem; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 6px; }
.reply-content-text { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

/* ─── 14. SPLIT 2-COLUMN CONTACT TERMINAL ────────────────────────────────── */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
}

.contact-left-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.contact-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.contact-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-item-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.contact-item-compact:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.contact-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-primary);
  display: grid;
  place-items: center;
}

.contact-icon i { width: 15px; height: 15px; }

.contact-info { flex-grow: 1; }
.contact-label { font-size: 0.7rem; color: var(--text-dim); display: block; }
.contact-value { font-size: 0.85rem; color: var(--text-main); }

.copy-status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.contact-socials-group {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.socials-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Adjacent Row: Social Icons on Left + Sleeping Hammock on Right */
.contact-social-hammock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-adjacent-hammock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
}

.spidey-swing-img-adjacent {
  width: 100%;
  max-width: 130px;
  max-height: 36px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
  -webkit-mask-image: radial-gradient(ellipse 92% 80% at 50% 50%, black 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 80% at 50% 50%, black 58%, transparent 100%);
  transition: transform 0.3s var(--ease-smooth);
  vertical-align: middle;
  pointer-events: none;
  -webkit-user-drag: none;
}

.contact-social-hammock-row:hover .spidey-swing-img-adjacent {
  transform: scale(1.08) translateY(-1px);
}

.contact-right-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.form-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.form-banner-text {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-emerald);
}

.form-banner-text i { width: 14px; height: 14px; }

.google-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.google-signin-btn:hover {
  border-color: var(--border-hover);
}

.google-icon { width: 14px; height: 14px; }

.google-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-main);
}

.google-user-profile img {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-primary);
}

.google-logout-btn {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}

.input-group label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Custom Cyber Glass Dropdown */
.custom-select-group {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.86rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s var(--ease-smooth);
}

.custom-select-trigger:hover,
.custom-select-trigger.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow);
}

.custom-select-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-arrow {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-spring), color 0.2s;
}

.custom-select-trigger.active .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.6);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth), visibility 0.2s;
}

[data-theme="light"] .custom-select-dropdown {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.custom-select-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s var(--ease-smooth);
}

.custom-select-option:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.custom-select-option.selected {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-primary);
  font-weight: 600;
}

[data-theme="light"] .custom-select-option.selected {
  background: rgba(239, 68, 68, 0.08);
}

.option-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}

.custom-select-option.selected .option-indicator {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.form-feedback-msg {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-top: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.form-feedback-msg.success { color: #38bdf8; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: inline-block;
}

.status-dot.pulse {
  animation: tagRadarPulse 1.2s infinite;
}

.status-dot.success {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

/* Submit Button Active & Delivered Color Transitions */
#submit-message-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#submit-message-btn.transmitting {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4) !important;
  transform: scale(0.98);
}

#submit-message-btn.delivered {
  background: #059669 !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.4) !important;
  transform: scale(1);
}

.spin-icon {
  animation: spinWeb 1s linear infinite;
}

@keyframes spinWeb {
  100% { transform: rotate(360deg); }
}

/* ─── 15. FOOTER & GLOWING BRAND ICONS ───────────────────────────────────── */
.footer-wrapper {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-left {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-left strong { color: var(--text-main); }

.footer-center {
  display: flex;
  align-items: center;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  text-decoration: none;
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.footer-top-link:hover {
  color: var(--accent-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.footer-top-link i { width: 13px; height: 13px; }

.footer-subtext {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-glowing-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.glow-social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
}

.glow-social-icon.linkedin:hover {
  color: #38bdf8;
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
}

.glow-social-icon.github:hover {
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-3px);
}

.glow-social-icon.instagram:hover {
  color: #f43f5e;
  border-color: #e11d48;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.45);
  transform: translateY(-3px);
}

.glow-social-icon.email:hover {
  color: #38bdf8;
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
}

.glow-social-icon.website:hover {
  color: #38bdf8;
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
}

/* ─── 16. RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZED & ZERO OVERFLOW) ────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-buttons { justify-content: center; }
  .location-pill { margin: 0 auto 16px auto; }
  .about-grid { grid-template-columns: 1fr; }
  .edu-layout-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-split-grid { grid-template-columns: 1fr; padding: 24px 18px 0 18px; gap: 20px; }
  .form-fields-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
  }

  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  
  /* Navbar & Fixed Header Mobile Hardening */
  .nav-wrapper {
    height: var(--nav-h);
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
  }
  .brand-tag { display: none; }
  .cta-quick-btn { display: none; }
  .nav-inner { padding: 0 12px; height: 100%; }
  
  /* Hero Section & Pill Alignment (Zero Overlap with Fixed Header) */
  .hero-section {
    padding-top: calc(var(--nav-h) + 42px) !important;
    padding-bottom: 48px;
  }
  .location-pill {
    margin: 8px auto 18px auto;
    max-width: 95%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    padding: 6px 14px;
    font-size: 0.76rem;
  }
  .hero-title { font-size: 2.1rem; line-height: 1.2; word-break: break-word; }
  .hero-bio { font-size: 0.9rem; margin-bottom: 22px; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .popout-3d-card { max-width: 280px; margin: 20px auto 0 auto; }
  .real-spider-emblem-img { width: 180px; height: 180px; }
  .holo-badge { padding: 4px 8px; font-size: 0.68rem; }
  .holo-badge.badge-top-left { top: -8px; left: -8px; }
  .holo-badge.badge-bottom-right { bottom: -8px; right: -8px; }
  
  /* Focus & Stations */
  .focus-grid { grid-template-columns: 1fr; }
  .flight-journey-container { padding-left: 24px; }
  .flight-station { padding: 14px 12px; }
  .station-beacon-dot { left: -22px; width: 10px; height: 10px; }
  
  /* Certifications */
  .cert-trophy-banner { flex-direction: column; text-align: center; padding: 14px 12px; gap: 10px; }
  .trophy-spidey-character { width: 56px; height: 60px; }
  
  /* Contact & Hammock */
  .contact-split-grid { padding: 16px 10px 0 10px; }
  .contact-title { font-size: 1.3rem; }
  .contact-social-hammock-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .contact-social-row {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .sleeping-spidey-hammock { max-height: 28px; }
  .spidey-swing-img { max-width: 100%; max-height: 70px; }
  
  /* Blog Cards & Tags on Mobile */
  .blog-cat-badges-container {
    top: 8px;
    left: 8px;
    gap: 4px;
    max-width: calc(100% - 80px);
  }
  .blog-cat-badge {
    font-size: 0.68rem;
    padding: 3px 8px;
    line-height: 1.2;
    white-space: nowrap !important;
  }
  .blog-upvote-btn {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 0.68rem;
  }

  /* Modals & Full Screen Dialogs */
  .modal-overlay {
    padding: 10px;
  }
  .modal-card {
    padding: 20px 14px;
    max-width: 96vw;
    max-height: 88vh;
    border-radius: var(--radius-md);
  }
  .modal-article-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  .modal-header-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .modal-share-toolbar {
    padding: 12px 10px;
  }
  .share-buttons-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .share-pill-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
  .comment-item {
    padding: 12px 10px;
    gap: 10px;
  }
  .comment-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .comment-author-name {
    font-size: 0.84rem;
    flex-wrap: wrap;
    gap: 4px;
  }
  .comment-content-text {
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .reply-item {
    padding: 10px 8px;
    gap: 8px;
  }
  .reply-avatar {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }
  .reply-content-text {
    font-size: 0.82rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .inline-reply-box {
    padding: 10px;
  }

  /* Auth Modal */
  .auth-modal-card {
    padding: 24px 16px;
    max-width: 94vw;
  }
  .auth-modal-title {
    font-size: 1.3rem;
  }
  .auth-modal-sub {
    font-size: 0.8rem;
    max-width: 100%;
  }

  /* Toast Notifications */
  .cyber-toast {
    left: 12px;
    right: 12px;
    bottom: 14px;
    max-width: calc(100vw - 24px);
    font-size: 0.8rem;
    padding: 10px 14px;
    justify-content: center;
  }
  
  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
  .footer-glowing-socials { justify-content: center; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.7rem; }
  .popout-3d-card { max-width: 250px; }
  .real-spider-emblem-img { width: 150px; height: 150px; }
  .auth-modal-card { padding: 20px 12px; }
  .modal-card { padding: 16px 10px; }
}

/* Dynamic Heading & Section Entrance Transitions */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal .section-title {
  transform: translateY(12px);
  opacity: 0.7;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.revealed .section-title {
  transform: translateY(0);
  opacity: 1;
}

.scroll-reveal.revealed .section-tag::before {
  animation: tagRadarPulse 2.2s infinite;
}

@keyframes tagRadarPulse {
  0% { transform: scale(1); box-shadow: 0 0 6px var(--accent-primary); }
  50% { transform: scale(1.4); box-shadow: 0 0 14px var(--accent-primary), 0 0 6px var(--accent-secondary); }
  100% { transform: scale(1); box-shadow: 0 0 6px var(--accent-primary); }
}

/* ─── 17. CYBER GLASS AUTH MODAL & CYBER TOAST ──────────────────────────── */
.auth-modal-card {
  max-width: 440px;
  text-align: center;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: #0c111d !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(239, 68, 68, 0.22);
  z-index: 100000;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .auth-modal-card {
  background: #ffffff !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35), 0 0 24px rgba(220, 38, 38, 0.15);
}

.auth-spiderweb-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.auth-modal-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-spider-emblem {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-badge);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  margin-bottom: 4px;
  animation: tagRadarPulse 3s infinite;
}

.cyber-google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 290px;
  padding: 12px 24px;
  background: #131b2e;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
  transition: all 0.25s var(--ease-spring);
  position: relative;
  z-index: 2;
}

.cyber-google-auth-btn:hover {
  background: #1a253e;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35), 0 0 20px rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .cyber-google-auth-btn {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cyber-google-auth-btn:hover {
  background: #f8fafc;
  border-color: var(--accent-primary);
}

.auth-badge-radar {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-badge);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hover);
}

.auth-radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: tagRadarPulse 2s infinite;
}

.auth-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.auth-modal-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
}

.auth-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.google-official-btn-container {
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 6px 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 10px;
}

/* Cyber Toast Alert */
.cyber-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.2);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-spring);
  backdrop-filter: blur(12px);
}

.cyber-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cyber-toast.warning {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.cyber-toast.success {
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

/* ─── 18. CYBER MAINTENANCE OVERLAY & COMMENT FREEZE BANNER ──────────────── */
.cyber-maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #060913;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.cyber-maintenance-overlay.active {
  display: flex;
}

.maint-backdrop-spiderweb {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.15) 0%, rgba(6, 9, 19, 0.98) 70%);
  pointer-events: none;
}

.maint-card {
  position: relative;
  z-index: 10;
  max-width: 540px;
  width: 100%;
  background: rgba(12, 17, 29, 0.95);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 42px 28px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(239, 68, 68, 0.25);
  backdrop-filter: blur(20px);
}

.maint-emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: var(--bg-badge);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4);
  animation: tagRadarPulse 2.5s infinite;
}

.maint-emblem-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(239, 68, 68, 0.9));
}

.maint-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 10px;
  display: inline-block;
}

.maint-heading {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.maint-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.maint-countdown-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-secondary);
}

.maint-admin-bypass {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.maint-admin-bypass a {
  color: var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
}

/* Comment Freeze Alert Banner */
.comments-freeze-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.comments-freeze-banner i {
  color: var(--accent-primary);
  flex-shrink: 0;
}
