/* =========================================================
   آرمان محسنی‌زاده — Resume Site
   Design concept: "Build Console" — a developer's IDE/terminal world
   ========================================================= */

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

:root {
  /* Color tokens */
  --bg: #0a0d12;
  --bg-2: #0d1117;
  --panel: #12161d;
  --panel-2: #161b23;
  --line: #232a35;
  --line-soft: #1a2029;
  --ink: #e8ecf1;
  --ink-dim: #8992a3;
  --ink-faint: #545e6e;
  --signal: #7ef9b0;      /* signature: compile-success mint */
  --signal-soft: rgba(126, 249, 176, 0.12);
  --signal-2: #ffb454;    /* secondary: warm amber, used sparingly */
  --danger: #ff6b6b;

  /* Type */
  --font-display: "Vazirmatn", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--signal); color: #06120c; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: fixed;
  right: -999px;
  top: 0;
  background: var(--signal);
  color: #06120c;
  padding: 0.8rem 1.4rem;
  z-index: 3000;
  border-radius: 0 0 0 10px;
  font-weight: 700;
}
.skip-link:focus { right: 0; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Ambient backdrop ===== */
.grid-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.glow {
  position: fixed;
  z-index: -2;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
}
.glow-a { top: -10%; right: -10%; background: var(--signal); }
.glow-b { bottom: 10%; left: -15%; background: #5b8cff; opacity: 0.10; }

/* ===== Scroll progress ===== */
.progress-rail {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 2000;
  background: transparent;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--signal), #4fd88a);
  box-shadow: 0 0 12px var(--signal);
  transition: width 0.1s var(--ease-soft);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 13, 18, 0.92);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
}

.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.05rem; }
.brand-mark { color: var(--signal); font-family: var(--font-mono); font-size: 1.2rem; }
.brand-dim { color: var(--ink-dim); font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.nav-link {
  position: relative;
  color: var(--ink-dim);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  transition: color 0.25s var(--ease-soft);
}
.nav-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--signal);
  transition: width 0.3s var(--ease-spring);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::before, .nav-link.active::before { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s var(--ease-soft);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10, 13, 18, 0.98);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-spring);
}
.mobile-nav.open { max-height: 400px; }
.mobile-link {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-dim);
  font-weight: 500;
}
.mobile-link:active, .mobile-link:hover { color: var(--signal); background: var(--signal-soft); }

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 2s var(--ease-soft);
}
.hero-slide.active { opacity: 0.16; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,0.55) 0%, var(--bg) 92%);
}

.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 780px; }

/* Boot console — signature element */
.boot-console {
  width: min(92vw, 460px);
  margin: 0 auto 2.2rem;
  background: rgba(18, 22, 29, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  text-align: right;
  opacity: 0;
  transform: translateY(14px);
  animation: consoleIn 0.7s var(--ease-spring) 0.15s forwards;
}
@keyframes consoleIn { to { opacity: 1; transform: translateY(0); } }

.console-dot-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.console-dot { width: 9px; height: 9px; border-radius: 50%; }
.console-dot.red { background: #ff6058; }
.console-dot.yellow { background: #ffbd2e; }
.console-dot.green { background: #28c93f; }
.console-path {
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  direction: ltr;
}

.console-body {
  padding: 0.9rem 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--signal);
  min-height: 92px;
  direction: rtl;
  line-height: 1.85;
}
.console-line { display: block; opacity: 0; }
.console-line.shown { opacity: 1; }
.console-line .muted { color: var(--ink-faint); }
.type-cursor {
  display: inline-block;
  width: 6px; height: 1em;
  background: var(--signal);
  margin-right: 3px;
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-name {
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.hero-name .line-1, .hero-name .line-2 {
  display: block;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  opacity: 0;
  transform: translateY(24px);
  animation: nameIn 0.9s var(--ease-spring) forwards;
}
.hero-name .line-1 { animation-delay: 0.55s; color: var(--ink); }
.hero-name .line-2 {
  animation-delay: 0.68s;
  background: linear-gradient(95deg, var(--signal), #4fd88a 60%, #2fb876);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes nameIn { to { opacity: 1; transform: translateY(0); } }

.hero-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-spring) 0.85s forwards;
}
.role-chip { font-weight: 500; }
.role-sep { color: var(--signal); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-spring) 1s forwards;
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.hero-meta i { color: var(--signal); font-size: 0.85rem; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-spring) 1.15s forwards;
}
@keyframes fadeUp { to { opacity: 1; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), background 0.3s var(--ease-soft);
}
.btn-primary {
  background: var(--signal);
  color: #06120c;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(126, 249, 176, 0.28); }
.btn-primary i { transition: transform 0.3s var(--ease-spring); }
.btn-primary:hover i { transform: translateX(-4px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--signal); background: var(--signal-soft); transform: translateY(-3px); }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-spring) 1.4s forwards;
  z-index: 2;
}
.scroll-cue-line { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue-dot {
  position: absolute;
  top: -10px; left: 0;
  width: 100%; height: 10px;
  background: var(--signal);
  animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove { 0% { top: -10px; } 100% { top: 34px; } }

/* ===== Section shell ===== */
.panel-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 1.75rem;
  position: relative;
}

.panel-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 0.5rem 1rem;
  margin-bottom: -1px;
  direction: ltr;
}
.tab-icon { color: var(--signal); }
.cursor-blink { animation: blink 1s step-end infinite; color: var(--signal); }

.section-heading {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin: 1.6rem 0 2.4rem;
  border-top: 1px solid var(--line);
  padding-top: 2.2rem;
}
.section-heading.center { text-align: center; }
.accent { color: var(--signal); }

/* ===== Reveal-on-scroll (Framer-Motion-style viewport reveal) ===== */
.reveal-child {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}
.reveal.in-view .reveal-child { opacity: 1; transform: translateY(0); }
.reveal.in-view .reveal-child:nth-child(1) { transition-delay: 0.02s; }
.reveal.in-view .reveal-child:nth-child(2) { transition-delay: 0.08s; }
.reveal.in-view .reveal-child:nth-child(3) { transition-delay: 0.14s; }
.reveal.in-view .reveal-child:nth-child(4) { transition-delay: 0.20s; }
.reveal.in-view .reveal-child:nth-child(5) { transition-delay: 0.26s; }
.reveal.in-view .reveal-child:nth-child(6) { transition-delay: 0.32s; }
.reveal.in-view .reveal-child:nth-child(7) { transition-delay: 0.38s; }
.reveal.in-view .reveal-child:nth-child(8) { transition-delay: 0.44s; }
.reveal.in-view .reveal-child:nth-child(9) { transition-delay: 0.50s; }
.reveal.in-view .reveal-child:nth-child(10) { transition-delay: 0.56s; }
.reveal.in-view .reveal-child:nth-child(11) { transition-delay: 0.62s; }
.section-heading.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring); }
.section-heading.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.about-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.about-logo-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 6px;
  background: conic-gradient(from 180deg, var(--signal), transparent 60%, var(--signal));
}
.about-logo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}
.about-logo-caption { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-dim); }

