/* ============================================================
   Personal Website — style.css
   «Гараж Тони Старка»: тёмная тема, голографический HUD,
   неоновое свечение, 3D-hero на Three.js (canvas).
   Layout: CSS Grid / Flexbox. No frameworks.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #05070d;            /* deep space background          */
  --bg-soft: #0a0e16;       /* alternate section background   */
  --glass: rgba(16, 21, 32, 0.55);   /* glass card background */
  --border: rgba(34, 211, 238, 0.18);/* holographic borders    */
  --text: #e6e9f0;
  --muted: #8fa3c0;
  --accent: #ffb020;        /* Iron Man HUD amber             */
  --accent-2: #22d3ee;      /* hologram cyan                  */
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

section[id] {
  scroll-margin-top: 80px;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

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

/* ---------- Header / nav (glass) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-select {
  background: rgba(16, 21, 32, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--mono);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-select:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.lang-select option {
  background: var(--bg);
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

/* ---------- Hero (3D canvas + HUD) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Three.js renders into this canvas — фиксированный 3D-фон всей страницы */
#hologram {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  background: var(--bg);
}

/* контент лежит поверх 3D-фона */
main {
  position: relative;
  z-index: 1;
}

/* subtle scanlines + vignette on top of the 3D scene */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 45%, transparent 35%, rgba(5, 7, 13, 0.75) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(34, 211, 238, 0.025) 0px,
      rgba(34, 211, 238, 0.025) 1px,
      transparent 1px,
      transparent 3px
    );
}

/* HUD corner brackets */
.hud-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hud-c {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(34, 211, 238, 0.55);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}

.hud-c.tl { top: 16px;  left: 16px;  border-right: none; border-bottom: none; }
.hud-c.tr { top: 16px;  right: 16px; border-left: none;  border-bottom: none; }
.hud-c.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.hud-c.br { bottom: 16px; right: 16px; border-left: none;  border-top: none; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4rem;
  max-width: 60%;
}

.hud-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(255, 176, 46, 0.6);
  margin-bottom: 1.25rem;
}

.hud-tag::before {
  content: "// ";
  color: var(--accent-2);
}

.hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
  margin-bottom: 1.5rem;
}

.hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35));
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--accent-2);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- Buttons (neon) ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  box-shadow: 0 0 18px rgba(255, 176, 46, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 34px rgba(255, 176, 46, 0.75);
}

.btn-secondary {
  border-color: rgba(34, 211, 238, 0.55);
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(10, 14, 22, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.section-title .accent {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
  text-shadow: 0 0 10px rgba(255, 176, 46, 0.6);
}

/* ---------- Glass cards ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 176, 46, 0.6);
  box-shadow: 0 0 26px rgba(255, 176, 46, 0.18), var(--shadow);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.stack-list {
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.4rem;
}

.stack-list li::before {
  content: "▹ ";
  color: var(--accent);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.18), var(--shadow);
}

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-header h3 {
  font-size: 1.2rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  font-family: var(--mono);
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-card code {
  color: var(--accent);
  background: rgba(255, 176, 46, 0.1);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.project-features {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
}

.project-features li::before {
  content: "▹ ";
  color: var(--accent-2);
}

/* ---------- Contact ---------- */
.contact-intro {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 176, 46, 0.6);
  box-shadow: 0 0 26px rgba(255, 176, 46, 0.18), var(--shadow);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 176, 46, 0.1);
  border: 1px solid rgba(255, 176, 46, 0.3);
  margin-bottom: 1rem;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover .contact-icon {
  color: #04121a;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(255, 176, 46, 0.6);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-all;
  font-family: var(--mono);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(5, 7, 13, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-right {
    gap: 0.75rem;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-inner {
    text-align: center;
    padding: 5.5rem 0 3.5rem;
    /* subtle backdrop so text stays readable over the 3D scene */
    background: radial-gradient(
      ellipse 90% 60% at 50% 40%,
      rgba(5, 7, 13, 0.55),
      transparent
    );
  }

  .hero-avatar {
    margin-left: auto;
    margin-right: auto;
    width: 120px;
    height: 120px;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-telemetry,
  .hud-loading,
  .radar {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .about-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}

/* ---------- Boot sequence (загрузочный экран) ---------- */
#boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#boot.done {
  opacity: 0;
  pointer-events: none;
}

.boot-box {
  width: min(560px, 86%);
}

.boot-line {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.95rem;
  min-height: 1.5em;
  text-shadow: 0 0 8px rgba(255, 176, 46, 0.5);
}

.boot-bar {
  height: 3px;
  background: rgba(34, 211, 238, 0.15);
  margin: 1.2rem 0 0.6rem;
  border-radius: 999px;
  overflow: hidden;
}

.boot-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(255, 176, 46, 0.8);
  transition: width 0.12s linear;
}

.boot-status {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ---------- Live telemetry (HUD-телеметрия) ---------- */
.hero-telemetry {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  bottom: 1.5rem;
  z-index: 2;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  display: grid;
  gap: 0.15rem;
  opacity: 0.75;
}

.hero-telemetry .ok {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255, 176, 46, 0.6);
}

/* ---------- 3D loading indicator (HUD) ---------- */
.hud-loading {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.75;
  transition: opacity 0.4s ease;
}

.hud-loading.done {
  opacity: 0;
  pointer-events: none;
}

.hud-spin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.25);
  border-top-color: var(--accent-2);
  animation: hud-spin 0.8s linear infinite;
}

@keyframes hud-spin {
  to { transform: rotate(360deg); }
}

.hud-loading.offline {
  color: rgba(248, 113, 113, 0.9);
}

.hud-loading.offline .hud-spin {
  border-color: rgba(248, 113, 113, 0.25);
  border-top-color: #f87171;
  animation: none;
}

/* ---------- Cursor glow (свечение за курсором) ---------- */
.mouse-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 350;
}

