/* ═══════════════════════════════════ */
/* NAVIGATION COMPONENT                */
/* ═══════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: transparent;
  transition: top .4s var(--ease-smooth),
    width .4s var(--ease-smooth),
    border-radius .4s var(--ease-smooth),
    background .35s,
    box-shadow .35s,
    border-color .35s,
    padding .35s;
}

nav.scrolled {
  background: rgba(11,14,22,0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}

.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
  animation: blink 2s var(--ease-in-out) infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--cyan) !important;
  color: #060810 !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  border-radius: var(--radius);
  transition: opacity .2s, transform .2s !important;
}

.nav-cta:hover {
  opacity: .85 !important;
  transform: translateY(-1px) !important;
}

/* ─── HAMBURGER MENU ─── */
.hamburger {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .2s;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font);
}

.hamburger:hover {
  background: rgba(255,255,255,.05);
  color: var(--white);
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-lines span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

.hamburger-text {
  white-space: nowrap;
}

.hamburger.open .hamburger-lines span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open .hamburger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .hamburger-lines span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 199;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  margin-top: 12px;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: none;
  pointer-events: all;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

/* ─── MOBILE DROPDOWNS ─── */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: .95rem;
  font-family: var(--font);
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}

.mobile-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.mobile-dropdown-toggle::after {
  content: '+';
  float: right;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  color: currentColor;
  transition: all .25s ease;
}

.mobile-dropdown.open .mobile-dropdown-toggle::after {
  content: '−';
  transform: scale(1.1);
}

.mobile-dropdown-menu {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 6px;
  padding: 0 8px;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  max-height: 500px;
  opacity: 1;
  padding: 8px;
}

.mobile-dropdown-menu a {
  padding: 12px 16px;
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.mobile-dropdown-menu a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-cta {
  width: 100% !important;
  margin-top: 8px !important;
  background: var(--cyan) !important;
  color: #0a0c10 !important;
  font-weight: 700;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 12px 16px !important;
}

.mobile-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  background-image: url('../../assets/arrow-icon-black.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
}
