:root {
  --bg-primary: #e8f3ff;
  --bg-secondary: #d7ebff;
  --bg-tertiary: #c9e5ff;
  --text-primary: #0f2745;
  --text-secondary: #3f638c;
  --accent: #0078d4;
  --accent-soft: rgba(0, 120, 212, 0.14);
  --card-bg: rgba(255, 255, 255, 0.68);
  --card-border: rgba(75, 143, 204, 0.24);
  --shadow: 0 18px 34px rgba(25, 74, 119, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

.site-header-wrap {
  position: relative;
  z-index: 1040;
}

.top-info-strip {
  padding-top: 0.7rem;
}

.top-info-inner {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(75, 143, 204, 0.26);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 0.55rem 0.95rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}

.top-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #113864;
  text-decoration: none;
  font-weight: 600;
  min-width: 0;
}

.top-logo-wrap:hover {
  color: #0f71c2;
}

.top-brand-logo {
  width: auto;
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.cert-badge-wrap {
  position: relative;
  width: min(100%, 150px);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  animation: certFloat 4.2s ease-in-out infinite;
}

.cert-badge-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.2));
  mix-blend-mode: screen;
  animation: certShimmer 3.8s linear infinite;
  pointer-events: none;
}

.cert-badge-wrap img {
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  transform-origin: center;
  animation: certPulse 3.6s ease-in-out infinite;
}

.quick-contact-wrap {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}

.quick-contact-wrap a {
  color: #124670;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.quick-contact-wrap a i {
  margin-right: 0.45rem;
  color: #0f71c2;
}

.quick-contact-wrap a:hover {
  color: #0f71c2;
}

@keyframes certFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-0.8deg);
  }
}

@keyframes certPulse {
  0%, 100% {
    transform: scale(1);
    filter: saturate(0.92);
  }
  50% {
    transform: scale(1.05);
    filter: saturate(1.1);
  }
}

@keyframes certShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 12% 8%, #ffffff 0%, transparent 40%),
    radial-gradient(circle at 88% 12%, #c9e5ff 0%, transparent 34%),
    linear-gradient(160deg, #f4faff 0%, #e3f1ff 45%, #d5eaff 100%);
  min-height: 100vh;
}

main {
  padding-top: 0.9rem;
}

.navbar-modern {
  background: transparent;
  padding-top: 0.45rem;
  padding-bottom: 0.35rem;
  position: relative;
  top: auto;
  z-index: 1020;
}

.nav-shell {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(75, 143, 204, 0.24);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 0.4rem 0.95rem;
}

.navbar-brand,
.nav-link {
  color: #113864 !important;
}

.navbar-brand {
  margin-right: 0;
}

.site-nav-tabs {
  align-items: center;
  flex-wrap: wrap;
  /* justify-content: end; */
  gap: 0.35rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  line-height: 1;
}

.brand-logo {
  width: auto;
  height: 45px;
  max-width: 190px;
  object-fit: contain;
}
.navbar-toggler {
  border: none !important;
  padding: 4px !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(15, 113, 194, 0.16);
}

.nav-cta {
  margin-left: 0.7rem;
}

.nav-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.9rem !important;
  line-height: 1;
}

.nav-link {
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  transform: translateY(-1px);
}

.site-nav-tabs .nav-link.active,
.site-nav-tabs .nav-link.show,
.site-nav-tabs .nav-link:focus,
.site-nav-tabs .nav-link:hover {
  background: rgba(15, 120, 206, 0.08);
  border-color: rgba(15, 120, 206, 0.18);
}
/* =========================
   COMMON DROPDOWN SCROLL
========================= */

/* MAIN DROPDOWN scroll */
/* max-height: min(70vh, 36rem); *//* MAIN DROPDOWN */
.dropdown-menu-scroll {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: visible;
  min-width: 240px;
  position: absolute;
  inset: auto auto auto 0;
}

/* Auto position to right if needed */
.dropdown-menu-scroll.dropdown-menu-end {
  inset: auto 0 auto auto;
}

