/* ============================================================
   ANIMATIONS — Triple C's Mobile Auto Detail
   ============================================================ */

/* ── Scroll Reveal Base States ── */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.75s var(--ease-out-expo);
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* ── Triggered States ── */
.reveal-fade.is-visible {
  opacity: 1;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Stagger delay for grid children ── */
.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 80ms; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 160ms; }
.testimonials-grid .testimonial-card:nth-child(4) { transition-delay: 240ms; }

/* ── Scroll Line Pulse ── */
@keyframes scrollPulse {
  0%   { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ── Tab Fade In ── */
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Particle Float ── */
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0.5; }
  33%  { transform: translateY(-18px) translateX(10px); opacity: 0.8; }
  66%  { transform: translateY(-8px) translateX(-10px); opacity: 0.4; }
  100% { transform: translateY(0) translateX(0); opacity: 0.5; }
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  animation: particleFloat linear infinite;
}

/* ── Glow Pulse on Accent Elements ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-accent-btn); }
  50%       { box-shadow: var(--glow-accent); }
}

/* ── Hero Title Stagger ── */
.hero-title-line1 {
  animation: slideUp 0.9s var(--ease-out-expo) both;
  animation-delay: 0.2s;
}

.hero-title-line2 {
  animation: slideUp 0.9s var(--ease-out-expo) both;
  animation-delay: 0.38s;
}

.hero-eyebrow {
  animation: slideUp 0.7s var(--ease-out-expo) both;
  animation-delay: 0.05s;
}

.hero-sub {
  animation: slideUp 0.8s var(--ease-out-expo) both;
  animation-delay: 0.5s;
}

.hero-ctas {
  animation: slideUp 0.8s var(--ease-out-expo) both;
  animation-delay: 0.65s;
}

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

/* ── Gallery track transition ── */
.gallery-track {
  will-change: transform;
}
