@import url('https://use.fontawesome.com/releases/v6.5.1/css/all.css');
@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900');

footer {
 
  bottom: 0;
  left: 0;
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  z-index: 10;
  color: white;
}

.navigation {
  position: relative;
  width: 450px;
  height: 80px;
  background: #cc53a0;
  display: flex;
  justify-content: center;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  z-index: 1;
}

footer .navigation ul {
  position: relative;
  display: flex;
  width: 400px;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

footer .navigation li {
  position: relative;
  width: 80px;
  height: 80px;
  list-style: none;
  z-index: 1;
}

footer .navigation a {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-weight: 500;
}

footer .navigation .icon {
  position: relative;
  display: block;
  color: #ffffff80;
  line-height: 85px;
  font-size: 1.5em;
  text-align: center;
  transition: 0.5s;
}

footer .navigation a:hover .icon {
  color: #ffffff;
}

footer .navigation li.active .icon {
  transform: translateY(-8px);
  color: #f0f4f1;
}

footer .navigation .text {
  position: absolute;
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transform: translateY(10px);
  color: #9e7090;
  transition: 0.5s;
  opacity: 0;
}

footer .navigation li.active .text {
  transform: translateY(16px);
  opacity: 1;
}

footer .navigation .indicator {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.5s;
  z-index: -1;
}

footer .navigation .indicator::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 16px;
  background: #e3acc5;
  bottom: 14px;
  border-radius: 10px;
}

footer .navigation .indicator::after {
  content: "";
  width: 7.5px;
  height: 7.5px;
  position: absolute;
  top: -3px;
  border-radius: 50%;
  background: #c3637e;
  box-shadow:
    0 0 0 2px #b286ab,
    50px 50px #b286ab,
    40px 0 #b286ab,
    0 40px #b286ab;
  transform: rotate(45deg);
  animation: animate 2s ease-in-out infinite;
}

@keyframes animate {

  0%,
  100% {
    transform: rotate(35deg);
  }

  50% {
    transform: rotate(55deg);
  }
}

footer .navigation .indicator {
  --pos-1: translateX(calc(80px * 1));
  --pos-2: translateX(calc(80px * 2));
  --pos-3: translateX(calc(80px * 3));
  --pos-4: translateX(calc(80px * 4));
}

footer .navigation li:nth-child(2).active~.indicator {
  transform: var(--pos-1);
}

footer .navigation li:nth-child(3).active~.indicator {
  transform: var(--pos-2);
}

footer .navigation li:nth-child(4).active~.indicator {
  transform: var(--pos-3);
}

footer .navigation li:nth-child(5).active~.indicator {
  transform: var(--pos-4);
}