/* ══════════════════════════════════════
   VELOSCALAR — Shared Nav + Footer CSS
   Link BEFORE page CSS in every <head>
══════════════════════════════════════ */

/* ─── NAV ─────────────────────────── */
#main-nav {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
#main-nav.scrolled {
  background: rgba(6,8,18,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo__text {
  font-family: 'Inter','Sora',sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: .4px;
  color: #fff;
  line-height: 1;
}
.nav-logo__text span { font-weight: 200; color: rgba(255,255,255,.38); margin-left: 1px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: 'Inter','Sora',sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.sub-nav {
  position: fixed;
  top: 64px;
  width: 100%;
  height: 48px;
  z-index: 199;
  background: rgba(6,8,18,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}
.sub-nav-inner {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem;
  max-width: 1200px;
  width: 100%;
  justify-content: center;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: 'Inter','Sora',sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.sub-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.sub-nav-link.active {
  color: #00FFC2;
  background: rgba(0,255,194,0.1);
}
@media (max-width: 768px) {
  .sub-nav-inner { justify-content: flex-start; }
}
.nav-cta {
  background: #635bff !important;
  color: #fff !important;
  padding: .45rem 1.2rem !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: .02em !important;
  transition: filter .2s, transform .15s !important;
}
.nav-cta:hover { filter: brightness(1.18) !important; transform: translateY(-1px) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .26s, opacity .26s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 112px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(6,8,18,.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: .5rem 0 1.5rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .24s, transform .24s;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .85rem 2rem;
    font-size: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
    text-transform: none;
    letter-spacing: .02em;
  }
  .nav-cta {
    margin: .8rem 2rem 0 !important;
    display: block !important;
    width: calc(100% - 4rem) !important;
    text-align: center !important;
    padding: .75rem 1rem !important;
  }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.02);
    border: none;
    border-radius: 0;
    padding-left: 1rem;
    transform: none;
  }
  .nav-dropdown-content a {
    border-bottom: none;
  }
}

/* ─── FOOTER ──────────────────────── */
#main-footer {
  background: #06080f;
  color: #fff;
  font-family: 'Inter','Sora',sans-serif;
}

/* Top gradient line */
#main-footer .footer-bar {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #635bff, #00ffc2, #635bff, transparent);
}

#main-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 2.5rem;
}

/* 2-column grid */
#main-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}

#main-footer .footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Left col heading */
#main-footer .footer-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #fff;
  font-family: 'Inter','Sora',sans-serif;
}
#main-footer .footer-heading span {
  background: linear-gradient(to right, #635bff, #00ffc2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tagline */
#main-footer .footer-tagline {
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 2rem;
  margin-top: 0;
}

/* CTA button */
#main-footer .footer-cta-btn {
  display: inline-block;
  background: #635bff;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter','Sora',sans-serif;
  font-size: .85rem;
  font-weight: 700;
  padding: .75rem 1.8rem;
  border-radius: 9999px;
  transition: filter .2s, transform .15s;
  letter-spacing: .04em;
  white-space: nowrap;
}
#main-footer .footer-cta-btn:hover { filter: brightness(1.18); transform: translateY(-2px); }

/* Right col title */
#main-footer .footer-col__title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 1.4rem;
  margin-top: 0;
}

/* Contact links */
#main-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}
#main-footer .footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: #a5b4fc;
  text-decoration: none;
  transition: color .2s;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  padding: 0;
  border: none;
  background: none;
}
#main-footer .footer-contact a:hover { color: #fff; }
#main-footer .footer-contact svg { flex-shrink: 0; }

/* Locations */
#main-footer .footer-locations {
  font-size: .82rem;
  color: rgba(255,255,255,.22);
  line-height: 1.6;
  margin: 0;
}

/* Bottom bar */
#main-footer .footer-bottom {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .78rem;
  color: rgba(255,255,255,.2);
  text-align: center;
}
#main-footer .footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 640px) {
  #main-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  #main-footer .footer-inner { padding: 3rem 1.2rem 2rem; }
  #main-footer .footer-bottom { font-size: .72rem; }
}

/* ─── INDUSTRIES COMPONENT ──────── */
.industries {
  padding: 5rem 1.5rem;
  position: relative;
  overflow: visible;
}
.industries .section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.industries h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  color: #fff;
  font-family: 'Sora', sans-serif;
}
.industries .badge {
  display: inline-block;
  padding: .3rem 1rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 9999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(20px);
  color: rgba(255,255,255,.75);
}
.industries .gradient-colorful {
  background: linear-gradient(135deg, #3b82f6, #a855f7, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.industries .gradient-line {
  width: 80px; height: 3px;
  background: linear-gradient(to right, #3b82f6, #a855f7);
  border-radius: 999px;
  margin: 0 auto;
}
.industries__grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.industry-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(.2,.8,.2,1);
  cursor: default;
  backdrop-filter: blur(20px);
  z-index: 1;
}
.industry-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s; z-index: -1;
}
.industry-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}
.industry-card:hover::before { opacity: 1; }
.industry-card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 3.2rem; height: 3.2rem; border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(168,85,247,0.15));
  color: #8b5cf6;
  flex-shrink: 0;
  transition: all 0.4s ease;
}
.industry-card__icon svg { width: 24px; height: 24px; stroke-width: 1.5; transition: transform 0.4s ease; }
.industry-card:hover .industry-card__icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #3b82f6, #a855f7);
  color: #fff;
}
.industry-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem; font-weight: 600; margin: 0; color: #fff; line-height: 1.3;
}
/* Fallback animations for pages that don't have fade-up defined */
.industries .fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.industries .fade-up.in-view {
  opacity: 1; transform: translateY(0);
}