/* Animation Styles */

/* Text animations */
.animate-text {
  animation: fadeInUp 1s ease-out;
}

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

/* Button hover animations */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* Service Card Hover Effects */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Hotel Card Hover Effects */
.hotel-card {
  position: relative;
  overflow: hidden;
}

.hotel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(139, 0, 0, 0), rgba(139, 0, 0, 0.1));
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.hotel-card:hover::before {
  opacity: 1;
}

/* Scroll Animation */
.section-header, .about-text, .service-card, .hotel-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.visible, .about-text.visible, .service-card.visible, .hotel-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo Animation */
.logo-text {
  position: relative;
  display: inline-block;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.logo:hover .logo-text::after {
  width: 100%;
}

/* Image Hover Animation */
.about-img-1, .about-img-2, .service-image img, .hotel-featured-image img {
  transition: transform 0.5s ease;
}

.about-images:hover .about-img-1 {
  transform: scale(1.05) translateY(-5px);
}

.about-images:hover .about-img-2 {
  transform: scale(1.05) translateY(5px);
}

.service-detailed:hover .service-image img, 
.hotel-featured:hover .hotel-featured-image img {
  transform: scale(1.05);
}

/* Team Member Hover Animation */
.team-member img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.team-member:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Form Animation */
.form-group input, .form-group select, .form-group textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
  outline: none;
}

/* Button Click Animation */
.btn:active {
  transform: scale(0.97);
}

/* Page Transition */
.page-transition {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header Scroll Animation */
.header.scrolled {
  background-color: rgba(26, 26, 26, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.7rem 0;
}

/* Staggered Animation for Cards */
.services-grid .service-card:nth-child(1),
.hotels-grid .hotel-card:nth-child(1),
.team-grid .team-member:nth-child(1),
.location-grid .location-card:nth-child(1) {
  transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2),
.hotels-grid .hotel-card:nth-child(2),
.team-grid .team-member:nth-child(2),
.location-grid .location-card:nth-child(2) {
  transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3),
.hotels-grid .hotel-card:nth-child(3),
.team-grid .team-member:nth-child(3),
.location-grid .location-card:nth-child(3) {
  transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(4),
.hotels-grid .hotel-card:nth-child(4),
.team-grid .team-member:nth-child(4),
.location-grid .location-card:nth-child(4) {
  transition-delay: 0.4s;
}

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

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