/* Navbar: transparent at top, frosted glass when scrolled */
.navbar {
  transition:
    background-color 0.35s var(--ease-smooth),
    backdrop-filter 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth);
}
.navbar.navbar-top {
  background-color: transparent;
}
.navbar.navbar-scrolled {
  background-color: rgba(226, 232, 240, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.navbar-container a.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.navbar-container a.nav-link:hover::after {
  width: 100%;
}
.navbar-container a.active {
  font-weight: 700;
}
.navbar-container a.active::after {
  width: 0;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.open {
  max-height: 500px;
}
.hamburger {
  display: none;
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .desktop-menu {
    display: none !important;
  }
}
