#about--work {
  scroll-margin: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 25px;
}

#about--work ul {
  display: flex;
  gap: 35px;
}

#about--work ul li {
  position: relative;
  flex-grow: 1;
  flex-basis: 0;
  list-style: none;
  border: 1px black solid;
  background-color: var(--inverted-bg-color);
  color: var(--inverted-font-color);
  padding: 20px;
  border-radius: 15px;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 25px;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --reverse-angle {
  syntax: "<angle>";
  initial-value: 360deg;
  inherits: false;
}


#about--work ul li::after,
#about--work ul li::before {
  content: "";
  position: absolute;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  background-image: conic-gradient(from var(--angle), transparent 70%, #017cc0);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  z-index: -1;
}

#about--work ul li:nth-child(1):after,
#about--work ul li:nth-child(1)::before {
  background-image: conic-gradient(from calc(var(--angle) + 20deg), transparent 70%, #017cc0);
  animation: cardSpin 3.5s linear infinite;
}

#about--work ul li:nth-child(2):after,
#about--work ul li:nth-child(2)::before {
  background-image: conic-gradient(from calc(var(--reverse-angle) + 60deg),#017cc0, transparent 70%);
  animation: reverseCardSpin 3.5s linear infinite;
}

#about--work ul li:nth-child(3):after,
#about--work ul li:nth-child(3)::before {
  background-image: conic-gradient(from calc(var(--angle) + 100deg), transparent 70%, #017cc0);
  animation: cardSpin 3.5s linear infinite;
}

#about--work ul li:nth-child(4):after,
#about--work ul li:nth-child(4)::before {
  background-image: conic-gradient(from calc(var(--reverse-angle) + 140deg),#017cc0, transparent 70%);
  animation: reverseCardSpin 3.5s linear infinite;
}

#about--work ul li::before {
  filter: blur(15px);
  opacity: 0.5;
}

@keyframes cardSpin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

@keyframes reverseCardSpin {
  from {
    --reverse-angle: 360deg;
  }
  to {
    --reverse-angle: 0deg;
  }
}

/* CARD ANIMATIONS */

#about--work ul {
  animation: showCards both;
  animation-timeline: view(50% 20%);
}

@keyframes showCards {
  0% {
    opacity: 0;
    transform: translateY(200px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}
