:root {
  color-scheme: dark;
  --bg: #080d1b;
  --panel: #10182a;
  --panel-hover: #141f35;
  --text: #f2f5ff;
  --muted: #98a5bd;
  --blue: #54c8ff;
  --purple: #a78bfa;
  --emerald: #57e6a5;
  --red: #ff7285;
  --amber: #ffd166;
  --border: rgba(155, 177, 221, 0.15);
  --border-hover: rgba(84, 200, 255, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% 5%, #152047 0, transparent 38%),
    radial-gradient(ellipse at 20% 50%, rgba(114, 88, 220, 0.08) 0, transparent 40%),
    radial-gradient(ellipse at 75% 85%, rgba(84, 200, 255, 0.06) 0, transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   DUAL SCROLL ANIMATION SYSTEM
   A) Section-Level: Lateral Cinematic Glide
   B) Subsection Cards/Boxes: 3D Perspective Glass Cascade
   ========================================== */

/* A) Section-Level Animation */
.section-reveal {
  opacity: 0;
  transform: translateX(-42px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.section-reveal .eyebrow {
  letter-spacing: 5px;
  transition: letter-spacing 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-reveal.is-visible .eyebrow {
  letter-spacing: 2px;
}

/* B) Subsection Card / Box Animation (3D Spring Pop-Up) */
.card-reveal {
  opacity: 0;
  transform: perspective(950px) translateY(46px) rotateX(12deg) scale(0.9);
  filter: blur(4px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1.15, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1.15, 0.36, 1),
    filter 0.78s cubic-bezier(0.22, 1.15, 0.36, 1);
  will-change: opacity, transform, filter;
}

.card-reveal.is-visible {
  opacity: 1;
  transform: perspective(950px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
}

/* After entrance completes, restore instant hover physics */
.card-reveal.is-visible.reveal-done {
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
  transition-delay: 0ms !important;
  will-change: auto;
}

/* Stagger delays for subsection cascade */
.stagger-1, .delay-1 { transition-delay: 60ms; }
.stagger-2, .delay-2 { transition-delay: 160ms; }
.stagger-3, .delay-3 { transition-delay: 260ms; }
.stagger-4 { transition-delay: 360ms; }
.stagger-5 { transition-delay: 460ms; }
.stagger-6 { transition-delay: 560ms; }

/* ==========================================
   IPHONE LIQUID GLASS & FROSTED SYSTEM
   ========================================== */
:root {
  --glass-bg: rgba(14, 22, 44, 0.65);
  --glass-bg-hover: rgba(20, 32, 62, 0.78);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-border-glow: rgba(84, 200, 255, 0.45);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.6), 0 0 24px rgba(84, 200, 255, 0.12);
  --glass-blur: blur(24px) saturate(190%);
}

/* ==========================================
   NAVBAR (FROSTED GLASS ISLAND)
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(6%, calc((100% - 1180px) / 2));
  background: rgba(8, 13, 27, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  transition: all 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -1px;
}

/* Home Hut Brand Icon (iPhone Frosted Glass & Dynamic Glow) */
.brand.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.brand-home-hut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 42px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hut-roof-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hut-body {
  fill: rgba(14, 22, 44, 0.65);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hut-roof {
  stroke: rgba(84, 200, 255, 0.5);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-hut-text {
  position: relative;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.5px;
  color: var(--blue);
  margin-top: 5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hut-shine {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}

/* Hover state on Home Hut */
.brand.brand-home:hover .hut-body {
  fill: rgba(20, 32, 64, 0.85);
  stroke: var(--blue);
}

.brand.brand-home:hover .hut-roof {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(84, 200, 255, 0.9));
}

.brand.brand-home:hover .brand-hut-text {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(84, 200, 255, 0.8);
}

.brand.brand-home:hover .brand-home-hut {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 0 16px rgba(84, 200, 255, 0.45));
}

/* Active State: When visitor is at #home */
.brand.brand-home.active-home .hut-body {
  fill: rgba(20, 32, 68, 0.9);
  stroke: rgba(84, 200, 255, 0.85);
}

.brand.brand-home.active-home .hut-roof {
  stroke: var(--blue);
  filter: drop-shadow(0 0 10px rgba(84, 200, 255, 1));
}

.brand.brand-home.active-home .brand-hut-text {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(84, 200, 255, 0.9);
}

.brand.brand-home.active-home .brand-home-hut {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 0 20px rgba(84, 200, 255, 0.6));
}

.brand-dot {
  color: var(--purple);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
}

/* iOS Dynamic Island Capsule Navigation */
nav.glass-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(14, 22, 44, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4), 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}

/* Sliding Frosted Glass Pill */
.nav-glass-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(84, 200, 255, 0.22) 0%, rgba(167, 139, 250, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.45), 0 4px 16px rgba(84, 200, 255, 0.28), 0 0 16px rgba(167, 139, 250, 0.18);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  pointer-events: none;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), width 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  will-change: transform, width, opacity;
  opacity: 0;
  z-index: 1;
  overflow: hidden;
}

/* Glistening Specular Sheen Beam */
.nav-glass-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: navGlisten 3.5s infinite ease-in-out;
}

