.nav-wrapper {
  width: 100%;
  position: sticky;
  top: 0;
  /* background-image: linear-gradient(
    to right,
    rgba(57, 62, 70, 0.87),
    rgba(57, 62, 70, 0.111)
  );
  box-shadow: inset 0 0 40px rgba(90, 90, 90, 0.4); */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(15px);
  z-index: -1;
}

.nav-wrapper.scrolled {
  background-color: var(--clr-bg-light) !important;
  background-image: none;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* NAVIGATION */

.navbar {
  max-width: 1500px;
  margin: 0em auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: center;
  /* height: 70px; */
  overflow: hidden;
}

.navbar a {
  justify-self: start;
}

.navbar .nav-logo {
  height: 50px !important;
  margin-left: 25px;
  margin-top: auto;
  margin-bottom: auto;
}

.navbar img {
  height: 16px;
  width: auto;
  justify-self: start;
  margin-left: 20px;
}

.navbar ul {
  justify-self: end;
  list-style: none;
  padding-right: 20px;
}

.nav-item a {
  color: var(--theme-color);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease-out;
  padding: 0.6rem;
  margin-left: 1.5rem !important;
}

.nav-item a:hover {
  color: white;
}
.active-link {
  background-color: var(--theme-color);
  opacity: 0.8;
  color: white !important;
  border-radius: 7px;
}

/* SEARCH FUNCTION */

.no-search {
  transform: translate(0);
  transition: transform 0.7s ease-in-out;
}

/* MOBILE MENU & ANIMATION */

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--clr-text-light);
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.menu-toggle {
  justify-self: end;
  margin-right: 25px;
  display: none;
}

.menu-toggle:hover {
  cursor: pointer;
}

#mobile-menu.is-active .bar:nth-child(2) {
  opacity: 0;
}

#mobile-menu.is-active .bar:nth-child(1) {
  -webkit-transform: translateY(8px) rotate(45deg);
  -ms-transform: translateY(8px) rotate(45deg);
  -o-transform: translateY(8px) rotate(45deg);
  transform: translateY(8px) rotate(45deg);
}

#mobile-menu.is-active .bar:nth-child(3) {
  -webkit-transform: translateY(-8px) rotate(-45deg);
  -ms-transform: translateY(-8px) rotate(-45deg);
  -o-transform: translateY(-8px) rotate(-45deg);
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Devices - Phones/Tablets */

@media only screen and (max-width: 978px) {
  /* MOBILE NAVIGATION */

  .navbar ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    justify-content: start;
    top: 80px;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    width: 100%;
    height: 100vh;
    transform: translate(-101%);
    text-align: center;
    overflow: hidden;
  }

  .navbar li {
    padding: 14px;
  }

  .navbar li:first-child {
    margin-top: 155px;
  }

  .navbar li a {
    font-size: 1.2rem;
  }

  .menu-toggle,
  .bar {
    display: block;
    cursor: pointer;
  }

  .mobile-nav {
    transform: translate(0%) !important;
  }
}
