/* ================================================
   FLUXFRONT — Navigation
   Nav bar, dropdown, mobile overlay, top accent line
   ================================================ */


/* ================================================
   TOP ACCENT LINE
   ================================================ */

.top-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--teal));
  z-index: 10001;
}


/* ================================================
   NAVIGATION
   ================================================ */

.nav {
  position: fixed;
  top: 2px; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.menu-open,
.nav.menu-open.scrolled {
  background: #0B0D11;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.scrolled {
  background: rgba(11, 13, 17, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
  z-index: 1000;
}

.nav__logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.7; }

.nav__links { display: flex; gap: 32px; }

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--teal); }

.nav__actions { display: flex; gap: 10px; }


/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  position: relative;
}
.nav__burger.active {
  z-index: 10003;
  position: fixed;
  top: 16px;
  right: 20px;
  border-color: rgba(255,255,255,0.2);
  background: #0B0D11;
}
.nav__burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay — compact dropdown, not fullscreen */
.nav__overlay {
  display: none;
  position: fixed;
  top: -60px; left: 0; right: 0;
  background: #0B0D11;
  z-index: 10002;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 110px 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}
.nav__overlay.open { display: flex; animation: fadeIn 0.3s var(--ease); }
.nav__overlay-close {
  position: absolute;
  top: 76px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.nav__overlay-link {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
  padding: 12px 0;
  width: 100%;
  text-align: center;
}


/* ================================================
   NAV DROPDOWN (Industries)
   ================================================ */

.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__dropdown-trigger {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.nav__dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}
.nav__dropdown:hover .nav__dropdown-trigger,
.nav__dropdown.open .nav__dropdown-trigger { color: var(--text); }
.nav__dropdown:hover .nav__dropdown-trigger::after,
.nav__dropdown.open .nav__dropdown-trigger::after { width: 100%; }

.nav__dropdown-chevron {
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.nav__dropdown:hover .nav__dropdown-chevron,
.nav__dropdown.open .nav__dropdown-chevron { transform: rotate(180deg); }

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  padding-top: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 1001;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown.open .nav__dropdown-menu {
  display: block;
  animation: dropdownIn 0.2s var(--ease-out);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: default;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav__dropdown-item--live {
  cursor: pointer;
  color: var(--text);
}
.nav__dropdown-item--live:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav__dropdown-item--soon {
  opacity: 0.5;
  justify-content: space-between;
}

.nav__dropdown-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0,212,170,0.6);
  flex-shrink: 0;
}

.nav__dropdown-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.06);
  color: var(--text-3);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Mobile overlay — Industries accordion */
.nav__overlay-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.nav__overlay-group-trigger {
  background: none;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  padding: 0;
}
.nav__overlay-group.open .nav__overlay-group-trigger { color: var(--text); }
.nav__overlay-group.open .nav__dropdown-chevron { transform: rotate(180deg); }

.nav__overlay-sublinks {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.nav__overlay-group.open .nav__overlay-sublinks { max-height: 300px; }

.nav__overlay-sublink {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: default;
  transition: color 0.2s;
}
.nav__overlay-sublink--live {
  cursor: pointer;
  color: var(--text);
}
.nav__overlay-sublink--live:hover { color: var(--teal); }
.nav__overlay-sublink--soon {
  opacity: 0.45;
  gap: 12px;
}


/* Old nav compat (services, contact) */
.nav-container { position: fixed; top: 2px; left: 0; right: 0; z-index: 1000; transition: all 0.3s var(--ease); border-bottom: 1px solid transparent; }
.nav-container.scrolled { background: rgba(11,13,17,0.82); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-bottom-color: var(--border); }
.nav-content { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
