﻿/* =========================================================
   ANIMATIONS.CSS — Premium Global Animation Library
   The Jungle Mist Retreats
   ========================================================= */

/* ---- Custom Keyframes ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3)); }
  50% { filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.8)); }
}
@keyframes hero-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes text-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}
@keyframes border-dance {
  0% { border-color: rgba(212,175,55,0.2); }
  50% { border-color: rgba(212,175,55,0.8); }
  100% { border-color: rgba(212,175,55,0.2); }
}
@keyframes count-up {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

/* ---- Utility Classes ---- */
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }
.animate-float-delay { animation: float 4s ease-in-out 1s infinite; }
.animate-pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-bounce-gentle { animation: bounce-gentle 2s ease-in-out infinite; }
.animate-glow { animation: glow-pulse 2.5s ease-in-out infinite; }
.animate-fade-up { animation: fade-in-up 0.8s ease forwards; }
.animate-scale-in { animation: scale-in 0.6s ease forwards; }

/* ---- Shimmer Text Effect ---- */
.shimmer-text {
  background: linear-gradient(
    90deg,
    #D4AF37 0%,
    #FFD700 25%,
    #FFF8DC 50%,
    #FFD700 75%,
    #D4AF37 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* ---- Animated Gradient Background ---- */
.bg-animated-gradient {
  background: linear-gradient(-45deg, #000B16, #061017, #071826, #0a1f35);
  background-size: 400% 400%;
  animation: gradient-x 12s ease infinite;
}

/* ---- Gold Border Animation ---- */
.border-animate {
  animation: border-dance 3s ease-in-out infinite;
}

/* ---- Premium Card Hover ---- */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 30px rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.4) !important;
}

/* ---- Glass Morphism Enhanced ---- */
.glass-premium {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}
.glass-premium:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

/* ---- Gold Glow Button ---- */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 10px 30px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* ---- Section Reveal Line ---- */
.section-line {
  position: relative;
  padding-bottom: 1rem;
}
.section-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #FFD700);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.section-line:hover::after { width: 120px; }
.section-line-center::after { left: 50%; transform: translateX(-50%); }

/* ---- Counter Number Animation ---- */
.counter-num {
  animation: count-up 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ---- Staggered Children ---- */
.stagger-children > * { opacity: 0; animation: fade-in-up 0.6s ease forwards; }
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ---- Parallax Orbs ---- */
.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
  animation: float-slow 8s ease-in-out infinite;
}
.orb-gold { background: radial-gradient(circle, #D4AF37, transparent); }
.orb-green { background: radial-gradient(circle, #2d5a27, transparent); }
.orb-blue { background: radial-gradient(circle, #0a3d62, transparent); }

/* ---- Stat Card ---- */
.stat-card {
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.stat-card:hover::before { opacity: 1; }
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #D4AF37, #FFD700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}

/* ---- Image Hover Zoom ---- */
.img-zoom-wrap { overflow: hidden; border-radius: inherit; }
.img-zoom-wrap img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom-wrap:hover img { transform: scale(1.08); }

/* ---- Gradient Divider ---- */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, #D4AF37 30%, #FFD700 50%, #D4AF37 70%, transparent);
  margin: 0 auto;
  opacity: 0.4;
}

/* ---- Premium Badge ---- */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.3);
  color: #D4AF37;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse-gold 3s ease-in-out infinite;
}

/* ---- Hero Particle Background ---- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  pointer-events: none;
}
.particle:nth-child(1) { left: 10%; animation: particle-float 8s 0s infinite linear; }
.particle:nth-child(2) { left: 25%; animation: particle-float 10s 2s infinite linear; width: 2px; height: 2px; }
.particle:nth-child(3) { left: 40%; animation: particle-float 7s 1s infinite linear; }
.particle:nth-child(4) { left: 60%; animation: particle-float 9s 3s infinite linear; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 75%; animation: particle-float 11s 0.5s infinite linear; }
.particle:nth-child(6) { left: 90%; animation: particle-float 8s 2s infinite linear; width: 2px; height: 2px; }

/* ---- Ribbon CTA ---- */
.ribbon-cta {
  background: linear-gradient(135deg, #D4AF37 0%, #B8942A 50%, #D4AF37 100%);
  background-size: 200% 200%;
  animation: gradient-x 4s ease infinite;
  position: relative;
  overflow: hidden;
}
.ribbon-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

/* ---- AOS Customizations ---- */
[data-aos] { will-change: transform, opacity; }

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce-gentle 2s ease-in-out infinite;
  z-index: 10;
}
.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #D4AF37, transparent);
}

/* ---- Typewriter Effect ---- */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: text-reveal 1.5s steps(40) forwards;
}

/* ---- Timeline ---- */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #D4AF37;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 20px;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom, #D4AF37, transparent);
}
.timeline-item:last-child::after { display: none; }

/* ---- Premium Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000B16; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #D4AF37, #B8942A);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: #FFD700; }

/* ---- Responsive Utilities ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

