/* LineCraft — shared floating nav (Orbixe) */
/* ===================== NAV: floating electric capsule =====================
   Hidden at the top of the page. Once the user scrolls away from the base
   position it drops in as a floating glass capsule with a living purple
   plasma border. */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.header {
  position: fixed !important;
  top: 14px; left: 0; right: 0;
  z-index: 100;
  background: transparent !important;
  padding: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-40px) scale(0.98);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.9,.2,1.1), visibility 0s linear .45s;
  pointer-events: none;
}
body.show-nav .header {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.9,.2,1.1), visibility 0s linear 0s;
}
/* The capsule itself */
.header .container,
.header .container-fluid {
  position: relative;
  max-width: min(1180px, calc(100% - 28px)) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 999px;
  background: #0b0716;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  isolation: isolate;
}
/* Rotating plasma border */
.header .container::before,
.header .container-fluid::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang),
    rgba(168,85,247,0) 0deg,
    #c084fc 40deg,
    #ffffff 60deg,
    #a855f7 90deg,
    rgba(168,85,247,0) 150deg,
    rgba(168,85,247,0) 210deg,
    #7c3aed 250deg,
    #e9d5ff 275deg,
    #a855f7 300deg,
    rgba(168,85,247,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: navSpin 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}
/* (outer halo removed for legibility) */
.header .container::after,
.header .container-fluid::after { display: none !important; }
@keyframes navSpin { to { --ang: 360deg; } }

.header .navbar {
  padding: 8px 10px 8px 18px !important;
  min-height: 64px;
  align-items: center;
}
/* Logo: small, glowing, on the left */
.header .navbar-brand { display: inline-flex !important; align-items: center; margin-right: 18px; }
.header .navbar-brand img.logo {
  height: 34px !important; width: auto !important; max-width: none;
  filter: brightness(0) invert(1);
}
/* Links: airy, luminous, with a plasma dot that slides under the active item */
.header .navbar-nav { gap: 2px; }
.header .nav-link {
  position: relative;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 10px 16px !important;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease, text-shadow .25s ease, transform .25s ease;
}
.header .nav-link::before {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #e9d5ff;
  box-shadow: 0 0 10px #c084fc, 0 0 22px #a855f7;
  transform: translate(-50%, 6px) scale(0);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.9,.2,1.2), opacity .25s ease;
}
.header .nav-link:hover,
.header .nav-link.active {
  color: #ffffff !important;
  background: rgba(168,85,247,0.22);
  text-shadow: none;
}
.header .nav-link:hover::before,
.header .nav-link.active::before {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}
/* Call pill on the right */
.header .h-call {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.header .h-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px #a855f7, 0 0 56px rgba(124,58,237,0.7), inset 0 0 0 1px rgba(255,255,255,0.35);
}
.header .h-call-icon {
  width: 38px !important; height: 38px !important;
  border-radius: 50%;
  background: rgba(255,255,255,0.18) !important;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.header .h-call-icon img { width: 16px; filter: brightness(0) invert(1); }
.header .h-call .text-grey-1 { color: rgba(255,255,255,0.85) !important; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.header .h-call .text-black  { color: #fff !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.2; }

/* Mobile hamburger: glowing bars */
.header .navbar-toggler { border: 0 !important; box-shadow: none !important; }
.header .menu_toggle span {
  background: #e9d5ff !important;
  box-shadow: 0 0 8px #a855f7, 0 0 14px rgba(124,58,237,0.8) !important;
}
@media (max-width: 991.98px) {
  .header .container, .header .container-fluid { border-radius: 28px; }
  .header .navbar-collapse { padding: 8px 6px 14px; }
  .header .nav-link { display: block; text-align: center; margin: 2px 0; }
  .header .h-call { margin: 10px auto 0; justify-content: center; width: max-content; }
}
/* Nav must sit above the electricity + content */
.header { z-index: 1000 !important; }
/* Template paints a grey 34%-wide block behind the left of the header — remove it */
.header::before, .header::after { display: none !important; content: none !important; }
.header .navbar, .header .navbar-collapse, .header .navbar-nav, .header .nav-item,
.header .sticky-bar { background: transparent !important; box-shadow: none !important; }

/* On pages without the intro video the nav is always visible.
   index.html adds body.show-nav on scroll; other pages set it on load (js/lc-nav.js). */
body.lc-static-nav { padding-top: 96px; }
body.lc-static-nav .header .navbar-brand { display: inline-flex !important; }
