.scroll-navbar {
  background-color: #092c5c;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 11000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px !important;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

.nav-links li button {
  background: none;
  border: none;
  color: #fff639;
  font-weight: 700;
  font-size: 0.9rem;        /* 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;
}

.nav-links li button.active {
  color: #ffcc00;
  font-weight: 700;
  border-bottom: 2px solid #ffcc00;
  transform: translateY(-3px);
  text-shadow: 0 0 8px #ffcc00aa;
}

/* 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 */
}


.mobile-toggler {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 12000;
}

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #092c5c;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-links.open {
    max-height: 400px;
    padding: 12px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  }

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

  .nav-links li button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-top: 1px solid #1a3a6e;
  }

  .mobile-toggler {
    display: flex;
  }
}
