.scroll-nav {
  position: fixed;
  top: 18px;
  left: 50%;

  z-index: 9999;

  width: min(1320px, calc(100% - 40px));

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(0,0,0,0.58);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 12px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);

  opacity: 0;
  pointer-events: none;

  transform:
    translateX(-50%)
    translateY(-140%);

  transition:
    opacity 0.45s ease,
    transform 0.9s cubic-bezier(.16,1,.3,1),
    border-color 0.25s ease;
}

.scroll-nav.visible {
  opacity: 1;
  pointer-events: auto;

  transform:
    translateX(-50%)
    translateY(0);
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  min-width: 180px;
}

.nav-center {
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
  min-width: 180px;
}

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

.nav-logo img {
  height: 45px;
  width: auto;
  opacity: 0.95;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-logo:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.nav-center a {
  color: rgba(246,241,234,0.72);

  font-size: 0.92rem;
  font-weight: 500;

  padding: 10px 14px;

  border-radius: 999px;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-center a:hover {
  color: #fffaf3;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.nav-terminal {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(215,174,120,0.92);

  color: #fffaf3;

  font-size: 0.9rem;
  font-weight: 700;

  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 6px 20px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.12);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-terminal:hover {
  transform: translateY(-2px);

  background: rgba(223,184,133,1);

  box-shadow:
    0 12px 26px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

@media (max-width: 900px) {
  .scroll-nav {
    width: calc(100% - 18px);
    padding: 10px 12px;
  }

  .nav-left,
  .nav-right {
    min-width: auto;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-center {
    gap: 2px;
  }

  .nav-center a {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .nav-terminal {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 700px) {
  .nav-center {
    display: none;
  }

  .scroll-nav {
    justify-content: space-between;
  }
}