/* ==========================================================================
   BAKHTIER KHUSEYNOV — PORTFOLIO
   Main stylesheet: design tokens, base, layout, components
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #0A0E17;
  --bg-secondary: #0D1421;
  --bg-card: #111827;
  --bg-card-hover: #1A2332;
  --color-neon-blue: #00D4FF;
  --color-neon-cyan: #00FFF5;
  --color-neon-purple: #7B2FBE;about.sectionabout.section
  --color-neon-green: #00FF88;
  --color-gold: #FFD700;
  --color-text-primary: #E2E8F0;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-border: #1E293B;
  --color-border-neon: rgba(0, 212, 255, 0.3);
  --gradient-main: linear-gradient(135deg, #00D4FF 0%, #7B2FBE 100%);
  --gradient-card: linear-gradient(145deg, #111827 0%, #1A2332 100%);
  --shadow-neon: 0 0 20px rgba(0, 212, 255, 0.3);
  --shadow-purple: 0 0 20px rgba(123, 47, 190, 0.4);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  /* Layout */
  --nav-height: 76px;
  --section-max: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  background: var(--bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--color-neon-blue); color: var(--bg-primary); }

a[data-cursor-hover], button[data-cursor-hover] { cursor: none; }
@media (hover: none) {
  [data-cursor-hover] { cursor: pointer; }
}

/* background ambience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 800px 600px at 15% 10%, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 700px at 85% 60%, rgba(123, 47, 190, 0.10), transparent 60%),
    var(--bg-primary);
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--color-neon-blue);
  box-shadow: 0 0 8px 2px var(--color-neon-blue);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--color-border-neon);
  transition: width .18s ease, height .18s ease, border-color .18s ease, background .18s ease;
}
.cursor-ring.cursor-hover {
  width: 52px; height: 52px;
  border-color: var(--color-neon-cyan);
  background: rgba(0, 212, 255, 0.08);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 1001;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: var(--gradient-main);
  box-shadow: var(--shadow-neon);
  transition: width .1s linear;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex; align-items: center;
  background: rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background .3s ease, border-color .3s ease;
}
.navbar.scrolled {
  background: rgba(10, 14, 23, 0.85);
  border-bottom-color: var(--color-border-neon);
}
.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--color-neon-blue);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}
.logo-bracket { color: var(--color-neon-purple); }
.nav-links {
  display: flex; gap: 8px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--color-text-secondary);
  padding: 8px 14px;
  transition: color .25s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  box-shadow: var(--shadow-neon);
}
.nav-link:hover, .nav-link.active { color: var(--color-text-primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  z-index: 1002;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--color-neon-blue);
  box-shadow: 0 0 6px rgba(0,212,255,.6);
  transition: transform .3s ease, opacity .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 20px) 24px 60px;
}
.particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.circuit-grid {
  position: absolute; inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 90%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 820px;
}
.hero-avatar {
  position: relative;
  width: 116px; height: 116px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-neon-blue);
  box-shadow: 0 0 22px rgba(0,212,255,.5), inset 0 0 22px rgba(0,212,255,.2);
  animation: avatarSpin 7s linear infinite, avatarPulse 2.4s ease-in-out infinite;
}
.avatar-ring::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(123,47,190,.5);
}
.avatar-initials {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--color-text-primary);
  background: var(--bg-card);
  width: 92px; height: 92px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 2px;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--color-neon-cyan);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: .85;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6.5vw, 4.2rem);
  letter-spacing: 3px;
  line-height: 1.15;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(0,212,255,.25));
  margin-bottom: 18px;
}
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--color-text-secondary);
  min-height: 1.8em;
  margin-bottom: 40px;
}
.typed-cursor {
  color: var(--color-neon-blue);
  animation: blink 1s step-end infinite;
}
.hero-cta {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-hint-mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid var(--color-border-neon);
  border-radius: 14px;
  position: relative;
}
.scroll-hint-dot {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-neon-blue);
  box-shadow: 0 0 6px var(--color-neon-blue);
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 24px; }
.section-alt { background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary)); }
.section-inner { max-width: var(--section-max); margin: 0 auto; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-neon-cyan);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--color-text-primary);
  margin-bottom: 22px;
  max-width: 780px;
}
.subsection-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-neon-blue);
  margin: 44px 0 20px;
  letter-spacing: .5px;
}
.divider-neon {
  width: 90px; height: 3px;
  background: var(--gradient-main);
  box-shadow: var(--shadow-neon);
  border-radius: 2px;
  margin-bottom: 46px;
}
.about-text {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

.about-text p {
  text-indent: 2em;            /* Красная строка (отступ в начале абзаца) */
  text-align: justify;         /* Выравнивание текста по ширине */
  hyphens: auto;               /* Автоматический перенос слов по слогам */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  margin-bottom: 1.25rem;      /* Отступ между абзацами */
  line-height: 1.8;            /* Межстрочный интервал */
  color: var(--color-text-secondary);
}

