/* ============================================================
   ROOT94 TOURS & TRAVELS — ANIMATIONS STYLESHEET
   Custom Keyframes | AOS Enhancements | Micro-interactions
   ============================================================ */

/* ---------- 1. FADE ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.anim-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.anim-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

.anim-fade-down {
  animation: fadeInDown 0.8s ease forwards;
}

.anim-fade-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.anim-fade-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* ---------- 2. ZOOM / SCALE ANIMATIONS ---------- */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 123, 0, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255, 123, 0, 0); }
}

.anim-zoom-in {
  animation: zoomIn 0.7s ease forwards;
}

.anim-pulse {
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.anim-pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* ---------- 3. FLOATING ANIMATIONS ---------- */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes floatSideways {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(12px); }
}

.anim-float {
  animation: floatUpDown 4s ease-in-out infinite;
}

.anim-float-slow {
  animation: floatUpDown 6s ease-in-out infinite;
}

.anim-float-side {
  animation: floatSideways 5s ease-in-out infinite;
}

/* ---------- 4. ROTATE ANIMATIONS ---------- */
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.anim-rotate-slow {
  animation: rotateSlow 12s linear infinite;
}

.anim-wiggle:hover {
  animation: wiggle 0.4s ease-in-out;
}

/* ---------- 5. ROAD / TRAVEL THEMED ANIMATIONS ---------- */
@keyframes driveAcross {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.anim-drive {
  animation: driveAcross 6s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -100;
  }
}

.anim-dash-line {
  stroke-dasharray: 10, 10;
  animation: dashMove 2s linear infinite;
}

@keyframes planeFly {
  0% {
    transform: translate(-10px, 10px) rotate(0deg);
  }
  50% {
    transform: translate(10px, -10px) rotate(8deg);
  }
  100% {
    transform: translate(-10px, 10px) rotate(0deg);
  }
}

.anim-plane {
  animation: planeFly 3.5s ease-in-out infinite;
  display: inline-block;
}

/* ---------- 6. BUTTON & HOVER MICRO-INTERACTIONS ---------- */
.btn-root94-primary,
.btn-root94-outline,
.btn-root94-blue,
.btn-nav-book {
  position: relative;
  overflow: hidden;
}

.btn-root94-primary::before,
.btn-root94-blue::before,
.btn-nav-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
}

.btn-root94-primary:hover::before,
.btn-root94-blue:hover::before,
.btn-nav-book:hover::before {
  left: 100%;
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-6px);
}

.hover-grow {
  transition: transform 0.4s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

.hover-shadow-pop:hover {
  box-shadow: var(--shadow-lg);
}

/* Icon hover spin */
.icon-spin-hover {
  transition: transform 0.6s ease;
}

.icon-spin-hover:hover {
  transform: rotate(360deg);
}

/* ---------- 7. CARD ENTRANCE STAGGER (used with AOS data-aos-delay) ---------- */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ---------- 8. SHIMMER / SKELETON LOADING EFFECT ---------- */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.shimmer-effect {
  background: linear-gradient(90deg, var(--off-white) 25%, var(--light-gray) 50%, var(--off-white) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
}

/* ---------- 9. TYPING EFFECT (Hero Subtext) ---------- */
.typing-cursor::after {
  content: '|';
  display: inline-block;
  animation: blinkCursor 0.8s steps(1) infinite;
  color: var(--accent-orange);
  font-weight: 700;
}

@keyframes blinkCursor {
  50% { opacity: 0; }
}

/* ---------- 10. SCROLL REVEAL HELPER CLASSES (fallback when AOS not loaded) ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- 11. NAVBAR SCROLL TRANSITION ---------- */
.navbar {
  animation: fadeInDown 0.6s ease;
}

/* ---------- 12. HERO SLIDER TRANSITIONS ---------- */
.hero-slide {
  animation: none;
}

.hero-slide.active .hero-content h1 {
  animation: fadeInUp 1s ease forwards;
}

.hero-slide.active .hero-content p.hero-subtitle {
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-slide.active .hero-content .hero-btn-group {
  animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-slide.active .hero-badge {
  animation: fadeInDown 1s ease forwards;
}

/* ---------- 13. MODAL ANIMATIONS ---------- */
@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal.show .modal-dialog {
  animation: modalPopIn 0.4s ease forwards;
}

/* ---------- 14. CHECKMARK DRAW ANIMATION (Booking Success) ---------- */
@keyframes checkmarkDraw {
  0% {
    stroke-dashoffset: 50;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.success-icon-circle i {
  animation: zoomIn 0.5s ease 0.1s forwards;
}

/* ---------- 15. WHATSAPP FLOAT BOUNCE ON LOAD ---------- */
@keyframes bounceInFloat {
  0% {
    transform: translateY(100px) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.floating-buttons .float-btn {
  animation: bounceInFloat 0.8s ease forwards;
}

.floating-buttons .float-call {
  animation-delay: 0.15s;
}

/* ---------- 16. GRADIENT TEXT ANIMATION ---------- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text-animated {
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange), var(--primary-blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite;
}
/* ---------- 18. REDUCED MOTION SUPPORT ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