@keyframes navGlisten {
  0%, 65% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.nav-glass-slider.glass-pulse {
  animation: glassPulse 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes glassPulse {
  0% {
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.45), 0 4px 16px rgba(84, 200, 255, 0.28);
    filter: brightness(1);
  }
  50% {
    box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.85), 0 0 28px rgba(84, 200, 255, 0.65), 0 0 18px rgba(167, 139, 250, 0.45);
    filter: brightness(1.3);
  }
  100% {
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.45), 0 4px 16px rgba(84, 200, 255, 0.28);
    filter: brightness(1);
  }
}

nav a {
  position: relative;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

nav a:hover,
nav a.active-link {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(84, 200, 255, 0.6);
}

.nav-contact {
  color: var(--blue) !important;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-contact:hover {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(84, 200, 255, 0.6);
}

/* ==========================================
   SECTIONS & LAYOUT
   ========================================== */
.section {
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 90px 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  margin: 6px 0 14px;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.07;
  letter-spacing: -2.2px;
  font-weight: 800;
}

.gradient-text {
  color: var(--blue);
  background: linear-gradient(100deg, var(--blue), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr auto 1.1fr;
  align-items: center;
  column-gap: 32px;
  row-gap: 18px;
  width: min(1240px, 92%);
  min-height: auto;
  padding-top: 20px;
  padding-bottom: 36px;
}

.hero-top-pill {
  grid-column: 1 / -1;
  justify-self: center;
  margin-bottom: 4px !important;
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  background: rgba(16, 24, 46, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================
   HERO PORTRAIT CYBER CAPSULE & PRIVACY SHIELD
   ========================================== */
.hero-portrait-capsule {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.portrait-glow {
  position: absolute;
  inset: -14px;
  background: radial-gradient(ellipse at center, rgba(84, 200, 255, 0.4) 0%, rgba(167, 139, 250, 0.25) 45%, transparent 70%);
  border-radius: 9999px;
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
  animation: pulsePortraitGlow 4s ease-in-out infinite alternate;
}

@keyframes pulsePortraitGlow {
  0% { opacity: 0.55; transform: scale(0.96); }
  100% { opacity: 0.95; transform: scale(1.04); }
}

.portrait-frame {
  position: relative;
  width: 240px;
  height: 340px;
  border-radius: 9999px;
  padding: 3px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--emerald) 100%);
  box-shadow: 0 0 32px rgba(84, 200, 255, 0.35), 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.hero-portrait-capsule:hover .portrait-frame {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 45px rgba(84, 200, 255, 0.55), 0 20px 50px rgba(0, 0, 0, 0.7);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 9999px;
  display: block;
  filter: contrast(1.02) brightness(0.99);
  transition: filter 0.3s ease, transform 0.35s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero-portrait-capsule:hover .portrait-img {
  filter: contrast(1.05) brightness(1.02);
  transform: scale(1.02);
}

.portrait-overlay-glow {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(180deg, transparent 72%, rgba(8, 13, 27, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Invisible security shield preventing image download & drag */
.portrait-shield {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: transparent;
  z-index: 5;
  cursor: default;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.portrait-badge {
  position: relative;
  margin-top: -18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(8, 13, 27, 0.94);
  border: 1px solid rgba(84, 200, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 14px rgba(84, 200, 255, 0.25);
  color: var(--text);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}

.hero-copy,
.terminal-card {
  position: relative;
  z-index: 1;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  background: rgba(16, 24, 42, 0.5);
}

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

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-description {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ==========================================
   IPHONE LIQUID GLASS BUTTONS & FOOTER BADGES
   ========================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(190%);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Luminous specular glisten on hover */
.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-22deg);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.button:hover::before {
  transform: skewX(-22deg) translateX(320%);
}

.primary {
  color: #06101d !important;
  background: linear-gradient(135deg, rgba(84, 200, 255, 0.95) 0%, rgba(165, 164, 255, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25), 0 8px 26px rgba(84, 200, 255, 0.4);
}

.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), 0 12px 36px rgba(84, 200, 255, 0.65);
}

.secondary {
  color: #f2f5ff !important;
  background: rgba(16, 24, 46, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.secondary:hover {
  background: rgba(24, 36, 68, 0.82);
  border-color: rgba(84, 200, 255, 0.55);
  color: var(--blue) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 0 24px rgba(84, 200, 255, 0.35);
}

/* Footer Glass Pill Buttons */
.footer-glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1 !important;
  background: rgba(16, 24, 46, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  text-decoration: none;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 3px;
}

.footer-glass-btn:hover {
  background: rgba(28, 42, 80, 0.85);
  border-color: var(--blue);
  color: #ffffff !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 0 16px rgba(84, 200, 255, 0.4);
  transform: translateY(-1px);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.meta-divider {
  height: 16px;
  border-left: 1px solid var(--border);
}

/* ==========================================
   TERMINAL CARD (ANGLED & INTERACTIVE)
   ========================================== */
.terminal-card {
  overflow: hidden;
  border: 1px solid rgba(84, 200, 255, 0.25);
  border-radius: 16px;
  background: rgba(12, 19, 36, 0.96);
  box-shadow: 0 20px 80px rgba(21, 32, 71, 0.4);
  transform: rotate(1deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

.terminal-card:hover {
  transform: rotate(0deg) translateY(-4px);
  border-color: rgba(84, 200, 255, 0.45);
}

.terminal-header,
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
}

.terminal-header {
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.window-dots span:nth-child(2) {
  background: var(--amber);
}

.window-dots span:nth-child(3) {
  background: var(--emerald);
}

.terminal-status {
  color: var(--emerald);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.terminal-body {
  padding: 20px 22px;
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  height: 290px;
  overflow-y: auto;
  cursor: text;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f2f5ff;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  caret-color: var(--blue);
  padding: 0;
}

.terminal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.terminal-chip {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.68rem;
  font-family: 'Fira Code', monospace;
  cursor: pointer;
  transition: all 0.2s;
}

.terminal-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(84, 200, 255, 0.08);
}

.prompt {
  color: var(--blue);
  font-weight: 600;
}

.terminal-output {
  margin: 4px 0 16px 16px;
  color: #d2dcf6;
}

.success-output {
  color: var(--emerald);
  margin: 4px 0 16px 16px;
}

.cursor {
  color: var(--purple);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

.terminal-footer {
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: var(--blue);
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}

/* ==========================================
   SECTION HEADINGS
   ========================================== */
.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.section-description {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ==========================================
   GRIDS & CARDS (ABOUT & SKILLS)
   ========================================== */
.about-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-card,
.skill-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 24, 46, 0.72), rgba(12, 18, 36, 0.52));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 8px 26px rgba(0, 0, 0, 0.35);
}

.about-card.is-visible:hover,
.skill-card.is-visible:hover,
.project-card.is-visible:hover,
.devsecops-card.is-visible:hover {
  transform: perspective(950px) translateY(-6px) scale(1.015);
  border-color: rgba(84, 200, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.32), 0 14px 36px rgba(8, 13, 27, 0.7), 0 0 22px rgba(84, 200, 255, 0.16);
}

.card-icon {
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.about-card h3,
.skill-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.about-card p,
.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.skill-index,
.project-number {
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================
   INTERACTIVE PIPELINE SECTION
   ========================================== */
/* ==========================================
   PIPELINE SIMULATOR CONTROLS
   ========================================== */
.pipeline-heading-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 100%;
}

.pipeline-heading-copy {
  max-width: 680px;
}

.pipeline-action-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pipeline-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 9px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(84, 200, 255, 0.08);
  border: 1px solid rgba(84, 200, 255, 0.35);
  box-shadow: 0 0 16px rgba(84, 200, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.pipeline-run-btn:hover {
  background: rgba(84, 200, 255, 0.16);
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(84, 200, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.pipeline-run-btn:active {
  transform: translateY(0);
}

.pipeline-run-btn.running {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(255, 209, 102, 0.1);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.25);
  cursor: wait;
}

.pipeline-run-btn.completed {
  color: var(--emerald);
  border-color: var(--emerald);
  background: rgba(87, 230, 165, 0.12);
  box-shadow: 0 0 20px rgba(87, 230, 165, 0.25);
}

.pipeline-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.pipeline-progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--blue), var(--emerald));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(84, 200, 255, 0.6);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.run-btn-icon {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.pipeline-run-btn.running .run-btn-icon {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .pipeline-heading-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pipeline-run-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
}

.pipeline-box {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.pipeline-step {
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 13, 27, 0.65);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.pipeline-step.is-visible:hover,
.pipeline-step.is-visible.active {
  border-color: var(--blue);
  background: rgba(84, 200, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.24), 0 6px 20px rgba(84, 200, 255, 0.2);
  transform: perspective(950px) translateY(-3px);
}

.step-num {
  font-size: 0.7rem;
  color: var(--purple);
  font-family: ui-monospace, monospace;
  font-weight: 700;
}

.step-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 6px 0 2px;
  color: var(--text);
}

.step-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.step-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  background: rgba(87, 230, 165, 0.12);
  color: var(--emerald);
  font-family: ui-monospace, monospace;
}

.pipeline-console {
  background: #060a14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.65;
  overflow-x: auto;
}

/* ==========================================
   DEVSECOPS MATRIX
   ========================================== */
.devsecops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.devsecops-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 24, 46, 0.72), rgba(12, 18, 36, 0.52));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 8px 26px rgba(0, 0, 0, 0.35);
}

.security-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.badge-red { background: rgba(255, 114, 133, 0.12); color: var(--red); border-color: rgba(255, 114, 133, 0.3); }
.badge-blue { background: rgba(84, 200, 255, 0.12); color: var(--blue); border-color: rgba(84, 200, 255, 0.3); }
.badge-purple { background: rgba(167, 139, 250, 0.12); color: var(--purple); border-color: rgba(167, 139, 250, 0.3); }
.badge-emerald { background: rgba(87, 230, 165, 0.12); color: var(--emerald); border-color: rgba(87, 230, 165, 0.3); }

/* ==========================================
   PROJECTS (CLEAN HORIZONTAL CARDS)
   ========================================== */
.projects-list {
  display: grid;
  gap: 16px;
}

.project-card {
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  align-items: start;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 24, 46, 0.72), rgba(12, 18, 36, 0.55));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 8px 26px rgba(0, 0, 0, 0.35);
}

.project-content h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

.project-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #b8c6e1;
  font-size: 0.74rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.project-arrow {
  color: var(--blue);
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.project-card:hover .project-arrow {
  transform: translate(3px, -3px);
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
}

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

.exp-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.exp-date {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--blue);
  font-family: ui-monospace, monospace;
}

.exp-list {
  padding-left: 20px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.exp-list li strong {
  color: var(--text);
}

/* ==========================================
   CONTACT
   ========================================== */
.contact {
  padding: 85px 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(114, 88, 220, 0.18), transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(84, 200, 255, 0.12), transparent 45%),
    var(--panel);
  text-align: center;
}

.contact h2 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -2px;
}

.contact > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================
   CINEMATIC INTRO SPLASH OVERLAY
   ========================================== */
#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at 50% 40%, #152047 0%, #080d1b 85%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s ease;
}

#introOverlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(84, 200, 255, 0.35);
  border-radius: 30px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  margin-bottom: 14px;
  background: rgba(16, 24, 42, 0.7);
  box-shadow: 0 0 20px rgba(84, 200, 255, 0.2);
}

.intro-infinity-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: filter 0.6s ease, opacity 0.4s ease;
  will-change: filter, opacity;
}

.intro-infinity-svg {
  width: clamp(136px, 24vw, 196px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(255, 136, 0, 0.5));
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-infinity-wrap.infinity-glow .intro-infinity-svg {
  filter: drop-shadow(0 0 22px rgba(255, 145, 0, 0.95)) drop-shadow(0 0 46px rgba(255, 95, 0, 0.55));
}

.infinity-stroke,
.infinity-gloss {
  will-change: stroke-dashoffset;
}

#introQuoteWrap {
  text-align: center;
  width: min(860px, 88vw);
}

.intro-quote {
  /* hidden — JS clears and rebuilds this from scratch */
  display: none;
}

.intro-author {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
}


.contact-meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
}

.quote-banner {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed rgba(155, 177, 221, 0.2);
  text-align: center;
}

.quote-text {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, var(--blue), var(--emerald));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.quote-sub {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a:hover {
  color: var(--blue);
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE DESIGN (PERFECTED)
   ========================================== */
@media (max-width: 900px) {
  /* 1. Header & Navigation: Hide desktop top buttons completely on mobile */
  nav,
  nav.glass-nav-container,
  .navbar nav {
    display: none !important;
  }

  .navbar {
    padding: 10px 18px;
    justify-content: flex-start;
  }

  /* 2. Hero Layout */
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 50px;
    text-align: center;
  }

  .hero-top-pill {
    order: 0;
    margin-bottom: 4px !important;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 1;
    width: 100%;
  }

  .hero-portrait-capsule {
    order: 2;
    justify-self: center;
  }

  .terminal-card {
    order: 3;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin: 20px auto 0;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 20px;
  }

  .hero-meta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* 3. Section Grids */
  .about-grid,
  .skills-grid,
  .devsecops-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pipeline-heading-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .pipeline-run-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Floating Hamburger Navigation: Touch-optimized for mobile */
  .side-nav-wrapper {
    right: 12px;
  }

  .side-nav-trigger {
    width: 44px;
    height: 48px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(84, 200, 255, 0.3);
  }

  .side-nav-drawer {
    right: 54px;
    width: min(230px, calc(100vw - 72px));
    padding: 12px 10px;
    border-radius: 16px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .side-nav-item {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 18px 16px;
    gap: 12px;
  }

  .project-num {
    display: none;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .section {
    width: 92%;
    padding: 45px 0;
  }

  h1 {
    font-size: clamp(1.9rem, 7.8vw, 2.5rem);
    letter-spacing: -1px;
    line-height: 1.12;
  }

  .portrait-frame {
    width: 200px;
    height: 280px;
  }

  .terminal-body {
    padding: 14px 10px;
    font-size: 0.74rem;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 14px;
    width: 94%;
  }

  .metric-number {
    font-size: 1.75rem;
  }
}

/* ==========================================
   METRICS & KEY ACHIEVEMENTS SECTION
   ========================================== */
.metrics-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 30px;
  box-sizing: border-box;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(1180px, 90%);
  margin: 0 auto;
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(16, 24, 42, 0.75);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
  align-items: center;
  justify-items: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  box-sizing: border-box;
  width: 100%;
}

.metric-number {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 850;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, var(--blue), var(--emerald));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 8px;
  text-align: center;
  display: block;
}

.metric-label {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  text-align: center;
  display: block;
  max-width: 250px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .metrics-section {
    padding: 0 0 24px;
  }

  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    padding: 22px 18px;
  }
}

@media (max-width: 520px) {
  .metrics-section {
    padding: 0 0 20px;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
    width: 92%;
  }

  .metric-item {
    padding: 6px 4px;
  }

  .metric-number {
    font-size: 1.85rem;
  }

  .metric-label {
    font-size: 0.82rem;
    max-width: 280px;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 20px;
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-portrait-capsule {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .terminal-card {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 760px;
    margin: 12px auto 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 50px;
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-portrait-capsule {
    order: 2;
    margin: 10px auto 16px;
  }

  .portrait-frame {
    width: 210px;
    height: 295px;
  }

  .terminal-card {
    order: 3;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ==========================================
   VISITOR & PROFILE ANALYTICS TELEMETRY
   ========================================== */
.visitor-analytics-card {
  max-width: 680px;
  margin: 36px auto 0;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(16, 24, 42, 0.75);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 1px;
}

.analytics-network-label {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.66rem;
  color: var(--muted);
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.analytics-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.analytics-number {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 850;
  font-family: 'Fira Code', ui-monospace, monospace;
  letter-spacing: -0.5px;
  background: linear-gradient(100deg, var(--blue), var(--emerald));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.analytics-label {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 500;
}

.analytics-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

.analytics-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  color: var(--muted);
}

@media (max-width: 580px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .analytics-divider {
    display: none;
  }
  .analytics-header {
    justify-content: center;
  }
}

/* ==========================================
   FLOATING RIGHT-SIDE HAMBURGER (IPHONE FROSTED GLASS & BUTTERY JUMP)
   ========================================== */
.side-nav-wrapper {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0;
}

.side-nav-trigger {
  width: 46px;
  height: 50px;
  border-radius: 16px;
  background: rgba(14, 22, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(84, 200, 255, 0.2);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  user-select: none;
  position: relative;
  overflow: hidden;
}

/* Specular curved reflection */
.side-nav-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 45%, transparent 65%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0.75;
}

/* Luminous gloss shimmer sweep */
.side-nav-trigger::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.side-nav-wrapper:hover .side-nav-trigger::after,
.side-nav-wrapper.is-open .side-nav-trigger::after {
  transform: rotate(25deg) translateY(100%);
}

.side-nav-trigger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.25s ease;
  box-shadow: 0 0 8px rgba(84, 200, 255, 0.6);
  position: relative;
  z-index: 2;
}

.side-nav-trigger span:nth-child(2) {
  width: 14px;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(87, 230, 165, 0.6);
}

.side-nav-trigger span:nth-child(3) {
  width: 18px;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.side-nav-wrapper:hover .side-nav-trigger,
.side-nav-wrapper.is-open .side-nav-trigger {
  border-color: rgba(84, 200, 255, 0.6);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.55), 0 0 28px rgba(84, 200, 255, 0.45);
  transform: scale(1.06);
}

.side-nav-wrapper:hover .side-nav-trigger span:nth-child(2),
.side-nav-wrapper.is-open .side-nav-trigger span:nth-child(2) {
  width: 20px;
}

.side-nav-drawer {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%) translateX(16px);
  width: 236px;
  padding: 16px 14px;
  border-radius: 20px;
  background: rgba(10, 16, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.45), 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 32px rgba(84, 200, 255, 0.18);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Hover bridge to prevent losing hover when moving mouse */
.side-nav-drawer::after {
  content: '';
  position: absolute;
  top: 0;
  right: -24px;
  width: 28px;
  height: 100%;
}

/* On desktop (>= 901px) with non-touch mouse pointer, hover opens drawer */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  html:not(.touch-device) .side-nav-wrapper:hover .side-nav-drawer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
  }
}

/* On mobile/touch devices, ONLY .is-open shows the drawer */
html.touch-device .side-nav-wrapper:hover .side-nav-drawer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(16px);
}

.side-nav-wrapper.is-open .side-nav-drawer {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(-50%) translateX(0) !important;
}

/* On touch devices when closed, ensure hover triggers don't leave bars glowing */
@media (max-width: 900px) {
  .side-nav-wrapper:hover .side-nav-drawer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(16px);
  }
  .side-nav-wrapper:hover .side-nav-trigger:not(:active) {
    transform: none;
  }
}

.side-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
}

/* Vertical Sliding Glass Container & Pill inside Hamburger Drawer */
.side-nav-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.side-nav-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(84, 200, 255, 0.22) 0%, rgba(167, 139, 250, 0.18) 100%);
  border: 1px solid rgba(84, 200, 255, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.38), 0 0 18px rgba(84, 200, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  will-change: transform, height, opacity;
}

.side-nav-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: navGlisten 3.5s infinite ease-in-out;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.24s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  position: relative;
  z-index: 1;
}

.side-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(-2px);
}

.side-nav-item.active-slide {
  color: #ffffff;
  font-weight: 650;
  text-shadow: 0 0 12px rgba(84, 200, 255, 0.6);
}

.side-nav-item.glass-press {
  transform: scale(0.96) translateX(-4px);
  color: #ffffff;
}

.side-nav-num {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--purple);
  font-weight: 700;
}

.side-nav-item.active-slide .side-nav-num {
  color: var(--blue);
}

.terminal-hint {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Fira Code', ui-monospace, monospace;
  margin: 6px 0 10px;
  line-height: 1.45;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--blue);
}


