/* ==========================================================================
   APNA DRIVE CAR RENTAL GOA — ANIMATIONS (CSS3)
   ========================================================================== */

/* Fade Transitions for Hero Slider */
.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Modal Pop In */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Floating Action Slide Up */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing Indicator Dots */
.dot-typing {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
  margin-right: 4px;
  animation: wave 1.2s infinite ease-in-out;
}

.dot-typing:nth-child(2) {
  animation-delay: 0.2s;
}

.dot-typing:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%, 60%, 100% {
    transform: initial;
  }
  30% {
    transform: translateY(-5px);
  }
}

/* Scroll Reveal Observer Classes */
.scroll-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-hidden.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle Pulse Effect for Floating CTAs */
@keyframes pulseSubtle {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.btn-whatsapp.pulse {
  animation: pulseSubtle 2.5s infinite;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-hidden {
    opacity: 1 !important;
    transform: none !important;
  }
}
