/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #050505;
} */

.about .cube {
  position: absolute;
  width: 350px;
  height: 350px;
  transform-style: preserve-3d;
  transform: rotateX(-30deg);
  animation: animate 4s linear infinite;
  margin-left: 30%;
}

@keyframes animate {
  0% {
    transform: rotateX(-30deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(-30deg) rotateY(360deg);
  }
}

.about .cube div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.about .cube div span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(#151515, #46b978);
  transform: rotateY(calc(90deg * var(--i))) translateY(0px);
}

.about .cube div img {
  width: 350px;
  height: 350px;
  box-shadow: 0 0.1rem 1rem;
  border-radius: 50%;
}

/* Top */

.about .cube .top {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  /* background: #222; */
  transform: rotateX(90deg) translateZ(150px);
  animation: floor 12s linear infinite;
}

@keyframes floor {
  0% {
    transform: rotateX(-360deg) rotateY(360deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(-360deg);
  }
}

.about .cube .top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6bedb5;
  transform: translateZ(-400px);
  /* filter: blur(10px); */
}

/* Bottom */

.about .cube .bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  /* background: #222; */
  transform: rotateX(90deg) translateZ(150px);
  animation: floortwo 10s linear infinite;
}

@keyframes floortwo {
  0% {
    transform: rotateX(0deg) rotateY(-360deg);
  }
  100% {
    transform: rotateX(-360deg) rotateY(0deg);
  }
}

.about .cube .bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4fb086;
  transform: translateZ(-400px);
  /* filter: blur(10px); */
}

/* Right */

.about .cube .right {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  /* background: #222; */
  transform: rotateX(90deg) translateZ(150px);
  animation: floorthree 10s linear infinite;
}

@keyframes floorthree {
  0% {
    transform: rotateX(-360deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(-360deg);
  }
}

.about .cube .right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #18a064;
  transform: translateZ(-400px);
  /* filter: blur(10px); */
}

/* Left */

.about .cube .left {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  /* background: #222; */
  transform: rotateX(90deg) translateZ(150px);
  animation: floorfour 10s linear infinite;
}

@keyframes floorfour {
  0% {
    transform: rotateX(360deg) rotateY(-30deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(-360deg);
  }
}

.about .cube .left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #106e45;
  transform: translateZ(-400px);
  /* filter: blur(10px); */
}
