
/* =========================
   To support Mobile Navigation (hamburger)
========================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(3, 5, 15, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo img {
  height: 38px;
  display: block;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Comfortaa', cursive;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--grad3);
}

.nav-cta {
  background: linear-gradient(135deg, var(--grad1), var(--grad3));
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: 'Comfortaa', cursive;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
}

.mobile-cta-item {
  display: none;
}

@media (max-width: 768px) {
  .site-nav {
    padding: 16px 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta-desktop {
    display: none;
  }

  .mobile-cta-item {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a {
    display: block;
    padding: 14px 10px;
  }

  .mobile-cta-item a {
    margin-top: 10px;
    text-align: center;
    padding: 14px 18px;
  }

  .menu-open {
    overflow: hidden;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
