@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  font-size: 16px;

  --primary: #7f5af0;
  --background: #0a0a0a;
  --foreground: #ffffff;
  --muted: #1f1f1f;
  --border: rgba(255,255,255,0.1);
}

.navbar-container {
  position: fixed;
  top: 2.5rem; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: auto;
  pointer-events: none; 
}

.navbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 0.0625rem solid var(--border); 
  backdrop-filter: blur(0.125rem); 
  padding: 0.25rem 0rem;
  border-radius: 625rem; 
  box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.5); 
  position: relative;
  pointer-events: auto; 
  background: rgba(10,10,10,0.25);
}

.nav-item {
  position: relative;
  cursor: pointer;
  font-weight: 400;
  padding: 0.5rem 1.5rem;
  border-radius: 625rem; 
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
  text-decoration: none;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  z-index: 5;
  display: inline-flex;
  align-items: center;
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item.active {
  color: var(--primary);
}

.lamp {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 625rem; 
  background: rgba(127,90,240,0.08);
  transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  left: 0;
  width: 0;
  pointer-events: none;
}

.lamp-glow {
  position: absolute;
  top: -0.375rem; 
  left: 50%;
  transform: translateX(-50%);
  width: 2rem; 
  height: 0.25rem; 
  background: var(--primary);
  border-top-left-radius: 0.5rem; 
  border-top-right-radius: 0.5rem; 
  box-shadow: 0 0 1.25rem rgba(127, 90, 240, 0.6);
  opacity: 0.9;
}

@media (max-width: 48rem) { 
  .nav-item span {
    display: none;
  }
  .nav-item svg {
    display: block;
  }
}

.nav-item svg {
  display: none;
  width: 1.25rem; 
  height: 1.25rem; 
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}