/* ============================================================
       LOLIFOX PORTAL THEME TOKENS (Charcoal / Tangerine / Cream)
    ============================================================ */
:root {
  --bg: #100a07;
  --page-bg: #161616;
  --fg: #f6eadc;
  --mut: #b9a592;
  --line: #3a2a1f;
  --card: #1a110c;
  --ac: #ff8126;
  --ac2: #ffbf85;
  --onac: #100a07;
  --em: #ffb067;
  --edge: color-mix(in srgb, #f6eadc 34%, #3a2a1f);
  --hd: color-mix(in srgb, #ff8126 16%, #1a110c);
  --sel: color-mix(in srgb, #ff8126 22%, #1a110c);
  --r: 6px;
  --glow: 0 0 5.4px color-mix(in srgb, #f6eadc 55%, transparent), 0 0 14.4px color-mix(in srgb, #ff8126 25%, transparent);

  /* Theme aliases preserved for existing helpers */
  --cyan: var(--ac);
  --aqua: var(--em);
  --pink: #ff6b4a;
  --mint: #7ce0a3;
  --lavender: var(--ac2);
  --sun: var(--ac2);
  --indigo: var(--page-bg);
  --surface: var(--card);
  --surface-card: var(--card);
  --surface-card-hover: #241811;
  --surface-border: var(--edge);
  --surface-border-hover: var(--ac);
  --text: var(--fg);
  --text-muted: var(--mut);
  --text-dim: var(--mut);
  --accent: var(--ac);
  --glow-sm: 2px 2px 0 var(--edge);
  --glow-md: 3px 3px 0 var(--ac);
  --glow-lg: 5px 5px 0 var(--ac);

  --font-head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-display: var(--font-head);
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}


/* ============================================================
       ACCESSIBILITY & SKIP LINK
    ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--ac);
  color: var(--onac) !important;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 10000;
  border-radius: var(--r);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--edge);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--ac2);
}

/* ============================================================
       RESET & GLOBAL (Matte Charcoal + Drifting Squares)
    ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page-bg);
  position: relative;
  cursor: default;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Floating drifting squares background (exact lolifox.app .deco) */
.deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco i {
  position: absolute;
  display: block;
  border: 2px solid var(--ac);
  border-radius: 3px;
  opacity: 0.28;
  will-change: transform;
}

/* ============================================================
       TOP STICKY PORTAL HEADER (Ruled 2px Orange Border)
    ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 66px;
  z-index: 900;
  background: rgba(22, 22, 22, 0.94);
  border-bottom: 2px solid var(--ac);
  transition: background 0.2s ease;
}

.site-header.scrolled {
  background: #161616;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--ac);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.brand-prompt {
  color: var(--em);
}

.brand-ext {
  color: var(--fg);
  opacity: 0.85;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--onac);
  background: var(--ac);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--edge);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 2px 2px 0 var(--edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.15s ease;
}

.action-icon-btn:hover {
  transform: translate(-1px, -1px);
  border-color: var(--ac);
  box-shadow: 3px 3px 0 var(--ac);
}

.action-icon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--edge);
}

.btn-header-cta {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--r);
  background: var(--ac);
  border: 1px solid var(--ac);
  color: var(--onac) !important;
  font-weight: 700;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--ac) 55%, #000);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-header-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--ac) 55%, #000);
}

.btn-header-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ac);
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--edge);
  color: var(--fg);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s ease;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(9, 10, 16, 0.98);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 899;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav-link span {
  color: var(--accent);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 600px) {

  .btn-header-cta,
  .brand-badge {
    display: none !important;
  }
}

/* ============================================================
       ACHIEVEMENTS SHOWCASE MODAL
    ============================================================ */
.achievements-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 10, 16, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 1.5rem;
}

.achievements-modal-content {
  background: rgba(15, 20, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), var(--glow-sm);
  animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.achievements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.achievements-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.achievements-title h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.achieve-score {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mint);
  background: rgba(0, 255, 163, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text);
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 500px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

.achieve-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  transition: all 0.2s;
}

.achieve-card.unlocked {
  background: rgba(0, 255, 163, 0.06);
  border-color: rgba(0, 255, 163, 0.35);
}

.achieve-card-icon {
  font-size: 1.25rem;
}

.achieve-card-info h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.achieve-card.unlocked h4 {
  color: var(--mint);
}

.achieve-card-info p {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ============================================================
       SCROLLBAR
    ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--indigo);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
  box-shadow: var(--glow-sm);
}

::selection {
  background: color-mix(in srgb, var(--accent) 50%, transparent);
  color: #fff;
}

/* ============================================================
       SCROLL PROGRESS BAR
    ============================================================ */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  box-shadow: var(--glow-sm);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ============================================================
       CUSTOM CURSOR
    ============================================================ */
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.3s ease, opacity 0.2s ease;
  mix-blend-mode: screen;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent) 0%, transparent 70%);
  opacity: 0.6;
}

#cursor-ring.hovering {
  width: 50px;
  height: 50px;
  border-color: var(--accent);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent) 0%, transparent 70%);
  opacity: 0.85;
  box-shadow: var(--glow-sm);
}

@media (hover: none) and (pointer: coarse) {
  #cursor-ring {
    display: none !important;
  }
}

#cursor-ring.hovering {
  width: 48px;
  height: 48px;
  border-color: var(--aqua);
}

#cursor-label {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#cursor-ring.hovering #cursor-label {
  opacity: 1;
}

/* ============================================================
       SPOTLIGHT
    ============================================================ */
#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ============================================================
       DOT NAV
    ============================================================ */
#dot-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 500;
}

#dot-nav button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
}

#dot-nav button:hover,
#dot-nav button.active {
  background: var(--accent);
  box-shadow: var(--glow-md);
  transform: scale(1.3);
}

#dot-nav button .dot-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#dot-nav button:hover .dot-tooltip {
  opacity: 1;
}

/* ============================================================
       COLOR SWITCHER
    ============================================================ */
#color-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

#color-switcher button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#color-switcher button:hover,
#color-switcher button.active {
  transform: scale(1.35);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px currentColor;
}

/* ============================================================
       BOT LAYER
    ============================================================ */
/* #bot-layer styled below */

/* ============================================================
       LAYOUT
    ============================================================ */
main {
  position: relative;
  z-index: 10;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* ============================================================
       SECTION HEADERS
    ============================================================ */
.sec-header {
  margin-bottom: 3rem;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--text);
}

/* ============================================================
       VAPORWAVE COMPONENTS
    ============================================================ */
.neon-border {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: var(--glow-sm);
}

.glass-card {
  background: rgba(36, 20, 71, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%),
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  z-index: 0;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: var(--glow-md);
}

.chrome-text {
  background: linear-gradient(135deg,
      #fff 0%,
      var(--accent) 25%,
      #fff 50%,
      var(--aqua) 75%,
      #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

.scanline {
  position: relative;
}

.scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px);
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================================
       REVEAL ANIMATION
    ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
       BUTTONS
    ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--indigo);
  box-shadow: var(--glow-sm);
}

.btn-primary:hover {
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

.btn-magnetic {
  transition: transform 0.15s ease;
}

/* ============================================================
       TILT CARDS
    ============================================================ */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

/* ============================================================
       COMPACT BOTTOM-RIGHT BOT HUD
    ============================================================ */
#hud {
  position: fixed;
  bottom: 1rem;
  right: 1.25rem;
  left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 19, 34, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  z-index: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0.85;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

#hud:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 600px) {
  #hud {
    right: 0.75rem;
    left: auto;
    bottom: 0.75rem;
    padding: 0.35rem 0.65rem;
    gap: 0.4rem;
  }

  #hud .hud-text {
    display: none;
  }
}

#hud .hud-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-left: 0.2rem;
}

#hud .hud-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

#hud .hud-btn:hover,
#hud .hud-btn--active {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
       COMMAND PALETTE
    ============================================================ */
