/* ===========================
   HEADER (CLEAN FINAL VERSION)
   =========================== */

.nx-header {
  position: fixed;
  left: 0;
  top: 0;
  transform: translateY(0);
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.6s ease,
    backdrop-filter 0.6s ease;
  width: 100%;
  background: linear-gradient(145deg, #06060f 10%, #0b0b15 40%, #1e1e35 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  top: 0;
  z-index: 9999;
}

.nx-header-inner {
  padding: 0 var(--nx-side-padding);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nx-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(0, 210, 255, 0),
      rgba(0, 210, 255, 0.6),
      rgba(0, 210, 255, 0));
  opacity: 0;
  transition: opacity 0.65s ease;
}

.nx-header.is-hidden {
  transform: translateY(-110%);
}

/* LOGO LEFT */

.nx-logo-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.nx-logo-small,
.nx-logo-full {
  height: 39px;
  position: absolute;
  transition: opacity .25s ease;
}

.nx-logo-full {
  opacity: 0;
}

.nx-logo-wrap:hover .nx-logo-small {
  opacity: 0;
}

.nx-logo-wrap:hover .nx-logo-full {
  opacity: 1;
}

@media (hover: none) and (pointer: coarse) {

  .nx-logo-wrap:hover .nx-logo-small {
    opacity: 1;
  }

  .nx-logo-wrap:hover .nx-logo-full {
    opacity: 0;
  }

}

/* CENTER MENU — EXACT REFERENCE STYLE */

.nx-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 48px;
}

.nx-nav a {
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nx-nav a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #33eaff, #b058ff);
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: width .25s ease;
}

.nx-nav a:hover::after {
  width: 100%;
}

/* RIGHT — TALK BUTTON */

.nx-talk-btn {
  margin-left: auto;
  padding: 8px 22px;
  color: #fff;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 14px;
  transition: .2s;
}

.nx-talk-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* MOBILE: HAMBURGER */

.nx-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nx-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: .3s;
}

.nx-mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nx-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nx-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE DROPDOWN */

/* MOBILE MENU PANEL */
.nx-mobile-menu {
  position: fixed;
  top: 78px;
  left: 0;
  width: 100%;
  height: calc(100vh - 78px);

  background: linear-gradient(180deg,
      rgba(5, 8, 20, 0.96),
      rgba(2, 4, 12, 0.98));

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.35s ease;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;
}

/* SOFT GRADIENT GLOW TOP */
.nx-mobile-menu::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;

  width: 420px;
  height: 420px;

  background: radial-gradient(circle,
      rgba(120, 160, 255, 0.18) 0%,
      rgba(80, 120, 255, 0.08) 40%,
      transparent 70%);

  filter: blur(60px);
}

/* SECOND GLOW BOTTOM */
.nx-mobile-menu::after {
  content: "";
  position: absolute;
  bottom: -140px;
  right: -120px;

  width: 420px;
  height: 420px;

  background: radial-gradient(circle,
      rgba(100, 120, 255, 0.18) 0%,
      rgba(70, 90, 255, 0.08) 40%,
      transparent 70%);

  filter: blur(70px);
}


/* OPEN STATE */
.nx-mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* NAV CONTAINER */
.nx-mobile-nav {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;

  padding: 30px 28px;
  gap: 10px;
}


/* MENU LINKS */
.nx-mobile-nav a {

  position: relative;
  display: block;

  padding: 14px 16px;
  border-radius: 12px;

  font-size: 17px;
  font-weight: 500;

  color: #ffffff;
  text-decoration: none;

  transition: all .25s ease;
}


/* HOVER */
.nx-mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.nx-mobile-talk-btn {
  display: block;
  margin: 0 32px 20px;
  padding: 10px 0;
  color: #fff;
  text-align: center;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.nx-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: self-end;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.nx-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* RESPONSIVE */

@media (max-width: 860px) {

  .nx-nav,
  .nx-talk-btn {
    display: none;
  }

  .nx-mobile-toggle {
    display: flex;
  }

  .nx-header-inner {
    padding: 40px 50px;
  }

  .nx-nav,
  .nx-meta-partner {
    display: none;
  }
}

@media (max-width: 767px) {
  .nx-header-inner {
    padding: 20px 25px;
  }

  #nxMetaPartnerContainer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ------------------------------
   FOOTER LAYOUT STRUCTURE
------------------------------ */

.nx-footer {
  background: linear-gradient(145deg, #06060f 10%, #0b0b15 40%, #1e1e35 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #d9d9e3;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.nx-footer-container {
  padding: 30px var(--nx-side-padding);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 52px;
  margin: 0 auto;
}

.nx-footer-col {
  display: flex;
  flex-direction: column;
}

.nx-footer-brand img {
  width: 180px;
  margin-top: 19.5px;
}

.nx-footer-tagline {
  margin-top: 18px;
  /* color: #444; */
  font-size: 15px;
  line-height: 1.6;
}

/* Footer titles */
.nx-footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.93);
  letter-spacing: 0.04em;

}

/* Footer link list */
.nx-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);


}

