.sticky-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 20;
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

body.light .sticky-header {
  background: rgba(248, 250, 252, 0.7);
}

.sticky-header.visible {
  transform: translateY(0);
}

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

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.header-nav .icon {
  display: none;
  font-size: 1.2rem;
}
.header-nav a:hover {
  color: var(--accent);
}

.accent-link {
  color: var(--accent);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.top-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 16px;
  z-index: 10;
}

#langToggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
}
.desktop-only {
  display: block;
}

.header-nav a.active {
  color: var(--accent);
}

.header-nav a.active .icon {
  transform: scale(1.15);
}
.header-nav a:hover .nav-icon {
  transform: translateY(-2px) scale(1.05);
}

.nav-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition:
    transform 0.35s ease,
    color 0.35s ease,
    opacity 0.35s ease;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .header-inner {
    justify-content: center;
  }

  .header-nav {
    width: 100%;
    justify-content: space-around;
  }

  .header-nav .label {
    display: none;
  }

  .header-nav .icon {
    display: inline-flex;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
  }
}

.header-nav a.active {
  color: var(--accent);
}

.header-nav a.active .nav-icon {
  transform: scale(1.2);
  animation: navPulse 0.45s ease;
}

@keyframes navPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
  }
}
