/* ==========================================
   navbar.css — Navigation Bar Styles
   FormFixer — Responsive Redesign
   ========================================== */

nav {
  background: var(--blue-dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(10,36,99,0.3);
}

/* ---- LEFT: Logo + Tagline ---- */
.nav-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: #60a5fa; }

.nav-tagline {
  font-size: 0.70rem;
  color: #93c5fd;
  font-weight: 400;
  line-height: 1;
}

/* ---- CENTER: Desktop Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #bfdbfe;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-links a.active {
  color: #fff;
  background: rgba(96,165,250,0.2);
}

/* ---- RIGHT GROUP ---- */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-badge {
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---- HAMBURGER BUTTON ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,0.15); }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

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

/* ---- MOBILE DRAWER ---- */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 20, 60, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 199;
  padding: 1.5rem 1.5rem 2rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}

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

.mobile-menu-section {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4b6cb7;
  padding: 0 0.5rem;
}
.mobile-menu-section:first-child { margin-top: 0; }

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #bfdbfe;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  transition: all 0.18s;
}
.mobile-menu a:hover, .mobile-menu a:active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.m-icon {
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 9px;
  flex-shrink: 0;
}

.mobile-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0.6rem 0.5rem;
}

.mobile-footer-badge {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  color: #4b6cb7;
  font-size: 0.78rem;
  line-height: 1.7;
}
.mobile-footer-badge strong { color: #60a5fa; }

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 860px) {
  nav { padding: 0 1.25rem; }
  .nav-badge { display: none; }
  .nav-links a { font-size: 0.78rem; padding: 0.4rem 0.65rem; }
}

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-badge { display: none; }
  .hamburger { display: flex; }
  .nav-tagline { display: none; }
}

/* Dark mode for mobile menu */
[data-theme="dark"] .mobile-menu {
  background: rgba(10, 15, 30, 0.98);
}
[data-theme="dark"] .mobile-menu a { color: #94a3b8; }
[data-theme="dark"] .mobile-menu a:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
[data-theme="dark"] .mobile-menu-section { color: #334155; }
[data-theme="dark"] .mobile-divider { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .mobile-footer-badge { color: #334155; }
[data-theme="dark"] .mobile-footer-badge strong { color: #60a5fa; }
