/* ANIMATIONS SHOWCASE STYLES
------------------------------------*/

/* Animations Grid */
.animations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-block-end: 3.125rem;
}

.animation-cell {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-300);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  text-align: center;
  transition: var(--transition);
}

.animation-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.animation-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-block-end: var(--space-md);
}

.animation-description {
  color: var(--neutral-600);
  font-size: 1.4rem;
  line-height: 1.4;
  margin-block-start: var(--space-md);
}

.animation-container {
  width: 100%;
  height: 200px;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation 1: Clip-path Morphing */
.clip-animation {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: var(--neutral-50);
  animation: clipMorph 4s ease-in-out infinite;
}

@keyframes clipMorph {
  0%,
  100% {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }
  25% {
    clip-path: polygon(25% 0%, 100% 25%, 75% 100%, 0% 75%);
  }
  50% {
    clip-path: polygon(0% 25%, 75% 0%, 100% 75%, 25% 100%);
  }
  75% {
    clip-path: polygon(25% 0%, 100% 25%, 75% 100%, 0% 75%);
  }
}

/* Animation 2: Filter Effects */
.filter-animation {
  background: var(--neutral-900);
}

.shape-2 {
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: filterGlow 3s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes filterGlow {
  0%,
  100% {
    transform: scale(1);
    filter: blur(8px) brightness(1) hue-rotate(0deg);
    box-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary),
      0 0 60px var(--color-accent);
  }
  50% {
    transform: scale(1.2);
    filter: blur(4px) brightness(1.5) hue-rotate(180deg);
    box-shadow: 0 0 40px var(--color-accent), 0 0 80px var(--color-accent),
      0 0 120px var(--color-primary);
  }
}

/* Animation 3: Blend Mode */
.blend-animation {
  background: linear-gradient(
    45deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
}

.shape-3,
.shape-4 {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: overlay;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  animation: blendMove1 5s ease-in-out infinite;
}

.shape-4 {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  animation: blendMove2 5s ease-in-out infinite;
}

@keyframes blendMove1 {
  0%,
  100% {
    transform: translate(-40px, -20px) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(40px, 20px) scale(1.2);
    opacity: 1;
  }
}

@keyframes blendMove2 {
  0%,
  100% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
    opacity: 0.9;
  }
}
