/* ===== FLOATING NAV ULTRA PREMIUM ===== */

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1260px);
  height: 78px;
  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  z-index: 9999;
  border-radius: 28px;

  background: linear-gradient(180deg, #12121d, #07070d);
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  overflow: visible;
  transition: 0.35s ease;
}

.navbar.scrolled {
  top: 10px;
  height: 70px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(255, 80, 170, 0.18);
}

/* liquid glass */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 85, 180, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

/* particles */
.nav-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.nav-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 120, 190, 0.75);
  box-shadow: 0 0 14px rgba(255, 120, 190, 0.8);
  animation: navParticle 5s linear infinite;
}

.nav-particles span:nth-child(1) { left: 8%; animation-delay: 0s; }
.nav-particles span:nth-child(2) { left: 22%; animation-delay: 1s; }
.nav-particles span:nth-child(3) { left: 40%; animation-delay: 2s; }
.nav-particles span:nth-child(4) { left: 60%; animation-delay: .5s; }
.nav-particles span:nth-child(5) { left: 80%; animation-delay: 1.5s; }

@keyframes navParticle {
  0% {
    top: 100%;
    opacity: 0;
    transform: scale(0.4);
  }

  35% {
    opacity: 1;
  }

  100% {
    top: -20%;
    opacity: 0;
    transform: scale(1.2);
  }
}

/* brand */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 5;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 12px 35px rgba(255, 80, 170, 0.35);
  transition: 0.35s ease;
}

.brand:hover img {
  transform: rotate(-5deg) scale(1.08);
}

.brand span {
  font-size: 1.45rem;
  font-weight: 950;
  background: linear-gradient(135deg, #fff, #ff5ca8, #ff9a30);
  -webkit-background-clip: text;
  color: transparent;
}

/* menu dock */

.nav-menu {
  position: relative;
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.nav-link {
  position: relative;
  z-index: 2;

  padding: 14px 19px;
  border-radius: 17px;

  font-weight: 850;
  color: rgba(255, 255, 255, 0.72);

  transition:
    color 0.3s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

/* active slider */

.nav-indicator {
  position: absolute;
  height: 48px;
  width: 90px;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);

  border-radius: 17px;

  background:
    linear-gradient(135deg, rgba(255, 80, 170, 0.34), rgba(255, 150, 50, 0.28));

  box-shadow:
    0 14px 34px rgba(255, 80, 170, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  opacity: 0;

  transition:
    left 0.38s cubic-bezier(.2,.9,.2,1),
    width 0.38s cubic-bezier(.2,.9,.2,1),
    opacity 0.25s ease;

  pointer-events: none;
  z-index: 1;
}

.nav-link.active {
  color: white;
}

/* hamburger */

.hamburger {
  display: none;

  width: 52px;
  height: 52px;

  border-radius: 18px;

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);

  position: relative;
  z-index: 10001;

  transition: 0.35s ease;
}

.hamburger:hover {
  transform: scale(1.06);
  box-shadow: 0 0 25px rgba(255,80,170,0.3);
}

.hamburger span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: 0.35s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}