/* ==========================================================================
   Bengaluru TOWING SERVICES - ANIMATIONS & TRANSITIONS
   Polished, Hardware-Accelerated Micro-Interactions
   ========================================================================== */

/* Keyframe Animations */
@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(255, 98, 0, 0.7);
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(255, 98, 0, 0);
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(255, 98, 0, 0);
  }
}

@keyframes pulseEmergency {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
}

@keyframes pulseDockCall {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 98, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 98, 0, 0);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes shimmerLoading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Scroll Reveal Classes (Driven by IntersectionObserver in main.js) */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
}

.reveal-fade-in.is-revealed {
  opacity: 1;
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-fade-left {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Reduced Motion Preference for Accessibility */
@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;
  }
  .reveal-fade-up, .reveal-fade-in, .reveal-fade-right, .reveal-fade-left {
    opacity: 1 !important;
    transform: none !important;
  }
}
