/* ==========================================================================
   ABY LUXURY CARS — Animations
   ========================================================================== */

/* ---------- Scroll reveal (JS toggles .in-view) ---------- */
.reveal-up{
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-up.in-view{ opacity: 1; transform: translateY(0); }

.reveal-left{
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-left.in-view{ opacity: 1; transform: translateX(0); }

/* stagger children within grids via inline delay set by JS using --d */
.reveal-up, .reveal-left{ transition-delay: var(--d, 0ms); }

/* ---------- Keyframes ---------- */
@keyframes pulse-dot{
  0%   { box-shadow: 0 0 0 0 rgba(91,224,138,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(91,224,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,224,138,0); }
}

@keyframes scroll-cue{
  0%   { opacity: 1; transform: translate(-50%, 0); }
  70%  { opacity: 0; transform: translate(-50%, 16px); }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

@keyframes trust-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@keyframes float-bob{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

@keyframes fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.hero-copy, .hero-fleet{ animation: fade-in 1.2s var(--ease-out) both; }
.hero-car-back{ animation: fade-in 1.4s var(--ease-out) .15s both; }
.hero-car-mid{ animation: fade-in 1.4s var(--ease-out) .3s both; }
.hero-car-front{ animation: fade-in 1.4s var(--ease-out) .45s both; }
.hero-badge-1{ animation: fade-in 1s var(--ease-out) .8s both; }
.hero-badge-2{ animation: fade-in 1s var(--ease-out) 1s both; }

/* ---------- Hover micro-interactions already declared inline in style.css ---------- */

@media (prefers-reduced-motion: reduce){
  .reveal-up, .reveal-left{ opacity: 1 !important; transform: none !important; }
  .trust-track{ animation: none !important; }
  .whatsapp-float a{ animation: none !important; }
}
