/* =========================================================
   TIME TO TRAVEL MUNNAR – Custom Animations
   ========================================================= */

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

@keyframes megaDropIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (min-width: 992px) {
  .mega-item.is-open > .mega-panel {
    animation: megaDropIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .mega-has-flyout:hover > .mega-flyout,
  .mega-has-flyout.is-open > .mega-flyout {
    animation: megaFlyIn 0.16s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

.float-whatsapp {
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.float-call {
  animation: floatY 3s ease-in-out infinite;
}

/* Card lift already in style.css; enhance focus */
.pkg-card,
.hotel-card,
.vehicle-card,
.activity-card,
.dest-card {
  will-change: transform;
}

/* Button shine */
.btn-brand,
.btn-yellow {
  position: relative;
  overflow: hidden;
}

.btn-brand::before,
.btn-yellow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.55s ease;
}

.btn-brand:hover::before,
.btn-yellow:hover::before {
  left: 120%;
}

/* Section reveal helper when AOS unavailable */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .float-whatsapp,
  .float-call {
    animation: none;
  }

  .pkg-card:hover .pkg-card-img img,
  .hotel-card:hover .hotel-card-img img,
  .vehicle-card:hover .vehicle-card-img img,
  .activity-card:hover .activity-card-img img,
  .dest-card:hover .dest-card-img img,
  .gallery-item:hover img {
    transform: none;
  }

  .swiper-slide-active .hero-content h1,
  .swiper-slide-active .hero-content p,
  .swiper-slide-active .hero-content .hero-cta,
  .hero-content--split h1,
  .hero-content--split p,
  .hero-content--split .hero-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-coverflow .swiper-slide,
  .hero-dest-card-media img {
    transition: none;
  }
}
