/* Animations CSS */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

@keyframes leaf-float {
  0% {
    transform: rotate(0deg) translateY(0px);
  }
  33% {
    transform: rotate(2deg) translateY(-5px);
  }
  66% {
    transform: rotate(-2deg) translateY(5px);
  }
  100% {
    transform: rotate(0deg) translateY(0px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(191, 167, 111, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(191, 167, 111, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(191, 167, 111, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Apply animations */
.hero-card {
  animation: fadeIn 1.5s ease-out;
}

.btn-reserve, .btn-discover, .btn-attend, .btn-submit {
  overflow: hidden;
  position: relative;
}

.btn-reserve::after, .btn-discover::after, .btn-attend::after, .btn-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
  z-index: 1;
  pointer-events: none;
}

.feature-icon, .amenity-icon, .casino-feature .feature-icon, .event-icon {
  animation: float 4s ease-in-out infinite;
}

.villa-card:hover .btn-reserve {
  animation: pulse 2s infinite;
}

/* Section animations for scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Leaf animations */
.leaf {
  position: absolute;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 5;
  opacity: 0.7;
}

.leaf-1 {
  background-image: url('https://assets.codepen.io/7313258/leaf1.png');
  animation: leaf-float 15s ease-in-out infinite;
}

.leaf-2 {
  background-image: url('https://assets.codepen.io/7313258/leaf2.png');
  animation: leaf-float 18s ease-in-out infinite;
}

.leaf-3 {
  background-image: url('https://assets.codepen.io/7313258/leaf3.png');
  animation: leaf-float 12s ease-in-out infinite;
}