:root {
  --bg-dark: #0a0a0a;
  --accent: #ffffff;
  --accent-dim: #aaaaaa;
  --text-primary: #e8e8e8;
  --text-muted: #7a7a7a;
  --card-bg: rgba(16, 16, 16, 0.76);
  --card-border: rgba(255, 255, 255, 0.12);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Share Tech Mono', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  overflow-x: hidden;
}

@media (pointer: fine) {
  body, a, button, input {
    cursor: none !important;
  }
}

/* ---------- HUD FRAME OVERLAY ---------- */
.hud-frame {
  position: fixed;
  inset: 16px;
  pointer-events: none;
  z-index: 40;
}

.hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 255, 255, 0.28);
  border-style: solid;
  animation: hud-breathe 4s ease-in-out infinite alternate;
}

.hud-corner.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-corner.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hud-corner.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hud-corner.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hud-status {
  position: absolute;
  top: 4px;
  right: 28px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.2em;
}

/* ---------- BACKGROUND & OVERLAYS ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  object-fit: cover;
  filter: brightness(25%) saturate(0.55);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-pan 18s linear infinite;
}

#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ---------- CUSTOM HUD CURSOR ---------- */
.hud-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}

.hud-cursor-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #ffffff;
}

.hud-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease;
  animation: spin-ring 8s linear infinite;
}

.hud-cursor.hovering .hud-cursor-ring {
  width: 50px;
  height: 50px;
  border: 1.5px solid #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@media (pointer: coarse) {
  .hud-cursor { display: none; }
}

/* ---------- SPLASH SCREEN ---------- */
#splash-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s ease,
              visibility 0.65s;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.12);
  filter: blur(12px);
  pointer-events: none;
}

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

.splash-glitch {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
  position: relative;
  letter-spacing: 0.12em;
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

.splash-glitch::before,
.splash-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
}

.splash-glitch::before {
  color: #aaa;
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.splash-glitch::after {
  color: #ccc;
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

#enter-button {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 14px 38px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 28px;
  transition: all 0.3s ease;
  animation: pulse-neon 2s infinite;
}

#enter-button:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
  transform: scale(1.04);
}

.btn-bracket { color: #888; font-weight: bold; }

.splash-sub {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  animation: blink-text 1.6s infinite;
}

/* ---------- VOLUME CONTROL ---------- */
#volume-control {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#volume-control i {
  color: #fff;
  font-size: 14px;
  width: 18px;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  margin-left: 6px;
}

.eq-bars span {
  width: 2px;
  height: 3px;
  background: #fff;
  border-radius: 1px;
}

.eq-bars.playing span:nth-child(1) { animation: eq-bounce 0.6s infinite ease-in-out; }
.eq-bars.playing span:nth-child(2) { animation: eq-bounce 0.45s infinite ease-in-out 0.15s; }
.eq-bars.playing span:nth-child(3) { animation: eq-bounce 0.7s infinite ease-in-out 0.3s; }
.eq-bars.playing span:nth-child(4) { animation: eq-bounce 0.5s infinite ease-in-out 0.1s; }

#volume-slider {
  width: 0;
  opacity: 0;
  margin-left: 0;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 4px;
}

#volume-control:hover #volume-slider {
  width: 75px;
  opacity: 1;
  margin-left: 10px;
}

#volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #666, #fff);
  border-radius: 2px;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -5px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* ---------- MAIN CONTAINER ---------- */
.container {
  max-width: 720px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 42px;
  z-index: 10;
  margin: 0 auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* ---------- PROFIL & TECH STACK ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img-wrapper {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 18px;
}

.profile-img-wrapper img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-img-wrapper:hover img {
  transform: scale(1.06);
}

.profile-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.75);
  border-right-color: rgba(255, 255, 255, 0.25);
  animation: spin-ring 5s linear infinite;
  z-index: 1;
}

.profile-ring-outer {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  animation: spin-ring-reverse 12s linear infinite;
  z-index: 1;
}

.role-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.glitch {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  position: relative;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  color: #aaa;
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  opacity: 0.8;
}

.glitch::after {
  color: #ccc;
  animation: glitch-2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  opacity: 0.8;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 6px;
  letter-spacing: 0.05em;
  min-height: 1.4em;
}

