nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #2f3e46;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: #2f3e46;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 96px;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  height: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 1.6rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(47, 62, 70, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  transition: right 0.35s ease;
  z-index: 1000;
}

.mobile-menu a {
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu.open {
  right: 0;
}

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

  .hamburger {
    display: flex;
  }

  .logo img {
    height: 54px;
  }
}
