/* ============================================================
   PDE Performance — Navigation (glass pill style)
   ============================================================ */

.gn {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 16px 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.gn.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ── Glass Pill container ── */
.gn-pill {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-t);
  border-left: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-b);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 9999px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

/* Shimmer on pill */
.gn-pill::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: 0.5s;
  pointer-events: none;
}
.gn-pill:hover::before { left: 100%; transition: 0.7s ease-in-out; }

/* ── Logo ── */
.gn-logo {
  height: 34px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.gn-logo:hover { opacity: 1; }

/* ── Center links ── */
.gn-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.gn-links > li > a {
  font-family: var(--ff-h);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  transition: color 0.3s;
  cursor: pointer;
}
.gn-links > li > a:hover,
.gn-links > li.active > a { color: #fff; }

/* ── Right side ── */
.gn-r {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* YouTube icon */
.gn-yt {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.60);
  transition: color 0.3s;
}
.gn-yt:hover { color: var(--red); }

/* CTA button */
.gn-cta {
  background: var(--red);
  color: #fff;
  font-family: var(--ff-h);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 12px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  position: relative;
  isolation: isolate;
}
.gn-cta::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: conic-gradient(
    from var(--btn-angle),
    transparent 0%,
    transparent 63%,
    rgba(228, 30, 38, 0.35) 70%,
    rgba(255, 80,  80, 1.00) 80%,
    rgba(228, 30, 38, 0.35) 90%,
    transparent 100%
  );
  animation: btn-border-spin 3.5s ease-in-out infinite;
  animation-delay: -2s;
  z-index: -1;
  filter: blur(2.5px);
}
.gn-cta:hover {
  background: #fff;
  color: var(--red);
  transform: translateY(-1px);
}

/* ── Mobile hamburger ── */
.gn-m {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
}

/* ── Mobile nav drawer ── */
.gn-drawer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 59;
  background: rgba(0,0,0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.gn-drawer.open {
  opacity: 1;
  pointer-events: all;
}
.gn-drawer a {
  font-family: var(--ff-h);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  transition: color 0.3s;
}
.gn-drawer a:hover { color: var(--red); }
.gn-drawer-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.60);
  font-size: 2rem; line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 834px) {
  .gn-links { display: none; }
  .gn-m     { display: flex; }
}
@media (max-width: 500px) {
  .gn-cta { display: none; }
}
