.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 40px;
  background-color: transparent;
}

.header.fixed {
  padding: 15px 40px;
  background: rgb(255 255 255 / 51%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header.fixed {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  column-gap: 10px;
  width: 150px;
}

.logo-text {
  font-family: var(--font-family);
  color: var(--text-primary);
  font-size: 22.8px;
  font-style: normal;
  font-weight: 450;
  line-height: normal;
  letter-spacing: 9.12px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.language-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-btn:hover {
  color: var(--accent-color);
}

.lang-btn i {
  width: 1.25rem;
  height: 1.25rem;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--bg-secondary);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.language-selector:hover .lang-dropdown,
.lang-btn:focus+.lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.lang-option:hover {
  background-color: var(--hover-color);
  color: var(--text-primary);
}

.lang-option.active {
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--active-bg);
}

.contact-btn {
  font-size: 1rem;
  font-weight: 500;
}

.header-scrolled {
  background-color: rgba(var(--bg-primary-rgb), 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.mobile-menu-btn i {
  width: 24px;
  height: 24px;
}

.menu-icon {
  display: block;
}

.close-icon {
  display: none;
}

.menu-open .menu-icon {
  display: none;
}

.menu-open .close-icon {
  display: block;
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
    background-color: var(--bg-primary);
  }

  .logo-text {
    font-size: 20px;
    letter-spacing: 6px;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .nav-right {
    position: fixed;
    top: 84px;
    left: 0;
    width: 100%;
    height: calc(100vh - 84px);
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .menu-open .nav-right {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .language-selector {
    width: 100%;
    max-width: 300px;
  }

  .lang-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
  }

  .lang-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    transform: none;
    opacity: 0;
    visibility: hidden;
  }

  .language-selector:hover .lang-dropdown,
  .lang-btn:focus+.lang-dropdown,
  .lang-btn[aria-expanded="true"]+.lang-dropdown {
    opacity: 1;
    visibility: visible;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.75rem;
  }

  .logo-text {
    font-size: 18px;
    letter-spacing: 4px;
  }

  .nav-right {
    top: 72px;
    height: calc(100vh - 72px);
    padding: 1.5rem;
  }
}