/* assets/css/header.css */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  padding: 1.5rem 0;
  border-bottom: none;
}

.header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.menuButton {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Menu Icon Color Logic */
.menu-icon-stroke {
  stroke: black; /* Default color */
  transition: stroke 0.3s ease;
}

/* When body has 'on-hero' class (Home page 1st section), make it white */
body.on-hero .menu-icon-stroke {
  stroke: white;
}

.menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.menuOverlay.open {
  opacity: 1;
  visibility: visible;
}

.menuContent {
  width: 300px;
  max-width: 80%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: rgba(0, 0, 0, 0.95);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.menuOverlay.open .menuContent {
  transform: translateX(0);
}

.closeButton {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav {
  margin-top: 5rem;
}

.navList {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-end;
}

.navItem a,
.navItem button {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #ffffff;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
}

.navItem a:hover,
.navItem button:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .menuContent {
    width: 250px;
    max-width: 85%;
  }
}
