:root {
  --primary: #00ffff;
  --bg-dark: #000;
  --text-light: #fff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --tertiary-color: #ff2d95;
  --flicker-color: #00ff99;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background: var(--bg-dark);
  overflow-x: hidden;
  background-image: url(./assets/bg_wolfpack.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* نورهای نئونی */
.light-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.light {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.08;
  box-shadow: 0 0 40px 10px var(--primary);
  animation: floatLight 10s ease-in-out infinite alternate;
}

@keyframes floatLight {
  0% { transform: translateY(0) scale(1); opacity: 0.1; }
  50% { transform: translateY(-100px) scale(1.2); opacity: 0.3; }
  100% { transform: translateY(0) scale(1); opacity: 0.08; }
}

/* Header */
header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #00bcd4;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ccc;
}

/* دکمه‌های بالا */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.primary {
  border: 2px solid #00bcd4;
  color: #00bcd4;
  background: transparent;
}
.primary:hover {
  background: #00bcd4;
  color: #000;
}

.secondary {
  border: 2px solid #888;
  color: #ccc;
  background: transparent;
}
.secondary:hover {
  background: #ccc;
  color: #000;
}

.tertiary {
  border: 2px solid var(--tertiary-color);
  color: var(--tertiary-color);
  background: transparent;
}
.tertiary:hover {
  background: var(--tertiary-color);
  color: #000;
}

.flicker-btn {
  display: inline-block;
  margin-top: 80px;
  padding: 16px 32px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--flicker-color);
  border: 2px solid var(--flicker-color);
  background: transparent;
  border-radius: 12px;
  text-shadow: 0 0 5px var(--flicker-color);
  animation: fadeInUp 1s ease-out forwards, flicker 2.5s infinite alternate;
  animation-delay: 1.2s, 1.2s;
  transition: all 0.3s ease-in-out;
  text-decoration: none; /* 🔥 خط زیر لینک رو حذف می‌کنه */
}


/* انیمیشن ورود */
.fade-in {
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 1.4s;
}

.flicker-btn:hover {
  background: var(--flicker-color);
  color: #000;
  text-shadow: none;
  box-shadow: 0 0 20px var(--flicker-color);
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    opacity: 1;
    text-shadow: 0 0 5px var(--flicker-color), 0 0 10px var(--flicker-color);
  }
  20%, 24%, 55% {
    opacity: 0.4;
    text-shadow: none;
  }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  nav {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top: 70px;
    right: 40px;
    padding: 15px 20px;
    border-radius: 8px;
  }

  nav.active { display: flex; }
  .menu-toggle { display: block; }

  .hero-content h1,
  .hero-content p,
  .hero-content .buttons,
  .flicker-btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; }

  .btn, .flicker-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  header {
    padding: 15px 20px;
  }
}
/* انیمیشن Fade In Up با تأخیرهای جداگانه */
.hero-content h1 {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-content p {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

.hero-content .buttons {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.9s;
}

.flicker-btn {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards, flicker 2.5s infinite alternate;
  animation-delay: 1.2s, 1.2s; /* اول انیمیشن ورود، بعد افکت فلیکر */
}
