section {
  h2 {
    letter-spacing: -0.025em;
  }

  .card-hover {
    transition: transform 0.3s ease;

    &:hover {
      transform: translateY(-5px);
    }
  }
}

img {
  aspect-ratio: auto;
  object-fit: cover;
}

.glitch-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
  }

  &::before {
    left: 2px;
    clip-path: inset(44% 0 61% 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
    filter: hue-rotate(90deg);
  }

  &::after {
    left: -2px;
    clip-path: inset(50% 0 30% 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    filter: hue-rotate(-90deg);
  }
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(80% 0 5% 0); }
  40% { clip-path: inset(30% 0 10% 0); }
  60% { clip-path: inset(50% 0 80% 0); }
  80% { clip-path: inset(15% 0 40% 0); }
  100% { clip-path: inset(70% 0 30% 0); }
}