/* ============================================
   D4T - NAVIGATION STYLES (REDESIGNED)
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

/* ---- Frosted Glass on Scroll ---- */
.navbar.scrolled {
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Logo ---- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: -0.3px;
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0;
  position: relative;
  overflow: hidden;
}

.nav-logo .logo-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

/* ---- Nav Links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  padding: 9px 18px;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: pill background */
.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Active-like subtle indicator */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 20px;
}

/* Scrolled state - slightly different hover */
.navbar.scrolled .nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---- CTA Button ---- */
.nav-cta {
  background: var(--gradient-accent) !important;
  color: var(--white) !important;
  padding: 10px 26px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.3);
  border: 1px solid rgba(0, 180, 216, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.nav-cta::after { display: none !important; }

.nav-cta::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 180, 216, 0.45) !important;
  background: var(--gradient-accent) !important;
}

.nav-cta:hover::before {
  opacity: 1 !important;
}

/* ---- Mobile Menu ---- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .mobile-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 24px;
    border-radius: 14px;
    width: 100%;
    text-align: left;
  }

  .nav-links a:hover {
    background: rgba(0, 180, 216, 0.1);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center !important;
    justify-content: center;
  }
}