.navbar {
  background-color: #0c0c24; /* dark gray/navy */
  color: #f9fafb;
  padding: 0.5rem 0; /* slightly tighter for logo height */
  width: 100%;
  position: relative; /* anchors dropdown positioning */
  z-index: 2000; /* keeps navbar above page content */
}

.nav-container {
  width: 100%; /* full width of viewport */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Logo area: image + text */
.nav-logo {
  display: flex;
  align-items: center;
  color: #f9fafb; /* accent color */
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-logo img {
  height: 30px; /* adjust between 24px–40px depending on your preference */
  width: auto;
  margin-right: 8px; /* space between logo image and text */
  vertical-align: middle;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f9fafb;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s, transform 0.3s ease;
  display: inline-block;
}

.nav-links a:hover {
  transform: scale(1.08);
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #f9fafb;
  cursor: pointer;
}

/* RESPONSIVE - show hamburger and hide links */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    /* can change the final digits in background-color to change the glassy background color*/
    background-color: rgba(12, 12, 36, 0.8); /* slightly more see-through */
    backdrop-filter: blur(8px); /* adds frosted glass blur */
    -webkit-backdrop-filter: blur(8px); /* Safari support */

    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    border: none;
    text-align: center;
    z-index: 1000;

    /* animation setup */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .nav-links.show {
    max-height: 400px; /* adjust for more items if needed */
    opacity: 1;
    padding: 1rem 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.show li {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar {
    padding: 0.3rem 0; /* slightly reduce vertical padding for mobile */
  }

  /* Delay each item slightly - needs to be added or removed from if content is removed or added */
  .nav-links.show li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.show li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.show li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.show li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.show li:nth-child(5) { transition-delay: 0.5s; }
}