.nx-footer-links li {
  margin-bottom: 10px;
}

/* Footer links */
.nx-footer-link {
  font-size: 15px;
  color: #d1d1dd;
  text-decoration: none;
  transition: 0.1s ease;
}

.nx-footer-links li a:hover {
  color: #ffffff;
  opacity: 0.9;
}


.nx-footer-link:hover {
  color: var(--brand-gradient, #7f5af0);
  padding-left: 4px;
}

/* ------------------------------
   BOTTOM BAR
------------------------------ */

.nx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #c8c8d2;
  margin-top: 50px;
  padding: 15px var(--nx-side-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nx-footer-bottom-left-text {
  color: #c8c8d2;
  font-size: 14px;
  white-space: nowrap;

}

.nx-footer-bottom-right {
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Footer hover neon effect */
.nx-footer-link:hover,
.nx-footer-bottom-right:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

/* ------------------------------
   RESPONSIVE FOOTER
------------------------------ */

@media(max-width: 900px) {
  .nx-footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nx-footer {
    padding: 20px 20px;
  }

  .nx-footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* Services dropdown */
.nx-nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}


.nx-services-dropdown {
  position: absolute;
  background: #0b0d18;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 720px;
  max-width: 820px;
  background: #0b0d18;
  border-radius: 18px;
  padding: 12px 8px 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(120, 130, 200, 0.18);
}

.nx-services-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===============================
   SERVICES DROPDOWN – 2 COLUMNS
=============================== */

.nx-services-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
}

.nx-services-col {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  line-height: 1.6;
}

.nx-services-col li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 8px;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ===============================
   SERVICES DROPDOWN – HIERARCHY
=============================== */

.nx-services-group {
  display: flex;
  flex-direction: column;
}

.nx-services-group-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 170, 220, 0.55);
  padding: 6px 14px 8px;
}



.nx-service-item a:hover,
.nx-service-item a.is-active {
  padding-left: 14px;
  /* 10px → 14px (same +4px as footer) */
}

/* Dropdown footer */
.nx-services-footer {
  margin-top: 12px;
  padding: 12px 18px 4px;
  border-top: 1px solid rgba(120, 130, 200, 0.12);
  text-align: right;
}

.nx-services-footer a {
  font-size: 13px;
  color: rgba(180, 190, 240, 0.75);
  text-decoration: none;
}

.nx-services-footer a:hover {
  color: #fff;
}

.nx-nav-link-services.is-active {
  color: #ffffff;
}

.nx-nav-link-services.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6cf2ff, #9b6cff);
}

/* Small subtle bullet icon (no SVG needed) */
.nx-dropdown-service-icon {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
  transform: translateY(-2px);
  background: rgba(180, 190, 240, 0.55);
}

.nx-service-item a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #6cf2ff, #9b6cff);

  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

@media (min-width: 861px) {
  .nx-services-close {
    display: none !important;
  }
}