/* Первый абзац можно подсветить ярче для акцента */
.about-text p:first-of-type {
  color: var(--color-text-primary);
}

/* ---------- Counters ---------- */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.counter-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.counter-card:hover {
  border-color: var(--color-border-neon);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
}
.counter-icon { display: block; font-size: 1.7rem; margin-bottom: 10px; }
.counter-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-neon-blue);
  text-shadow: 0 0 16px rgba(0,212,255,.4);
}
.counter-label {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  color: var(--color-text-secondary);
}

/* ---------- About timeline (horizontal) ---------- */
.about-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 30px;
  overflow-x: auto;
}
.about-timeline-line {
  position: absolute;
  top: 40px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-neon-blue), var(--color-neon-purple));
  opacity: .5;
}
.about-timeline-item {
  position: relative;
  flex: 1;
  min-width: 110px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.about-timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-neon-blue);
  box-shadow: 0 0 10px var(--color-neon-blue);
  margin-bottom: 14px;
  animation: dotPulse 2.4s ease-in-out infinite;
}
.about-timeline-year {
  font-family: var(--font-mono);
  color: var(--color-neon-cyan);
  font-size: .85rem;
}
.about-timeline-label {
  font-size: .8rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ---------- Cards ---------- */
.neon-card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 30px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.neon-card:hover {
  border-color: var(--color-border-neon);
  box-shadow: var(--shadow-neon);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
}
.main-card { margin-bottom: 10px; }
.main-card-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.main-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-text-primary);
}
.main-card-sub { color: var(--color-neon-cyan); font-size: .92rem; margin-top: 4px; }
.main-card-text { color: var(--color-text-secondary); }

.cards-grid { display: grid; gap: 20px; margin-top: 6px; }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }

.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.mini-card:hover { border-color: var(--color-border-neon); box-shadow: var(--shadow-neon); transform: translateY(-5px); }
.mini-card-icon { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.mini-card p { font-size: .88rem; color: var(--color-text-secondary); }

.badges-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.badges-row-small { margin-top: 20px; }
.neon-badge {
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: 7px 14px;
  border: 1px solid var(--color-border-neon);
  border-radius: 999px;
  color: var(--color-neon-blue);
  background: rgba(0, 212, 255, 0.06);
  white-space: nowrap;
}
.neon-badge-sm { font-size: .72rem; padding: 5px 11px; }
.badge-duration {
  display: inline-block;
  color: var(--color-gold);
  border-color: rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.06);
  margin: 8px 0 0;
}

/* vertical timeline */
.timeline-vertical { position: relative; padding-left: 34px; }
.timeline-vertical::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-neon-blue), var(--color-neon-purple));
  opacity: .5;
}
.timeline-vertical-item { position: relative; padding-bottom: 34px; }
.timeline-vertical-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -34px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--color-neon-blue);
  box-shadow: 0 0 10px var(--color-neon-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
}
.timeline-period { font-family: var(--font-mono); color: var(--color-neon-cyan); font-size: .8rem; }
.timeline-content h4 { font-family: var(--font-display); font-size: 1rem; margin: 6px 0 4px; color: var(--color-text-primary); }
.timeline-content p { color: var(--color-text-secondary); font-size: .9rem; }

/* hover cards (mairie) */
.hover-card-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.hover-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 12px; color: var(--color-text-primary); }
.hover-card-text { color: var(--color-text-secondary); font-size: .92rem; margin-bottom: 16px; }
.hover-card-list { padding-left: 4px; }
.hover-card-list li {
  position: relative;
  padding-left: 18px;
  font-size: .86rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.hover-card-list li::before {
  content: "▹";
  position: absolute; left: 0; color: var(--color-neon-blue);
}
.hover-card-sub {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  font-size: .82rem;
  color: var(--color-text-muted);
}
.hover-card-sub-label { font-family: var(--font-mono); color: var(--color-neon-cyan); margin-bottom: 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }

.hover-card-sm h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 12px 0 10px; }
.hover-card-sm p { color: var(--color-text-secondary); font-size: .88rem; }

