.header {
  position: relative;
  top: 2rem;
  width: 75vw;
  max-width: 900px;
  z-index: 1000;
  padding: 1.2rem 2rem;
  background: rgba(136, 136, 136, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 60px;
  border: 1.5px solid rgba(245, 245, 245, 0.18);
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18), 0 1.5px 4px 0 rgba(0,0,0,0.10);
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header-content.centered {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.header-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.desktop-nav {
  display: flex;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.desktop-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--accent-color);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  margin-top: 0.5rem;
  cursor: pointer;
  z-index: 1100;
}

.mobile-nav {
  display: none;
}

.nav-container {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.logo a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: var(--accent-color);
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--hover-color);
}

.language-toggle {
  display: flex;
  align-items: center;
}

.language-toggle-mobile-container {
  display: block;
  z-index: 1001;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    top: 1rem;
    width: 100vw;
    max-width: 100vw;
    padding: 0.8rem 0;
    border-radius: 20px;
    justify-content: space-between;
    margin: 0 auto 1rem auto;
    box-sizing: border-box;
  }
  .header-content {
    width: 100vw;
    max-width: 100vw;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
  .nav-container {
    gap: 1.5rem;
    margin: 0;
  }
  .header-controls {
    gap: 0.5rem;
  }
  .language-toggle-mobile-container {
    position: static;
    display: block;
    margin-left: auto;
    right: auto;
  }
  .language-toggle-mobile-container .language-toggle {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
    color: var(--text-color);
    font-size: 0.9rem;
  }
  .language-toggle-mobile-container .language-toggle:hover {
    background: none;
    box-shadow: none;
    transform: none;
  }
  .menu-btn {
    display: block !important;
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    z-index: 1200;
    cursor: pointer;
  }
  .nav-container {
    background: rgba(32, 32, 35, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 0 32px 4px #0e1012, 2px 0 16px rgba(0,0,0,0.18);
    border-radius: 0 24px 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw;
    max-width: 340px;
    height: 100vh;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: 5rem 2rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
  }
  .nav-container.open {
    transform: translateX(0);
  }
  .nav-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent !important;
    color: #fff;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    z-index: 1202;
    opacity: 0.7;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
  .nav-close-btn:hover,
  .nav-close-btn:focus,
  .nav-close-btn:active {
    background: transparent !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
  }
  .nav-link {
    font-size: 1.3rem;
    padding: 0.7rem 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .header-controls {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 1202;
  }
}

@media (min-width: 769px) {
  .menu-btn {
    display: none !important;
  }
  .nav-container {
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2.5rem !important;
    padding: 0 !important;
    display: flex !important;
  }
  .nav-close-btn {
    display: none !important;
  }
}
