/* Animations */
/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Fade In Down */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide In Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In Left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reveal Elements on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section-specific animations */
.hero-content h1 {
  animation: fadeInDown 1s ease-out;
}

.hero-content p {
  animation: fadeInUp 1s ease-out 0.3s;
  animation-fill-mode: both;
}

.hero-content .btn-primary {
  animation: fadeIn 1s ease-out 0.6s;
  animation-fill-mode: both;
}

.section-header {
  animation: fadeInDown 0.8s ease-out;
}

/* Animation delays for grid items */
.hotels-grid .hotel-card:nth-child(1),
.amenities-grid .amenity-card:nth-child(1) {
  transition-delay: 0.1s;
}

.hotels-grid .hotel-card:nth-child(2),
.amenities-grid .amenity-card:nth-child(2) {
  transition-delay: 0.2s;
}

.hotels-grid .hotel-card:nth-child(3),
.amenities-grid .amenity-card:nth-child(3) {
  transition-delay: 0.3s;
}

.amenities-grid .amenity-card:nth-child(4) {
  transition-delay: 0.4s;
}

.amenities-grid .amenity-card:nth-child(5) {
  transition-delay: 0.5s;
}

.amenities-grid .amenity-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Hover animations */
.hotel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.hotel-image img {
  transition: transform var(--transition-normal);
}

.hotel-card:hover .hotel-image img {
  transform: scale(1.05);
}

.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.amenity-icon {
  transition: transform var(--transition-normal);
}

.amenity-card:hover .amenity-icon {
  transform: scale(1.1);
}

.social-icon {
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Button animations */
.btn-primary, 
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
  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, height 0.6s;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  width: 300%;
  height: 300%;
}

/* Nav link animations */
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Cookie consent animation */
.cookie-consent {
  animation: slideInUp 0.5s ease-out;
}

/* Review card animations */
.review-card {
  animation: fadeIn 0.5s ease-out;
}