/* HEADER BASE */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding-top: 2vh;
  z-index: 998;
  background: transparent;
  transition: background 0.3s ease;
}

header.scrolled {
  background-color: #ffffff;
}

.logo img {
  left: 15vw;
  z-index: 999;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  cursor: pointer;
}

header.scrolled .logo img {
  filter: none;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

header.scrolled .nav a {
  color: #007173;
}

.language-dropdown select {
  background-color: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 20px;
  font-size: 0.9rem;
}

header.scrolled .language-dropdown select{
  color: #005a56;
}
header.scrolled .language-dropdown select {
  color: #005a56;
}

.language-dropdown select option {
  background-color: #ffffff; 
  color: #005a56;          
}

.language-dropdown select option:checked,
.language-dropdown select option:hover {
  background-color: #e9ecef;
  color: #005a56;
}
.nav li {
  position: relative;
  padding: 0 0.75rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #007173;
}

/* Desktop: Hide wrapper div styling and dropdown toggles */
.nav-item-wrapper {
  display: contents;
}

.dropdown-toggle {
  display: none;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100%);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 2rem 3rem;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  min-width: 500px;
  z-index: 9;
}

.nav li:hover > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dropdown li {
  background: white;
  border-radius: 25px;
  padding: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.dropdown li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dropdown a {
  color: #007173;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  display: block;
  transition: all 0.3s ease;
  border-radius: 25px;
}

.dropdown a:hover {
  color: #00a19b;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* DISABLED ITEMS */
.dropdown-item.disabled {
    color: #888;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* HAMBURGER BUTTON */
.hamburger {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 30px;
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  background: #007173;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Transform to cross */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -10px);
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 999;
    backdrop-filter: blur(12px);
    background-color: #ccc;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

  .nav.show {
    transform: translateX(0);
  }

  .nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav li {
    width: 100%;
    padding: 0;
  }

  /* Reset desktop styling for mobile */
  .nav .has-dropdown {
    background: none;
    border-radius: 0;
    padding: 0;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .nav .has-dropdown:hover {
    background: none;
    transform: none;
    box-shadow: none;
  }

  .nav a {
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
  }

  /* Mobile: Show wrapper as flex container */
  .nav-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Mobile dropdown toggle button */
  .dropdown-toggle {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    min-width: 30px;
    text-align: center;
  }

  .dropdown-toggle:hover {
    color: #00a19b;
  }

  /* Mobile dropdown styling */
  .dropdown {
    position: static;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-top: 0.5rem;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    min-width: auto;
    background: rgba(255,255,255,0.05);
    border-left: 2px solid #00a19b;
    transition: max-height 0.3s ease;
  }

  .dropdown.show {
    max-height: 500px;
    padding: 1rem 0 1rem 1rem;
  }

  .dropdown ul {
    gap: 0.5rem;
  }

  .dropdown a {
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
  }

  .dropdown a:hover {
    color: #00a19b;
  }

  /* Disable desktop hover on mobile */
  .nav li:hover > .dropdown {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
  }
}