#cmd-palette {
  position: fixed;
  inset: 0;
  background: rgba(26, 16, 51, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  z-index: 2000;
}

.palette-box {
  width: 600px;
  max-width: 90vw;
  background: rgba(36, 20, 71, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-md);
  overflow: hidden;
}

#palette-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  outline: none;
}

#palette-input::placeholder {
  color: color-mix(in srgb, var(--text) 40%, transparent);
}

#palette-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.palette-item {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.palette-item:hover,
.palette-item.selected {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.palette-item .item-icon {
  font-size: 1rem;
  width: 1.5rem;
  text-align: center;
}

.palette-hint {
  padding: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: color-mix(in srgb, var(--text) 30%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  gap: 1rem;
}

/* ============================================================
       TOAST
    ============================================================ */
#toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1500;
  pointer-events: none;
}

.toast {
  background: rgba(36, 20, 71, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: var(--glow-sm), 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: slide-in-right 0.3s ease forwards;
  white-space: nowrap;
}

.toast.removing {
  animation: slide-out-right 0.3s ease forwards;
}

/* ============================================================
       ACHIEVEMENT POPUP
    ============================================================ */
#achievement-popup {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 1400;
  pointer-events: none;
}

.achievement-card {
  background: rgba(36, 20, 71, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--sun);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 0 20px var(--sun);
  animation: bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 300px;
}

.achievement-icon {
  font-size: 1.5rem;
}

.achievement-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sun);
  font-weight: 700;
}

.achievement-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
}

/* ============================================================
       BOOT SCREEN
    ============================================================ */
#boot-screen {
  position: fixed;
  inset: 0;
  background: var(--indigo);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#boot-screen pre {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mint);
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 0 10px var(--mint);
}

.boot-progress-track {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.boot-progress-bar {
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.boot-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}

/* ============================================================
       SLEEK BOTTOM FLOATING ACTION BAR (Lolifox Frosted Charcoal)
    ============================================================ */
#self-destruct-wrapper.sd-unit {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  max-width: calc(100vw - 1.5rem);
  z-index: 650;
  user-select: none;
}

.sd-chassis {
  background: rgba(26, 17, 12, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 6px 8px 6px 14px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(246, 234, 220, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#self-destruct-wrapper:hover .sd-chassis {
  border-color: color-mix(in srgb, var(--ac2) 55%, var(--line));
}

#self-destruct-wrapper.is-armed .sd-chassis {
  border-color: rgba(255, 59, 75, 0.72);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(255, 30, 45, 0.25),
    inset 0 1px 0 rgba(255, 120, 120, 0.14);
}

.sd-console-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.sd-divider {
  width: 1px;
  height: 26px;
  background: rgba(246, 234, 220, 0.12);
  flex-shrink: 0;
}

.sd-purge-bay {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sd-status-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(124, 224, 163, 0.1);
  border: 1px solid rgba(124, 224, 163, 0.25);
  padding: 2px 6px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#self-destruct-wrapper.is-armed .sd-status-pill {
  color: #ff6b78;
  background: rgba(255, 30, 45, 0.16);
  border-color: rgba(255, 59, 75, 0.5);
  animation: sd-led-pulse 0.55s ease-in-out infinite alternate;
}

@keyframes sd-led-pulse {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

.sd-well {
  position: relative;
  width: 44px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, #2a0a0e 0%, #100909 100%);
  border: 1px solid rgba(255, 75, 88, 0.3);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 420px;
}

/* Jewel Candy-Red Glowing Purge Dome */
.sd-btn {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 196, 200, 0.7);
  background: radial-gradient(circle at 34% 28%, #ffb4ba 0%, #ff1e2d 30%, #dc0018 70%, #6b000b 100%);
  box-shadow:
    0 2px 0 #420408,
    0 0 18px rgba(255, 24, 42, 0.85),
    0 0 34px rgba(255, 0, 28, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.65);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  animation: sd-lure-pulse 2s ease-in-out infinite;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.18s ease;
}

@keyframes sd-lure-pulse {

  0%,
  100% {
    box-shadow:
      0 2px 0 #420408,
      0 0 16px rgba(255, 24, 42, 0.72),
      0 0 30px rgba(255, 0, 28, 0.35),
      inset 0 2px 4px rgba(255, 255, 255, 0.6);
  }

  50% {
    box-shadow:
      0 2px 0 #420408,
      0 0 26px rgba(255, 32, 52, 1),
      0 0 48px rgba(255, 0, 32, 0.65),
      inset 0 2px 5px rgba(255, 255, 255, 0.8);
  }
}

#self-destruct-wrapper.is-armed .sd-btn {
  animation: none;
  box-shadow:
    0 2px 0 #420408,
    0 0 28px rgba(255, 24, 42, 1),
    0 0 54px rgba(255, 0, 32, 0.78),
    inset 0 2px 5px rgba(255, 255, 255, 0.75);
}

.sd-btn:hover {
  filter: brightness(1.15);
}

.sd-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 0 0 #420408,
    0 0 20px rgba(255, 24, 42, 0.9),
    inset 0 1px 3px rgba(255, 255, 255, 0.35);
}

.sd-btn-glint {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 10px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 80%);
  transform: rotate(-28deg);
  pointer-events: none;
}

.sd-btn-sweep {
  position: absolute;
  top: -20%;
  left: -60%;
  width: 45%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-25deg);
  animation: sd-shine-sweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sd-shine-sweep {

  0%,
  60% {
    left: -70%;
    opacity: 0;
  }

  75% {
    opacity: 0.9;
  }

  100% {
    left: 140%;
    opacity: 0;
  }
}

/* Smoked-Glass Flip Safety Cap */
.sd-cover {
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 110, 120, 0.42);
  background: linear-gradient(150deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(38, 12, 16, 0.34) 55%,
      rgba(18, 6, 8, 0.56) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 3px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transform-origin: top center;
  transition: transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1), border-color 0.2s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  z-index: 4;
}

.sd-cover:hover {
  border-color: rgba(255, 130, 140, 0.78);
}

.sd-cover.open {
  transform: rotateX(124deg);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.55);
}

.sd-hinge {
  position: absolute;
  top: 0;
  left: 9px;
  right: 9px;
  height: 3px;
  border-radius: 2px;
  background: rgba(246, 234, 220, 0.45);
}

.sd-cover-glass {
  position: absolute;
  inset: 3px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, transparent 50%);
  border-radius: 5px;
  pointer-events: none;
}

.sd-cover-grip {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 160, 168, 0.65);
}

/* Bot Sweat Drops & Cool Scared Shiver (distinct from Angry Glare!) */
.bot-sweat {
  position: absolute;
  top: -4px;
  right: -11px;
  opacity: 0;
  pointer-events: none;
  z-index: 1030;
}

.bot-sweat-drop {
  fill: #7dd3fc;
  stroke: #0c4a6e;
  stroke-width: 1;
}

.bot-wrapper.bot-sweating .bot-sweat,
.bot-wrapper.bot-anxious .bot-sweat,
.bot-wrapper.bot-scared .bot-sweat {
  opacity: 1;
}

.bot-wrapper.bot-sweating .bot-sweat-drop--a {
  animation: bot-sweat-drop 1.05s ease-in infinite;
}

.bot-wrapper.bot-sweating .bot-sweat-drop--b {
  animation: bot-sweat-drop 1.05s ease-in 0.45s infinite;
}

.bot-wrapper.bot-anxious .bot-sweat-drop--a,
.bot-wrapper.bot-scared .bot-sweat-drop--a {
  animation: bot-sweat-drop 0.55s ease-in infinite;
}

.bot-wrapper.bot-anxious .bot-sweat-drop--b,
.bot-wrapper.bot-scared .bot-sweat-drop--b {
  animation: bot-sweat-drop 0.55s ease-in 0.25s infinite;
}