/* ---------- Scroll reveal (появление при скролле) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Misc neon details ---------- */
::selection {
  background: rgba(255, 176, 46, 0.3);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.45);
}

.hero {
  cursor: crosshair;
}

.footer-ver {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 176, 46, 0.55);
  letter-spacing: 0.1em;
}

/* ---------- Scroll progress (неоновая полоса) ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(255, 176, 46, 0.7);
  z-index: 300;
  transition: width 0.15s linear;
}

/* ---------- HUD-прицел за курсором ---------- */
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(34, 211, 238, 0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
  transition: width 0.15s ease, height 0.15s ease, margin 0.15s ease, border-color 0.15s ease;
}

.cursor-ring.act {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-color: var(--accent);
}

/* ---------- HUD-радар ---------- */
.radar {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: 5.5rem;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 176, 46, 0.4);
  background:
    linear-gradient(rgba(255, 176, 46, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 176, 46, 0.18) 1px, transparent 1px);
  background-size: 50% 50%;
  background-position: center;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 176, 46, 0.18), inset 0 0 18px rgba(255, 176, 46, 0.1);
}

.radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 176, 46, 0.75), transparent 70deg, transparent);
  animation: radar-sweep 3s linear infinite;
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

.radar .blip {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 176, 46, 0.9);
  animation: blip 2.4s ease-in-out infinite;
}

.radar .b1 { top: 30%; left: 64%; }
.radar .b2 { top: 62%; left: 30%; animation-delay: 0.8s; }
.radar .b3 { top: 48%; left: 48%; width: 4px; height: 4px; animation-delay: 1.6s; }

@keyframes blip {
  0%, 100% { opacity: 0.1; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ---------- Кнопка звука ---------- */
.sound-btn {
  background: rgba(16, 21, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent-2);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.32rem 0.45rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sound-btn:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

/* ---------- Блик на карточках ---------- */
.card,
.project-card,
.contact-card {
  position: relative;
  overflow: hidden;
}

.card::after,
.project-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.6s ease;
}

.card:hover::after,
.project-card:hover::after,
.contact-card:hover::after {
  left: 150%;
}

/* ---------- Звёзды между секциями ---------- */
.section-alt {
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(34, 211, 238, 0.7), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 176, 46, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(34, 211, 238, 0.6), transparent),
    radial-gradient(1px 1px at 40% 85%, rgba(34, 211, 238, 0.5), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 176, 46, 0.5), transparent),
    radial-gradient(1px 1px at 75% 55%, rgba(34, 211, 238, 0.5), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

/* ---------- Сканлайны на загрузочном экране ---------- */
.boot-box {
  position: relative;
}

.boot-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(34, 211, 238, 0.04) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #boot {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .mouse-glow {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============ Repository file navigation ============ */
.repo-nav {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.repo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
}

.repo-head-path {
  color: var(--amber);
}

.repo-row {
  display: grid;
  grid-template-columns: 2rem minmax(9rem, 1fr) 2.2fr 5rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.repo-row:last-child {
  border-bottom: none;
}

.repo-row:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.repo-ico {
  font-size: 0.9rem;
  line-height: 1;
}

.repo-name {
  color: var(--amber);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-row:hover .repo-name {
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.repo-desc {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repo-size {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .repo-row {
    grid-template-columns: 2rem minmax(7rem, 1fr) 4rem;
  }
  .repo-desc {
    display: none;
  }
  .repo-size {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .repo-row {
    grid-template-columns: 1.6rem 1fr;
  }
  .repo-size {
    display: none;
  }
}


