/* ═══════════════════════════════════════════════════════════
   FinoMind — Navigation (navbar.css)
   Sticky nav with glassmorphism, mobile drawer
   ═══════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 var(--container-pad);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

/* ── Nav Links ── */
.nav-links {
  display: none; /* Hidden on desktop, drawer on mobile */
}

.nav-links-left,
.nav-links-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-links-left {
  justify-content: flex-end;
}

.nav-links-right {
  justify-content: flex-start;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--teal) !important;
  background: rgba(0, 123, 158, 0.06);
}

.nav-link.active {
  color: var(--teal) !important;
  background: rgba(0, 123, 158, 0.08);
}

/* ── CTA Button ── */
.nav-cta {
  margin-left: 12px;
  background: var(--cyan);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.35);
}

/* ── Mobile Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Drawer ── */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links-left,
  .nav-links-right {
    display: none;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 4px;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.4s var(--ease-out);
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 16px;
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}
