:root {
  --header-height: 76px ;
}

body > header {
  height: var(--header-height);
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  display: flex;
  top: 0px;
  z-index: 5;
}

header nav {
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  position: sticky;
  max-width: var(--page-max-width);
}

header nav a {
  text-decoration: none;
}

.nav-logo img {
  height: 56px;
  position: relative;
  top: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 48px;
  font-size: 15px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0px;
  padding: 0;
}

.nav-links li {
  color: #333;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.6px;
}

.nav-links .dropdown {
  display: flex;
  position: relative;
}

body > header .nav-links .dropdown {
  --glass-fill: rgba(15, 15, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --accent-glow: radial-gradient(circle at center, rgba(100, 100, 255, 0.15) 0%, transparent 70%);
  --text-ghost: #e8e8f7;
  --text-solid: #ffffff;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body > header .nav-links .dropdown button[aria-expanded=true] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
body > header .nav-links .dropdown {
  /* 3. The Phantom Menu */
}
body > header .nav-links .dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 340px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--glass-fill);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  /* Reveal Animation: Fade + Drift */
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
  z-index: 1000;
}
body > header .nav-links .dropdown .dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
body > header .nav-links .dropdown {
  /* 4. The Interactive Items */
}
body > header .nav-links .dropdown .dropdown-menu li {
  margin-bottom: 4px;
}
body > header .nav-links .dropdown .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  text-decoration: none;
  color: var(--text-ghost);
  border-radius: 14px;
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid transparent;
}
body > header .nav-links .dropdown {
  /* Hover State: Spotlight Effect */
}
body > header .nav-links .dropdown .dropdown-menu li a:hover {
  color: var(--text-solid) !important;
  background: var(--accent-glow) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  transform: scale(1.02) !important;
}
body > header .nav-links .dropdown {
  /* The Icon Styling */
}
body > header .nav-links .dropdown .icon-container {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: all 0.3s ease;
}
body > header .nav-links .dropdown .dropdown-menu a:hover .icon-container {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(100, 100, 255, 0.2);
}
body > header .nav-links .dropdown {
  /* Text Labels */
}
body > header .nav-links .dropdown .label-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
body > header .nav-links .dropdown .label-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
body > header .nav-links .dropdown .label-sub {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 2px;
  font-weight: 400;
}

/*
body > header .nav-links .dropdown {

    --bg-page: #f8fafc;
    --menu-bg: #ffffff;
    --primary: #6366f1; 
    --text-main: #1e293b;
    --text-sub: #64748b;
    --border: #f1f5f9;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    font-family: 'Inter', -apple-system, sans-serif;

    .dropdown-menu {

        pointer-events: auto;
        position: absolute;
        top: calc(100% + 40px);
        left: 50%;
        transform: translateX(-50%) translateY(10px) scale(0.95);
        width: 520px;
        background: var(--menu-bg);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 12px;
        box-shadow: var(--shadow);
        list-style: none;
        margin: 0;


        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 100;

    }




    button[aria-expanded=true] + .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }




  .dropdown-menu li { display: block; }

  .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.2s ease;
  }

  .dropdown-menu a:hover {
    background-color: #f8faff;
  }


  .icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--text-sub);
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .dropdown-menu a:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: rotate(-5deg) scale(1.1);
  }


  .link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .link-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
  }

  .link-desc {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 2px;
    font-weight: 400;
  }

}

*/
.nav-links .dropdown button, .mobile-menu ul .dropdown button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

.mobile-menu .dropdown button[aria-expanded=true] {
  color: blue;
}

.mobile-menu .dropdown button[aria-expanded=true] + .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Used because the transition is visable on refresh */
.nav-links .dropdown-menu.ready {
  transition: 0.3s ease-in-out;
  display: revert; /* Default */
}

.nav-links > li a, .mobile-menu ul a {
  color: inherit;
}

header .nav-links > li:hover, header .mobile-menu li:hover {
  color: #0073e6 !important;
}

header nav li > * {
  transition: 0.4s color;
}

header .nav-cta {
  background-color: #004cff;
  color: #fff;
  padding: 9px 1rem;
  border-radius: 33px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

/* Mobile toggle - hidden by default */
header .nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 19px;
}

body > header.dark-mode .nav-logo img {
  height: 58px;
  top: 1px;
  opacity: 90%;
}

body > header.dark-mode .nav-toggle {
  color: white;
}

body > header.dark-mode {
  position: absolute;
  left: 0px;
  right: 0px;
  background: #0a0a0a;
}

header.dark-mode .nav-links .dropdown button[aria-expanded=true] {
  color: white;
}

body > header.dark-mode .nav-cta {
  padding: 8px 17px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: #00ffb7;
  color: black;
  font-family: inherit;
  border-radius: 33px;
  font-size: 14px;
}

body > header.dark-mode .nav-links li {
  color: rgba(218, 233, 255, 0.51);
  font-weight: 600;
}

body > header.dark-mode .dropdown-menu li a:hover {
  color: inherit !important;
}

body > header.dark-mode .dropdown-menu li {
  color: rgba(0, 0, 0, 0.74);
}

body > header.dark-mode nav .nav-links li:not(.dropdown li) > *:hover {
  color: white !important;
}

body > header.dark-mode {
  position: fixed !important;
  background: inherit !important;
  font-family: Poppins, Arial;
}
body > header.dark-mode .nav-links > li {
  font-weight: 300 !important;
}
body > header.dark-mode .nav-cta {
  font-weight: 500 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 6px 15px !important;
  color: rgba(0, 0, 0, 0.9215686275) !important;
}

@media (max-width: 950px) {
  .nav-links, .nav-cta {
    display: none;
  }
  header .nav-toggle {
    display: block;
  }
}
.mobile-menu {
  display: none;
  position: fixed;
  right: 0px;
  top: 0px;
  background: white;
  color: black;
  height: 100vh;
  font-family: Inter, Arial;
  padding: 40px;
  max-width: 365px;
  box-sizing: border-box;
  transform: translateX(100%);
  overflow: auto;
}

/* Used because the transition is visable on refresh */
.mobile-menu.ready {
  transition: 0.5s;
  display: revert; /* Default */
}

.mobile-menu ul > li {
  font-size: 16px;
  font-weight: 500;
  color: #6d6d6d;
}

.mobile-menu ul > li#contact-li {
  background: rgba(0, 0, 0, 0.0901960784);
  color: rgba(0, 0, 0, 0.6392156863);
  margin-top: 37px;
  padding: 0px 26px;
  font-weight: 600;
  border-radius: 7px;
  text-transform: uppercase;
  font-size: 15px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu ul .dropdown-menu {
  padding: 0px 25px;
  height: 0px;
  overflow: hidden;
  transition: 0.2s ease-out;
  box-sizing: content-box;
}

.mobile-menu .dropdown button[aria-expanded=true] {
  color: blue;
}

.mobile-menu .dropdown button[aria-expanded=true] + .dropdown-menu {
  padding-top: 16px;
}

.mobile-menu.open {
  transform: translateX(0%);
}

.mobile-menu .logo img {
  width: 112px;
}

.mobile-menu h5 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0px !important;
  margin-bottom: 23px !important;
}

.mobile-menu ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu p {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
  margin: 18px 0px;
}

/*close button*/
.close-x {
  position: absolute;
  right: 27px;
  width: 25px;
  height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* X lines */
.close-x span {
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.831372549);
}

/* Default X */
.close-x span:first-child {
  transform: rotate(45deg);
}

.close-x span:last-child {
  transform: rotate(-45deg);
}

.close-x:hover {
  transform: rotate(90deg);
}