/* ================================================================
   HEADER / NAVIGATION
================================================================ */

.main-header  {
  position: fixed;
  top: 0;
  width: 100%;
  height: 68px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  transition: var(--t-base);
  transform: translateZ(0);

}
.main-header.scrolled  {
  background: rgba(3, 3, 10, 0.96);
  border-bottom-color: var(--border-cyan);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);

}
.main-header .container  {
  max-width: 1240px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 100%;

}
.logo a  {
  display: flex;
  align-items: center;
  text-decoration: none;

}
.logo img  {
  height: 38px;
  width: auto;
  transition: var(--t-base);

}
.logo img:hover  {
  filter: drop-shadow(0 0 10px rgba(0, 195, 255, 0.6));

}
.nav > ul  {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;

}
.nav a  {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  transition: var(--t-base);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;

}
.nav a:hover  {
  color: var(--text-primary);

}
.nav a::after  {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--grad-cyan);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);

}
.nav a:hover::after  {
  transform: scaleX(1);

}
.nav li  {
  position: relative;

}
.has-dropdown > a  {
  gap: 5px;

}
.nav-chevron  {
  font-size: 0.65rem;
  transition: transform 0.3s var(--ease);

}
.has-dropdown:hover .nav-chevron  {
  transform: rotate(180deg);

}
.has-dropdown::after  {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -34px;
  height: 34px;

}
.nav-dropdown  {
  position: absolute;
  top: calc(100% + 34px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 230px;
  background: rgba(6, 6, 14, 0.97);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-top: 2px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 200;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);

}
.has-dropdown:hover .nav-dropdown  {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);

}
.nav-dropdown li a  {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: var(--t-base);

}
.nav-dropdown li a::after, .nav-dropdown li a:hover::after  {
  display: none !important;
  width: 0 !important;

}
.nav-soon-badge  {
  display: inline-flex;
  align-items: center;
  font-size: 0.48rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 195, 255, 0.09);
  border: 1px solid rgba(0, 195, 255, 0.22);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1.4;

}
.nav-dropdown li a:hover  {
  color: var(--text-primary);
  background: rgba(0, 195, 255, 0.07);
  transform: translateX(4px);

}
.nav-dropdown li a i  {
  color: var(--cyan);
  font-size: 0.9rem;
  width: 16px;
  flex-shrink: 0;

}
[lang="ar"] .nav-dropdown  {
  left: auto !important;
  right: 0 !important;
  transform: translateY(-6px) !important;

}
[lang="ar"] .has-dropdown:hover .nav-dropdown  {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) !important;

}
[lang="ar"] .nav-dropdown li a:hover  {
  transform: translateX(-4px);

}
.mobile-sub  {
  padding-left: 28px !important;
  font-size: 0.82rem !important;
  border-left: 1px solid var(--border-cyan) !important;
  margin-left: 14px !important;
  color: var(--text-muted) !important;

}
.hamburger  {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 20;

}
.hamburger div  {
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);

}
.hamburger.active div:nth-child(1)  {
  transform: rotate(45deg) translateY(9px);

}
.hamburger.active div:nth-child(2)  {
  opacity: 0;
  transform: scaleX(0);

}
.hamburger.active div:nth-child(3)  {
  transform: rotate(-45deg) translateY(-9px);

}
.mobile-nav  {
  position: fixed;
  top: 68px;
  right: 18px;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 15, 0.97);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-cyan);
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.22s var(--ease-bounce);
  z-index: 99;
  max-height: calc((100dvh - 88px) * 0.8);
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 195, 255, 0.25) transparent;

}
.mobile-nav::-webkit-scrollbar  {
  width: 4px;

}
.mobile-nav::-webkit-scrollbar-track  {
  background: transparent;
  border-radius: 4px;

}
.mobile-nav::-webkit-scrollbar-thumb  {
  background: rgba(0, 195, 255, 0.22);
  border-radius: 4px;
  transition: background 0.2s;

}
.mobile-nav::-webkit-scrollbar-thumb:hover  {
  background: rgba(0, 195, 255, 0.42);

}
.mobile-nav::after  {
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 15, 0.92));
  pointer-events: none;
  display: block;
  flex-shrink: 0;
  margin-top: auto;

}
.mobile-nav.open  {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;

}
.mobile-nav a  {
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  transition: var(--t-base);
  border: 1px solid transparent;

}
.mobile-nav a:hover  {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  transform: translateX(4px);

}
@media (max-width: 768px)  {
  .nav  {
    display: none;

  }
  .hamburger  {
    display: flex;

  }

}