/* Header CSS - Transparent/Glass design */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  z-index: 999;
  display: flex;
  align-items: center;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(14, 17, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 76px; /* Sutil shrinkage on scroll for refinement */
}

.header-content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Monogram styling */
.monogram-link {
  text-decoration: none;
  display: inline-block;
  outline: none;
}

.monogram {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.monogram-link:hover .monogram {
  transform: scale(1.05);
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  opacity: 0.4;
  cursor: pointer;
  padding: 4px 6px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn.active {
  opacity: 1;
  color: var(--accent);
  font-weight: 700;
}

.lang-btn:not(.active):hover {
  opacity: 0.8;
}

.lang-divider {
  color: var(--text-primary);
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}

/* Adjust paddings for smaller screens */
@media (max-width: 768px) {
  .header {
    height: 72px;
  }
  .header.scrolled {
    height: 64px;
  }
  .header-content {
    padding: 0 24px;
  }
  .monogram {
    font-size: 22px;
  }
}
