.scroll-navbar {
  background-color: #0c367d; /* Slightly richer blue */
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 11000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  backdrop-filter: saturate(180%) blur(10px); /* subtle glass effect */
  border-bottom: 1.5px solid #ffcc00cc;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-navbar:hover,
.scroll-navbar:focus-within {
  background-color: #0a2f6b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.scroll-navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  gap: 20px;
}

/* Nav links container */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.nav-links::-webkit-scrollbar {
  display: none; /* WebKit browsers */
}

/* Nav links buttons */
.nav-links li button {
  background: none;
  border: none;
  color: #fff639;
  font-weight: 700;
  font-size: 1.1rem;        /* Increased font size */
  white-space: nowrap;
  padding: 10px 16px;       /* Increased padding for better click area */
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
  outline-offset: 4px;
  text-align: center;       /* Center align text */
  display: block;           /* Make buttons fill full width of their container */
  width: 100%;
}

.nav-links li button:hover,
.nav-links li button:focus-visible {
  color: #ffde59;
  background-color: rgba(255, 204, 0, 0.25);  /* Visible yellow transparent background */
  transform: translateY(-4px);
  text-shadow: 0 0 10px #ffd600bb;
  box-shadow: 0 0 15px #ffd600aa;
}

/* Style for Gallery link in navbar topbar */
.topbar-link {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #f3ef0e; /* Bright yellow for visibility */
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

/* Hover & Focus effects */
.topbar-link:hover,
.topbar-link:focus {
  color: #ffcc00; /* Lighter yellow */
  background-color: rgba(255, 204, 0, 0.2); /* Subtle background highlight */
  box-shadow: 0 0 10px #ffd600aa; /* Soft glow effect */
  transform: translateY(-2px);
}

/* Optional: active state (if used) */
.topbar-link.active,
.topbar-link[aria-current='page'] {
  color: #ffd700; /* Gold color */
  font-weight: 700;
  border-bottom: 2px solid #ffd700; /* underline emphasis */
}


/* .nav-links li button:hover,
.nav-links li button:focus-visible {
  color: #ffde59;
  background-color: rgba(255, 204, 0, 0.15);
  transform: translateY(-4px);
  text-shadow: 0 0 10px #ffd600bb;
  box-shadow: 0 0 15px #ffd600aa;
} */

.nav-links li button.active {
  color: #ffcc00;
  border-bottom: 3px solid #ffcc00;
  font-weight: 800;
  transform: translateY(-4px);
  text-shadow: 0 0 12px #ffcc0099;
  box-shadow: 0 2px 12px #ffcc00cc;
}

/* Mobile toggler button */
.mobile-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 12000;
  transition: transform 0.3s ease;
}

.mobile-toggler span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff639;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-toggler.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggler.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggler.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile nav styles */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(12, 54, 125, 0.95);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1.5px solid #ffcc00cc;
  }

  .nav-links.open {
    max-height: 420px;
    padding: 18px 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid #223d79;
    border-radius: 0;
    font-size: 1rem;
  }

  .mobile-toggler {
    display: flex;
  }
}
