/* Navbar Styles */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(246, 248, 252, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px var(--soft-shadow);
  padding: 15px 5%;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
}

@media (max-width: 768px) {
  #navbar {
    padding: 15px 5%;
  }

  .nav-links {
    position: fixed;
    left: 0;
    top: 60px;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 4px 20px var(--soft-shadow);
    z-index: 999;
    overflow: hidden;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid #e0e0e0;
  }

  .nav-link {
    display: block;
    padding: 15px 5%;
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-brand {
    font-size: 1.2rem;
  }
}