.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

.navbar.visible {
  transform: translateY(0);
}

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

.navbar.no-transition {
  transition: none !important;
}


.nav-link.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-link);
}

.nav-container {
  max-width: 850px;
  margin: 0 auto;
  /* padding: 0.7rem 2rem; */
  padding: 0.7rem 2em 0.7rem 2em;

  display: flex;
  justify-content: space-between;
  align-items: center;
  /* height: 100%;  */
}

.nav-logo {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 3px;
  color: #1a202c;
  text-decoration: none;
  /* transition: color 0.2s; */
}

/* .nav-logo:hover {
  color: var(--color-link);
} */

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  margin-top: 3px;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-link);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.8rem 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
}