.dropdown-menu-scroll-sub {
  /* max-height: 70vh;     */
  overflow-y: auto;     /* ✅ vertical scroll */
  overflow-x: hidden;   /* optional */
  min-width: 280px;
}

.navbar,
.dropdown-menu {
  overflow: visible;
}

/* =========================
   SCROLLBAR (APPLY BOTH)
========================= */

.dropdown-menu-scroll::-webkit-scrollbar,
.dropdown-menu-scroll-sub::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu-scroll::-webkit-scrollbar-track,
.dropdown-menu-scroll-sub::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown-menu-scroll::-webkit-scrollbar-thumb,
.dropdown-menu-scroll-sub::-webkit-scrollbar-thumb {
  background-color: #4b8fcc;
  border-radius: 4px;
}

/* =========================
   DROPDOWN ITEMS
========================= */

.dropdown-item {
  white-space: normal;
}

.dropdown-item.active,
.dropdown-item:active {
  background: rgba(15, 120, 206, 0.1);
  color: #0e4c7e;
}

/* =========================
   NESTED DROPDOWN (FIXED)
========================= */
.dropdown-menu .dropend {
  position: relative;
}

.dropdown-menu {
  transition: opacity 0.15s ease;
  position: absolute;
  inset: auto auto auto 0;
}

/* Right-aligned dropdown for edge detection */
.dropdown-menu.dropdown-menu-end {
  inset: auto 0 auto auto;
}
/* Auto-position for dropdowns near screen edge */
.dropdown-menu-scroll.dropdown-menu-end {
  left: auto !important;
  right: 0 !important;
}

.dropdown-menu.dropdown-menu-end {
  left: auto !important;
  right: 0 !important;
}

/* BASE: Submenu hidden by default, positioned to right */
.dropdown-menu .dropend > .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  right: auto;
  min-width: 280px;
  margin-left: 0.1rem;
  z-index: 1055;

  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  overflow-x: hidden;


  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.2s ease;
  pointer-events: none;
}

/* SHOW STATE: Make submenu visible */
.dropdown-menu .dropend > .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* OPEN LEFT */
.dropdown-menu .dropend.open-left > .dropdown-menu {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 0.1rem;
}

/* HOVER: Open on hover (desktop only) */
.dropdown-menu .dropend:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

/* Keep submenu visible when hovering it */
.dropdown-menu .dropend .dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ARROW ICON */
.dropend .dropdown-toggle::after {
  content: "›";
  border: none;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.dropdown-item.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bridge hover area (right side) */
.dropdown-menu .dropend::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 100%;
}

/* Bridge hover area (left side) */
.dropdown-menu .dropend.open-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}

.dropdown-hover:hover > .dropdown-menu,
.dropdown-hover .dropdown-menu:hover {
  display: block;
}

.dropdown-hover .dropdown-menu {
  display: none;
}

