#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 184, 217, 0.12);
  transition: background var(--t-med);
}

#navbar.scrolled {
  background: rgba(10, 26, 46, 0.97);
}

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

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color var(--t-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width var(--t-med);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-contact {
  padding: 9px 22px;
  border: 1.5px solid var(--white);
  border-radius: 30px;
  color: var(--white) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--t-fast), color var(--t-fast) !important;
  white-space: nowrap;
}

.btn-contact:hover {
  background: var(--white) !important;
  color: var(--dark) !important;
}

.btn-contact::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-med);
  display: block;
}

@media (max-width: 640px) {
  #navbar { padding: 0 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10, 26, 46, 0.97);
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(0, 184, 217, 0.1);
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}
