@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
* {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #161a23;
}
.main {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 170px;
}
.navigation {
  position: relative;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}
.navigation.active span {
  width: 45px;
  height: 45px;
  background: #1f2536;
  transform: translate(calc(60px * var(--x)), calc(60px * var(--y)));
  transition: transform 0.5s, width 0.5s, height 0.5s, background 0.5s;
  transition-delay: calc(0.1s * var(--i));
  display: flex;
  justify-content: center;
  align-items: center;
}
.navigation span {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  transform: translate(calc(14px * var(--x)), calc(14px * var(--y)));
  transition: transform 0.5s, width 0.5s, height 0.5s, background 0.5s;
  transition-delay: calc(0.1s * var(--i));
  display: flex;
  justify-content: center;
  align-items: center;
}
.navigation span ion-icon {
  transition: 0.5s;
  font-size: 0;
}
.navigation.active span ion-icon {
  font-size: 1.35rem;
  color: #fff;
}
.navigation.active span:hover ion-icon {
  color: #2dfc52;
  filter: drop-shadow(0 0 2px #2dfc52) drop-shadow(0 0 5px #2dfc52)
    drop-shadow(0 0 1px #2dfc52);
}
.close {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #fff;
  transition: 0.5s;
  transition-delay: 0.4s;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.navigation.active ~ .close {
  width: 40px;
  height: 40px;
  pointer-events: initial;
  background: #2dfc52;
}

.navigation ~ .close ion-icon{
  font-size: 2rem;
  scale: 0;
  color: #10131c;
  transition: 0.5s;
}

.navigation.active ~ .close ion-icon{
  scale: 1;
  transition-delay: 1s;
}