/* Black navbar still */
.navbar {
  background-color: #000 !important;
}

/* Ensure navbar sits underneath the overlay if visible (no need to raise z-index) */
#mainNavbar {
  z-index: 1030; /* Bootstrap default for fixed-top is 1030 */
}

/* Overlay collapse wrapper - we don't need to change collapse behavior,
   we style the inner overlay to be full-screen and highest z-index */
.overlay-collapse {
  /* keep default collapse behavior;
     we will style .overlay-bg which is inside it */
}

/* Fullscreen overlay area */
.overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.98); /* nearly opaque black */
  z-index: 99999; /* higher than any element */
  padding: 2rem;
  box-sizing: border-box;
  /* ensure it is on top and centered */
  display: none; /* collapse sets the container display; we show only when collapse has .show */
  flex-direction: column;
}

/* When collapse is opened, bootstrap adds .show to .collapse element.
   Use that to force the overlay to display:flex */
.overlay-collapse.show > .overlay-bg {
  display: flex;
}

/* Close button styling */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.2rem;
  color: #fff;
  background: transparent;
  border: none;
  font-family: "Montserrat", sans-serif;
  line-height: 1;
}

/* Fullscreen menu links */
.overlay-link {
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.overlay-link:hover {
  text-decoration: none;
  color: #00ff99;
}

/* Force hamburger icon to be white */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Prevent body scroll when overlay open by toggling this utility class */
.no-scroll {
  overflow: hidden !important;
}