.about-text { color: var(--ink-dim); font-size: 1.08rem; max-width: 640px; margin-bottom: 2.2rem; }

.about-stats { display: flex; gap: 2.6rem; flex-wrap: wrap; }
.stat-block { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--signal); }
.stat-label { font-size: 0.85rem; color: var(--ink-faint); }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s var(--ease-soft), box-shadow 0.4s var(--ease-spring);
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 249, 176, 0.35);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.skill-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.skill-card-title i { color: var(--signal); font-size: 0.95rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.skill-tag:hover { background: var(--signal-soft); color: var(--ink); border-color: rgba(126,249,176,0.4); }
.skill-tag i { color: var(--signal); font-size: 1rem; }

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
.portfolio-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring), border-color 0.3s var(--ease-soft);
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(126, 249, 176, 0.3);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.portfolio-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--panel-2);
}
.portfolio-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}
.portfolio-card:hover .portfolio-media img { transform: scale(1.08); }
.portfolio-kind {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,13,18,0.75);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  color: var(--signal);
  font-size: 0.9rem;
  border: 1px solid rgba(126,249,176,0.3);
}
.portfolio-body { padding: 1.3rem 1.4rem 1.5rem; }
.portfolio-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-stack { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-faint); direction: ltr; text-align: right; }

/* ===== Gallery slider ===== */
.gallery-slider { position: relative; }
.gallery-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.2rem 1.4rem;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.gallery-slide {
  flex: 0 0 min(78vw, 400px);
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-spring); }
.gallery-slide:hover img { transform: scale(1.06); }

.gallery-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(18,22,29,0.85);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
.gallery-btn:hover { background: var(--signal-soft); border-color: var(--signal); color: var(--signal); }
.gallery-btn.prev { right: -6px; }
.gallery-btn.next { left: -6px; }

.gallery-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
.gallery-dots .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
  cursor: pointer;
}
.gallery-dots .dot.active { background: var(--signal); transform: scale(1.3); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s var(--ease-soft), box-shadow 0.4s var(--ease-spring);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(126, 249, 176, 0.35);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.contact-card i { font-size: 1.7rem; color: var(--signal); margin-bottom: 1rem; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.86rem; direction: ltr; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 7rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 3rem;
}

/* ===== Status bar (signature dock) ===== */
.status-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1500;
  height: 44px;
  background: rgba(10, 13, 18, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.status-left { display: flex; align-items: center; gap: 0.5rem; color: var(--ink-faint); direction: ltr; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.status-cursor { color: var(--signal); animation: blink 1s step-end infinite; }

.status-music {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-dim);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}
.status-music:hover { background: var(--panel-2); color: var(--ink); }
.music-label { display: none; }
@media (min-width: 640px) { .music-label { display: inline; } }

.music-eq { display: none; align-items: center; gap: 2px; height: 12px; }
.music-eq.playing { display: flex; }
.music-eq i {
  width: 2px;
  background: var(--signal);
  border-radius: 2px;
  animation: eqBounce 0.6s ease-in-out infinite alternate;
}
.music-eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.music-eq i:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.music-eq i:nth-child(3) { height: 60%; animation-delay: 0.3s; }
.music-eq i:nth-child(4) { height: 80%; animation-delay: 0.45s; }
@keyframes eqBounce { to { height: 15%; } }

#musicIcon.hidden { display: none; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(6, 8, 11, 0.94);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
  padding: 2rem;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease-spring);
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.lightbox-close:hover { color: var(--signal); border-color: var(--signal); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .about-grid { grid-template-columns: 1fr; text-align: center; padding: 2.2rem; }
  .about-logo-wrap { margin: 0 auto; }
  .about-stats { justify-content: center; }
}

@media (max-width: 560px) {
  .panel-section { padding: 4.2rem 1.1rem; }
  .about-grid { padding: 1.8rem; gap: 2rem; }
  .hero { padding: 6rem 1.1rem 4rem; }
  .hero-meta { gap: 0.5rem 1rem; }
  .status-bar { font-size: 0.66rem; padding: 0 0.7rem; }
  .status-section { display: none; }
}

@media (max-width: 380px) {
  .boot-console { width: 100%; }
}
