/* ==========================================================================
   TRAVEL CEYLON NOW - Cinematic Scroll Animations & Micro-Interactions
   ========================================================================== */

/* 1. Scroll Progress Bar (GPU Composite Transform Only) */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--premium-gold) 0%, #ffd700 50%, #f7c948 100%);
  box-shadow: 0 0 10px rgba(245, 188, 24, 0.7);
  z-index: 10001;
  pointer-events: none;
  will-change: transform;
}

/* 2. Scroll Reveal Core Engine (High-Performance Transitions) */
/* Immediate Headline & Content Title Visibility (Zero Pop-in, Zero Delay) */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-label,
.section-subtitle,
.hero-headline,
.hero-subheading,
.page-hero-title,
.page-hero-subtitle {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.reveal-on-scroll {
  opacity: 0;
  transition: opacity 0.3s ease-out,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reveal Directional Variants (Subtle, Crisp Offsets) */
.reveal-up {
  transform: translate3d(0, 18px, 0);
}

.reveal-down {
  transform: translate3d(0, -18px, 0);
}

.reveal-left {
  transform: translate3d(-20px, 0, 0);
}

.reveal-right {
  transform: translate3d(20px, 0, 0);
}

.reveal-scale {
  transform: scale(0.96) translate3d(0, 12px, 0);
}

.reveal-zoom-in {
  transform: scale(0.94);
}

/* Revealed State */
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger Delays (Reduced for instant responsiveness) */
.delay-100 { transition-delay: 50ms; }
.delay-150 { transition-delay: 80ms; }
.delay-200 { transition-delay: 100ms; }
.delay-250 { transition-delay: 130ms; }
.delay-300 { transition-delay: 160ms; }
.delay-350 { transition-delay: 200ms; }
.delay-400 { transition-delay: 240ms; }
.delay-500 { transition-delay: 300ms; }

/* 3. Gold Accent Line Expansion */
.gold-reveal-line {
  display: block;
  width: 0;
  height: 3px;
  background: var(--premium-gold);
  margin: 0.85rem auto 1.5rem;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.text-left .gold-reveal-line,
.about-text-content .gold-reveal-line {
  margin-left: 0;
}

.is-revealed .gold-reveal-line,
.is-revealed.gold-reveal-line,
.gold-reveal-line.active {
  width: 65px;
}

/* 4. Hero Background Elements */
.hero-bg-image,
.hero-bg-video {
  transform-origin: center center;
}

.hero-content {
}

/* 5. Floating Badge Animation */
@keyframes floatingBadgeAnim {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.about-experience-badge {
  animation: floatingBadgeAnim 4s ease-in-out infinite;
}

/* 6. Card Hover Elevations & 3D Depth */
.tour-card,
.destination-card,
.experience-card,
.why-us-card,
.blog-card,
.review-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(3, 43, 35, 0.15);
}

.tour-card .tour-card-image img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-card:hover .tour-card-image img {
  transform: scale(1.08);
}

.destination-card {
  overflow: hidden;
}

.destination-card .destination-card-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card:hover .destination-card-img {
  transform: scale(1.12);
}

.destination-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.experience-card .experience-card-img img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-card:hover .experience-card-img img {
  transform: scale(1.08);
}

.experience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(3, 43, 35, 0.14);
}

.why-us-card:hover {
  transform: translateY(-6px);
  border-color: var(--premium-gold);
  box-shadow: 0 16px 32px rgba(3, 43, 35, 0.08);
}

.why-us-card .why-us-number {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.why-us-card:hover .why-us-number {
  transform: scale(1.1);
  color: var(--premium-gold);
}

.blog-card .blog-card-image img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(3, 43, 35, 0.12);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(3, 43, 35, 0.09);
  border-color: rgba(245, 188, 24, 0.3);
}

/* 7. WhatsApp Pulsing Animation */
@keyframes waPulse {
  0% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8), 0 0 0 12px rgba(37, 211, 102, 0.16); }
  100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
}

.floating-whatsapp {
  animation: waPulse 3s infinite ease-in-out;
}

/* 8. Custom Travel Banner Shimmer */
.custom-travel-banner {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.custom-travel-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(6, 63, 50, 0.12);
}

/* 9. Accessibility Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .gold-reveal-line {
    width: 65px !important;
    transition: none !important;
  }
  .floating-whatsapp {
    animation: none !important;
  }
  .about-experience-badge {
    animation: none !important;
  }
  .hero-bg-image {
    animation: none !important;
  }
}

/* 10. Mobile Touch Fast-Render Engine (Zero pop-in delay on phones & tablets) */
@media (max-width: 768px) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