@keyframes bot-sweat-drop {
  0% {
    transform: translateY(-2px) scale(0.5);
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  100% {
    transform: translateY(11px) scale(1);
    opacity: 0;
  }
}

.bot-wrapper:not(.bot-held).bot-anxious .bot-sprite,
.bot-wrapper:not(.bot-held).bot-scared .bot-sprite {
  animation: bot-scared-tremble 0.14s infinite alternate;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.65));
}

@keyframes bot-scared-tremble {
  0% {
    transform: translate(-1.4px, 0) rotate(-1.5deg);
  }

  100% {
    transform: translate(1.4px, -1px) rotate(1.5deg);
  }
}

/* ============================================================
       HERO SECTION (placeholder — module will fill in)
    ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#hero .hero-inner {
  max-width: 800px;
}

#hero .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}

#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

#hero .hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--aqua);
  margin-bottom: 1.5rem;
  display: block;
}

#hero .hero-tagline {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#hero .hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

#hero .hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

#hero .stat {
  text-align: center;
}

#hero .stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  text-shadow: var(--glow-sm);
}

#hero .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: color-mix(in srgb, var(--text) 60%, transparent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
       SECTIONS (Clean Flowing Spacing)
    ============================================================ */
#experience,
#pipeline,
#cluster,
#stack,
#contact {
  padding: 4.25rem 1.5rem;
  min-height: auto;
}

#contact {
  padding-bottom: 5.5rem;
}

/* ============================================================
       FOOTER
    ============================================================ */
#footer {
  position: relative;
  z-index: 10;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--text) 40%, transparent);
}

/* ============================================================
       UTILITY CLASSES
    ============================================================ */
.mono {
  font-family: var(--font-mono);
}

.display {
  font-family: var(--font-display);
}

.accent {
  color: var(--accent);
}

.aqua {
  color: var(--aqua);
}

.mint {
  color: var(--mint);
}

.lavender {
  color: var(--lavender);
}

.sun {
  color: var(--sun);
}

.text-sm {
  font-size: 0.85rem;
}

.text-xs {
  font-size: 0.72rem;
}

.text-lg {
  font-size: 1.2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.items-center {
  align-items: center;
}

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

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ============================================================
       KEYFRAMES
    ============================================================ */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 8px var(--accent);
  }

  50% {
    box-shadow: 0 0 24px var(--accent), 0 0 48px var(--accent);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10% {
    transform: translateX(-8px) rotate(-1deg);
  }

  20% {
    transform: translateX(8px) rotate(1deg);
  }

  30% {
    transform: translateX(-6px) rotate(-0.5deg);
  }

  40% {
    transform: translateX(6px) rotate(0.5deg);
  }

  50% {
    transform: translateX(-4px);
  }

  60% {
    transform: translateX(4px);
  }

  70% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }

  90% {
    transform: translateX(-1px);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    transform: scale(1.1);
  }

  70% {
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-out-right {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(60px);
  }
}

@keyframes crack-fall {
  0% {
    transform: rotate(0deg) translateY(0);
    opacity: 1;
  }

  30% {
    transform: rotate(-3deg) translateY(10px);
  }

  60% {
    transform: rotate(5deg) translateY(30px);
    opacity: 0.6;
  }

  100% {
    transform: rotate(-10deg) translateY(100vh);
    opacity: 0;
  }
}

@keyframes scanline-anim {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100px;
  }
}

@keyframes grid-move {
  0% {
    background-position: center bottom;
  }

  100% {
    background-position: center calc(bottom + 60px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

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

@keyframes sip-arm {

  0%,
  100% {
    transform: rotate(0deg);
    transform-origin: bottom right;
  }

  30% {
    transform: rotate(-25deg);
    transform-origin: bottom right;
  }

  60% {
    transform: rotate(-20deg);
    transform-origin: bottom right;
  }
}

@keyframes typewriter {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    text-shadow: 0 0 8px var(--accent);
  }

  50% {
    text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
  }
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-100%);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ============================================================
       REDUCED MOTION
    ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #bot-layer {
    display: none;
  }
}

/* ============================================================
       RESPONSIVE — MOBILE
    ============================================================ */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.25rem;
  }

  .sec-title {
    font-size: 2rem;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  #hero .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  #dot-nav {
    display: none;
  }

  #hero h1 {
    font-size: 1.8rem;
  }

  .palette-box {
    width: 95vw;
  }
}

/* ============================================================
     BOT SYSTEM CSS
  ============================================================ */
/* #bot-layer styled below */
.bot-wrapper {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  will-change: transform;
}

.bot-wrapper:active {
  cursor: grabbing;
}

.bot-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.45));
}

.bot-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(244, 238, 255, 0.6);
  margin-top: 2px;
}

.bot-bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 16, 51, 0.95);
  border: 1px solid rgba(255, 113, 206, 0.4);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-family: var(--font-body);
  color: var(--text);
  white-space: normal;
  max-width: 180px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.bot-bubble--visible {
  opacity: 1;
}

.bot-zs {
  transition: opacity 0.3s;
}

#hud {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(36, 20, 71, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(185, 103, 255, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  z-index: 500;
  box-shadow: 0 0 20px rgba(185, 103, 255, 0.2);
}

.hud-achievements {
  font-size: 0.8rem;
  color: var(--sun);
  cursor: pointer;
}

.hud-workers {
  font-size: 0.72rem;
  color: rgba(244, 238, 255, 0.7);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.hud-btn {
  background: rgba(185, 103, 255, 0.1);
  border: 1px solid rgba(185, 103, 255, 0.4);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.hud-btn:hover,
.hud-btn:focus {
  background: rgba(185, 103, 255, 0.25);
  box-shadow: 0 0 10px rgba(185, 103, 255, 0.4);
  outline: none;
}

/* Self-destruct duplicate removed; styled consistently via physical toggle */
@keyframes bot-poke {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3) rotate(5deg);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  #hud {
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
  }

  .hud-workers {
    display: none;
  }

  .hud-btn {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }
}


/* ── SECTIONS CSS ── */
/* ============================================================
   SECTIONS.CSS — DevOps Portfolio Sections Stylesheet
   Vaporwave Cyberpunk Aesthetic
   Author: Alex Chen / Sections Agent
============================================================ */

/* ── SHARED SECTION STYLES ── */
section[data-section] {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-container {
  width: 100%;
}

.sec-header {
  margin-bottom: 2.5rem;
  text-align: left;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: var(--glow-sm);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sec-subtitle {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--text) 65%, transparent);
  margin-top: 0.5rem;
}

/* ============================================================
   1. HERO SECTION
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem 1.5rem;
  position: relative;
}

.hero-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(36, 20, 71, 0.8);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--aqua);
  box-shadow: 0 0 12px rgba(1, 205, 254, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

.hero-clock {
  color: var(--sun);
  font-weight: 500;
}

.hero-title-wrap {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.hero-title-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 0 25px rgba(255, 113, 206, 0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title-wrap:active h1 {
  transform: scale(0.97);
}

.hero-title-hint {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: color-mix(in srgb, var(--text) 30%, transparent);
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  white-space: nowrap;
}

.hero-title-wrap:hover .hero-title-hint {
  opacity: 1;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: color-mix(in srgb, var(--text) 80%, transparent);
  max-width: 620px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Hero Bash Terminal */
.hero-terminal {
  width: 100%;
  max-width: 820px;
  background: rgba(18, 10, 36, 0.95);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--glow-sm);
  text-align: left;
  margin-top: 1.5rem;
}

.term-header {
  background: rgba(36, 20, 71, 0.9);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.term-dot.dot-red {
  background: #ff5f56;
}

.term-dot.dot-yellow {
  background: #ffbd2e;
}

.term-dot.dot-green {
  background: #27c93f;
}

.term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}

.term-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 16, 51, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  white-space: nowrap;
}

.term-chips-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--text) 45%, transparent);
  margin-right: 0.2rem;
}

