/* Nav bar */
nav {
  padding: 28px 0 0;
  margin-bottom: 50px;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* "gs." logo — top left */
.nav-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

/* Underline that slides in on hover */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Theme toggle pill */
.theme-toggle {
  width: 44px;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--connect-hover-border);
}

/* Sliding knob inside the toggle */
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  transition:
    transform 0.4s cubic-bezier(0.68, -0.15, 0.265, 1.35),
    background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .toggle-knob {
  transform: translateX(20px);
}

.toggle-knob svg {
  width: 10px;
  height: 10px;
  color: var(--bg);
  transition: all 0.3s ease;
}

/* Icon swap — moon shown in dark, sun in light */
.icon-sun {
  display: none;
}
.icon-moon {
  display: block;
}

[data-theme="light"] .icon-sun {
  display: block;
}
[data-theme="light"] .icon-moon {
  display: none;
}
