/* =========================
   HEADER GOUmp STUDIOS
========================= */

.header {
  width: min(1120px, calc(100% - 24px));
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  border-radius: 999px;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025)),
    rgba(10, 0, 20, 0.78);

  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);

  border: 1px solid rgba(216, 180, 254, 0.28);

  box-shadow:
    0 16px 48px rgba(0,0,0,0.45),
    0 0 34px rgba(168,85,247,0.35),
    inset 0 0 24px rgba(255,255,255,0.045);

  animation: headerEnter 0.75s ease forwards;
}

@keyframes headerEnter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.header::before,
.header::after {
  pointer-events: none;
}

.header::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(168,85,247,0.8),
      rgba(255,255,255,0.75),
      rgba(240,171,252,0.75),
      rgba(168,85,247,0.8),
      transparent
    );

  background-size: 350%;
  opacity: 0.55;
  filter: blur(12px);

  animation: headerGlowMove 12s ease-in-out infinite alternate;
}

@keyframes headerGlowMove {
  0% {
    background-position: 0% center;
    opacity: 0.38;
  }

  100% {
    background-position: 100% center;
    opacity: 0.7;
  }
}

.header::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: 0;

  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.12) 42%, transparent 58%),
    radial-gradient(circle at 18% 0%, rgba(216,180,254,0.18), transparent 34%);

  opacity: 0.75;
}

/* NAV */
.navbar {
  position: relative;
  z-index: 2;

  padding: 10px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* LOGO */
.logo {
  position: relative;
  z-index: 3;

  width: fit-content;
  display: flex;
  align-items: center;
  gap: 11px;

  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.7px;

  text-shadow:
    0 0 10px #a855f7,
    0 0 25px rgba(168,85,247,0.9),
    0 0 55px rgba(168,85,247,0.35);

  transition: 0.3s ease;
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.logo::before {
  content: "✦";
  width: 34px;
  height: 34px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  color: #fff;

  background:
    radial-gradient(circle at 30% 20%, #fff, #d8b4fe 22%, #a855f7 52%, #3b0764 100%);

  border: 1px solid rgba(255,255,255,0.35);

  box-shadow:
    0 0 12px rgba(168,85,247,1),
    0 0 32px rgba(168,85,247,0.55),
    inset 0 0 14px rgba(255,255,255,0.25);

  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    box-shadow:
      0 0 12px rgba(168,85,247,0.9),
      0 0 32px rgba(168,85,247,0.45),
      inset 0 0 14px rgba(255,255,255,0.25);
  }

  50% {
    transform: rotate(12deg) scale(1.08);
    box-shadow:
      0 0 18px rgba(255,255,255,0.9),
      0 0 45px rgba(168,85,247,0.75),
      inset 0 0 18px rgba(255,255,255,0.35);
  }
}

/* LINKS */
.nav-links {
  position: relative;
  z-index: 3;

  list-style: none;
  display: flex;
  justify-content: center;
  gap: 7px;

  padding: 6px;
  border-radius: 999px;

  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(216,180,254,0.12);
  box-shadow: inset 0 0 18px rgba(168,85,247,0.08);
}

/* BOTÕES NAV */
.nav-links a {
  position: relative;
  z-index: 4;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 92px;
  padding: 9px 16px;
  border-radius: 999px;

  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;

  color: #d8b4fe;
  border: 1px solid transparent;

  transition: 0.32s ease;
}

.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(168,85,247,0.28), rgba(18,0,29,0.75));

  opacity: 0;
  transition: 0.32s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 2px;

  background: linear-gradient(90deg, transparent, #fff, #a855f7, transparent);
  border-radius: 999px;

  box-shadow: 0 0 14px rgba(168,85,247,0.95);
  transition: 0.32s ease;
  pointer-events: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  transform: translateY(-2px);

  border-color: rgba(255,255,255,0.45);

  box-shadow:
    0 0 15px rgba(168,85,247,0.75),
    0 0 34px rgba(168,85,247,0.35),
    inset 0 0 18px rgba(255,255,255,0.055);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 62%;
}

/* brilho passando no hover */
.nav-links a span,
.nav-links a {
  isolation: isolate;
}

.nav-links a:hover {
  animation: navHoverPop 0.35s ease;
}

@keyframes navHoverPop {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.035);
  }

  100% {
    transform: translateY(-2px) scale(1);
  }
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .header {
    border-radius: 26px;
  }

  .navbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .logo {
    justify-content: center;
    margin: auto;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 650px) {
  .header {
    width: calc(100% - 20px);
    position: sticky;
    top: 10px;
    left: auto;
    transform: none;
    margin: 10px auto 0;

    animation: none;
  }

  .navbar {
    padding: 13px 16px;
  }

  .nav-links {
    display: none;
  }
}