/* MOBILE SERVICES POPUP */
/* =================================================
   MOBILE SERVICES – CLEAN MODAL (FINAL)
================================================= */
@media (max-width: 860px) {

  /* Full-screen overlay */
  .nx-services-dropdown.is-mobile.open {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(6, 8, 15, 0.96);
    backdrop-filter: blur(6px);
    width: 100%;
    height: 100%;
    pointer-events: auto;
  }

  /* Modal container */
  .nx-services-dropdown.is-mobile .nx-services-columns {

    width: min(92vw, 720px);
    margin-left: auto;
    margin-right: auto;
    transform: translateX(0);
    /* wider, centered, premium */
    max-height: 86vh;
    padding: 28px 22px;
    max-width: 640px;
    max-height: 88vh;
    background: linear-gradient(180deg, #06060f, #0b0b15);
    border-radius: 22px;
    overflow-y: auto;
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.75),
      0 0 0 1px rgba(140, 150, 220, 0.15);
  }

  /* Premium list alignment on mobile */
  .nx-services-col .nx-service-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    /* space between bullet and text */
    padding: 10px 8px;
    /* tap-friendly */
    line-height: 1.65;
    font-size: 15px;
  }

  /* Bullet alignment */
  .nx-services-col .nx-dropdown-service-icon {
    width: 4px;
    height: 4px;
    margin-right: 0;
    /* gap handles spacing now */
    transform: translateY(10px);
    /* aligns with first text line */
    flex: 0 0 auto;
    opacity: 0.75;
  }


  .nx-services-columns {
    display: block;
  }

  /* Group spacing */
  .nx-services-group {
    margin-bottom: 28px;
  }

  /* Stack sections */
  .nx-services-col,
  .nx-services-group {
    width: 100%;
  }

  /* Kill desktop positioning completely */
  .nx-services-dropdown {
    left: auto !important;
    right: auto !important;
    transform: none !important;
    min-width: unset !important;
    max-width: unset !important;
  }

  /* Close button */
  .nx-services-close {
    position: fixed;
    top: 14px;
    right: 14px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    border-radius: 10px;
    padding: 6px 10px;
    z-index: 10000;
  }

  body.nx-modal-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
  }

  .nx-services-group-title {
    padding: 0 8px 10px;
    padding-left: 2px;
    /* remove uneven left padding */
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
  }


  .nx-services-footer {
    margin-top: 12px;
    padding-top: 12px;
  }

  .nx-services-footer {
    border-top-color: rgba(140, 150, 220, 0.18);
  }
}

/* =========================================
   Services dropdown UL reset (CRITICAL)
========================================= */
#nxServicesDropdownList {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =================================
   META TECH PARTNER BADGE (HEADER)
================================= */
.nx-meta-partner {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 7px 14px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);

  font-size: 13px;
  font-weight: 500;
  color: #ffffff;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nx-meta-logo {
  height: 18px;
  width: auto;
}

.nx-meta-text {
  white-space: nowrap;
}

/* =================================
   META TOOLTIP (HOVER)
================================= */

.nx-meta-wrap {
  position: relative;
  cursor: pointer;
}

/* Tooltip box */
.nx-meta-tooltip {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;

  width: 340px;
  background: linear-gradient(180deg, #0a0c18, #111428);
  border-radius: 16px;
  padding: 18px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.28s ease;

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(140, 150, 220, 0.18);

  z-index: 9999;
}

/* Tooltip arrow */
.nx-meta-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #111428;
  transform: rotate(45deg);
}

/* Show on hover */
.nx-meta-wrap:hover .nx-meta-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Inner styling */
.nx-meta-tooltip-inner h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #ffffff;
}

.nx-meta-tooltip-inner p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.nx-meta-tooltip-inner a {
  font-size: 13px;
  text-decoration: none;
  color: #6cf2ff;
  font-weight: 500;
}

.nx-meta-tooltip-inner a:hover {
  color: #9b6cff;
}

@media (max-width: 767px) {

  .nx-meta-wrap {
    position: static;
  }

  .nx-meta-tooltip {
    position: fixed;
    top: 84px;
    left: 50%;
    right: auto;

    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);

    transform: translateX(-50%) translateY(10px);

    padding: 18px;
    text-align: left;
    box-sizing: border-box;
  }

  .nx-meta-wrap:hover .nx-meta-tooltip,
  .nx-meta-wrap:focus-within .nx-meta-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nx-meta-tooltip::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
  }

}

/* RIGHT HEADER SLOT */
.nx-header-right {
  display: flex;
  align-items: center;
}

/* ------------------------------
   FOOTER SOCIAL MEDIA
------------------------------ */

.nx-footer-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.nx-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);

  transition: transform 0.25s ease, background 0.25s ease;
}

.nx-footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(127, 90, 240, 0.12);
}

.nx-footer-social img {
  width: 18px;
  height: 18px;
}

/* ===============================
   WHATSAPP FLOATING BUTTON
=============================== */

.nx-whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 38px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  z-index: 9999;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.6);
}

.nx-whatsapp-float img {
  width: 26px;
  height: 26px;
}

/* ===============================
   PAGE LAYOUT (HEADER + FOOTER)
=============================== */

.nx-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nx-page-content {
  flex: 1;
  /* THIS pushes footer down */
  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: center;
  /* horizontal center */
  padding: 140px 20px;
}