/*
Theme Name: Quantic Solutions
Version: 1.0
*/

/* ============================================
   GLOBAL TOKENS
============================================ */

:root {
  --ink: #1e293b;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --glass: rgba(255,255,255,.06);
  --stroke: rgba(0,0,0,.08);
  --maxw: 1200px;
  --qs-top-max: 126px;
  --qs-bot-max: 50px;
}

/* ============================================
   BASE RESET
============================================ */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Tw Cen MT","Century Gothic","Jost",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,"Noto Sans",sans-serif;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================
   SIMPLE UTILITY CLASSES (TAILWIND STYLE)
   (Used by header markup)
============================================ */

.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.h-full { height: 100%; }
.relative { position: relative; }
.z-50 { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }

.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* ============================================
   GLOBAL NAVBAR – CONTAINER
============================================ */

.qs-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  z-index: 9999;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(148,163,184,0.15);
  transform: translateY(0);
  opacity: 1;
  transition:
    transform .45s cubic-bezier(0.23,1,0.32,1),
    opacity .35s ease,
    background .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.qs-navbar.scrolled {
  background:
    radial-gradient(600px 400px at 80% 0%, rgba(59,130,246,0.18), transparent 65%),
    linear-gradient(115deg,
      rgba(10,14,22,0.98) 0%,
      rgba(20,26,44,0.96) 40%,
      rgba(35,22,70,0.94) 70%,
      rgba(60,20,110,0.92) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.65);
}

.qs-navbar.nav-mounted {
  will-change: transform, opacity;
}

.qs-navbar.nav-hide,
.qs-navbar.nav-footer-hide {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   NAVBAR INNER LAYOUT
============================================ */

.qs-nav-inner {
  position: relative;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 34px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand block */

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-img {
  height: 54px;
  width: auto;
  mix-blend-mode: luminosity;
  filter: brightness(.9);
  transition: filter .35s ease;
}

.nav-brand:hover .nav-logo-img {
  filter: brightness(1.08) drop-shadow(0 0 14px rgba(59,130,246,0.5));
}

/* Brand text – hidden by default (mobile + tablet) */

.nav-brand-text {
  display: none;
  line-height: 1;
}

.nav-brand-text span {
  display: block;
}

.nav-brand-main {
  color: #e5edf7;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.nav-brand-sub {
  margin-top: 4px;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .9;
}

/* ============================================
   PRIMARY NAV LINKS (DESKTOP + TABLET)
============================================ */

.qs-nav-menu {
  /* mobile default - overridden in media queries */
  display: none;
  height: 100%;
  align-items: center;
  gap: 2.5rem; /* spacing between ABOUT / TECHNOLOGY / EMPLOYMENT */
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 30px 0;
  cursor: pointer;
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: color .25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #f9fafb;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 18px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(59,130,246,0.7);
  opacity: 0;
  transition: width .3s ease, opacity .3s ease;
}

.nav-link:hover::after {
  width: 100%;
  opacity: 1;
}

/* ============================================
   MEGA DROPDOWN
============================================ */

.dropdown-menu {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(-14px);
  width: 1100px;
  max-width: 92vw;
  background: rgba(5,10,30,0.96);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 22px 60px rgba(0,0,0,0.7);
  padding: 36px 34px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

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

.dropdown-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.dropdown-summary h4 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e5edf7;
}

.dropdown-summary p {
  margin: 0;
  font-size: .9rem;
  color: #9caec6;
  line-height: 1.7;
}

.dropdown-links {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 14px;
}

.dd-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}

.dd-link:hover {
  background: rgba(15,23,42,0.95);
  border-color: rgba(148,163,184,0.55);
}

.dd-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(59,130,246,0.16);
  color: var(--accent);
  font-size: .9rem;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.dd-link:hover .dd-icon {
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  color: #ffffff;
  box-shadow: 0 0 18px rgba(59,130,246,0.6);
}

.dd-title {
  font-size: .9rem;
  font-weight: 500;
  color: #e5edf7;
  margin-bottom: 2px;
}

.dd-sub {
  font-size: .75rem;
  color: #9caec6;
}

/* ============================================
   NAV CTA BUTTON
============================================ */

.nav-cta {
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(59,130,246,0.55);
  color: #e5edf7;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,0.9),
    0 0 20px rgba(59,130,246,0.45);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-cta:hover {
  border-color: #e5e7eb;
  box-shadow:
    inset 0 0 0 1px rgba(226,232,240,0.85),
    0 0 24px rgba(59,130,246,0.7);
  transform: translateY(-1px);
}

/* ============================================
   HAMBURGER BUTTON
============================================ */

.hamburger {
  padding: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex; /* base - we hide it on tablet/desktop via media query */
}

.hamburger i {
  font-size: 1.25rem;
  color: #e5edf7;
}

/* ============================================
   MOBILE MENU OVERLAY
============================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #020617;
  z-index: 9990;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.7,0,.3,1);
  padding: 110px 28px 32px;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-simple {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 420px;
  margin: 40px auto 0;
}

.mobile-nav-item {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f9fafb;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

@media (max-width: 480px) {
  .mobile-nav-item {
    font-size: 1.45rem;
  }
}

/* Old mobile label styles – not used */
.mobile-section-label,
.mobile-link,
.mobile-cta {
  display: none !important;
}

/* ============================================
   RESPONSIVE BREAKPOINTS – UNIFIED BEHAVIOR
============================================ */

/* Mobile – under 768px
   - Logo + Contact + hamburger
   - No tabs
   - No brand text
*/

@media (max-width: 767.98px) {
  .qs-nav-menu {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-logo-img {
    height: 48px;
  }

  .nav-brand-text {
    display: none;
  }
}

/* Tablet – 768px to 1199px
   - Logo only (no brand text)
   - Tabs visible
   - No hamburger
*/

@media (min-width: 768px) and (max-width: 1199.98px) {
  .qs-nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  .hamburger {
    display: none;
  }

  .nav-logo-img {
    height: 50px;
  }

  .nav-brand-text {
    display: none;
  }
}

/* Desktop – 1200px and up
   - Logo + brand text
   - Tabs visible
   - No hamburger
*/

@media (min-width: 1200px) {
  .qs-nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  .hamburger {
    display: none;
  }

  .nav-logo-img {
    height: 54px;
  }

  .nav-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
html {
  scroll-behavior: smooth;
}
/* Restore Quantic-style footer background (no Cartesian grid) */
.qs-footer {
  background:
    radial-gradient(170% 220% at 10% 0,
      #020617 0,
      #020617 40%,
      transparent 72%),
    radial-gradient(150% 210% at 100% 0,
      #253a7a 0,
      #141a34 45%,
      #050816 100%);
}