.side-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  border-left: 1px solid rgb(76, 76, 76);
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  padding-top: 1rem;
  background-color: rgba(0, 0, 0, 0.73);
  backdrop-filter: blur(12px);
  box-shadow: -5px 0 10px rgb(0, 0, 0);
  z-index: 100;
}

.side-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
  list-style: none;
}

.side-nav ul li:first-child {
  width: 100%;
  border-bottom: 1px solid rgba(104, 104, 104, 0.149);
  box-shadow: 0px 1px 2px 0px rgba(104, 104, 104, 0.088);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.3rem;
  padding-right: 1rem;
  padding-bottom: 0.8rem;
}
.side-nav #contact-btn {
  background: transparent;
  padding: 0.4rem 1rem;
  color: var(--main-color) !important;
  border: 1px solid var(--main-color);
  border-radius: 15px;
  cursor: pointer;
}

.side-nav .cross-icon {
  display: flex;
  margin-left: 0.7rem;
  cursor: pointer;
}

.side-nav .cross-icon div {
  background-color: var(--white-super-transparent);
  width: 0.18rem;
}

.cross-icon .left {
  transform: rotateZ(48deg);
  animation: show-left-cross 0.8s;
  height: 1.8rem;
}

.cross-icon .right {
  transform: rotateZ(-48deg);
  animation: show-right-cross 0.8s;
  height: 1.8rem;
}

.side-nav .hide-sideNav-btn {
  width: 1.4rem;
  height: 1.3rem;
}

.side-nav ul li:not(:first-child) {
  position: relative;
  width: 100%;
  padding-left: 1.6rem;
  transition: 0.2s;
}

.side-nav ul li .nav-link {
  color: rgb(255, 255, 255);
  transition: 0.2s;
  text-decoration: none;
  font-size: var(--small-Fsize);
}
.side-nav ul li .nav-link.active{
  font: var(--normal-Fsize);
  color: var(--main-color);
}
.side-nav ul li:not(:first-child) .nav-link {
  display: block;
  padding: 0.9rem 0;
}
.side-nav li:not(:first-child):hover {
  animation: gradient-slide 0.3s ease;
  background: linear-gradient(
    to right,
    transparent,
    rgb(61, 61, 61) 0%,
    rgb(0, 0, 0) 90%
  );
}
@media (width >=50em) {
  .side-nav {
    display: none;
  }
}

@keyframes gradient-slide {
  0% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 0%
    );
  }

  10% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 10%
    );
  }

  20% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 20%
    );
  }

  30% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 30%
    );
  }

  40% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 40%
    );
  }

  50% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 50%
    );
  }

  75% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 75%
    );
  }

  100% {
    background: linear-gradient(
      to right,
      transparent,
      rgb(61, 61, 61) 0%,
      rgb(0, 0, 0) 90%
    );
  }
}

@keyframes hide-left-cross {
  0% {
    transform: rotateZ(50deg);
  }

  100% {
    transform: rotateZ(90deg);
  }
}

@keyframes hide-right-cross {
  0% {
    transform: rotateZ(-50deg);
  }

  100% {
    transform: rotateZ(-90deg);
  }
}

@keyframes show-left-cross {
  0% {
    transform: rotateZ(90deg);
  }

  100% {
    transform: rotateZ(50deg);
  }
}

@keyframes show-right-cross {
  0% {
    transform: rotateZ(-90deg);
  }

  100% {
    transform: rotateZ(-50deg);
  }
}

@keyframes show-side-nav {
  0% {
    width: 0%;
    z-index: 999;
  }

  100% {
    width: 300px;
    z-index: 999;
  }
}

@keyframes hide-side-nav {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(100%);
  }
}
