/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  padding: 1rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 20, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 124, 255, 0.1);
  z-index: 1000;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.3s;
}

.logo:hover {
  color: #7c7cff;
}

.navbar ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.navbar ul li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #9ca3af;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar ul li a:hover {
  color: #fff;
  background: rgba(124, 124, 255, 0.1);
}

/* CTA button */
.navbar ul li:last-child a {
  background: #fff;
  color: #020617;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
}

.navbar ul li:last-child a:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar {
    padding: 0.9rem 5%;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  .navbar ul.active {
    right: 0;
  }

  .navbar ul li {
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
  }

  .navbar ul.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .navbar ul li a {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }
}
