/* Animations */

/* Mist Animation */
.mist-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  z-index: 1;
  animation: mistMove 20s infinite alternate ease-in-out;
}

@keyframes mistMove {
  0% {
    opacity: 0.6;
    background-position: 0% 0%;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.8;
    background-position: 100% 100%;
  }
}

/* Butterfly Animation */
.hero::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: transparent;
  z-index: 3;
  top: 30%;
  left: 10%;
  box-shadow: 
    0 0 0 2px rgba(209, 168, 73, 0.8),
    0 0 4px 0 rgba(209, 168, 73, 0.8);
  border-radius: 50%;
  animation: butterfly 30s infinite ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: transparent;
  z-index: 3;
  top: 40%;
  left: 60%;
  box-shadow: 
    0 0 0 2px rgba(209, 168, 73, 0.6),
    0 0 4px 0 rgba(209, 168, 73, 0.6);
  border-radius: 50%;
  animation: butterfly2 25s infinite ease-in-out;
}

@keyframes butterfly {
  0% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(100px, -50px);
  }
  20% {
    transform: translate(200px, 100px);
  }
  30% {
    transform: translate(300px, 0px);
  }
  40% {
    transform: translate(400px, -100px);
  }
  50% {
    transform: translate(500px, 50px);
  }
  60% {
    transform: translate(400px, 150px);
  }
  70% {
    transform: translate(300px, 50px);
  }
  80% {
    transform: translate(200px, -50px);
  }
  90% {
    transform: translate(100px, 50px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes butterfly2 {
  0% {
    transform: translate(0, 0);
  }
  15% {
    transform: translate(-100px, 80px);
  }
  30% {
    transform: translate(-200px, -50px);
  }
  45% {
    transform: translate(-300px, 100px);
  }
  60% {
    transform: translate(-200px, 50px);
  }
  75% {
    transform: translate(-100px, -80px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Pulsing CTA Button */
.cta-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 168, 73, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(209, 168, 73, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(209, 168, 73, 0);
  }
}

/* Sound Toggle Animation */
.sound-toggle {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(42, 93, 61, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.sound-toggle:hover {
  transform: scale(1.1);
  background-color: var(--jungle-green);
}

.leaf-icon {
  width: 25px;
  height: 25px;
  position: relative;
}

.leaf-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--tribal-gold);
  clip-path: path('M12.5,0 C12.5,0 25,12.5 12.5,25 C0,12.5 12.5,0 12.5,0 Z');
  animation: leafPulse 2s infinite alternate;
}

@keyframes leafPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Fade In Animation for Scrolling */
.about-section, 
.services-section, 
.accommodations-section, 
.gallery-section, 
.membership-section {
  animation: fadeIn 1s ease-out;
}

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

/* Subtle Floating Animation for Cards */
.service-card, 
.accommodation-card, 
.gallery-item, 
.testimonial {
  animation: float 5s infinite ease-in-out;
}

.service-card:nth-child(2), 
.accommodation-card:nth-child(2), 
.gallery-item:nth-child(2), 
.testimonial:nth-child(2) {
  animation-delay: 0.5s;
}

.service-card:nth-child(3), 
.accommodation-card:nth-child(3), 
.gallery-item:nth-child(3) {
  animation-delay: 1s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Header Scroll Animation */
.main-header {
  transition: background-color 0.5s ease, padding 0.3s ease;
}

.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}