:root {
  --bg: #061321;
  --bg-soft: #0c2135;
  --surface: #10283f;
  --surface-2: #13324f;
  --text: #e8f2ff;
  --muted: #c0c0c0;
  --line: #244462;
  --brand: #007bff;
  --brand-2: #a0a0a0;
  --ok: #2fd38f;
  --danger: #ef476f;
  --radius: 16px;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -5%, rgba(0, 123, 255, 0.26), transparent 40%),
    radial-gradient(circle at 88% 8%, rgba(160, 160, 160, 0.18), transparent 38%),
    linear-gradient(180deg, #04111d 0%, #08192b 55%, #071629 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   HEADER — Top utility bar
═══════════════════════════════════════════════════ */
.header-topbar {
  background: rgba(0, 18, 36, 0.96);
  border-bottom: 1px solid rgba(0, 123, 255, 0.15);
  padding: 5px 0;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  transition: opacity 0.35s ease, max-height 0.35s ease;
  overflow: hidden;
  max-height: 36px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.topbar-item i {
  color: var(--brand);
  font-size: 0.7rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.topbar-link:hover {
  color: #fff;
}

.topbar-wa {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
}

.topbar-wa:hover {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
}

/* ═══════════════════════════════════════════════════
   HEADER — Main wrapper
═══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(3, 13, 23, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Scroll-shrink: hide topbar + tighten nav */
.site-header[data-scrolled="true"] .header-topbar {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.site-header[data-scrolled="true"] .nav-wrap {
  min-height: 60px;
}

.site-header[data-scrolled="true"] {
  background: rgba(2, 10, 18, 0.96);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 123, 255, 0.14);
}

/* ═══════════════════════════════════════════════════
   NAV WRAP
═══════════════════════════════════════════════════ */
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  transition: min-height 0.3s ease;
}

/* ═══════════════════════════════════════════════════
   BRAND / LOGO
═══════════════════════════════════════════════════ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.brand:hover {
  box-shadow: none;
}

.brand-logo {
  width: clamp(148px, 18vw, 210px);
  height: auto;
  max-height: 52px;
  border-radius: 0;
  border: 0;
  padding: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.brand-fallback {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, var(--brand), #0aa1bf);
  color: #032739;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.brand.has-logo .brand-name {
  display: none;
}

/* ═══════════════════════════════════════════════════
   MAIN NAV — Desktop
═══════════════════════════════════════════════════ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.22s ease, background 0.22s ease;
  letter-spacing: 0.2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: calc(100% - 24px);
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(125deg, var(--brand), #4ca3ff);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 123, 255, 0.34);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
}

.btn-nav {
  background: linear-gradient(125deg, rgba(0, 123, 255, 0.18), rgba(0, 123, 255, 0.08));
  color: #a8cfff;
  border-color: rgba(0, 123, 255, 0.3);
  font-size: 0.82rem;
  padding: 8px 16px;
  letter-spacing: 0.2px;
  margin-left: 8px;
}

.btn-nav:hover {
  background: linear-gradient(125deg, rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.18));
  color: #fff;
  border-color: rgba(0, 123, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 123, 255, 0.22);
}

/* ═══════════════════════════════════════════════════
   HAMBURGER TOGGLE
═══════════════════════════════════════════════════ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.menu-toggle.open .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle.open .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════
   PAGE SCROLL PROGRESS BAR
═══════════════════════════════════════════════════ */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #4ca3ff);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0 80px;
  text-align: center;
  /* Background image — network nodes sit on the right, dark space on the left */
  background-image:
    /* Dark vignette top + bottom so text never fights the image */
    linear-gradient(to bottom, rgba(4, 17, 29, 0.72) 0%, transparent 28%, transparent 72%, rgba(4, 17, 29, 0.80) 100%),
    /* Directional overlay: opaque left → transparent right so centered text is readable */
    linear-gradient(to right, rgba(4, 17, 29, 0.88) 0%, rgba(4, 17, 29, 0.55) 50%, rgba(4, 17, 29, 0.28) 100%),
    url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Glowing orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  width: 560px;
  height: 560px;
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  /* Reduced opacity so it enhances image glow rather than covering it */
  background: radial-gradient(circle, rgba(0, 123, 255, 0.18) 0%, transparent 70%);
  animation: orbPulse 6s ease-in-out infinite;
}

.hero-orb--2 {
  width: 380px;
  height: 380px;
  left: 62%;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.12) 0%, transparent 70%);
  animation: orbPulse 8s ease-in-out infinite reverse;
  animation-delay: -3s;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.75; }
  50%       { transform: translate(-50%, -50%) scale(1.13); opacity: 1;    }
}

