.top-nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.95), rgba(8, 15, 28, 0.82));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.42);
}

#nav-bg {
  position: fixed;
  inset: 0 0 auto 0;
  height: 90px;
  z-index: 1199;
  pointer-events: none;
  opacity: 0.1;
  background-image: url("/static/images/noise.png");
  background-size: 220px 220px;
}

.top-nav-brand {
  color: #ecfeff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.28);
  white-space: nowrap;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav-menu li {
  list-style: none;
}

.top-nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: #d9f6ff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.top-nav-menu a:hover,
.top-nav-menu a:focus {
  color: #082032;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.94), rgba(103, 232, 249, 0.94));
  border-color: rgba(125, 211, 252, 0.62);
  transform: translateY(-1px);
}

.top-nav-menu a.nav-new {
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #d9f6ff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-spacer {
  height: 92px;
}

.glow-footer {
  margin-top: 3rem;
  padding: 2.4rem 1.4rem 1.2rem;
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(7, 17, 29, 0.92), rgba(5, 12, 22, 0.98));
  border-top: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 -18px 40px rgba(2, 6, 23, 0.28);
  opacity: 1;
  transform: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col h4 {
  margin: 0;
  color: #67e8f9;
  font-size: 0.98rem;
  font-weight: 800;
}

.footer-col a {
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover,
.footer-col a:focus {
  color: #fde68a;
  transform: translateX(2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.6rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #93c5fd;
  text-align: center;
  font-size: 0.88rem;
}

.protac-nav ul,
.protac-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

@media (max-width: 991.98px) {
  .top-nav-container {
    padding: 0.85rem 1rem;
  }

  .hamburger {
    display: inline-flex;
  }

  .top-nav-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(8, 15, 28, 0.98);
    border: 1px solid rgba(125, 211, 252, 0.16);
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.55);
  }

  .top-nav-menu.show {
    display: flex;
  }

  .top-nav-menu a {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
