/* =========================================================
   ZENIXAI GLOBAL HEADER
   Unique classes to prevent page-level CSS conflicts
========================================================= */

.znx-global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  z-index: 9999;

  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.znx-global-header.znx-header-hidden {
  transform: translateY(-100%);
}

.znx-header-container {
  width: 100%;
  max-width: 1240px;
  height: 82px;

  margin: 0 auto;
  padding: 0 35px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   LOGO
========================= */

.znx-header-logo-link {
  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;

  transition: transform 0.2s ease;
}

.znx-header-logo-link:hover {
  transform: scale(1.02);
}

.znx-header-logo {
  display: block;

  width: auto;
  height: 80px;

  max-width: 190px;

  object-fit: contain;
}

/* =========================
   NAVIGATION
========================= */

.znx-header-nav {
  display: flex;
  align-items: center;
  gap: 50px;

  margin-right: 32px;

  font-family: var(--znx-font-body);

  font-size: 14px;
  font-weight: 500;

  color: #111827;
}

.znx-header-nav a {
  position: relative;

  display: inline-flex;
  align-items: center;

  height: 82px;

  color: #111827;
  text-decoration: none;

  white-space: nowrap;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.znx-header-nav a:hover {
  color: var(--znx-blue-600);
}

/* Optional underline hover */

.znx-header-nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 20px;

  width: 0;
  height: 2px;

  background: var(--znx-blue-600);

  transition: width 0.2s ease;
}

.znx-header-nav a:hover::after {
  width: 100%;
}


/* Active page nav link */
.znx-header-nav a.znx-active {
  color: var(--znx-blue-600);
  font-weight: 700;
}

.znx-header-nav a.znx-active::after {
  width: 100%;
}

/* =========================
   HAMBURGER TOGGLE (hidden on desktop)
========================= */

.znx-header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;

  width: 40px;
  height: 40px;

  margin-left: 12px;

  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.znx-header-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* X animation when menu is open */
.znx-header-toggle.znx-toggle-active .znx-header-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.znx-header-toggle.znx-toggle-active .znx-header-toggle-bar:nth-child(2) {
  opacity: 0;
}
.znx-header-toggle.znx-toggle-active .znx-header-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   HEADER RESPONSIVE
========================= */

@media (max-width: 1024px) {

  .znx-header-nav {
    gap: 20px;
    margin-right: 16px;
  }

  .znx-header-nav a {
    font-size: 13px;
  }

  .znx-header-logo {
    height: 56px;
    max-width: 170px;
  }
}

@media (max-width: 860px) {

  .znx-global-header,
  .znx-header-container {
    height: 72px;
  }

  .znx-header-logo {
    height: 48px;
    max-width: 160px;
  }

  /* Show the hamburger */
  .znx-header-toggle {
    display: flex;
  }

  /* Nav becomes a full-width dropdown drawer, closed by default */
  .znx-header-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    margin: 0;
    padding: 8px 20px 16px;

    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .znx-header-nav.znx-nav-open {
    display: flex;
  }

  .znx-header-nav a {
    height: auto;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .znx-header-nav a:last-child {
    border-bottom: none;
  }

  .znx-header-nav a::after {
    display: none;
  }
}

@media (max-width: 480px) {

  .znx-header-container {
    padding: 0 20px;
  }

  .znx-header-logo {
    height: 44px;
    max-width: 145px;
  }

  .znx-global-btn--small {
    padding: 9px 13px;
    font-size: 12px;
  }
}

/* Global Fix for all 5 pages */
body {
  padding-top: 82px; /* Unga header height (82px) */
}

/* =========================================================
   ZENIXAI GLOBAL HEADER CTA BUTTON
========================================================= */

.znx-global-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 20px;

  min-height: 40px;

  border: 1px solid transparent;
  border-radius: 10px;

  font-family: var(--znx-font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;

  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


/* =========================
   PRIMARY BUTTON
========================= */

.znx-global-btn--primary {
  background: #2f5fff;
  color: #ffffff;

  box-shadow:
    0 6px 16px rgba(47, 95, 255, 0.25);
}


/* =========================
   HOVER
========================= */

.znx-global-btn--primary:hover {
  background: #3d6bff;
  color: #ffffff;

  transform: translateY(-2px);

  box-shadow:
    0 10px 22px rgba(47, 95, 255, 0.35);
}


/* =========================
   SMALL BUTTON
========================= */

.znx-global-btn--small {
  padding: 10px 20px;

  min-width: 100px;

  font-size: 13.5px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

  .znx-global-btn--small {
    padding: 9px 14px;

    min-width: auto;

    font-size: 12px;
  }
}