/* Non-critical CSS that can be loaded later */
footer {
  margin-top: auto;
}
.image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  background: #f3f4f6;
  overflow: hidden;
  border-radius: 0.5rem;
}
.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Animation classes - only load if needed */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
.animate-slide-up {
  animation: slideUp 0.5s ease-in-out;
}
.animate-slide-down {
  animation: slideDown 0.5s ease-in-out;
}

/* Only define animations if they're used */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes slideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Reduce animations for those who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .animate-slide-up,
  .animate-slide-down {
    animation: none !important;
    transition: none !important;
  }
}
