/* ============================================================
   AUTO SALON — animations.css
   Keyframes, glow effects, .reveal classes
   ============================================================ */

/* ---------- Hero entrance ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content > * {
  opacity: 0;
  animation: fadeInUp 1s var(--ease) forwards;
}
.hero__content > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero__content > *:nth-child(2) {
  animation-delay: 0.28s;
}
.hero__content > *:nth-child(3) {
  animation-delay: 0.46s;
}
.hero__content > *:nth-child(4) {
  animation-delay: 0.64s;
}

/* ---------- Reveal on scroll (Intersection Observer) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0s;
}
.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.3s;
}
.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.4s;
}
.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.5s;
}
.reveal-stagger.is-visible > *:nth-child(7) {
  transition-delay: 0.6s;
}
.reveal-stagger.is-visible > *:nth-child(8) {
  transition-delay: 0.7s;
}
.reveal-stagger.is-visible > *:nth-child(9) {
  transition-delay: 0.8s;
}

/* ---------- Glow pulse for accents ---------- */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px var(--blue-glow);
  }
  50% {
    box-shadow: 0 0 35px var(--blue-strong);
  }
}
.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ---------- Scroll cue ---------- */
@keyframes scrollCue {
  0% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.3;
  }
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
}
.hero__cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  z-index: 3;
}
.hero__cue span {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}

/* Count-up element starts at 0 visually handled by JS */
.stat__num {
  transition: none;
}
