/* Animations */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
  }
  75% {
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 50%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

@keyframes artAnimation {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -20px);
  }
  50% {
    transform: translate(40px, 20px);
  }
  75% {
    transform: translate(0, 40px);
  }
  100% {
    transform: translate(-20px, -20px);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Entrance animations for elements when they come into view */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animations for grid items */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-item.visible {
  animation: appear 0.5s forwards;
}

/* Animated logo parts */
.logo:hover .logo-part.part-1 {
  animation: pulse 1s infinite;
}

.logo:hover .logo-part.part-2 {
  animation: pulse 1s infinite 0.2s;
}

.logo:hover .logo-part.part-3 {
  animation: pulse 1s infinite 0.4s;
}

/* Animated art piece */
.art-frame {
  transition: transform 0.3s ease;
}

.art-frame:hover {
  transform: scale(1.03);
}

/* Button hover effects */
.btn-primary:hover {
  box-shadow: 0 0 15px var(--color-primary);
}

.btn-secondary:hover {
  box-shadow: 0 0 15px var(--color-secondary);
}

.btn-play:hover {
  box-shadow: 0 0 15px var(--color-accent);
}