:root {
  --main-bg: #0b1627;
  /* Match the Services page main bar palette */
  --navbar-bg: #10182a;
  --navbar-border: transparent;
  --accent: #5aa0e6;
  --accent-hover: #3373b5;
  --text-main: #eaf4ff;
  --text-subtle: #cfd8ea;
  --dropdown-bg: #14203a;
  --dropdown-border: #1d2a43;
  --dropdown-hover-a: #2a4f83;
  --dropdown-hover-b: #5aa0e6;
}

body {
  background: var(--main-bg);
  color: var(--text-main);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* MAIN NAVBAR (same look as services.html bar) */
.main-navbar {
  width: 100%;
  background: var(--navbar-bg);
  border-bottom: 2px solid var(--navbar-border);
  padding: 0 38px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
}
.main-navbar-logo { display: flex; align-items: center; gap: 30px; }
/* Override: Navbar logo should look like the footer logo (transparent, no rounded bg) */
.main-navbar-logo img.navbar-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 2px 10px #0004);
  display: block;
}
@media (max-width: 991.98px) {
  .main-navbar-logo img.navbar-logo { height: 80px; }
}
/* Generic navbar images (kept for any other images that might appear) */
.main-navbar-logo img:not(.navbar-logo) {
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px #5aa0e640;
  background: #fff;
}
.main-navbar-brand-text {
  font-weight: 800;
  color: #eaf4ff;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
}
.main-navbar-brand-text span { color: var(--accent); }

.main-navbar-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-navbar-nav a,
.main-navbar-nav button.nav-link-btn {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.13s;
  background: transparent;
  border: none;
  cursor: pointer;
}
.main-navbar-nav a:hover,
.main-navbar-nav a.active,
.main-navbar-nav button.nav-link-btn:hover,
.main-navbar-nav .open > .nav-link-btn {
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

.main-navbar-contact-btn {
  background: var(--accent);
  color: #10182a;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 6px 20px;
  font-size: 1rem;
  margin-left: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px #5aa0e62a;
}
.main-navbar-contact-btn:hover { background: var(--accent-hover); color: #fff; }

/* Services dropdown */
.main-navbar-dropdown { position: relative; }
.main-navbar-dropdown .nav-link-btn.has-caret::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.85em;
  color: currentColor;
  transition: transform 0.2s;
  display: inline-block;
  transform: translateY(-1px);
}
.main-navbar-dropdown.open .nav-link-btn.has-caret::after { transform: rotate(180deg) translateY(1px); }
.main-navbar-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--dropdown-bg);
  border: 1px solid var(--dropdown-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px #0007, 0 2px 10px #0005;
  display: none;
  padding: 8px;
  z-index: 1100;
}
.main-navbar-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a.dropdown-item {
  display: block;
  color: var(--text-subtle);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.12s;
  border-left: 3px solid transparent;
}
.dropdown-menu a.dropdown-item:hover,
.dropdown-menu a.dropdown-item:focus {
  color: #fff;
  background: linear-gradient(90deg, var(--dropdown-hover-a) 65%, var(--dropdown-hover-b) 100%);
  box-shadow: 0 6px 18px #5aa0e644;
  border-left-color: var(--accent);
  transform: translateX(2px);
}