.tagline-prefix { color: #fff; font-weight: bold; }

.cursor {
  display: inline-block;
  background-color: #fff;
  width: 7px;
  height: 1em;
  animation: blink 1s step-end infinite;
  margin-left: 3px;
  vertical-align: middle;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.tech-stack span {
  font-size: 0.7rem;
  color: #bbb;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}
.cyber-specs {
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.74rem;
}

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

.spec-key {
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.spec-val {
  color: var(--text-muted);
}

/* ---------- EXPANDING ICON DOCK (SOCIAL LINKS) ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.link-card {
  display: inline-flex;
  align-items: center;
  height: 52px;
  max-width: 52px;
  padding: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s ease;
}

.link-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.link-card:hover {
  max-width: 250px;
  padding-right: 16px;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.08);
}

.link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
}

.link-card:hover::before { left: 120%; }

.card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ccc;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.link-card:hover .card-icon {
  transform: scale(1.12) rotate(-6deg);
}

.card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  opacity: 0;
  transform: translateX(-12px);
  margin-left: 2px;
  margin-right: 12px;
  pointer-events: none;
  transition: opacity 0.3s ease 0.05s,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.link-card:hover .card-info {
  opacity: 1;
  transform: translateX(0);
}

.card-info strong {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.card-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.card-arrow {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease 0.1s,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              color 0.3s ease;
}

.link-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
}

/* Platform Colors on Hover */
.link-card[data-platform="instagram"]:hover { border-color: rgba(228, 64, 95, 0.55); box-shadow: 0 8px 22px rgba(228, 64, 95, 0.18); }
.link-card[data-platform="instagram"]:hover .fa-instagram { color: #E4405F; text-shadow: 0 0 12px rgba(228, 64, 95, 0.6); }

.link-card[data-platform="facebook"]:hover { border-color: rgba(24, 119, 242, 0.55); box-shadow: 0 8px 22px rgba(24, 119, 242, 0.18); }
.link-card[data-platform="facebook"]:hover .fa-facebook-f { color: #1877F2; text-shadow: 0 0 12px rgba(24, 119, 242, 0.6); }

.link-card[data-platform="discord"]:hover { border-color: rgba(88, 101, 242, 0.55); box-shadow: 0 8px 22px rgba(88, 101, 242, 0.18); }
.link-card[data-platform="discord"]:hover .fa-discord { color: #5865F2; text-shadow: 0 0 12px rgba(88, 101, 242, 0.6); }

.link-card[data-platform="github"]:hover { border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 8px 22px rgba(255, 255, 255, 0.15); }
.link-card[data-platform="github"]:hover .fa-github { color: #ffffff; text-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }

.link-card[data-platform="store"]:hover { border-color: rgba(255, 184, 0, 0.55); box-shadow: 0 8px 22px rgba(255, 184, 0, 0.18); }
.link-card[data-platform="store"]:hover .fa-store { color: #FFB800; text-shadow: 0 0 12px rgba(255, 184, 0, 0.6); }

.link-card[data-platform="youtube"]:hover { border-color: rgba(255, 0, 0, 0.55); box-shadow: 0 8px 22px rgba(255, 0, 0, 0.18); }
.link-card[data-platform="youtube"]:hover .fa-youtube { color: #FF0000; text-shadow: 0 0 12px rgba(255, 0, 0, 0.6); }

.link-card[data-platform="spotify"]:hover { border-color: rgba(29, 185, 84, 0.55); box-shadow: 0 8px 22px rgba(29, 185, 84, 0.18); }
.link-card[data-platform="spotify"]:hover .fa-spotify { color: #1DB954; text-shadow: 0 0 12px rgba(29, 185, 84, 0.6); }

/* ---------- CAREER TIMELINE SECTION ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 22px;
  border-left: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: left;
}

.timeline-item {
  position: relative;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(4px);
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.timeline-year {
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.12em;
}

.timeline-badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  letter-spacing: 0.08em;
}

.timeline-badge.active {
  background: rgba(255, 255, 255, 0.9);
  color: #0a0a0a;
  font-weight: bold;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.timeline-desc strong {
  color: #ddd;
}

/* ---------- PORTFOLIO / ARSENAL GRID ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.work-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.work-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.68rem;
}

.work-id {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.work-tag {
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

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

.work-desc strong {
  color: #ddd;
}

/* Tech Badges on Cards */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.tech-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: #a0a0a0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.work-card:hover .tech-tag {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- STATS COUNTER BAR ---------- */
.stats-section {
  width: 100%;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.stat-label {
  font-size: 0.68rem;
  font-weight: bold;
  color: #ddd;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ---------- INTERACTIVE CYBERDECK TERMINAL ---------- */
.terminal-section {
  width: 100%;
  margin-bottom: 36px;
}

.cyber-terminal {
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  font-family: var(--font-body);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.term-title {
  font-size: 0.7rem;
  color: #888;
  letter-spacing: 0.08em;
}

.terminal-body {
  padding: 14px 16px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #ccc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.terminal-body::-webkit-scrollbar {
  width: 4px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

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

.term-line.cmd-echo {
  color: #fff;
  font-weight: bold;
}

.term-line.output {
  color: #bbb;
}

.term-highlight {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
}

.term-key {
  color: #ffffff;
  font-weight: bold;
}

.term-val {
  color: #888;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.term-prompt {
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  margin-right: 8px;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

#terminal-input::placeholder {
  color: #555;
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.footer p {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.cyber-specs {
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.74rem;
}

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

.spec-key {
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.spec-val {
  color: var(--text-muted);
}

/* ---------- KEYFRAMES ---------- */
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes hud-breathe {
  0% { opacity: 0.25; }
  100% { opacity: 0.75; }
}

@keyframes grid-pan {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes blink-text {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes pulse-neon {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 18px rgba(255, 255, 255, 0.45); }
}

@keyframes glitch-skew {
  0%, 100% { transform: skew(0deg); }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-2px, 2px); }
  50% { transform: translate(-2px, -2px); }
  75% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(2px, 2px); }
  75% { transform: translate(-2px, -2px); }
}

@keyframes eq-bounce {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}