.term-chip {
  background: rgba(1, 205, 254, 0.1);
  border: 1px solid rgba(1, 205, 254, 0.3);
  color: var(--aqua);
  border-radius: 14px;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-chip:hover {
  background: rgba(1, 205, 254, 0.25);
  border-color: var(--aqua);
  box-shadow: 0 0 8px rgba(1, 205, 254, 0.4);
  transform: translateY(-1px);
}

.term-chip.danger-chip {
  background: rgba(255, 113, 206, 0.1);
  border-color: rgba(255, 113, 206, 0.4);
  color: var(--pink);
}

.term-chip.danger-chip:hover {
  background: rgba(255, 113, 206, 0.3);
  border-color: var(--pink);
  box-shadow: 0 0 8px rgba(255, 113, 206, 0.5);
}

.term-body {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  cursor: text;
}

#terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.term-line {
  line-height: 1.45;
  word-break: break-word;
}

.term-line.cmd-echo {
  color: var(--sun);
}

.term-line.system-msg {
  color: color-mix(in srgb, var(--text) 70%, transparent);
}

.term-line.success-msg {
  color: var(--mint);
}

.term-line.error-msg {
  color: #ff5f56;
}

.term-line.accent-msg {
  color: var(--pink);
}

.term-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.78rem;
}

.term-table th {
  text-align: left;
  color: var(--aqua);
  padding: 3px 12px 3px 0;
  border-bottom: 1px dashed rgba(1, 205, 254, 0.3);
}

.term-table td {
  padding: 3px 12px 3px 0;
  color: var(--text);
}

.term-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.term-prompt {
  color: var(--mint);
  white-space: nowrap;
  font-weight: 600;
}

.prompt-user {
  color: var(--pink);
}

.prompt-host {
  color: var(--aqua);
}

.prompt-dir {
  color: var(--sun);
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  caret-color: var(--mint);
}

/* ============================================================
   2. EXPERIENCE SECTION
============================================================ */
.stat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.stat-tile {
  background: rgba(36, 20, 71, 0.6);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow-md);
}

.stat-tile-val {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  text-shadow: var(--glow-sm);
  display: block;
  line-height: 1.1;
}

.stat-tile-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  margin-top: 0.4rem;
  display: block;
}

/* Git Log Timeline */
.git-log-container {
  position: relative;
  padding-left: 2rem;
}

.git-log-track {
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--aqua) 50%, var(--mint) 100%);
  box-shadow: 0 0 8px var(--accent);
}

.git-commit-card {
  position: relative;
  margin-bottom: 2rem;
  background: rgba(36, 20, 71, 0.75);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.git-commit-card:hover {
  border-color: var(--aqua);
  box-shadow: 0 0 15px rgba(1, 205, 254, 0.2);
}

.git-commit-dot {
  position: absolute;
  top: 1.6rem;
  left: -2rem;
  margin-left: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--indigo);
  border: 3px solid var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: translateX(-50%);
  z-index: 2;
}

.git-commit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.git-meta-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.commit-hash {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 113, 206, 0.15);
  color: var(--pink);
  border: 1px solid rgba(255, 113, 206, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

.git-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.branch-tag {
  background: rgba(1, 205, 254, 0.15);
  color: var(--aqua);
  border: 1px solid rgba(1, 205, 254, 0.4);
}

.head-tag {
  background: rgba(5, 255, 161, 0.15);
  color: var(--mint);
  border: 1px solid rgba(5, 255, 161, 0.4);
}

.commit-dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--sun);
}

.commit-role-row {
  margin-bottom: 0.75rem;
}

.commit-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
}

.commit-company {
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.commit-tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-tag {
  background: rgba(185, 103, 255, 0.12);
  border: 1px solid rgba(185, 103, 255, 0.35);
  color: var(--lavender);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Expandable Git Diff */
.diff-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: color-mix(in srgb, var(--text) 85%, transparent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.diff-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--text);
}

.diff-box {
  margin-top: 0.75rem;
  background: rgba(18, 10, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: none;
}

.diff-box.diff-open {
  display: block;
  animation: slide-down 0.25s ease forwards;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diff-header-line {
  background: rgba(36, 20, 71, 0.8);
  padding: 0.4rem 0.8rem;
  color: color-mix(in srgb, var(--text) 50%, transparent);
  font-size: 0.72rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-chunk {
  padding: 0.4rem 0.8rem;
  color: var(--aqua);
  background: rgba(1, 205, 254, 0.06);
}

.diff-line-add {
  padding: 0.35rem 0.8rem;
  color: var(--mint);
  background: rgba(5, 255, 161, 0.08);
  border-left: 3px solid var(--mint);
  line-height: 1.4;
}

/* ============================================================
   3. PIPELINE SECTION
============================================================ */
.pipeline-card {
  background: rgba(36, 20, 71, 0.75);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Stage Track & Conveyor */
.pipeline-track-wrap {
  position: relative;
  margin: 3rem 0 2rem 0;
}

.pipeline-conveyor-belt {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 6px;
  background: repeating-linear-gradient(90deg,
      rgba(255, 113, 206, 0.4) 0px,
      rgba(255, 113, 206, 0.4) 10px,
      rgba(1, 205, 254, 0.4) 10px,
      rgba(1, 205, 254, 0.4) 20px);
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: 1;
  background-size: 40px 100%;
  animation: belt-roll 1.5s linear infinite paused;
}

.pipeline-conveyor-belt.running {
  animation-play-state: running;
}

@keyframes belt-roll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 40px 0;
  }
}

/* Moving Cargo Cube */
.conveyor-cube {
  position: absolute;
  top: 50%;
  left: 5%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px var(--accent));
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.conveyor-cube.cube-shake {
  animation: cube-wobble 0.3s ease infinite;
}

@keyframes cube-wobble {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  25% {
    transform: translate(-50%, -50%) rotate(-10deg) scale(1.1);
  }

  75% {
    transform: translate(-50%, -50%) rotate(10deg) scale(1.1);
  }
}

.pipeline-stages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.pipeline-stage {
  background: rgba(26, 16, 51, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.2rem 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pipeline-stage.stage-active {
  border-color: var(--aqua);
  box-shadow: 0 0 16px rgba(1, 205, 254, 0.4);
  transform: translateY(-4px);
}

.pipeline-stage.stage-passed {
  border-color: var(--mint);
  box-shadow: 0 0 12px rgba(5, 255, 161, 0.3);
}

.pipeline-stage.stage-failed {
  border-color: #ff5f56;
  box-shadow: 0 0 20px rgba(255, 95, 86, 0.6);
  animation: stage-error-shake 0.4s ease infinite;
}

@keyframes stage-error-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

.stage-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stage-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.stage-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 0.5rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: color-mix(in srgb, var(--text) 50%, transparent);
}

.pipeline-stage.stage-passed .stage-badge {
  background: rgba(5, 255, 161, 0.2);
  color: var(--mint);
}

.pipeline-stage.stage-failed .stage-badge {
  background: rgba(255, 95, 86, 0.2);
  color: #ff5f56;
}

.pipeline-stage.stage-active .stage-badge {
  background: rgba(1, 205, 254, 0.2);
  color: var(--aqua);
}

/* Pipeline Controls */
.pipeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.2rem;
  background: rgba(26, 16, 51, 0.6);
  border-radius: 10px;
  margin-top: 1.5rem;
}

.pipeline-control-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bad-release-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}

.bad-release-toggle input[type="checkbox"] {
  accent-color: #ff5f56;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.pipeline-progress-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1rem;
}

.pipeline-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--aqua), var(--mint));
  box-shadow: 0 0 10px var(--mint);
  transition: width 0.3s linear;
}

