/* ==========================================================================
   WASHO - Premium Automotive Motion & Micro-Interactions
   Subtle water effects, car reveal, shine sweep, and bubbles.
   Respects reduced-motion preference.
   ========================================================================== */

/* Vehicle Entrance Reveal */
.car-reveal-anim {
  animation: carRevealEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes carRevealEntrance {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* Water Sweep Light Reflection Across Vehicle */
.vehicle-shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(223, 245, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(0, 194, 203, 0.3) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 4;
  animation: shineSweep 6s infinite 2s ease-in-out;
}

@keyframes shineSweep {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  30% {
    left: 200%;
    opacity: 0;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

/* Floating Badges Vertical Drift */
@keyframes floatVertical {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Soft Pulse for Highlighted Plan */
@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 0 12px 36px rgba(255, 107, 26, 0.16);
  }
  50% {
    box-shadow: 0 16px 42px rgba(255, 107, 26, 0.28);
  }
}

.plan-card.highlighted {
  animation: subtleGlow 4s infinite ease-in-out;
}

/* Subtle Shimmer for Skeleton / Loading */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Spinner Animation */
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Ripple effect on WhatsApp button */
.floating-whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.4;
  z-index: -1;
  animation: waPulse 2.5s infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Fade In Up Scroll Reveal - Fully visible by default */
.reveal-item {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .vehicle-shine-effect,
  .floating-badge,
  .floating-whatsapp::after {
    animation: none !important;
  }
}
