/* Navigation and Language Toggle Styles */

#nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.main-nav {
  background-color: #2e3d30;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-logo-link {
  margin-right: auto;
  display: flex;
  align-items: center;
  padding: 0;
}

.nav-logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-buttons{
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 4rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 20px;
  z-index: 1001;
  outline: none;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: #f6f0e1;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-link {
  color: #f6f0e1;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
  background-color: #4b624f;
  color: #f6f0e1;
}

.nav-link.active {
  background-color: #4b624f;
  color: #f6f0e1;
  font-weight: 700;
}

.language-toggle {
  font-size: 1rem;
}

.lang-toggle-label {
  font-weight: 700;
  cursor: pointer;
  color: #f6f0e1;
  transition: color 0.3s;
}

.lang-toggle-label:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .main-nav {
    gap: 1rem;
    padding: 0.75rem 1rem;
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-buttons {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2e3d30;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-buttons.active {
    display: flex;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #4b624f;
    width: 100%;
  }
  
  .nav-link:last-of-type {
    border-bottom: none;
  }
  
  .language-toggle {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4b624f;
    text-align: center;
    width: 100%;
  }
  
  .lang-toggle-label {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
  }
}
