
/* =========================
   NAVIGATION BAR
========================= */
.navbar { /* Controls the navbar container (layout, height, background, positioning context) */
  background-color: #1e2023;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 60px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  margin-left: -10px;
  margin-top: -8px;
}

.logo img {
  height: 70px;
  width: auto;
}

.nav-links { /* Handles the navigation list layout and centers it horizontally */
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 90px;
  margin: 0 auto;
  padding: 0;
}

.nav-spacer {
  width: 175px; /* MUST roughly match logo width */
}

.nav-links a { /* Styles individual navigation links (font, size, spacing, color) */
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
  color: #F7F5F2;
  font-size: 18px;
  opacity: 0.95;
}

.nav-links a:hover { /* Defines hover behavior for nav links */
  opacity: 0.7;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}

/* underline base (hidden) */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #bb080b; /* Legacy red */
  opacity: 0;
  transform: scaleX(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 0 10px rgba(187, 8, 11, 0.8);
}

/* active page */
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* optional hover effect */
.nav-links a:hover::after {
  opacity: 0.7;
  transform: scaleX(1);
}

.nav-links a.active {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(187, 8, 11, 0.6);
}

