/* --- MENU TOGGLE (animated hamburger) --- */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  height: 40px;
  margin-right: 2rem;
  position: relative;
  transition: transform 0.15s ease-in-out;
  width: 40px;
  z-index: 100;
}
.menu-toggle:hover {
  transform: scale(1.1);
}
.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle .bar {
  background-color: var(--black);
  border-radius: 2px;
  display: block;
  height: 4px;
  left: 8px;
  position: absolute;
  transition: 0.4s;
  width: 24px;
}
.menu-toggle .bar:nth-child(1) {
  top: 10px;
}
.menu-toggle .bar:nth-child(2) {
  top: 18px;
}
.menu-toggle .bar:nth-child(3) {
  top: 26px;
}
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(3px, 8px);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -8px);
}
/* --- HEADER (sticky container) --- */
header {
  height: fit-content;
  position: sticky;
  top: 0;
  z-index: 1000;
}
#header-bar {
  align-content: center;
  align-items: center;
  background-color: var(--primary-color);
  display: flex;
  filter: drop-shadow(0px 3px 20px rgba(0, 0, 0, 0.5));
  flex-direction: row;
  height: 5rem;
  justify-content: space-between;
  justify-items: space-between;
  position: relative;
  width: 100%;
  z-index: inherit;
}
#header-bar > a {
  align-items: center;
  display: flex;
  height: 50%;
  max-height: 50%;
  max-width: 100%;
  overflow: hidden;
}
#header-bar > a > img {
  display: block;
  height: 100%;
  margin-left: 2rem;
  object-fit: contain;
  transition: 0.15s ease-in-out;
  width: auto;
}
#header-bar > a > img:hover {
  transform: scale(0.98);
}

/* --- PRIMARY NAVIGATION (slide-out) --- */
#primary-navigation {
  align-content: center;
  background-image: var(--dark-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  left: 0;
  padding: 0.5rem;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  width: 100%;
  z-index: 10;
}
/* --- SLIDE-OUT NAVIGATION --- */
#primary-navigation.open {
  filter: drop-shadow(0px 3px 20px rgba(0, 0, 0, 0.5));
  pointer-events: auto;
  transform: translateY(0);
}

#primary-navigation a {
  background-color: hsla(0, 0%, 0%, 0.8);
  border-color: var(--secondary-color);
  border-radius: 6px;
  border-style: solid;
  border-width: 0.2rem;
  color: var(--white);
  cursor: pointer;
  filter: var(--filter-shadow);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  text-align: center;
  text-transform: uppercase;
  transition: 0.15s ease-in-out;
}

#primary-navigation a:hover {
  filter: drop-shadow(0px 0px 10px var(--secondary-color-glow));
  overflow: hidden;
  position: relative;
  transform: scale(1.05);
}

#primary-navigation a:hover::after {
  animation: shine-across 0.7s forwards;
  background: linear-gradient(
    120deg,
    transparent 0%,
    var(--secondary-color-glow) 50%,
    transparent 100%
  );
  content: "";
  height: 100%;
  left: -75%;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 50%;
}
