/* ==========================================================================
   NAVBAR & MOBILE DRAWER STYLES (Swan-Gold Design)
   ========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 23, 41, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.3s ease, border-color 0.3s ease;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap !important;
  transition: opacity 0.2s ease;
  z-index: 1002;
}

.logo:hover {
  opacity: 0.9;
}

.logo img,
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  filter: brightness(1.2) contrast(1.1) drop-shadow(0 2px 8px rgba(255, 183, 74, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo span {
  color: #fff;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--muted-dark);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-nav-cta {
  padding: 10px 22px !important;
  font-size: 14px !important;
}

/* ---------- BURGER BUTTON ---------- */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
  padding: 0;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
  pointer-events: none;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- MOBILE DRAWER OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- MOBILE DRAWER (SLIDE RIGHT -> LEFT) ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 340px);
  height: 100vh;
  background: var(--ink-soft, #152244);
  border-left: 1px solid var(--line-dark, rgba(255,255,255,0.12));
  box-shadow: -16px 0 48px -8px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  padding: 24px 24px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1060;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0) !important;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-menu-head .logo {
  font-size: 17px;
}

.mobile-menu-head .logo img,
.mobile-menu-head .logo-img {
  width: 36px;
  height: 36px;
}

.menu-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-close:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

.mobile-menu-links a {
  color: var(--muted-dark);
  padding: 14px 10px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
  border-radius: 6px;
}

.mobile-menu-links a:hover {
  color: #fff;
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-foot {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted-dark);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- RESPONSIVE BREAKPOINT (Screen <= 992px) ---------- */
@media (max-width: 992px) {
  nav {
    padding: 14px 20px;
  }
  .nav-links {
    display: none !important;
  }
  .burger {
    display: flex !important;
  }
  .btn-nav-cta {
    display: none !important;
  }
}