/* ============================================
   САВЕЛИЙ — Геймерский сайт
   ============================================ */

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

:root {
  --primary: #00fff2;
  --secondary: #ff2afc;
  --accent: #faff00;
  --neon-pink: #ff0055;
  --neon-blue: #0055ff;
  --neon-purple: #b400ff;
  --neon-green: #39ff14;
  --neon-orange: #ff6a00;
  --bg-dark: #05050f;
  --bg-card: rgba(10, 5, 25, 0.85);
  --text: #e8e0ff;
  --text-dim: #7766aa;
  --cs2-color: #ff003c;
  --racing-color: #39ff14;
  --code-color: #faff00;
  --glass-bg: rgba(15, 8, 40, 0.7);
  --glass-border: rgba(0, 255, 242, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(180, 0, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 85, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 0, 85, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== ЧАСТИЦЫ ===== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== НАВИГАЦИЯ ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  backdrop-filter: blur(20px);
  background: rgba(5, 3, 20, 0.85);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.06);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  padding: 0.5rem 2rem;
  background: rgba(5, 3, 20, 0.95);
  box-shadow: 0 2px 30px rgba(0, 255, 242, 0.1);
}

.nav-logo {
  font-family: 'Teko', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--primary), var(--neon-pink), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 255, 242, 0.5));
}

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

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(0, 255, 242, 0.08);
  text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--neon-pink));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 255, 242, 0.6);
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(180, 0, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(0, 85, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(255, 0, 85, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(0, 255, 242, 0.06) 0%, transparent 60%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

/* Глитч-эффект */
.glitch-wrapper {
  position: relative;
}

.hero-name {
  font-family: 'Teko', sans-serif;
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), #fff, var(--neon-pink), var(--secondary), var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease-in-out infinite;
  position: relative;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  filter: drop-shadow(0 0 30px rgba(0, 255, 242, 0.3));
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.glitch {
  animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), #ffffff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch::before {
  animation: glitch-effect 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  filter: hue-rotate(-30deg);
}

.glitch::after {
  animation: glitch-effect 2s infinite linear alternate-reverse;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  filter: hue-rotate(30deg);
}

@keyframes glitch-effect {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(0deg); }
  21% { transform: skew(-1deg); }
  22% { transform: skew(0deg); }
  100% { transform: skew(0deg); }
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 1rem 0 1.5rem;
  color: var(--text);
  min-height: 2.5rem;
  letter-spacing: 0.05em;
}

.cursor {
  animation: blink 0.7s infinite;
  color: var(--primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-tags {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  transition: all 0.3s ease;
  cursor: default;
}

.tag-gaming {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  background: rgba(255, 0, 85, 0.1);
  text-shadow: 0 0 8px rgba(255, 0, 85, 0.5);
}

.tag-racing {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: rgba(57, 255, 20, 0.08);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.tag-code {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(250, 255, 0, 0.08);
  text-shadow: 0 0 8px rgba(250, 255, 0, 0.5);
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 255, 242, 0.4);
}

/* CTA кнопка */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--neon-pink), var(--secondary), var(--neon-purple));
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 0, 85, 0.5);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.3), inset 0 0 20px rgba(255, 0, 85, 0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255, 0, 85, 0.5), 0 10px 40px rgba(180, 0, 255, 0.3);
  border-color: var(--neon-pink);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover .btn-glow {
  left: 100%;
}

/* индикатор скролла */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--neon-pink);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--neon-pink);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== СЕКЦИИ ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}

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

.section-title {
  font-family: 'Teko', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  width: 100%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-pink), var(--primary), var(--neon-purple));
  margin: 1rem auto 0;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 255, 242, 0.5), 0 0 25px rgba(255, 0, 85, 0.3);
}

/* ===== GLASS КАРТОЧКА ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.glass:hover {
  border-color: rgba(0, 255, 242, 0.25);
  transform: translateY(-5px);
  box-shadow:
    0 10px 40px rgba(0, 255, 242, 0.1),
    0 0 30px rgba(180, 0, 255, 0.08),
    inset 0 0 30px rgba(0, 255, 242, 0.03);
}

/* ===== ОБО МНЕ ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neon-pink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
}

.about-card p {
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== ИГРЫ ===== */
.gaming-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 0, 85, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(57, 255, 20, 0.06) 0%, transparent 50%);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.game-card {
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
  height: 420px;
  cursor: pointer;
}

.game-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.game-card.flipped .game-card-inner {
  transform: rotateY(180deg);
}

