.header {
  width: 100%;
  background: rgba(2, 15, 28, 0.85);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 70px;
  overflow: visible; /* CRITICAL: allows nav menu to extend beyond header */
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(2, 15, 28, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 0;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 70px;
  overflow: hidden;
}

.logo img {
  height: 140px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo::before {
  display: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 6px 14px;
  font-size: 14px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: #00d2b9;
}

.nav-cta {
  background: transparent;
  color: #00d2b9 !important;
  border: 1.5px solid #00d2b9;
  border-radius: 6px;
  padding: 8px 18px !important;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: #00d2b9 !important;
  color: #020b16 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .header {
    height: 70px;
    overflow: visible;
  }

  .nav-container {
    height: 70px;
    overflow: visible;
    position: relative;
  }

  .logo {
    height: 70px;
  }

  .logo img {
    height: 150px;
  }

  .nav-toggle {
    display: flex !important;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: rgba(2, 15, 28, 0.99);
    padding: 90px 28px 32px;
    gap: 4px;
    z-index: 1050;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(0, 210, 185, 0.12);
    overflow-y: auto;
  }

  .nav-menu.open {
    display: flex !important;
  }

  .nav-menu a {
    font-size: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
    position: relative;
    z-index: 1060;
    pointer-events: auto;
  }
}

/* Prevent horizontal scroll on all screen sizes */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  box-sizing: border-box;
}