/* Live Logs Box */
.pipeline-logs {
  margin-top: 1.5rem;
  background: rgba(16, 8, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  height: 160px;
  overflow-y: auto;
  line-height: 1.45;
}

.log-entry {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.log-ts {
  color: color-mix(in srgb, var(--text) 40%, transparent);
  flex-shrink: 0;
}

.log-tag {
  color: var(--aqua);
  font-weight: 600;
  flex-shrink: 0;
}

.log-msg {
  color: var(--text);
  word-break: break-word;
}

.log-msg.error {
  color: #ff5f56;
  font-weight: bold;
}

.log-msg.success {
  color: var(--mint);
}

.log-msg.warn {
  color: var(--sun);
}

/* ============================================================
   4. CLUSTER SECTION
============================================================ */
.cluster-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cluster-stat-card {
  background: rgba(36, 20, 71, 0.65);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cluster-stat-icon {
  font-size: 1.8rem;
}

.cluster-stat-info .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--mint);
  display: block;
}

.cluster-stat-info .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: color-mix(in srgb, var(--text) 60%, transparent);
  text-transform: uppercase;
}

/* Cluster Traffic Lanes SVG */
.cluster-traffic-canvas {
  width: 100%;
  height: 50px;
  margin: 0.5rem 0 1.5rem 0;
  display: block;
}

/* Cluster Nodes Grid */
.cluster-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.node-card {
  background: rgba(36, 20, 71, 0.7);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(14px);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.node-card:hover {
  transform: translateY(-2px);
  border-color: var(--aqua);
}

.node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.node-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aqua);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.node-zone {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--text) 50%, transparent);
}

.node-gauges {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.gauge-item {
  flex: 1;
}

.gauge-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
}

.gauge-fill {
  height: 100%;
  background: var(--aqua);
  transition: width 0.5s ease;
}

/* Pods Grid inside Node */
.node-pods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.6rem;
  min-height: 120px;
}

.pod-card {
  background: rgba(18, 10, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
}

.pod-card:hover {
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.pod-card.pod-running {
  border-color: rgba(5, 255, 161, 0.4);
}

.pod-card.pod-running:hover {
  border-color: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.pod-card.pod-crashed {
  border-color: #ff5f56;
  background: rgba(255, 95, 86, 0.15);
  animation: pod-shake 0.3s ease infinite;
}

@keyframes pod-shake {

  0%,
  100% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }
}

.pod-card.pod-pending {
  border-color: var(--sun);
  background: rgba(255, 251, 150, 0.1);
}

.pod-card.pod-terminating {
  opacity: 0.4;
  transform: scale(0.9);
  pointer-events: none;
}

.pod-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.2rem;
}

.pod-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.pod-status-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  border-radius: 8px;
  padding: 1px 4px;
  display: inline-block;
  margin-top: 3px;
}

.pod-running .pod-status-pill {
  color: var(--mint);
}

.pod-crashed .pod-status-pill {
  color: #ff5f56;
}

.pod-pending .pod-status-pill {
  color: var(--sun);
}

.pod-terminating .pod-status-pill {
  color: color-mix(in srgb, var(--text) 40%, transparent);
}

/* Cluster Action Controls */
.cluster-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(36, 20, 71, 0.75);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(14px);
}

.cluster-btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* On-Call Mini-Game Modal */
.oncall-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 36, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
}

.oncall-modal.active {
  display: flex;
  animation: modal-fade-in 0.25s ease;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.oncall-box {
  background: rgba(36, 20, 71, 0.95);
  border: 2px solid #ff5f56;
  box-shadow: 0 0 40px rgba(255, 95, 86, 0.5);
  border-radius: 14px;
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  text-align: center;
  position: relative;
}

.oncall-timer-ring {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #ff5f56;
  text-shadow: 0 0 15px #ff5f56;
  margin-bottom: 1rem;
}

.oncall-alert-item {
  background: rgba(255, 95, 86, 0.15);
  border: 1px solid #ff5f56;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
}

/* ============================================================
   5. STACK SECTION
============================================================ */
.stack-filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-btn {
  background: rgba(36, 20, 71, 0.6);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--indigo);
  font-weight: 600;
  box-shadow: var(--glow-sm);
}

/* Periodic Table Grid */
.periodic-grid-wrap {
  position: relative;
  padding: 1.5rem 0;
}

.periodic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 0.85rem;
}

.element-tile {
  background: rgba(36, 20, 71, 0.7);
  border: 1px solid var(--cat-color, var(--accent));
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 110px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.element-tile:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 18px var(--cat-color, var(--accent));
  z-index: 5;
}

.element-tile.faded {
  opacity: 0.2;
  filter: grayscale(80%);
  pointer-events: none;
}

.elem-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}

.elem-symbol {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--cat-color, var(--text));
  text-shadow: 0 0 8px var(--cat-color, transparent);
  text-align: center;
  line-height: 1;
  margin: 0.2rem 0;
}

.elem-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.elem-cat-bar {
  height: 3px;
  width: 100%;
  background: var(--cat-color, var(--accent));
  border-radius: 2px;
  margin-top: 4px;
}

/* Skill Detail Panel */
.skill-detail-panel {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 36, 0.7);
  backdrop-filter: blur(14px);
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
}

.skill-detail-panel.open {
  display: flex;
}

.skill-detail-card {
  background: rgba(36, 20, 71, 0.95);
  border: 1px solid var(--cat-color, var(--accent));
  border-radius: 14px;
  padding: 2rem;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 0 35px var(--cat-color, var(--accent));
  position: relative;
  text-align: left;
}

.skill-detail-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.skill-detail-title-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.25rem;
}

.skill-big-symbol {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--cat-color, var(--accent));
  text-shadow: 0 0 15px var(--cat-color, var(--accent));
  border: 2px solid var(--cat-color, var(--accent));
  border-radius: 12px;
  padding: 0.5rem 1rem;
}

.skill-exp-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   6. CONTACT SECTION
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: rgba(36, 20, 71, 0.7);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: rgba(26, 16, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.social-link-item:hover {
  background: rgba(1, 205, 254, 0.15);
  border-color: var(--aqua);
  box-shadow: 0 0 12px rgba(1, 205, 254, 0.3);
  transform: translateX(4px);
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: var(--indigo);
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glow-sm);
  transition: all 0.2s;
}

.copy-email-btn:hover {
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

/* Terraform Apply Terminal */
.tf-terminal {
  background: rgba(16, 8, 30, 0.95);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.tf-header {
  background: rgba(36, 20, 71, 0.9);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-body {
  padding: 1.25rem;
  max-height: 380px;
  overflow-y: auto;
  line-height: 1.5;
}

.tf-add {
  color: var(--mint);
}

.tf-warn {
  color: var(--sun);
}

.tf-cyan {
  color: var(--aqua);
}

.tf-comment {
  color: color-mix(in srgb, var(--text) 50%, transparent);
}

.tf-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.tf-prompt-label {
  color: var(--sun);
  font-weight: 600;
  white-space: nowrap;
}

#tf-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  caret-color: var(--mint);
}

/* ============================================================
   7. FOOTER
============================================================ */
#footer {
  padding: 3.5rem 2rem 5rem 2rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: rgba(18, 10, 36, 0.8);
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.footer-metrics-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-metric-pill {
  background: rgba(36, 20, 71, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-metric-pill .highlight {
  color: var(--mint);
  font-weight: 600;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--text) 50%, transparent);
  line-height: 1.6;
}

/* ============================================================
   8. SELF-DESTRUCT & REBOOT
============================================================ */
/* Screen Shake */
body.screen-shake {
  animation: violent-shake 0.15s infinite;
}

@keyframes violent-shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  20% {
    transform: translate(-6px, 4px) rotate(-1deg);
  }

  40% {
    transform: translate(6px, -4px) rotate(1deg);
  }

  60% {
    transform: translate(-4px, -6px) rotate(0deg);
  }

  80% {
    transform: translate(4px, 6px) rotate(1deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Red Alarm Overlay */
.siren-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(255, 0, 50, 0.45) 100%);
  pointer-events: none;
  z-index: 2800;
  animation: siren-strobe 0.5s infinite alternate;
}

@keyframes siren-strobe {
  from {
    opacity: 0.2;
  }

  to {
    opacity: 1;
  }
}

/* Cracked Sections Fall */
.cracked {
  transition: transform 1.2s cubic-bezier(0.5, 0, 0.75, 0), opacity 1.2s ease !important;
}

#hero.cracked {
  transform: translateY(80px) rotate(4deg) skewX(3deg);
  opacity: 0.7;
}

#experience.cracked {
  transform: translateY(120px) rotate(-5deg) skewX(-4deg);
  opacity: 0.6;
}

