/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s;
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  color: var(--text-light);
  font-weight: 400;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
}

.brand-title {
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.navbar-brand:hover .brand-title {
  color: var(--accent);
}

.navbar-brand .brand-separator {
  color: var(--accent);
  margin-left: 6px;
  font-size: 1.5rem;
  line-height: 1;
}

.navbar-brand .brand-subtitle {
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-left: 6px;
  color: var(--text-light);
  line-height: 1;
}

/* Nav links container */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Nav links pill wrapper */
.nav-links-pill {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 6px 14px;
  border-radius: 50px;
  position: relative;
  z-index: 2;
}

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

.nav-link.active {
  color: var(--text-light);
}

/* Sliding pill indicator */
.nav-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  background: var(--accent);
  pointer-events: none;
  border-radius: 50px;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.lang-toggle-pill {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 4px;
  cursor: pointer;
  width: 70px;
  height: 34px;
  position: relative;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
}

.lang-toggle-pill:hover {
  border-color: var(--accent);
}

.lang-circle {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: absolute;
  left: 3px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-text {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  text-align: right;
  padding-right: 8px;
  transition: text-align 0.4s, padding 0.4s;
}

[dir="rtl"] .lang-circle {
  transform: translateX(36px);
}

[dir="rtl"] .lang-text {
  text-align: left;
  padding-right: 0;
  padding-left: 8px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-light);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  margin: 5px 0;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  color: var(--text-light);
  font-size: 1.8rem;
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
}

/* Mobile active link underline */
.mobile-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
}
