/* Animations */

/* Smooth Reveal (Fade In Up) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Ken Burns Effect */
@keyframes ken-burns {
  0% {
    transform: scale(1.0) translate(0, 0);
  }

  50% {
    transform: scale(1.1) translate(-2%, -2%);
  }

  100% {
    transform: scale(1.0) translate(0, 0);
  }
}

.ken-burns {
  animation: ken-burns 20s ease-in-out infinite alternate;
}

/* Parallax Utility */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-enter-active {
  transform: translateX(0);
}

.mobile-menu-exit {
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu-exit-active {
  transform: translateX(100%);
}

/* Carousel Styles */
.carousel-container {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-out;
  /* Allow track to expand based on children */
}

.carousel-slide {
  width: 100%;
  flex: 0 0 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .carousel-slide {
    width: 33.333%;
    flex: 0 0 33.333%;
  }
}

/* Loading Skeleton Shimmer */
.skeleton {
  background: #f6f7f8;
  background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
  background-size: 800px 104px;
  animation: shimmer 1.5s linear infinite forwards;
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}