#pipeline.cracked {
  transform: translateY(150px) rotate(7deg) skewX(5deg);
  opacity: 0.5;
}

#cluster.cracked {
  transform: translateY(180px) rotate(-6deg) skewX(-3deg);
  opacity: 0.4;
}

#stack.cracked {
  transform: translateY(220px) rotate(5deg) skewX(4deg);
  opacity: 0.3;
}

#contact.cracked {
  transform: translateY(260px) rotate(-4deg);
  opacity: 0.2;
}

.flash-screen {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 2900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.flash-screen.active {
  opacity: 1;
}

/* Retro Matrix Overlay */
#matrix-overlay {
  position: fixed;
  inset: 0;
  z-index: 1800;
  pointer-events: none;
  display: none;
}



/* ============================================================
   SPECIAL BOT PLACEMENTS & ANIMATIONS
============================================================ */

/* 1. Title Dot & Cable Bot */
.hero-title-dot {
  color: var(--pink);
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-shadow: 0 0 10px var(--pink);
}

#cable-bot-anchor {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 120px;
  pointer-events: none;
  z-index: 50;
}

#cable-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cable-wire {
  stroke: var(--aqua);
  stroke-width: 2;
  stroke-dasharray: 4 2;
  filter: drop-shadow(0 0 4px var(--aqua));
}

.cable-bot-body {
  cursor: grab;
  pointer-events: auto;
  transform-origin: 30px 10px;
  transition: transform 0.05s linear;
}

.cable-bot-body:active {
  cursor: grabbing;
}

/* 2. Painter Bot Track under Section Headers */
.painter-track-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 36px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  overflow: visible;
  pointer-events: none;
}

.painter-line {
  position: absolute;
  bottom: 8px;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--aqua), var(--mint));
  box-shadow: 0 0 10px var(--accent);
  border-radius: 2px;
  transition: width 2.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.painter-bot {
  position: absolute;
  bottom: 0px;
  left: 0%;
  transform: translateX(-50%);
  width: 38px;
  height: 44px;
  opacity: 0;
  transition: left 2.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  z-index: 15;
}

.painter-bot.active {
  opacity: 1;
}

/* 3. Parachute Pastel Canopy */
.bot-parachute {
  position: absolute;
  bottom: calc(100% - 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 64px;
  pointer-events: none;
  transform-origin: bottom center;
  animation: canopy-sway 2.4s ease-in-out infinite alternate;
  z-index: 25;
}

@keyframes canopy-sway {
  0% {
    transform: translateX(-50%) rotate(-7deg);
  }

  100% {
    transform: translateX(-50%) rotate(7deg);
  }
}

.bot-parachute.chute-detach {
  animation: none;
  transform: translateX(-50%) translateY(-45px) scale(0.6) rotate(16deg);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.65s ease;
}

.chute-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
}

/* Cardboard Box for Restructured Bot */
.cardboard-box {
  fill: #C19A6B;
  stroke: #8B5A2B;
  stroke-width: 1;
}



/* ============================================================
   LIVING, ROAMING & SWINGING BOTS STYLES
============================================================ */
#bot-layer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  min-height: 100% !important;
  pointer-events: none !important;
  z-index: 999 !important;
  overflow: visible !important;
}

.bot-wrapper {
  position: absolute;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  z-index: 1000;
  transition: filter 0.2s ease;
}

.bot-wrapper:hover {
  filter: drop-shadow(0 0 12px var(--aqua)) brightness(1.2);
}

.bot-wrapper:active,
.bot-wrapper.bot-held {
  cursor: grabbing;
  z-index: 1090;
}

.bot-wrapper.bot-held {
  transition: none;
}

.bot-wrapper.bot-held .bot-sprite {
  animation: none !important;
}

.bot-sprite {
  position: relative;
  width: 46px;
  height: 58px;
  transform-origin: center center;
  will-change: transform;
}

.bot-sprite.bot-poked {
  animation: bot-poke 0.25s ease;
}

.bot-svg {
  display: block;
  overflow: visible;
  transition: filter 0.2s ease;
}

.bot-wrapper.bot-wary .bot-svg {
  filter: drop-shadow(0 0 7px rgba(255, 180, 0, 0.7));
}

.bot-wrapper.bot-peek .bot-svg {
  filter: drop-shadow(0 0 5px rgba(1, 205, 254, 0.45));
}

.bot-wrapper.bot-newly-hired .bot-sprite {
  animation: bot-hire-flash 0.55s ease-in-out infinite alternate;
}

@keyframes bot-hire-flash {
  0% {
    filter: drop-shadow(0 0 6px #FFFFFF) drop-shadow(0 0 12px var(--bot-color, #01CDFE)) brightness(1);
    transform: scale(1);
  }

  100% {
    filter: drop-shadow(0 0 16px #FFFFFF) drop-shadow(0 0 26px var(--bot-color, #FF71CE)) brightness(1.45);
  }
}

.hud-btn.hud-btn--active {
  background: rgba(255, 179, 0, 0.25);
  border-color: var(--sun);
  color: var(--sun);
  box-shadow: 0 0 12px rgba(255, 251, 150, 0.4);
}

.bot-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--bot-color, var(--sun));
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.85);
  margin-top: 2px;
  pointer-events: none;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

.bot-task {
  display: block;
  font-size: 0.48rem;
  font-weight: 500;
  color: rgba(244, 238, 255, 0.78);
  letter-spacing: 0.02em;
}

.bot-zs-html {
  position: absolute;
  top: -6px;
  right: -2px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bot-color, var(--aqua));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.bot-zs-html.visible {
  opacity: 1;
  animation: float 1.8s ease-in-out infinite;
}

.bot-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: var(--card);
  border: 1.5px solid var(--ac);
  border-radius: var(--r);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  font-family: var(--font-body);
  color: var(--fg);
  box-shadow: 2px 2px 0 var(--edge);
  width: max-content;
  max-width: 245px;
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, bottom 0.25s ease;
  z-index: 1050;
}

/* Keep speech bubble cleanly ABOVE parachute canopy so canopy is never covered */
.bot-wrapper.bot-has-chute .bot-bubble {
  bottom: calc(100% + 66px);
}

.bot-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--ac);
}

.bot-bubble--good {
  border-color: var(--mint);
}

.bot-bubble--good::after {
  border-top-color: var(--mint);
}

.bot-bubble--bad {
  border-color: var(--pink);
}

.bot-bubble--bad::after {
  border-top-color: var(--pink);
}

.nudge-badge {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.nudge-badge--good {
  color: var(--mint);
}

.nudge-badge--bad {
  color: var(--pink);
}

.nudge-match {
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

.nudge-match--good {
  background: rgba(124, 224, 163, 0.22);
  color: var(--mint);
}

.nudge-match--bad {
  background: rgba(255, 107, 74, 0.24);
  color: var(--ac2);
}

/* Synchronized highlight on matching CV entry */
.cv-nudge-active {
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-radius: 4px;
}

.cv-nudge-active.cv-nudge--good {
  background: rgba(124, 224, 163, 0.14) !important;
  box-shadow: inset 3px 0 0 var(--mint), 0 0 0 1px rgba(124, 224, 163, 0.45);
  border-color: var(--mint) !important;
}

.cv-nudge-active.cv-nudge--bad {
  background: rgba(255, 107, 74, 0.14) !important;
  box-shadow: inset 3px 0 0 var(--pink), 0 0 0 1px rgba(255, 107, 74, 0.45);
  border-color: var(--pink) !important;
}

.bot-bubble--visible {
  opacity: 1 !important;
  transform: translateX(-50%) scale(1) !important;
}

/* Floating particles emitted by bots */
.bot-particle {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 1010;
  animation: bot-particle-fly 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes bot-particle-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--p-dx, 0px), var(--p-dy, -35px)) scale(1.3);
  }
}

