.scroll-container.fade-out {
  opacity: 0;
  pointer-events: none;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  transition: all 0.3s ease;
  width: 80%;
  border-radius: 32px;
  margin-right: 10%;
  margin-top: 1rem;
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 769px) {
  .navbar-content {
    justify-content: space-between; /* Align logo and links to the sides */
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: black;
  transition: all 0.3s ease;
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    right: -380px; /* Ensure drawer is hidden by default */
  }

  .nav-open .nav-links {
    right: 0;
  }

  .nav-open .hamburger span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .hamburger span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }
}