/* workflow */
.workflow {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}
.workflow-step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 96px;
}
.workflow-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border-neon);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--color-neon-blue);
  box-shadow: var(--shadow-neon);
}
.workflow-step span:last-child { font-size: .82rem; color: var(--color-text-secondary); }
.workflow-arrow { color: var(--color-neon-purple); font-size: 1.2rem; }

/* ---------- Skills ---------- */
.skills-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}
.skill-bar-item { margin-bottom: 22px; }
.skill-bar-head {
  display: flex; justify-content: space-between;
  font-size: .9rem; margin-bottom: 8px; color: var(--color-text-secondary);
}
.skill-bar-pct { font-family: var(--font-mono); color: var(--color-neon-cyan); }
.skill-bar-track {
  height: 8px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%; width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--color-neon-cyan), var(--color-neon-purple));
  box-shadow: 0 0 10px rgba(0,212,255,.5);
  transition: width 1.4s cubic-bezier(.16,.8,.3,1);
}
.tool-category { margin-bottom: 26px; }
.tool-category-title { font-size: .88rem; color: var(--color-text-primary); margin-bottom: 12px; font-weight: 600; }

/* ---------- Languages ---------- */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lang-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.lang-card:hover { border-color: var(--color-border-neon); box-shadow: var(--shadow-purple); transform: translateY(-5px); }
.lang-flag { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.lang-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.lang-level { font-size: .82rem; color: var(--color-text-secondary); margin-bottom: 14px; }
.lang-cefr {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border-neon);
  color: var(--color-neon-blue);
  margin-bottom: 16px;
}
.lang-ring { width: 90px; height: 90px; margin: 0 auto; }
.lang-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lang-ring-bg { fill: none; stroke: var(--color-border); stroke-width: 6; }
.lang-ring-fill {
  fill: none;
  stroke: url(#none);
  stroke: var(--color-neon-cyan);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.6s cubic-bezier(.16,.8,.3,1);
}

/* ---------- Formation permit ---------- */
.permit-badge { margin-top: 40px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: .92rem;
  color: var(--color-text-secondary);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease, color .3s ease;
}
.contact-item:not(.contact-item-static):hover {
  border-color: var(--color-border-neon);
  box-shadow: var(--shadow-neon);
  transform: translateX(6px);
  color: var(--color-text-primary);
}
.contact-icon { font-size: 1.3rem; }

.contact-form {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}
.form-group { margin-bottom: 20px; position: relative; }
.form-group label {
  display: block; font-size: .82rem; margin-bottom: 8px;
  color: var(--color-text-secondary); letter-spacing: .3px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--color-text-primary);
  font-size: .92rem;
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-neon-blue);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea {
  border-color: #FF4D6D;
}
.form-error {
  display: block;
  min-height: 16px;
  font-size: .74rem;
  color: #FF6B87;
  margin-top: 6px;
}
.form-submit { width: 100%; margin-top: 8px; justify-content: center; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,.35);
  background: rgba(0,255,136,.08);
  color: var(--color-neon-green);
  font-size: .88rem;
  text-align: center;
}
.form-success.show { display: block; }

/* ---------- Buttons ---------- */
.neon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  padding: 15px 30px;
  min-height: 48px;
  border-radius: 10px;
  background: var(--gradient-main);
  color: #04101C;
  box-shadow: var(--shadow-neon);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  border: 1px solid transparent;
}
.neon-btn:hover { transform: translateY(-3px); box-shadow: 0 0 32px rgba(0,212,255,.55); filter: brightness(1.05); }
.neon-btn-outline {
  background: transparent;
  color: var(--color-neon-blue);
  border: 1px solid var(--color-border-neon);
  box-shadow: none;
}
.neon-btn-outline:hover { box-shadow: var(--shadow-neon); background: rgba(0,212,255,.06); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 34px 24px;
  color: var(--color-text-muted);
  font-size: .82rem;
  border-top: 1px solid var(--color-border);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--color-border-neon);
  color: var(--color-neon-blue);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-neon);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 500;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Konami overlay ---------- */
.konami-overlay {
  position: fixed; inset: 0;
  z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 14, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.konami-overlay.show { opacity: 1; visibility: visible; }
.konami-box { text-align: center; padding: 20px; }
.konami-line {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--color-neon-cyan);
  text-shadow: 0 0 18px rgba(0,255,245,.6);
  margin: 10px 0;
  opacity: 0;
  animation: konamiFade .8s ease forwards;
}
.konami-line:nth-child(2) { animation-delay: .3s; }
.konami-line:nth-child(3) { animation-delay: .6s; }
