/* Hide horizontal scroll globally */
body {
  overflow-x: hidden;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
}

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

/* Default nav styles */
.nav-links ul {
  list-style: none; /* ✅ removes dots */
  display: flex;
  gap: 0.5rem;
  margin: 0; /* reset browser default margin */
  padding: 0; /* reset browser default padding */
  width: 100%; /* ✅ full width */
}
.nav-links li {
  width: 100%; /* ✅ li spans whole menu */
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed; /* ✅ prevents it from affecting page width */
    top: 70px;
    right: 0;
    background: rgba(10, 37, 64, 0.97);
    width: 150px; /* gave a bit more breathing space */
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(100%); /* ✅ hidden offscreen */
    transition: transform 0.3s ease;
    overflow: hidden;
    height: 128px;
    z-index: 1000; /* keeps it above page content */
  }

  .nav-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  .nav-links a {
    display: block; /* ✅ block so it fills li */
    width: 100%;
    padding: 1rem 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    box-sizing: border-box;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
  }

  .nav-links.active {
    transform: translateX(0); /* ✅ slides into view */
  }

  /* Burger animation */
  .burger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger.toggle span:nth-child(2) {
    opacity: 0;
  }

  .burger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
