.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 84px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-link:hover .logo {
  opacity: 0.8;
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color 0.3s ease;
  padding: 10px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-accent);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--blue-accent);
}

.nav a:hover::after {
  width: 100%;
}

.nav a.active {
  color: var(--blue-accent);
  font-weight: 600;
}

.nav a.active::after {
  width: 100%;
}

.lang {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: auto;
}

.lang button {
  background: none;
  border: none;
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 4px;
}

.lang button:hover {
  background: var(--blue-light);
  color: var(--blue-main);
}

.lang button.active {
  background: var(--blue-accent);
  color: white;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
  padding: 8px;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: var(--blue-accent);
}

.menu-toggle.active {
  color: var(--blue-accent);
}

/* Hamburger Icon Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

.menu-toggle.active {
  animation: spin 0.3s ease;
}

@media (max-width: 768px) {
  .header .container {
    padding: 14px 20px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    width: 100%;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active {
    background: var(--blue-light);
    color: var(--blue-main);
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .logo {
    order: 1;
  }

  .lang {
    order: 3;
    margin-left: 10px;
  }

  .lang button {
    padding: 6px 10px;
    font-size: 12px;
  }
}
