/* Standard Header and Navigation Styles */
header {
  background: linear-gradient(90deg, #254653, #008080);
  position: relative;
  padding: 15px 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Add subtle pattern overlay */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
}

/* Ensure nav and header-features are properly aligned */
nav {
  flex: 1;
  margin: 0 20px;
}

.header-features {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.logo {
  flex-shrink: 0;
  padding: 5px 0;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: scaleX(0.7);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.logo:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.logo img {
  width: 120px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  z-index: 1001;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.menu-toggle:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 30px;
  justify-content: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.5px;
}

nav ul li a:hover {
  color: #f0a500;
}

/* Add subtle underline animation on hover */
nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f0a500;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 2px;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Add subtle glow effect on hover */
nav ul li a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 8px;
  bottom: -4px;
  left: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(240, 165, 0, 0.3) 0%,
    rgba(240, 165, 0, 0) 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

nav ul li a:hover::before {
  opacity: 1;
}

/* Responsive media queries for header */
@media (max-width: 992px) {
  .logo img {
    width: 110px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 20px;
    overflow: visible; /* Allow the dropdown to be visible */
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    align-items: center;
    overflow: visible;
  }

  .logo {
    padding: 5px 0;
  }

  .menu-toggle {
    display: block;
    order: 3;
    margin-right: 0;
  }

  nav {
    flex-basis: 100%;
    order: 4;
    margin: 15px 0 5px;
    display: none;
    width: 100%;
    clear: both;
  }

  nav.active {
    display: block;
    position: relative;
    z-index: 999;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  nav ul.active {
    display: flex;
    animation: fadeInDown 0.3s ease forwards;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav ul li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    width: 100%;
    display: block;
    padding: 14px 0;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
  }

  nav ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #f0a500;
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }

  nav ul li a:hover::before {
    transform: scaleY(1);
  }

  nav ul li a::after {
    display: none; /* Remove desktop underline animation on mobile */
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 15px;
    margin-bottom: 15px;
  }

  .logo img {
    width: 100px;
  }

  .menu-toggle {
    padding: 8px 10px;
    font-size: 14px;
  }

  .mobile-controls {
    gap: 8px;
  }
}

/* New mobile-controls container style */
.mobile-controls {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .mobile-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    position: relative;
    z-index: 1001;
  }
}

/* Hero section spacing */
.hero {
  margin-top: -20px; /* Counteract the header margin-bottom to prevent double spacing */
}

/* Reviews section styling */
.reviews-section {
  padding: 60px 0;
}
