/* ----------------------------------- */
/* GLOBAL NAV STYLES */
/* ----------------------------------- */
.xprtia-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  /* backdrop-filter: blur(10px); */
  /* background: rgba(0,0,0,0.1); */
  background: transparent;
  padding: 18px 0;
 
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.xprtia-nav.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1350px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  text-decoration: none;
}

/* DESKTOP MENU */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links .nav-link {
  text-decoration: none;
}

.lang-icon {
  cursor: pointer;
}
/* DESKTOP DROPDOWN PANEL */
.dropdown-panel {
  position: absolute;
  left: 50%;
  width: calc( 100% - 80px );
  margin-inline:auto;
  max-width: 1920px;
  padding: 18px;
  border-radius: 14px;

  background: linear-gradient(
    180deg,
    rgba(15, 32, 40, 0.95),
    rgba(10, 24, 30, 0.95)
  );
  background-color: var(--primary);

  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);

  display: flex;
  justify-content: space-between;

  opacity: 0;
  transform: translate(-50%,12px);
  pointer-events: none;
  transition: all .3s ease;
  top: 0%;
  margin-top: 70px;
}
.dropdown-panel::after {
  top:0;
  left: 0;
  border-radius: 14px;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(19,80,194,0.3));
  z-index: 1;
  pointer-events: none;
}
.nav-dropdown-background{
  background: linear-gradient(to top, transparent ,var(--primary));
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  pointer-events: none;

}
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -32px;              /* MUST match your margin-top */
  left: 0;
  width: 100%;
  height: 32px;
  background: transparent;
}
.dropdown:hover .dropdown-panel,
.dropdown-panel:hover {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.dropdown-card {
  display: flex;
  gap: 14px;
  border-radius: 12px;
  /* background: rgba(255,255,255,0.03); */
  /* transition: background .25s ease; */
  max-width: 550px;
  padding: 32px 50px;
  transition: all .3s ease;
  border: 1px solid transparent;
}

.dropdown-card svg path,
.dropdown-card svg rect {
  transition: fill .3s ease, stroke .3s ease;
}
/* hover state */
.dropdown-card:hover svg path {
  fill: var(--yellow-accent);
}

.dropdown-card:hover svg path{
  stroke: var(--almost-black);
  fill: var(--almost-black);
}
.dropdown-card:hover svg rect {
  fill: var(--yellow-accent);
  stroke: var(--almost-black);
}
.dropdown-card:hover {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(75,90,96,0.5);
}

.dropdown-card h4 {
  margin-bottom: 4px;
}


.icon-box {
  width: 79px;
  height: 79px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------- */
/* MOBILE */
/* ----------------------------------- */
.nav-blur-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 900; /* below menu (998) but above page */
}

/* visible when menu is open */
.nav-open .nav-blur-overlay {
  opacity: 1;
  pointer-events: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 4px;
}
.hamburger span:nth-child(1){
  width: 18px;
  align-self: end;
}
.hamburger span:nth-child(3){
  width: 18px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  backdrop-filter: blur(20px);
  background: rgba(15, 35, 43, 0.6);
  height: 100vh;
  width: 100%;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right .3s ease;
  z-index: 998;
}

.mobile-menu .nav-link {
  text-decoration: none;
}

.mobile-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-trigger {
  font-size: 20px;
  color: #d7dade;
}

.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 25px;
  
}

.mobile-dropdown.open .mobile-submenu,
.mobile-section.open .mobile-submenu {
  display: flex;
  margin-top: 20px;
  
}

.mobile-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
}

.mobile-card h4 {
  font-size: 15px;
  color: #e9f7fb;
}

.mobile-card p {
  font-size: 13px;
  color: #b7c6cc;
}

.mobile-card .icon {
  font-size: 20px;
}
.mobile-drop-down-tab{
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
  align-items: start;
}
.mobile-drop-down-tab .icon{
  width: 42px;
  height: 42px;
}
.mobile-drop-down-tab .icon svg{
  width: 100%;
  height: 100%;
}
.mobile-drop-down-tab .text{
  max-width: 80%;
}
.mobile-drop-down-tab .text h6{
  margin-bottom: 8px;
}
@media (max-width: 1440px) {
  .icon-box{
    width: 44px;
    height: 50px;
  }
}
@media (min-width: 951px) {
    .only-mobile{
        display:none;
    }
}
@media (max-width: 950px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .only-mobile{display:flex;}
}