/* Jetpack thruster flame */
.jetpack-flame {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 14px;
  background: radial-gradient(ellipse at top, #FFFB96 0%, #FF71CE 60%, transparent 100%);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px #01CDFE);
  animation: flame-flicker 0.1s infinite alternate;
  pointer-events: none;
}

@keyframes flame-flicker {
  0% {
    transform: translateX(-50%) scale(0.9, 0.8);
    opacity: 0.8;
  }

  100% {
    transform: translateX(-50%) scale(1.1, 1.3);
    opacity: 1;
  }
}

/* Grappling neon rope */
.grapple-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 998;
  overflow: visible;
}

.grapple-rope {
  stroke: var(--pink);
  stroke-width: 2;
  stroke-dasharray: 4 2;
  filter: drop-shadow(0 0 6px var(--pink));
}

/* Dust puff on landing */
.dust-puff {
  position: absolute;
  width: 24px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(1, 205, 254, 0.6) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 998;
  animation: dust-fade 0.4s ease-out forwards;
}

@keyframes dust-fade {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}


/* ============================================================
   STREAMLINED UX OVERRIDES — HUSSEIN ABDELRAHMAN PORTFOLIO
   ============================================================ */
.section-container {
  max-width: 1080px;
  margin: 0 auto;
}

/* ~70% Zoom-Out Clarity Scale (preserves exact physics & pointer coordinates) */
html {
  font-size: 12.5px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

.section-container {
  max-width: 1180px;
  margin: 0 auto;
}

#experience,
#pipeline,
#cluster,
#stack,
#devops-sim,
#contact {
  padding: 2.5rem 1.25rem;
}

#contact {
  padding-bottom: 5rem;
}

.sec-header {
  padding-top: 4.8rem;
  margin-bottom: 1.35rem;
}

.sec-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: none;
  display: inline-block;
  margin-bottom: 0;
}

.sec-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
  display: inline-block;
  padding-top: 2px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
}

.sec-subtitle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  max-width: 660px;
  line-height: 1.5;
}

/* Streamlined Compact Hero */
#hero {
  min-height: auto;
  padding: 5.75rem 1.25rem 2.25rem;
}

#hero .hero-wrapper {
  max-width: 820px;
  gap: 0.9rem;
}

#hero .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

.hero-display-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--fg);
  text-shadow: var(--glow);
  margin: 0;
  cursor: pointer;
}

.hero-summary-prose {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--mut);
  max-width: 660px;
  margin: 0 auto;
}

/* Hard-Shadow Portal Buttons matching lolifox.app */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--edge);
  background: var(--card);
  color: var(--fg);
  box-shadow: 2px 2px 0 var(--edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--edge);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--edge);
}

.btn-primary {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--onac);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--ac) 55%, #000);
}

.btn-primary:hover {
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--ac) 55%, #000);
}

.btn-primary:active {
  box-shadow: 0 0 0 var(--ac);
}

.btn-ghost {
  background: var(--card);
  color: var(--fg);
  border-color: var(--edge);
}

.btn-subtle {
  background: transparent;
  color: var(--mut);
  border: 1px solid var(--edge);
  box-shadow: 2px 2px 0 var(--line);
}

.btn-subtle:hover {
  color: var(--fg);
  border-color: var(--ac);
  box-shadow: 3px 3px 0 var(--ac);
}

/* Single Hairline-Divided 4-Metric Impact Bar */
.hero-metrics-strip {
  width: 100%;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--edge);
  overflow: hidden;
}

.hero-metric-item {
  padding: 1.05rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.hero-metric-item:last-child {
  border-right: none;
}

.hero-metric-val {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--ac);
  line-height: 1.1;
}

.hero-metric-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: var(--mut);
  line-height: 1.35;
}

@media (max-width: 760px) {
  .hero-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metric-item:nth-child(2n) {
    border-right: none;
  }

  .hero-metric-item {
    border-bottom: 1px solid var(--line);
  }

  .hero-metric-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* Ruled Terminal Box */
.hero-terminal.is-collapsed {
  display: none;
}

.hero-terminal {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--edge);
}

.term-header {
  background: var(--hd);
  border-bottom: 2px solid var(--ac);
}

.term-chips {
  background: rgba(16, 10, 7, 0.55);
  border-bottom: 1px solid var(--line);
}

.term-chip {
  background: var(--card);
  border: 1px solid var(--edge);
  color: var(--em);
  border-radius: var(--r);
}

.term-chip:hover {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--onac);
  box-shadow: none;
}

.term-close-btn {
  background: transparent;
  border: none;
  color: var(--mut);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.term-close-btn:hover {
  color: var(--fg);
}

/* Quiet Tags & Status Pill */
.quiet-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quiet-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mut);
  background: rgba(16, 10, 7, 0.55);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
}

.quiet-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--onac);
  background: var(--ac2);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

/* Clean Experience Cards (Side-by-Side 3-Col Overview on Desktop) */
.exp-cards-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

@media (max-width: 980px) {
  .exp-cards-list {
    grid-template-columns: 1fr;
  }
}

.exp-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--edge);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exp-card .quiet-tags-row {
  margin-top: auto;
}

.exp-card:hover {
  border-color: var(--ac);
  box-shadow: 5px 5px 0 var(--ac);
}

.exp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.exp-role {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.exp-company {
  color: var(--ac);
}

.exp-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--em);
}

.exp-subtitle {
  font-size: 0.92rem;
  color: var(--mut);
  margin: 0 0 0.75rem;
}

.exp-bullets {
  margin: 0 0 0.95rem;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-bullets li {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--fg);
}

.exp-metric-lead {
  color: var(--em);
  font-weight: 700;
}

/* Balanced 2-Column Projects Grid */
.projects-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.25rem;
}

@media (max-width: 500px) {
  .projects-grid-2col {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--edge);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  border-color: var(--ac);
  box-shadow: 5px 5px 0 var(--ac);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--ac);
}

.project-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.project-demo-bar {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gate-steps-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.gate-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 10, 7, 0.55);
  border: 1px solid var(--line);
  color: var(--mut);
  transition: all 0.2s ease;
}

.gate-step.active {
  border-color: var(--ac);
  color: var(--onac);
  background: var(--ac);
}

.gate-step.passed {
  border-color: rgba(124, 224, 163, 0.5);
  color: var(--mint);
  background: rgba(124, 224, 163, 0.12);
}

.gate-step.failed {
  border-color: #ff6b4a;
  color: #ff6b4a;
  background: rgba(255, 107, 74, 0.14);
}

.project-demo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-mini-action {
  background: var(--card);
  border: 1px solid var(--edge);
  color: var(--fg);
  border-radius: var(--r);
  padding: 0.34rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.15s ease;
}

.btn-mini-action:hover {
  transform: translate(-1px, -1px);
  border-color: var(--ac);
  box-shadow: 3px 3px 0 var(--ac);
}

.btn-mini-action:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--edge);
}

.project-demo-status {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--mut);
}

.load-pods-visual {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.load-pod-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 129, 38, 0.12);
  border: 1px solid rgba(255, 129, 38, 0.4);
  color: var(--em);
}

/* Education & Training 2-Column Split */
.edu-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.edu-col-heading {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--em);
  margin: 0 0 0.85rem;
}

.edu-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--edge);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.edu-card:hover {
  border-color: var(--ac);
  box-shadow: 5px 5px 0 var(--ac);
}

.edu-card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--fg);
  margin: 0 0 0.25rem;
}

.edu-card-sub {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--em);
}

