/* ============================================
   HERO SECTION
   Premium dark-themed paintball hero
   ============================================ */

/* --- Keyframes --- */

@keyframes heroZoom {
  0% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.25);
  }
}

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

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPulseGlow {
  0%, 100% {
    text-shadow:
      0 0 7px rgba(0, 255, 136, 0.4),
      0 0 20px rgba(0, 255, 136, 0.2),
      0 0 42px rgba(0, 255, 136, 0.1);
  }
  50% {
    text-shadow:
      0 0 10px rgba(0, 255, 136, 0.6),
      0 0 30px rgba(0, 255, 136, 0.35),
      0 0 60px rgba(0, 255, 136, 0.15);
  }
}

@keyframes heroGrainShift {
  0%, 100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -2%);
  }
  30% {
    transform: translate(1%, -1%);
  }
  50% {
    transform: translate(-1%, 2%);
  }
  70% {
    transform: translate(2%, 1%);
  }
  90% {
    transform: translate(-1%, -1%);
  }
}

/* --- Hero Container --- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

/* --- Background Layer --- */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: heroZoom 15s ease-in-out infinite alternate;
  will-change: transform;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.7) 0%,
    rgba(10, 14, 23, 0.75) 40%,
    rgba(10, 14, 23, 0.9) 100%
  );
  z-index: 1;
}

/* SVG noise / grain texture */
.hero-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  background-repeat: repeat;
  animation: heroGrainShift 8s steps(6) infinite;
}

/* --- Content --- */

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
  /* Parallax prep — JS will manipulate this */
  will-change: transform, opacity;
}

/* Staggered fade-in children */
.hero-content > * {
  opacity: 0;
  animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }
.hero-content > *:nth-child(5) { animation-delay: 0.75s; }
.hero-content > *:nth-child(6) { animation-delay: 0.9s; }

/* --- Badge --- */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 999px;
  white-space: nowrap;
}

.hero-badge-icon {
  font-size: 1rem;
  line-height: 1;
}

/* --- Title --- */

.hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  font-size: 5rem;
}

.hero-title-accent {
  color: var(--accent-primary);
  animation: heroPulseGlow 4s ease-in-out infinite;
}

/* --- Subtitle --- */

.hero-subtitle {
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- CTA Actions --- */

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Play Modes Strip --- */

.hero-modes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

.hero-modes-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.hero-modes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 860px;
}

.hero-mode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.hero-mode-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.03);
}

.hero-mode-card i {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.mode-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.mode-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --- Scroll Indicator --- */

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 3;
  animation: heroBounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero-scroll-indicator:hover {
  color: var(--accent-primary);
}

.hero-scroll-indicator-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.3s ease;
}

.hero-scroll-indicator:hover .hero-scroll-indicator-icon {
  border-color: var(--accent-primary);
}

.hero-scroll-indicator-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--text-muted);
  transition: background 0.3s ease;
}

.hero-scroll-indicator:hover .hero-scroll-indicator-icon::before {
  background: var(--accent-primary);
}

/* ============================================
   PARALLAX PREP
   JS will set --hero-parallax-y and
   --hero-parallax-opacity on .hero-content
   ============================================ */

.hero-content {
  transform: translateY(var(--hero-parallax-y, 0));
  opacity: var(--hero-parallax-opacity, 1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-title-line {
    font-size: 4rem;
  }

  .hero-modes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero-content {
    padding: 100px 20px 64px;
  }

  .hero-title-line {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-actions > * {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .hero-modes {
    margin-top: 36px;
  }

  .hero-modes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-scroll-indicator {
    bottom: 20px;
    font-size: 0.6rem;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-title-line {
    font-size: 2.4rem;
  }

  .hero-modes-grid {
    gap: 6px;
  }
}
