@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --header-h: 76px;
  --ease-smooth: cubic-bezier(0.16,1,0.3,1);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
}

/* ============================================================
   LIQUID GLASS HEADER (MATCHING MAIN SITE)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 9990;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(14, 18, 30, 0)    100%
    );
  backdrop-filter: blur(3px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.06);

  border-bottom: 1px solid rgba(255,255,255,0.09);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 8px 32px rgba(0,0,0,0.28);

  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.22) 30%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.22) 70%,
    transparent 100%);
  pointer-events: none;
}

.site-header.scrolled {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.03) 0%,
      rgba(10,12,22,0.88)  100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 12px 40px rgba(0,0,0,0.40);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  border: 0px;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(1.1);
}

.header-logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #dce4ee;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.header-nav li a {
  display: block;
  padding: 7px 16px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #8a96aa;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), text-shadow 0.3s ease;
  white-space: nowrap;
  margin-top: 2px;
  position: relative;
  z-index: 2;
  transform: scale(1);
  text-decoration: none;
}

.header-nav li a:hover {
  color: #ffffff;
  transform: scale(1.18);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.header-nav li a.active {
  color: #ffffff;
  transform: scale(1.18);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.nav-magic-bubble {
  position: absolute;
  top: 18px;
  left: 0;
  height: calc(100% - 18px);
  border-radius: 999px;
  
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(138, 180, 204, 0.2);

  transition: all 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.nav-magic-bubble.visible {
  opacity: 1;
}

.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.007);
  border: 1px solid rgba(255, 255, 255, 0.062);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
}

.header-hamburger:hover { border-color: rgba(255,255,255,0.2); }

.hamburger-line {
  width: 18px;
  height: 2px;
  background: #818894;
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.header-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 12, 22, 0);
  backdrop-filter: blur(3px) saturate(160%);
  -webkit-backdrop-filter: blur(3px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.007);
  z-index: 9989;
  padding: 14px 24px 24px;
  flex-direction: column;
  gap: 3px;
  animation: slideDown 0.22s var(--ease-smooth);
}

.header-mobile-nav.open { display: flex; }

@keyframes slideDown {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

.header-mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #8a96aa;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}

.header-mobile-nav a:hover,
.header-mobile-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0);
  transform: scale(1.04);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

@media (max-width: 960px) {
  .header-nav { display: none; }
  .header-hamburger { display: flex; }
  .header-inner { padding: 0 20px; }
}
