.top-nav {
  z-index: 1000;
  /* background: rgba(0, 0, 0, 0.4); */
  padding: 30px;
  position: absolute;
  width: calc(100% - 60px);
  font-family: "Poppins", sans-serif;
  justify-content: space-between;
  display: flex;
}

.icon {
  border: none;
  background: none;
}
.topnav {
  margin-right: 20px;
  margin-left: auto;
  text-align: right;
}

.topnav ul {
  display: flex;
  list-style: none;
  justify-content: end;
}

.topnav a {
  text-decoration: none;
  color: #ffffff;
  padding: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
}
.topnav a:after {
  color: rgb(0, 255, 255);
  mix-blend-mode: difference;
}
.topnav a:hover {
  color: var(--accent1);
  transition: all 0.3s ease-in-out;
}
.topnav a.nav-active {
  color: var(--accent1);
  mix-blend-mode: difference;
}

/*Hide Icon on Desktop*/
.icon {
  display: none;
}

.logo {
  fill: var(--accent1);
  height: 75px;
  width: 75px;
  position: absolute;
  transform: translate(-10px, -30px);
}

@media screen and (max-width: 768px) {
  .top-nav {
    padding: unset;
    width: 100%;
  }
  .top-nav.hidden {
    display: none;
  }
  .bar-one,
  .bar-two,
  .bar-three {
    width: 2.025rem;
    height: 0.25rem;
    background: #b5b5b5;
    border-radius: 10px;
    transition: 0.3s linear;
    position: relative;
    transform-origin: 1px;
    border-radius: 5px;
  }
  .mobile-bar {
    height: 80px;
    position: absolute;
    width: 100%;
    z-index: -1;
  }
  .topnav .icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.025rem;
    height: 2rem;
    background: transparent;
    border: none;
    padding: 0;
    position: absolute;
    right: 30px;
    top: 25px;
  }

  .bar-one {
    transform: rotate(0);
  }

  .bar-two {
    opacity: 1;
    transform: translateX(0);
  }

  .bar-three {
    transform: rotate(0);
  }

  .topnav {
    position: relative;
    width: 100%;
    margin-right: unset;
    margin-left: unset;
    text-align: unset;
  }
  .topnav ul {
    display: block;
    position: absolute;
    width: 100%;
    left: 0;
    top: -300px;
    background: var(--background2);
    padding: 20px;
    margin: 0px;
    box-shadow: 0px 0px 10px 0px #00000082;
    z-index: -1;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
  }

  .topnav li {
    padding: 10px 0px;
  }

  /*After open class is added*/

  .open .bar-one {
    transform: rotate(45deg);
  }

  .open .bar-two {
    opacity: 0;
  }

  .open .bar-three {
    transform: rotate(-45deg);
  }

  .topnav.open ul {
    top: 100%;
  }
  .logo {
    z-index: -1;
    top: 30px;
    left: 30px;
  }
}