/* Clean 2x2 Skills Matrix */
.skills-matrix-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 760px) {
  .skills-matrix-2x2 {
    grid-template-columns: 1fr;
  }
}

.skill-group-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--edge);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.skill-group-card:hover {
  border-color: var(--ac);
  box-shadow: 5px 5px 0 var(--ac);
}

.skill-group-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--cat-color, var(--ac));
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--line);
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-pill {
  background: rgba(16, 10, 7, 0.65);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 5px;
  padding: 0.34rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.skill-pill:hover,
.skill-pill.active {
  background: var(--ac);
  border-color: var(--ac);
  color: var(--onac);
}

.skill-provenance-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mut);
  padding: 0.65rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
}

/* Streamlined Contact Secrets Vault (Ruled Box Portal Style) */
.vault-shell {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--edge);
  padding: 1.35rem 1.5rem;
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.95rem;
  margin-bottom: 0.95rem;
  border-bottom: 2px solid var(--ac);
}

.vault-status-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--em);
  font-weight: 700;
}

.vault-rows-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vault-row {
  display: grid;
  grid-template-columns: 125px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.95rem;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.vault-row:hover {
  border-color: var(--ac);
  background: var(--hd);
}

.vault-row.unsealed {
  border-color: var(--mint);
  cursor: default;
}

@media (max-width: 640px) {
  .vault-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

.vault-row-label {
  display: flex;
  flex-direction: column;
}

.vault-row-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg);
}

.vault-row-env {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--mut);
}

.vault-row-mask {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--em);
  letter-spacing: 0.04em;
}

.vault-row-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--fg);
  word-break: break-all;
}

.vault-row-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vault-unlocked-actions {
  display: flex;
  gap: 0.4rem;
}

.vault-btn-mini {
  background: var(--card);
  border: 1px solid var(--edge);
  color: var(--fg);
  border-radius: 4px;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.15s ease;
}

.vault-btn-mini:hover {
  transform: translate(-1px, -1px);
  border-color: var(--ac);
  box-shadow: 2px 2px 0 var(--ac);
}

.vault-btn-seal {
  border-color: rgba(255, 107, 74, 0.45);
  color: var(--ac2);
}

.vault-btn-seal:hover {
  border-color: var(--pink);
  color: var(--pink);
}

#btn-unseal-all.is-reseal {
  background: var(--card);
  color: var(--fg);
  border-color: var(--edge);
  box-shadow: 2px 2px 0 var(--edge);
}

.vault-audit-log {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--mut);
}

/* Clean Lolifox Frosted Controls inside #self-destruct-wrapper */
#hud {
  position: static !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 1;
}

#hud .hud-readout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
}

#hud .hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(124, 224, 163, 0.75);
}

#hud .hud-text {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--mut);
  padding: 0;
  white-space: nowrap;
}

#hud .hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  height: 34px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(246, 234, 220, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.08s ease, color 0.16s ease;
}

#hud .hud-btn-hire {
  border-color: rgba(255, 191, 133, 0.34);
  color: var(--ac2);
  background: rgba(255, 129, 38, 0.08);
}

#hud .hud-btn-hire:hover {
  background: rgba(255, 129, 38, 0.2);
  border-color: var(--ac);
  color: var(--fg);
}

#hud .hud-btn-icon {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ac);
}

#hud .hud-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(246, 234, 220, 0.28);
}

#hud .hud-btn:active {
  transform: scale(0.97);
}

/* True Pill Toggle Switch for Standby */
#hud .hud-toggle {
  padding: 0 12px 0 8px;
}

#hud .toggle-track {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(246, 234, 220, 0.12);
  border: 1px solid rgba(246, 234, 220, 0.18);
  transition: background 0.22s ease, border-color 0.22s ease;
  flex-shrink: 0;
}

#hud .toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mut);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.22s ease;
}

#hud .hud-btn--active.hud-toggle {
  background: rgba(255, 129, 38, 0.16) !important;
  border-color: var(--ac) !important;
  color: var(--ac2) !important;
}

#hud .hud-btn--active .toggle-track {
  background: var(--ac);
  border-color: var(--ac2);
}

#hud .hud-btn--active .toggle-thumb {
  transform: translateX(13px);
  background: #100a07;
}

/* Full-Page Purge Destruction & Shatter Sequence */
body.sd-destroying {
  overflow: hidden;
  background: #24070a !important;
}

body.sd-destroying::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 30, 45, 0.25), rgba(200, 0, 20, 0.65));
  z-index: 2500;
  pointer-events: none;
  animation: sd-alarm-flash 0.22s infinite alternate;
}

@keyframes sd-alarm-flash {
  0% {
    opacity: 0.25;
  }

  100% {
    opacity: 0.85;
  }
}

.sd-shatter {
  transform: translate(var(--sx, 0px), var(--sy, 220px)) rotate(var(--sr, 18deg)) scale(0.86) !important;
  opacity: 0 !important;
  filter: hue-rotate(-30deg) blur(1.5px) !important;
  transition: transform 1.15s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 1.05s ease, filter 0.9s ease !important;
}

body.sd-wrecked main,
body.sd-wrecked .site-header,
body.sd-wrecked #footer,
body.sd-wrecked #dot-nav,
body.sd-wrecked #self-destruct-wrapper {
  opacity: 0;
  pointer-events: none;
}

/* Interactive DevOps K8s Auto-Healing Simulator Section */
.devops-sim-shell {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--edge);
  padding: 1.25rem;
}

.devops-sim-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--edge);
}

.devops-sim-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
}

.devops-sim-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.devops-pods-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.devops-pod {
  background: #1a1918;
  border: 1.5px solid rgba(124, 224, 163, 0.35);
  border-radius: var(--r);
  padding: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  color: var(--fg);
  font-family: var(--font-mono);
}

.devops-pod:hover {
  transform: translateY(-2px);
  border-color: #ff6b6b;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.18);
}

.devops-pod.is-crashed {
  border-color: #ff3b4a;
  background: rgba(140, 16, 28, 0.22);
  animation: bot-scared-tremble 0.16s infinite alternate;
}

.devops-pod.is-respawning {
  border-color: #ffd166;
  background: rgba(160, 110, 18, 0.18);
}

.devops-pod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.devops-pod-state {
  font-size: 0.68rem;
  color: #7ce0a3;
}

.devops-pod.is-crashed .devops-pod-state {
  color: #ff6b78;
}

.devops-pod.is-respawning .devops-pod-state {
  color: #ffd166;
}

.devops-pod-meta {
  font-size: 0.68rem;
  color: var(--mut);
  margin-top: 0.25rem;
}

.devops-sim-log {
  margin-top: 0.9rem;
  padding: 0.55rem 0.75rem;
  background: #111;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--mut);
}

@media (max-width: 820px) {
  .devops-pods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #hud .hud-readout {
    display: none;
  }

  #hud .hud-btn.hud-switch {
    padding: 5px 8px;
    font-size: 0.62rem;
  }
}

@media (max-width: 600px) {
  #self-destruct-wrapper.sd-unit {
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 1rem);
  }

  .sd-chassis {
    padding: 5px 8px 5px 10px;
  }

  .sd-console-row {
    gap: 7px;
  }

  .sd-status-pill,
  .sd-divider {
    display: none;
  }

  .devops-pods-grid {
    grid-template-columns: 1fr;
  }
}

.toast,
.palette-box,
.achievements-modal-content,
.achievement-card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--edge);
}

#cmd-palette {
  background: rgba(16, 10, 7, 0.85);
}

#footer {
  border-top: 2px solid var(--fg);
  background: var(--page-bg);
  color: var(--mut);
}

.footer-minimal {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-tour-btn {
  background: var(--card);
  border: 1px solid var(--edge);
  color: var(--fg);
  border-radius: var(--r);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--edge);
}

.footer-tour-btn:hover {
  border-color: var(--ac);
  color: var(--em);
}