/* ============================================
   METATECH SOFTWARE — Navbar
   ============================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  padding: 25px var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(243,126,1,0.08);
  transition: var(--transition-base);
}
.navbar.scrolled {
  padding: 14px var(--space-2xl);
  background: rgba(0,0,0,0.8);
  border-bottom: 1px solid rgba(243,126,1,0.15);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}
.navbar .logo .logo-img {
  height: 43px !important;
  width: auto !important;
  max-height: 43px;
  filter: brightness(0) invert(1) !important;
  -webkit-filter: brightness(0) invert(1) !important;
  transition: var(--transition-fast);
}
.navbar .logo:hover .logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.3)) !important;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}
.nav-links a {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary-500);
  transition: var(--transition-base);
}
.nav-links a:hover {
  color: var(--primary-400);
}
.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA Button — Pure Waveform, No Border */
.navbar .nav-links li a.nav-cta {
  padding: 14px 24px;
  background: transparent;
  color: #fff !important;
  border-radius: 0;
  border: none !important;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  overflow: visible;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.3s ease;
  box-shadow: none;
}
.nav-cta::before,
.nav-cta::after {
  display: none !important;
}

/* Text */
.cta-text {
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.9);
  -webkit-text-fill-color: rgba(255,255,255,0.9);
  text-shadow: 0 0 20px rgba(243,126,1,0.4);
  transition: all 0.3s ease;
}

/* Waveform bars */
.cta-wave {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 24px;
  position: relative;
  z-index: 2;
}
.cta-wave span {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--primary-500);
  animation: waveBar 1.4s ease-in-out infinite;
  opacity: 0.7;
}
.cta-wave span:nth-child(1) { height: 5px; animation-delay: 0s; }
.cta-wave span:nth-child(2) { height: 10px; animation-delay: 0.08s; }
.cta-wave span:nth-child(3) { height: 18px; animation-delay: 0.16s; }
.cta-wave span:nth-child(4) { height: 13px; animation-delay: 0.24s; }
.cta-wave span:nth-child(5) { height: 24px; animation-delay: 0.12s; }
.cta-wave span:nth-child(6) { height: 15px; animation-delay: 0.2s; }
.cta-wave span:nth-child(7) { height: 20px; animation-delay: 0.04s; }
.cta-wave span:nth-child(8) { height: 8px; animation-delay: 0.28s; }
.cta-wave span:nth-child(9) { height: 4px; animation-delay: 0.32s; }

/* Hover: waves go wild */
.navbar .nav-links li a.nav-cta:hover {
  background: transparent;
  color: #fff !important;
  box-shadow: none;
  transform: none;
}
.navbar .nav-links li a.nav-cta:hover .cta-wave span {
  animation-duration: 0.5s;
  opacity: 1;
  box-shadow: 0 0 6px rgba(243,126,1,0.6);
}
.navbar .nav-links li a.nav-cta:hover .cta-text {
  text-shadow: 0 0 30px rgba(243,126,1,0.7), 0 0 60px rgba(243,126,1,0.3);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.2); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

/* Mobile menu toggle — görünürlük breakpoint’te responsive.css içinde */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.nav-toggle:hover {
  color: var(--primary-400);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: var(--space-xs);
}
.nav-toggle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 24px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.navbar.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.navbar.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Arka plan katmanı — yalnızca mobil breakpoint’te görünür */
.nav-backdrop {
  display: none;
}
