/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* General Animation Class */
.animated-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Blurred Navbar */
.blur-navbar {
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007BFF;
}

/* Hamburger Menu */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    color: #2c3e50;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #ddd;
    padding: 1rem 0;
  }

  #menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin: 0.5rem 0;
  }
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 60px; /* Avoid overlap with fixed navbar */
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-text {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.book-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #ff7e5f;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.book-btn:hover {
  background-color: #ff5722;
}

/* Alternating Content Sections */
.alternating-sections {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 6rem 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-section {
  display: flex;
  align-items: center;
  margin-bottom: 8rem;
  gap: 4rem;
  /* Removed opacity and transform here, will be handled by .animated-element and JS */
  /* Removed animation property here, will be handled by .animated-element and JS */
}

.content-section:nth-child(even) {
  flex-direction: row-reverse;
}

/* Remove @keyframes fadeInUp if not used elsewhere for specific elements */
/* @keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.content-text {
  flex: 1;
  padding: 2rem;
}

.content-text h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
}

.content-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  border-radius: 2px;
}

.content-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.feature-list li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 2rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

.learn-more-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.learn-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.content-image {
  flex: 1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.content-image:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease-in-out;
}

.content-image img {
  max-width: 100%;
  height: auto; /* Changed from 100% to auto to maintain aspect ratio */
  object-fit: contain; /* Changed from 'cover' to 'contain' to ensure full image visibility */
  display: block;
  border-radius: 12px;
}

.content-image:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.content-image:hover .image-overlay {
  opacity: 1;
}

/* Reviews Section */
.reviews-section {
  padding: 100px 0;
  background-color: #f9f9f9;
  text-align: center;
  overflow: hidden;
}

.reviews-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.reviews-header {
  margin-bottom: 60px;
}

.reviews-header h2 {
  font-size: 44px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.reviews-header p {
  font-size: 19px;
  color: #666;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.review-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
  /* Removed animation and opacity here, will be handled by .animated-element and JS */
}

.review-card:nth-child(1) { animation-delay: 0.2s; }
.review-card:nth-child(2) { animation-delay: 0.4s; }
.review-card:nth-child(3) { animation-delay: 0.6s; }

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.review-card:hover::before {
  transform: translateX(0);
}

.review-rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.star {
  font-size: 1.5rem;
  margin-right: 2px;
}

.star.empty {
  color: #ddd;
}

.review-text {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reviewer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reviewer-details h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
}

.reviewer-details p {
  font-size: 0.9rem;
  color: #777;
}

.review-summary {
  background-color: #e0f2f7; /* Light blue background for summary */
  padding: 25px 30px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.overall-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.rating-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-right: 15px;
}

.rating-stars .star {
  font-size: 1.8rem;
}

.rating-text {
  font-size: 1.1rem;
  color: #555;
}

/* Stats Section */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Gradient background */
  color: white;
  text-align: center;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  flex-basis: calc(25% - 40px); /* Four items per row with gap */
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  /* Removed animation and opacity here, will be handled by .animated-element and JS */
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

.stat-item:hover {
  transform: translateY(-10px) scale(1.03);
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-section {
    flex-direction: column !important;
    text-align: center;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .content-text h2 {
    font-size: 2rem;
  }

  .content-text h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .content-image img {
    height: 300px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .review-card {
    padding: 1.5rem;
  }

  .reviews-header h2 {
    font-size: 2.5rem;
  }

  .rating-number {
    font-size: 2.5rem;
  }

  .reviewer-info {
    flex-direction: column;
    text-align: center;
  }
}

/* Scroll Content Section */
.scroll-content {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.scroll-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.scroll-content p {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
  color: #333;
}

.feature-img {
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #fff;
}

/* About Us Section */
.about-us-section {
  padding: 100px 0;
  background-color: #fefefe;
  text-align: center;
  overflow: hidden;
}

.about-us-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 30px;
  flex-wrap: wrap;
}

.about-us-content {
  flex: 1;
  text-align: left;
  padding: 20px;
  /* Removed animation and opacity here, will be handled by .animated-element and JS */
}

.about-us-image {
  flex: 1;
  text-align: center;
  /* Removed animation and opacity here, will be handled by .animated-element and JS */
}

.about-us-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
}

.about-us-image img:hover {
  transform: scale(1.03);
}

.about-us-content h2 {
  font-size: 44px;
  color: #2c3e50;
  margin-bottom: 25px;
  position: relative;
  line-height: 1.2;
}

.about-us-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #ff7e5f, #feb47b);
  border-radius: 3px;
}

.about-us-content p {
  font-size: 19px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
}

.learn-more-btn {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.learn-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
  background-color: #f8f8f8;
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-header h2 {
  font-size: 44px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.gallery-header p {
  font-size: 19px;
  color: #666;
}

.gallery-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.gallery-row {
  display: flex;
  width: max-content; /* Ensure row takes full width of content */
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
  margin-bottom: 25px;
}

/* Make the middle row scroll in the opposite direction */
.gallery-row-2 {
  animation: scroll-right 40s linear infinite;
}

.gallery-row:last-child {
  margin-bottom: 0;
}

.gallery-row img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  margin-right: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.gallery-row img:hover {
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes slideInLeft {
  /* Removed from opacity and transform, only define the "to" state if still needed, or remove if animated-element handles it */
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  /* Removed from opacity and transform, only define the "to" state if still needed, or remove if animated-element handles it */
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  /* Removed from opacity, only define the "to" state if still needed, or remove if animated-element handles it */
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .about-us-container {
    flex-direction: column;
    gap: 30px;
  }

  .about-us-content,
  .about-us-image {
    animation: none; /* Disable animations on smaller screens */
    opacity: 1;
    transform: none;
  }

  .about-us-content h2 {
    font-size: 36px;
  }

  .about-us-content p {
    font-size: 16px;
  }

  .gallery-header h2 {
    font-size: 36px;
  }

  .gallery-header p {
    font-size: 16px;
  }

  .gallery-row img {
    width: 250px;
    height: 180px;
    margin-right: 15px;
  }

  .gallery-row {
    animation-duration: 30s;
  }
}