nav {
  background-color: #6d6c76;
  box-shadow: 0.3rem 0.3rem 0.5rem rgba(0, 0, 0, 0.1);
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 9rem;
  font-size: 2rem;
  padding-right: 4rem;
  padding-left: 4rem;
}
@media (max-width: 600px) {
    nav ul{
        padding-right: 2rem !important;
        padding-left: 2rem !important;
    }
}

li.hideOnMobile {
    height: 5rem;
}

nav a {
  height: 100%;
  padding: 0 3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #a5aacf;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-family: math;
}


/* Highlighted: New Attractive Hover Animation */
nav .hideOnMobile a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: white;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

nav .hideOnMobile a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

nav .hideOnMobile a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  left: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease-out;
}

nav .hideOnMobile a:hover::after {
  transform: scaleY(1);
}

nav li:first-child {
  margin-right: auto;
}

.logo-img {
  transform: scale(0.95);
  background: transparent;
  font-size: 3rem;
  font-weight: bold;
  font-family: math;
}

/* No hover effect on image */
nav a.logo-img:hover::before,
nav a.logo-img:hover::after {
  transform: none;
}

.navbar-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 25rem;
  background-color: #6d6c76;
  backdrop-filter: blur(1.2rem);
  box-shadow: -1rem 0 1rem rgba(0, 0, 0, 0.1);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 999;
}

.navbar-sidebar li {
  width: 100%;
  height: 5rem;
}

.navbar-sidebar a {
  width: 100%;
  padding-left: 1rem;

}

.menu-button {
  display: none;
}

@media (max-width: 967px) {
  .hideOnMobile {
    display: none;
  }
  .menu-button {
    display: block;
  }
  .logo-img img {
    transform: scale(0.83);
  }
  nav a {
    padding: 0 0rem;
  }

}

@media (min-width: 967px) {
  .navbar-sidebar {
    display: none !important;
  }
}

