/* =========================
   BASE NAVBAR (desktop)
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;  /* links go right */
  align-items: center;
  background: transparent !important;
  padding: 10px 20px;
  z-index: 10000;             /* sit on top of everything */
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.navbar a {
  color: white;
  padding: 10px;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.navbar a:hover {
  background: rgba(255,255,255,0.2);
}

/* hide toggle on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* dark background on scroll */
.navbar.scrolled {
  background: rgba(0,0,0,0.7);
}


/* =========================
   MOBILE NAV (≤768px)
   ========================= */
@media (max-width: 768px) {
  .navbar {
    justify-content: flex-start;  /* toggle on left */
    padding: 10px 20px;
  }

  /* show hamburger */
  .nav-toggle {
    display: block;
    margin-right: auto;  /* push links container off-screen */
  }

  /* hide links by default */
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.8);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
  }

  /* when you click toggle */
  .navbar.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }
}