/* Responsive navbar */
@media (max-width: 991px) {
  .main-navbar { padding: 0 12px; }
  .main-navbar-nav { gap: 14px; flex-wrap: wrap; }
  .main-navbar-dropdown .dropdown-menu { position: static; top: auto; left: auto; box-shadow: none; border: none; background: transparent; padding: 6px 0 0; display: none; }
  .main-navbar-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a.dropdown-item { background: #0f1a32; margin-bottom: 6px; }
  .dropdown-menu a.dropdown-item:hover { transform: none; }
}

/* HERO FULLSCREEN */
.hero-section-full {
  min-height: 100vh;
  width: 100vw;
  background: #111;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-full-overlay { position: absolute; inset: 0; background: rgba(18, 28, 58, 0.35); z-index: 1; }
.hero-content-full {
  position: relative; z-index: 2; width: 100%;
  padding-top: 140px; padding-bottom: 70px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-title-full {
  font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: 0.01em;
  text-transform: uppercase; line-height: 1.23; margin-bottom: 1.2rem; text-shadow: 0 4px 28px #000a;
}
.hero-title-accent { color: var(--accent); font-weight: 800; }
.hero-btn-custom {
  background: linear-gradient(90deg, #5196e4 0%, #5aa0e6 100%);
  border: none; color: #fff; font-weight: 700; font-size: 1.1rem;
  padding: 0.85rem 2.6rem; border-radius: 12px; letter-spacing: 0.01em;
  transition: background 0.18s; box-shadow: 0 6px 24px #7cb6ff33;
}
.hero-btn-custom:hover { background: linear-gradient(90deg, #5aa0e6 0%, #5196e4 100%); }

@media (max-width: 991.98px) {
  .hero-content-full { padding-top: 100px; }
  .hero-title-full { font-size: 1.6rem; }
}
@media (max-width: 575.98px) {
  .hero-title-full { font-size: 1.2rem; }
  .hero-btn-custom { font-size: 0.95rem; padding: 0.7rem 1.5rem; }
}

/* ABOUT + WHY US sections */
.about-section-custom, .whyus-section-custom {
  background: #162449;
  padding: 68px 0 0 0;
}
.whyus-section-custom { padding-top: 0; }
.section-spacer-animated { height: 140px; background: #162449; width: 100%; }

.about-title-custom, .whyus-title-custom {
  font-size: 2.7rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: 0.01em;
}
.about-title-accent-custom, .whyus-title-accent-custom { color: var(--accent); font-weight: 800; }
.about-text-custom, .whyus-text-custom { font-size: 1.14rem; color: #e7eefd; line-height: 1.61; }
.about-motto { color: var(--accent); font-weight: 600; }
.about-img-custom, .whyus-img-custom { border-radius: 32px; width: 100%; height: auto; box-shadow: 0 2px 38px #0007; object-fit: cover; aspect-ratio: 1.2/1; }

@media (max-width: 991.98px) {
  .about-title-custom, .whyus-title-custom { font-size: 2rem; }
  .about-img-custom, .whyus-img-custom { border-radius: 22px; aspect-ratio: unset; }
}

/* WHY US stats */
.whyus-stats-row-custom { margin-top: 36px !important; gap: 12px 0; }
.whyus-stat-box-custom {
  background: #eaf2fb; border-radius: 20px; box-shadow: 0 2px 24px #7cb6ff19;
  padding: 30px 10px 22px; min-width: 160px; min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.whyus-stat-num-custom { color: var(--accent); font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.whyus-blue { color: #2567a6; }
.whyus-stat-label-custom { color: #222a3a; font-size: 1.08rem; font-weight: 500; margin-top: 4px; }

@media (max-width: 991.98px) {
  .whyus-stat-num-custom { font-size: 1.25rem; }
  .whyus-stat-box-custom { min-width: 120px; min-height: 80px; padding: 20px 5px 14px; }
  .whyus-stat-label-custom { font-size: 0.95rem; }
  .about-title-custom, .whyus-title-custom { font-size: 1.34rem; }
}

/* VISION SECTION (under Why Us) */
.vision-section {
  background: #162449; /* same as About/Why Us */
  padding: 68px 0;     /* match section padding rhythm */
}
.vision-title {
  font-size: 2.7rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.vision-title .lead-accent {
  background: linear-gradient(90deg, var(--accent) 0%, #d2e6fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vision-text {
  font-size: 1.14rem;
  color: #e7eefd;
  line-height: 1.61;
}
/* Slight upward shift of copy on large screens to align with image cluster top */
@media (min-width: 992px) {
  .vision-copy { margin-top: -12px; }
}

/* Diamond image grid (images as diamonds, not squares) */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 160px);
  grid-template-rows: repeat(4, 160px);
  gap: 22px;
  justify-content: end;
  position: relative;
}
.diamond {
  width: 160px;
  height: 160px;
  border-radius: 26px;           /* rounded corners like the reference */
  overflow: hidden;
  transform: rotate(45deg);      /* make it a diamond */
  background: #112443;
  box-shadow: 0 10px 24px #0006, 0 2px 10px #0004;
  border: 1.5px solid #1b2f55;
  transition: box-shadow 0.2s, transform 0.2s;
}
.diamond:hover { box-shadow: 0 12px 30px #5aa0e655; }
.diamond-anim { width: 100%; height: 100%; } /* AOS applies here */
.diamond-anim img {
  width: 145%;
  height: 145%;
  object-fit: cover;
  transform: rotate(-45deg) translate(-10%, -10%); /* unrotate content */
  filter: brightness(1.05) contrast(1.05);
}
/* positions to form the cluster similar to the reference */
.diamond.pos-a { grid-column: 3; grid-row: 1; }
.diamond.pos-b { grid-column: 2; grid-row: 2; }
.diamond.pos-c { grid-column: 3; grid-row: 2; }
.diamond.pos-d { grid-column: 4; grid-row: 2; }
.diamond.pos-e { grid-column: 3; grid-row: 3; }

@media (max-width: 1199.98px) {
  .vision-grid { grid-template-columns: repeat(4, 130px); grid-template-rows: repeat(4, 130px); gap: 16px; }
  .diamond { width: 130px; height: 130px; border-radius: 22px; }
}
@media (max-width: 991.98px) {
  .vision-title { font-size: 2rem; }
  .vision-grid {
    grid-template-columns: repeat(3, 120px);
    justify-content: center;
  }
  .diamond { width: 120px; height: 120px; }
  /* On small screens, let grid auto-place (stack nicely) */
  .diamond.pos-a, .diamond.pos-b, .diamond.pos-c, .diamond.pos-d, .diamond.pos-e {
    grid-column: auto; grid-row: auto;
  }
}
@media (max-width: 575.98px) {
  .vision-grid { grid-template-columns: repeat(2, 110px); gap: 12px; }
  .diamond { width: 110px; height: 110px; border-radius: 18px; }
  .vision-title { font-size: 1.6rem; }
}

/* Customers slider */
.customer-logos-slider { overflow: hidden; width: 100%; margin: 0 auto; position: relative; background: transparent; }
.customer-logos-track { display: flex; align-items: center; gap: 3vw; animation: slideLogosLTR 28s linear infinite; will-change: transform; }
.customer-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 80px; min-width: 140px; padding: 0 25px; opacity: 0.84; transition: transform 0.23s, opacity 0.23s; filter: drop-shadow(0 2px 12px #1e293b33); }
.customer-logo img { max-height: 64px; max-width: 120px; filter: grayscale(0.33) brightness(1.12) contrast(1.08); transition: filter 0.2s, transform 0.2s; }
.customer-logo:hover img { filter: none; transform: scale(1.08); opacity: 1; }
@keyframes slideLogosLTR { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@media (max-width: 991.98px) { .customer-logo { height: 56px; min-width: 90px; padding: 0 10px; } .customer-logo img { max-height: 40px; max-width: 75px; } }
@media (max-width: 575.98px) { .customer-logo { height: 36px; min-width: 60px; padding: 0 4px; } .customer-logo img { max-height: 28px; max-width: 48px; } }

/* FOOTER (end bar) — same color as main bar) */
.page-footer {
  background: var(--navbar-bg);
  border-top: 2px solid #233654; /* subtle separator */
  color: var(--text-main);
  text-align: center;
  padding: 32px 0 26px;
  margin-top: 64px;
}
.page-footer img.footer-logo {
  width: 250px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 12px #0004);
}
.page-footer .footer-socials { margin-bottom: 0.6rem; }
.page-footer .footer-social-link {
  color: var(--accent);
  background: #162249;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; font-size: 1.25rem;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px #5bc0ff22; border: 1.5px solid transparent;
  margin: 0 6px;
}
.page-footer .footer-social-link:hover, .page-footer .footer-social-link:focus {
  color: #fff;
  background: linear-gradient(90deg,#294f83 70%,#5aa0e6 100%);
  border: 1.5px solid #5aa0e6;
  box-shadow: 0 4px 24px #5aa0e644;
  transform: translateY(-1px);
  text-decoration: none;
}
.page-footer .footer-links a {
  color: var(--text-main);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 500;
  transition: color 0.2s;
}
.page-footer .footer-links a:hover { color: var(--accent); text-decoration: underline; }
.page-footer .footer-sep { color: var(--accent); opacity: 0.9; padding: 0 4px; }

/* ===== Custom theme additions (as requested) ===== */
html {
  scroll-behavior: smooth;
}
body.dark-bg {
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: #0d162a !important;
  color: #e5e8f3;
}
.bg-dark-blue, .bg-dark-blue-1 {
  background: #101c39 !important;
}
.bg-dark-blue-2 {
  background: #162449 !important;
}
.text-cyber {
  color: #5bc0ff !important;
}
.card.glassmorph-dark, .navbar.glassmorph-dark, footer.glassmorph-dark {
  background: rgba(18, 32, 64, 0.84) !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(20,40,96,0.18) !important;
  border: 1px solid rgba(50,70,130,0.15) !important;
}
.hero {
  min-height: 100vh;
  position: relative;
  background: #0d162a;
}
.hero-video {
  object-fit: cover;
  min-width: 100vw;
  min-height: 100vh;
  z-index: 1;
  filter: brightness(0.45) blur(0.5px);
}
.hero .container {
  z-index: 3;
}
.hero-overlay {
  background: linear-gradient(180deg,rgba(14,20,44,0.70) 0%,rgba(14,20,44,0.18) 80%);
  z-index: 2;
  pointer-events: none;
}
.display-2.fw-bold {
  letter-spacing: -1px;
  color: #fff;
}
/* Bigger logo in hero */
.hero-big-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-img {
  max-width: 340px;
  width: 80vw;
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 40px #0009);
  animation: fadeInLogo 1.2s cubic-bezier(.18,.63,.42,1.22);
}
@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.92);}
  to { opacity: 1; transform: scale(1);}
}
.card .fa-3x {
  margin-bottom: 0.4em;
  transition: transform 0.25s cubic-bezier(.23,1.18,.68,.97);
}
.card.service-card:hover .fa-3x.animated-icon {
  transform: scale(1.18) rotate(-6deg);
  filter: drop-shadow(0 3px 18px #5bc0ff90);
}
.card.service-card {
  transition: box-shadow 0.2s;
}
.card.service-card:hover {
  box-shadow: 0 8px 38px rgba(50,120,255,0.15);
  border-color: #212b4b;
}
.about-img-animate {
  transition: transform 0.4s cubic-bezier(.22,.65,.56,1.23), box-shadow 0.4s;
}
.about-img-animate:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 38px #5bc0ff12;
}
footer {
  background: #162449;
}
.text-white {
  color: #fff !important;
}
.text-light {
  color: #b3c3e6 !important;
}
.btn-primary {
  background: linear-gradient(90deg,#2567a6 70%,#5bc0ff 100%);
  border: none;
  font-weight: 600;
  letter-spacing: .03em;
  box-shadow: 0 2px 14px #1a3c7a22;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg,#3880ca 70%,#5bc0ff 100%);
  border: none;
  color: #fff !important;
}
.btn-outline-primary {
  color: #5bc0ff;
  border-color: #5bc0ff;
  background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #5bc0ff;
  color: #162449;
  font-weight: bold;
}
.form-control.dark-input, .form-control:focus.dark-input {
  background: #212b4b;
  color: #e5e8f3;
  border: 1px solid #34518a;
  box-shadow: none;
}
.form-label.text-white {
  color: #b3c3e6 !important;
}
/* Show dropdown on hover for desktop (for "Services" menu) */
@media (min-width: 992px) {
  #servicesDropdownNav:hover > .dropdown-menu {
    display: block;
    margin-top: 0.7rem;
  }
  #servicesDropdownNav.show > .dropdown-menu {
    display: block;
  }
}
/* Responsive tweaks for navbar and buttons */
@media (max-width: 991.98px) {
  .navbar-brand span {
    font-size: 1rem;
  }
  .display-2 {
    font-size: 2.1rem;
  }
  .hero-logo-img {
    max-width: 62vw;
  }
}
@media (max-width: 767.98px) {
  .navbar {
    padding: 0.5rem 0;
  }
  .display-2 {
    font-size: 1.4rem;
  }
  footer .fw-bold {
    font-size: 1rem;
  }
  .hero-video {
    min-height: 60vh;
  }
  .hero-logo-img {
    max-width: 90vw;
  }
}
/* ====== ADDED/CHANGED FOR ABOUT & WHY US SPACING ====== */
.about-section {
  margin-bottom: 0 !important;
  padding-bottom: 24px !important;
}
.whyus-section {
  margin-top: 0 !important;
  padding-top: 24px !important;
}