/* ==========================================================================
   ELEVATEX NOW - UNIFIED TOP NAVIGATION COMPONENT STYLES
   ========================================================================== */

header.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 1.25rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 64px;
  padding: 0 1.25rem 0 1.4rem;
  background: rgba(12, 16, 32, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.site-header.scrolled .nav-inner {
  background: rgba(9, 11, 24, 0.95);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.2);
}

/* Brand Identity */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.header-logo-img {
  height: 38px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .header-logo-img {
    height: 30px;
    max-width: 140px;
  }
}

.logo-badge-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
}

.logo-title-group {
  display: flex;
  flex-direction: column;
}

.logo-main-text {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.logo-x-accent {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub-tag {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #06b6d4;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-top: 2px;
}

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

.nav-item {
  position: relative;
}

.nav-link-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-item.active {
  font-weight: 600;
  color: #fff;
}

.nav-dot-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px #06b6d4;
  flex-shrink: 0;
}

/* Dropdown Trigger & Flyout Menu */
.nav-dropdown-trigger {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-trigger:hover,
.nav-item:hover .nav-dropdown-trigger,
.nav-has-dropdown.open .nav-dropdown-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.chevron-icon {
  transition: transform 0.25s ease;
  stroke: currentColor;
}

.nav-item:hover .chevron-icon,
.nav-has-dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 520px;
  background: rgba(13, 16, 32, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.2);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu,
.nav-has-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-card-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.dropdown-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.dd-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dd-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dd-card-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.dd-card-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* CTA Button in Nav */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-nav-cta {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.65);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  padding: 0.45rem;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 86px;
  left: 16px;
  right: 16px;
  background: rgba(13, 16, 32, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(99, 102, 241, 0.25);
  padding: 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer a.mob-link {
  font-size: 0.96rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.mobile-drawer a.mob-link:hover,
.mobile-drawer a.mob-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: #06b6d4;
  padding-left: 0.75rem;
}

.mobile-drawer .mob-cta {
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  color: #fff !important;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-links,
  .nav-actions {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .nav-inner {
    padding: 0 1rem;
    height: 58px;
  }
}
