
/* =========================
   NAVIGATION BAR
========================= */
.navbar {
  background-color: var(--ls-dark);

  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: center;

  height: 68px;
  padding: 0 max(32px, calc((100vw - 1400px) / 2));

  border-bottom: 1px solid rgba(0, 0, 0, 0.2);

  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(6px);
}

.logo {
  display: flex;
  align-items: center;
  margin: 0;
}

.logo img {
  height: 52px;
}

.nav-links { /* Handles the navigation list layout and centers it horizontally */
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  margin: 0 auto;
  padding: 0;
}

.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: -2px;
  width: 100%;
  height: 3px;
  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);
}

/* =========================
   HAMBURGER BASE
========================= */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}


@media (max-width: 768px) {
  /* Hamburger */
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Logo */
  .logo {
    height: 80px; /* Adjust the height to make the logo larger */
    width: auto;
    margin-left: 0;
    margin-top: 0;
  }
}

/* =========================
   HAMBURGER ANIMATION
========================= */

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   DROPDOWN (MOBILE)
========================= */

.dropdown ul {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.dropdown.active ul {
  display: flex;
}