/* --- Global & Body --- */
body.menu-open {
  overflow: hidden; /* Prevent scrolling when the menu is open */
}

/* Accessible utility class to hide text visually but keep it for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Menu Button and Icon --- */
.menu-toggle {
  position: fixed; /* Use fixed positioning so it's always visible */
  top: 20px;
  left: 20px;
  width: 40px;
  height: 30px;
  border: none;
  cursor: pointer;
  background: transparent;
  z-index: 1001; /* Must be higher than the menu overlay */
  padding: 0;
}




.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  content: '';
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #333;
  border-radius: 1px;
  transition: all 0.5s ease-in-out;
}

.hamburger-lines::before { top: -12px; }
.hamburger-lines::after { top: 12px; }

/* Change icon color and animate to 'X' when menu is open */
.menu-toggle[aria-expanded="true"] .hamburger-lines {
  background: transparent; /* Middle line disappears */
}
.menu-toggle[aria-expanded="true"] .hamburger-lines::before,
.menu-toggle[aria-expanded="true"] .hamburger-lines::after {
  background: #fff; /* Lines become white against the dark overlay */
}
.menu-toggle[aria-expanded="true"] .hamburger-lines::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger-lines::after {
  transform: rotate(-45deg);
  top: 0;
}

/* --- Full Page Navigation Menu --- */
.menu {
  /* Positioning for full-screen overlay */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;

  /* Use opacity and visibility for the hide/show transition */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;

  /* Use flexbox to position the links on the right */
  display: flex;
  justify-content:flex-start; /* Horizontal alignment to the right */
  align-items: center; /* Vertical alignment to the center */
}

/* Show the menu when .is-open class is present */
.menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu ul {
  list-style: none;
  padding: 0 5vw; /* Add some padding from the edge */
  text-align: left;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 5rem; /* Make the links larger for a full-page menu */
  font-family: Nimbus-reg;
  font-weight: 900;
  line-height: 4rem;
  display: block;
  padding: 10px 0;
  transition: color 0.3s ease;
  background-size:100px;
}

.menu a:hover, a:focus {
  color: #575757;
  border-radius: 3px;

}