/* Floating badges */
.hero-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Base badge style */
.badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.92), rgba(5, 18, 38, 0.96));
  border: 1px solid rgba(0, 123, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.18), 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  color: #daeeff;
  border-radius: 999px;
  padding: 9px 18px 9px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  opacity: 0;
  /* Two animations: fade in once, then float forever */
  animation:
    badgeFadeIn 0.7s ease forwards,
    badgeFloat  4.5s ease-in-out infinite;
}

.badge i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.2);
  color: #70c4ff;
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* Positions + staggered timing (float starts after fade-in settles) */
.badge--1 { top: 11%;    left: 5%;    animation-delay: 0.1s,  0.8s;  }
.badge--2 { top: 11%;    right: 5%;   animation-delay: 0.4s,  1.1s;  }
.badge--3 { top: 32%;    left: 2%;    animation-delay: 0.7s,  1.4s;  }
.badge--4 { top: 32%;    right: 2%;   animation-delay: 1.0s,  1.7s;  }
.badge--5 { top: 57%;    left: 4%;    animation-delay: 0.55s, 1.25s; }
.badge--6 { top: 57%;    right: 4%;   animation-delay: 0.85s, 1.55s; }
.badge--7 { bottom: 16%; left: 7%;    animation-delay: 1.1s,  1.8s;  }
.badge--8 { bottom: 16%; right: 7%;   animation-delay: 0.25s, 0.95s; }

/* Slightly different float heights per badge for an organic feel */
.badge--1, .badge--5 { --fh: -10px; }
.badge--2, .badge--6 { --fh: -8px;  }
.badge--3, .badge--7 { --fh: -12px; }
.badge--4, .badge--8 { --fh: -9px;  }

@keyframes badgeFadeIn {
  0%   { opacity: 0; transform: translateY(14px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(var(--fh, -10px)); }
}

/* Centered content */
.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 0.78rem;
  color: var(--brand-2);
  font-weight: 700;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 14px 0 0;
}

.hero-sub {
  color: var(--muted);
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 1.07rem;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-points {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: #d9e8fb;
  font-size: 0.95rem;
  justify-content: center;
}

.hero-points i {
  color: var(--ok);
  margin-right: 6px;
}

/* Scroll-down indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.38);
  font-size: 1.4rem;
  z-index: 2;
  animation: scrollBob 2.4s ease-in-out infinite;
  transition: color 0.2s;
}

.hero-scroll:hover {
  color: rgba(255, 255, 255, 0.85);
}

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0);  }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.metrics {
  margin-top: 6px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics article {
  background: linear-gradient(175deg, rgba(16, 40, 63, 0.8), rgba(11, 30, 47, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
}

.metrics h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
}

.metrics p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.alt {
  background:
    linear-gradient(180deg, rgba(12, 33, 53, 0.72), rgba(9, 26, 43, 0.72));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head h2 {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
}

.lead {
  color: var(--muted);
  max-width: 860px;
}

.cards {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(17, 41, 65, 0.9), rgba(12, 31, 50, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon-card i {
  font-size: 1.35rem;
  color: var(--brand-2);
}

.dept-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dept-card {
  background: rgba(16, 40, 63, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.dept-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.03rem;
}

.dept-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.benefit-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(16, 40, 63, 0.8);
  padding: 18px;
}

.benefit-grid h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
}

.benefit-grid i {
  margin-right: 8px;
  color: var(--brand);
}

.contact-grid {
  margin-top: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.contact-card,
.contact-form {
  background: linear-gradient(180deg, rgba(16, 40, 63, 0.9), rgba(12, 31, 50, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
}

.contact-card p {
  color: var(--muted);
}

.contact-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.contact-list i {
  margin-right: 8px;
  color: var(--brand-2);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 19, 33, 0.85);
  color: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #9fb3cc;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(35, 181, 211, 0.4);
  border-color: transparent;
}

.site-footer {
  padding: 28px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 10, 18, 0.8);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-title {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  background: rgba(35, 181, 211, 0.2);
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  margin: 18px 0 2px;
  color: #8da8c8;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.7s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.15s;
}

.reveal:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .cards.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dept-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .header-topbar {
    display: none; /* hide on mobile — too cramped */
  }

  .brand {
    padding-right: 6px;
  }

  .brand-logo {
    width: clamp(126px, 38vw, 160px);
    max-height: 44px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 2px);
    right: 4%;
    left: 4%;
    border: 1px solid rgba(0, 123, 255, 0.18);
    background: rgba(2, 10, 20, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 123, 255, 0.1);
    padding: 10px;
    gap: 2px;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-8px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .main-nav .nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .main-nav .btn-nav {
    margin: 6px 0 2px;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  .hero-badges {
    display: none;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .dept-grid,
  .cards.three,
  .benefit-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
