/* ============================================================
   ANIMATIONS — MVP Repairs LLC
   Scroll reveal, counters, transitions
   ============================================================ */

/* ── Scroll Reveal ───────────────────────────────────────── */

/* Fade */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out-expo);
}
.reveal-fade.is-visible {
  opacity: 1;
}

/* Up */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Right */
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.reveal-up:nth-child(2),
.reveal-fade:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-up:nth-child(3),
.reveal-fade:nth-child(3) {
  transition-delay: 0.16s;
}

/* ── Tab Panel Transitions ───────────────────────────────── */
.tab-panel {
  animation: none;
}
.tab-panel.active {
  animation: panelIn 0.35s var(--ease-out-expo) forwards;
}

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

/* ── Gallery Track ───────────────────────────────────────── */
.gallery-track {
  transition: transform 0.5s var(--ease-out-expo);
}

/* ── Particle Canvas ─────────────────────────────────────── */
.hero-particles canvas {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

/* ── Hero content entrance ───────────────────────────────── */
.hero-eyebrow {
  animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.2s both;
}
.hero-title {
  animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.4s both;
}
.hero-sub {
  animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.6s both;
}
.hero-ctas {
  animation: fadeSlideUp 0.9s var(--ease-out-expo) 0.75s both;
}
.hero-scroll-hint {
  animation: fadeSlideUp 0.9s var(--ease-out-expo) 1s both;
}

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

/* ── Nav Logo pulse on load ──────────────────────────────── */
.nav-logo-text {
  animation: logoIn 0.8s var(--ease-out-expo) 0.1s both;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Stat number bounce ──────────────────────────────────── */
.stat-number {
  display: inline-block;
  transition: transform 0.3s ease;
}
.stat-item:hover .stat-number {
  transform: scale(1.05);
}

/* ── Hover lift on cards ─────────────────────────────────── */
.testimonial-card,
.gallery-card figure {
  transition-property: transform, box-shadow, border-color;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}
