/* Shared nav menu styles */
.navbar a,
.navbar-about a {
  line-height: 2;
  font-family: "Jost", sans-serif;
  font-weight: 300;
  text-decoration: none;
  white-space: nowrap;
  width: auto;
  display: block;
}

.nav-link {
  font-size: 18pt;
  font-weight: 400;
  color: #fff;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #3DEDFF;
}

.nav-item > a {
  position: relative;
  padding-bottom: 15px;
  padding-top: 15px;
  z-index: 1;
}

.nav-item > a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0px;
  left: 0;
  background: #3DEDFF;
  visibility: hidden;
  border-radius: 50px;
  transform: scaleX(0);
  transition: 0.25s linear;
}

.nav-item > a:hover:before,
.nav-item > a:focus:before {
  visibility: visible;
  transform: scaleX(1);
}

.hamburger {
  display: block;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

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

.hamburger.active .bar:nth-child(1) {
  -webkit-transform: translateY(8px) rotate(45deg);
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  -webkit-transform: translateY(-8px) rotate(-45deg);
  transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  right: -100%;
  left: auto;
  top: 0;
  bottom: 0;
  padding-top: 72px;
  flex-direction: column;
  background-color: #000850fa;
  width: min(380px, 90vw);
  text-align: center;
  transition: 0.3s;
  box-shadow: 5px 9px 20px 11px #000326;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 1000000;
  pointer-events: none;
}

.nav-menu.active {
  right: 0;
  pointer-events: auto;
}

.nav-item {
  width: 100%;
  margin-left: 0;
  border-bottom: solid 1px #ffffff2b;
}

.nav-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 54px;
  height: 54px;
  background: none;
  border-radius: 50%;
  color: #fff;
  font-size: 36px;
  border: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 999999;
  pointer-events: none;
}

body.menu-open::after {
  opacity: 1;
}
