.steps {
  position: relative;
}

.step {
  position: relative;
  margin-bottom: 2rem;
}

.step:last-child {
  margin-bottom: 0;
}

.step-marker {
  position: absolute;
  top: 0.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 2px solid #00babd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.step-content {
  padding-left: 4rem;
}

.step h3 {
  font-weight: 600;
}

.issues-steps {
  --blob-a: #00babd17;
  --blob-b: #7cfdff5d;
  --blob-c: #c2feff3a;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff1e, #97fdff22), #ffffff00;
}

.issues-steps .container {
  position: relative;
  z-index: 1;
}

.issues-steps::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background: radial-gradient(
      closest-side at 20% 25%,
      var(--blob-a) 0 45%,
      transparent 55%
    ),
    radial-gradient(
      closest-side at 80% 20%,
      var(--blob-b) 0 52%,
      transparent 60%
    ),
    radial-gradient(
      closest-side at 40% 80%,
      var(--blob-c) 0 48%,
      transparent 60%
    );
  filter: blur(70px) saturate(115%);
  opacity: 0.65;
  transform: translate3d(0, 0, 0) scale(1.05);
  animation: blobsFloatA 24s ease-in-out infinite alternate;
}

.issues-steps::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -3;
  background: radial-gradient(
      closest-side at 85% 75%,
      color-mix(in oklab, var(--blob-b), white 30%) 0 55%,
      transparent 60%
    ),
    radial-gradient(
      closest-side at 10% 90%,
      color-mix(in oklab, var(--blob-a), white 25%) 0 50%,
      transparent 60%
    );
  filter: blur(90px) saturate(110%);
  opacity: 0.45;
  animation: blobsFloatB 32s ease-in-out infinite alternate;
}

.issues-steps .loop-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.issues-steps .loop-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: 50% 50%;
  animation: issues-spin 16s linear infinite;
  will-change: transform;
}

@keyframes issues-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blobsFloatA {
  0% {
    transform: translate(-2%, -1%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(3%, -3%) scale(1.05) rotate(8deg);
  }
  100% {
    transform: translate(0%, 2%) scale(1.02) rotate(-6deg);
  }
}
@keyframes blobsFloatB {
  0% {
    transform: translate(2%, 1%) scale(1);
  }
  100% {
    transform: translate(-2%, -1%) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .issues-steps .loop-img,
  .issues-steps::before,
  .issues-steps::after {
    animation: none;
  }
}

[data-theme="dark"] .issues-steps .loop-img {
  content: url("../images/loop/loop-dark.png");
}