@media (max-width: 576px) {
  .nav-shell {
    padding: 0;
    border-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .navbar-modern {
    padding-top: 0;
  }

  .navbar-collapse {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}
@media (max-width: 991px) {
  .top-info-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.55rem;
  }

  .quick-contact-wrap {
    justify-self: center;
    justify-items: center;
  }

  .navbar-modern {
    position: relative;
    top: auto;
  }

  .navbar-brand{ margin:0;}
  .brand-logo {
    width: auto;
    height: 36px;
    max-width: 155px;
    object-fit: contain;
  }
  .navbar-collapse {
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .dropdown-hover:hover .dropdown-menu {
    display: none;
  }
  .dropdown-hover .dropdown-menu.show {
    display: block;
  }
  .dropdown-hover > .dropdown-menu-scroll {
    max-height: none;
    overflow: visible;
  }

  /* Disable hover for nested dropdowns on mobile */
  .dropdown-menu .dropend:hover > .dropdown-menu {
    /* opacity: 0;
    visibility: hidden; */
    pointer-events: none;
  }

  /* Mobile nested submenu: stack inside parent menu */
  .dropdown-menu .dropend > .dropdown-menu {
    position: static;
    min-width: 100%;
    width: 100%;
    margin: 0.35rem 0 0 0;
    max-height: none;
    overflow: visible;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    transition: none;
    border: 0;
    box-shadow: none;
    background: rgba(15, 120, 206, 0.04);
  }

  .dropdown-menu .dropend > .dropdown-menu .dropdown-item {
    padding-left: 1.25rem;
  }

  .dropdown-menu .dropend > .dropdown-menu.show {
    display: block;
    overflow: visible !important;
    pointer-events: auto;
    border-top: 1px solid rgba(15, 120, 206, 0.15);
  }
}
/* ------------------------------------------ */
.hero {
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-weight: 700;
  line-height: 1.15;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 42rem;
}

.gradient-text {
  background: linear-gradient(90deg, #0f66ad, #2e96e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-weight: 600;
  margin-bottom: 1.1rem;
}

section[id],
article[id],
div[id] {
  scroll-margin-top: 7.5rem;
}

.section-intro {
  color: var(--text-secondary);
  max-width: 42rem;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(75, 143, 204, 0.5);
  box-shadow: 0 22px 46px rgba(23, 63, 99, 0.22);
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f78ce;
}

.stat-label,
.muted {
  color: var(--text-secondary);
}

.icon-chip {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: #0f78ce;
  margin-bottom: 0.8rem;
}

.badge-soft {
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(75, 143, 204, 0.3);
  color: #0e4c7e;
}

.cta-wrap {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.84), rgba(201, 226, 248, 0.86));
  border: 1px solid rgba(75, 143, 204, 0.24);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: fill;
  border-radius: 0.8rem;
  border: 1px solid rgba(75, 143, 204, 0.22);
  margin-bottom: 0.9rem;
}

.btn-primary {
  background: linear-gradient(100deg, #0f71c2, #2793e9);
  border: none;
}

.btn-outline-light {
  border-color: rgba(17, 56, 100, 0.38);
  color: #113864;
}

.btn-outline-light:hover {
  background: rgba(17, 56, 100, 0.08);
  color: #113864;
}

.site-footer {
  border-top: 1px solid rgba(75, 143, 204, 0.22);
  background: rgba(224, 240, 255, 0.85);
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-link {
  display: inline-block;
  color: #144a7b;
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.footer-link:hover {
  color: #0f71c2;
}

.footer-bottom {
  border-top: 1px solid rgba(75, 143, 204, 0.22);
}

.hero-image,
.section-image {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(75, 143, 204, 0.24);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-image {
  min-height: 330px;
  max-height: 420px;
}

.section-image {
  min-height: 250px;
  max-height: 320px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .hero {
    padding-top: 3.8rem;
  }

  main {
    padding-top: 3.5rem;
  }

  .nav-shell {
    border-radius: 0.85rem;
  }

  .site-nav-tabs {
    align-items: stretch;
    gap: 0.5rem;
    overflow-y: auto;
    padding-top: 0.85rem;
  }

  .nav-tab {
    width: 100%;
    text-align: center;
  }

  .dropdown-menu-scroll {
    max-height: 44vh;
  }
}


@media (max-width: 575px) {
  .top-info-strip {
    padding-top: 0.45rem;
  }

  .top-brand-logo {
    height: 36px;
    max-width: 135px;
  }

  .cert-badge-wrap {
    width: 100%;
    max-width: 135px;
    height: 40px;
  }

  .quick-contact-wrap a {
    font-size: 0.85rem;
  }

  .nav-shell {
    /* padding: 0; */
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .navbar-modern {
    padding-top: 0;
  }

  .navbar-collapse {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}
@media (max-width: 340px) {
  .brand-logo {
    width: 80px;
    height: 30px;
    object-fit: fill;
  }
  .brand-lockup  span{ font-size: 16px;}
}