.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background-color: rgba(8, 8, 14, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
}

.nav-logo {
  cursor: default;
  transition: transform 0.4s ease;
  user-select: none;
}

.nav-logo:hover {
  transform: rotate(0.08rad);
}

.nav-logo .bracket {
  color: var(--accent);
  opacity: 0.7;
  font-size: 19px;
  font-weight: bold;
  transition: opacity 0.2s;
}

.nav-logo:hover .bracket {
  opacity: 1;
}

.nav-logo .letter {
  color: var(--white);
  font-size: 19px;
  font-weight: bold;
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  padding: 6px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nav-item-text {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item .hash {
  font-size: 15px;
  font-weight: bold;
  color: rgba(139, 149, 165, 0.35);
  transition: color 0.2s;
}

.nav-item .label {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2px;
  transition: color 0.2s, font-weight 0.2s;
}

.nav-item:hover .hash,
.nav-item.active .hash {
  color: var(--accent);
}

.nav-item:hover .label {
  color: rgba(255, 255, 255, 0.85);
}

.nav-item.active .label {
  color: var(--white);
  font-weight: 600;
}

.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
  animation: dotBobble 3s ease-in-out infinite;
}

.nav-item:hover .nav-dot,
.nav-item.active .nav-dot {
  opacity: 1;
}

.nav-item.active .nav-dot {
  box-shadow: 0 0 8px rgba(139, 149, 165, 0.6);
}

/* Scroll progress bar */
.scroll-progress {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent-secondary),
    #7A8594,
    var(--accent-warm)
  );
  background-size: 300% 100%;
  animation: progressShimmer 3s linear infinite;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(139, 149, 165, 0.3);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn .menu-icon {
  color: rgba(139, 149, 165, 0.7);
  font-size: 22px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding-top: 12px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  opacity: 0;
}

.mobile-nav.open {
  max-height: 300px;
  opacity: 1;
}

.mobile-nav-item {
  padding: 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-nav-item .dot-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(139, 149, 165, 0.4);
  opacity: 0;
}

.mobile-nav-item.active .dot-indicator {
  opacity: 1;
}

.mobile-nav-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.mobile-nav-item.active span {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 599px) {
  .navbar-inner {
    padding: 12px 20px;
    flex-wrap: wrap;
  }

  .nav-items {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav {
    display: flex;
    width: 100%;
    justify-content: flex-end;
  }

  .nav-logo .bracket,
  .nav-logo .letter {
    font-size: 16px;
  }
}

@media (min-width: 600px) and (max-width: 1099px) {
  .navbar-inner {
    padding: 14px 32px;
  }

  .nav-item .hash,
  .nav-item .label {
    font-size: 13px;
  }
}