.game-front, .game-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.game-front {
  background: linear-gradient(135deg, rgba(15, 5, 40, 0.9), rgba(20, 5, 50, 0.8));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.game-back {
  background: linear-gradient(135deg, rgba(15, 5, 40, 0.95), rgba(10, 5, 35, 0.9));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  transform: rotateY(180deg);
  text-align: left;
  align-items: flex-start;
  overflow: hidden;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: card-shine 4s infinite;
}

@keyframes card-shine {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.game-icon-large {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.game-front h3 {
  font-family: 'Teko', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs2-card .game-front h3 {
  color: var(--neon-pink);
  text-shadow: 0 0 20px rgba(255, 0, 85, 0.7), 0 0 40px rgba(255, 0, 85, 0.3);
}

.racing-card .game-front h3 {
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.7), 0 0 40px rgba(57, 255, 20, 0.3);
}

.game-front p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* Кнопка трейлера */
.trailer-btn {
  padding: 0.5rem 1.5rem;
  background: rgba(255, 0, 85, 0.2);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 0, 85, 0.4);
  border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(255, 0, 85, 0.4);
  position: relative;
  z-index: 5;
}

.trailer-btn:hover {
  background: rgba(255, 0, 85, 0.4);
  box-shadow: 0 0 25px rgba(255, 0, 85, 0.4);
  transform: scale(1.05);
}

.racing-card .trailer-btn {
  background: rgba(57, 255, 20, 0.15);
  color: var(--neon-green);
  border-color: rgba(57, 255, 20, 0.4);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}

.racing-card .trailer-btn:hover {
  background: rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.4);
}

.game-back h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-stats {
  list-style: none;
  width: 100%;
  margin-bottom: 1.5rem;
}

.game-stats li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.stat-label {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(0, 255, 242, 0.4);
}

/* Скилл-бары */
.skill-bars {
  width: 100%;
}

.skill-bar {
  margin-bottom: 0.8rem;
}

.skill-bar span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bar {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--secondary), var(--neon-purple));
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
  transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.bar-fill.racing-fill {
  background: linear-gradient(90deg, var(--neon-green), var(--primary), var(--accent));
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* ===== ПРОГРАММИРОВАНИЕ ===== */
.coding-section {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(250, 255, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(180, 0, 255, 0.06) 0%, transparent 50%);
}

.coding-content {
  display: grid;
  gap: 3rem;
}

/* Терминал */
.terminal {
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255, 0, 85, 0.2);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-title {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 200px;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.2);
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.prompt {
  color: var(--neon-green);
  font-weight: bold;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.typed-command {
  color: var(--text);
}

.terminal-cursor {
  color: var(--primary);
  animation: blink 0.7s infinite;
}

.terminal-output {
  color: var(--text-dim);
  margin: 0.5rem 0 0.5rem 1.5rem;
  white-space: pre-wrap;
}

.terminal-output.highlight {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(250, 255, 0, 0.3);
}

.terminal-output.success {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.terminal-output.error {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 0, 85, 0.3);
}

/* Языки программирования */
.code-languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.lang-card {
  padding: 1.5rem;
  text-align: center;
}

.lang-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.lang-card h4 {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0, 255, 242, 0.3);
}

.lang-level {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.level-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 2s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-lang="html"] .level-fill { background: linear-gradient(90deg, var(--neon-orange), #ff3545); box-shadow: 0 0 10px rgba(255, 106, 0, 0.5); }
[data-lang="js"] .level-fill { background: linear-gradient(90deg, var(--accent), #ffe100); box-shadow: 0 0 10px rgba(250, 255, 0, 0.5); }
[data-lang="python"] .level-fill { background: linear-gradient(90deg, var(--neon-blue), var(--primary)); box-shadow: 0 0 10px rgba(0, 85, 255, 0.5); }
[data-lang="lua"] .level-fill { background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink)); box-shadow: 0 0 10px rgba(180, 0, 255, 0.5); }

/* ===== КОНТАКТ ===== */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-card {
  padding: 3rem 2rem;
  text-align: center;
}

.contact-avatar {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.contact-card h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.steam-btn {
  background: rgba(0, 85, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 242, 0.3);
}

.steam-btn:hover {
  background: rgba(0, 85, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 255, 242, 0.3), 0 5px 20px rgba(0, 85, 255, 0.2);
  text-shadow: 0 0 10px var(--primary);
}

.discord-btn {
  background: rgba(180, 0, 255, 0.15);
  color: var(--neon-purple);
  border: 1px solid rgba(180, 0, 255, 0.3);
}

.discord-btn:hover {
  background: rgba(180, 0, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(180, 0, 255, 0.3), 0 5px 20px rgba(255, 0, 85, 0.2);
  text-shadow: 0 0 10px var(--neon-purple);
}

/* Факты */
.fun-facts {
  padding: 2.5rem 2rem;
}

.fun-facts h3 {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.fact-number {
  font-family: 'Teko', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon-pink), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  letter-spacing: 0.05em;
  filter: drop-shadow(0 0 10px rgba(0, 255, 242, 0.3));
}

.fact-label {
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== ФУТЕР ===== */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 0, 85, 0.2);
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(255, 0, 85, 0.03));
}

/* ===== ТРЕЙЛЕР МОДАЛКА ===== */
.trailer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.trailer-modal.active {
  opacity: 1;
  pointer-events: all;
}

.trailer-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  border: 2px solid rgba(255, 0, 85, 0.4);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(255, 0, 85, 0.3),
    0 0 80px rgba(180, 0, 255, 0.15);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.trailer-modal.active .trailer-modal-content {
  transform: scale(1);
}

.trailer-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.trailer-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.trailer-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: 1px solid rgba(255, 0, 85, 0.5);
  color: var(--neon-pink);
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  font-family: 'Rajdhani', sans-serif;
}

.trailer-close:hover {
  background: rgba(255, 0, 85, 0.3);
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .trailer-modal-content {
    width: 95%;
  }
  .trailer-close {
    top: -35px;
    right: 0;
    font-size: 1.4rem;
    width: 30px;
    height: 30px;
  }
}

/* ===== СКРОЛЛ-АНИМАЦИЯ ===== */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== МОБИЛЬНОЕ ===== */
@media (max-width: 768px) {
  .nav-links {
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    height: 380px;
  }

  .code-languages {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-name {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .code-languages {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
}