header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(5, 5, 7, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  color: #f8fafc;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar .logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #00f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo svg {
  width: 24px;
  height: 24px;
  fill: url(#logoGradient);
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-family: 'Outfit', sans-serif;
}

.navbar .nav-links li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.navbar .nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00f0ff;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.navbar .nav-links li a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.navbar .nav-links li a:hover::after {
  width: 100%;
}

/* Hamburger (menu icon) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Animate into X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #00f0ff;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: #00f0ff;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    width: 300px;
    padding: 2rem;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.5), transparent);
  }

  .nav-links.active {
    right: 0;
  }

  .navbar .nav-links li a {
    font-size: 1.2rem;
  }
}