/* 
 * 엘라스쿨 모션 CSS
 * 간단하고 부드러운 스크롤 애니메이션
 */

/* 기본 애니메이션 설정 */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* 페이드 인 */
.fade-in {
  opacity: 0;
}

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

/* 슬라이드 업 */
.slide-up {
  opacity: 0;
  transform: translateY(40px);
}

.slide-up.animated {
  opacity: 1;
  transform: translateY(0);
}

/* 슬라이드 인 (왼쪽에서) */
.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
}

.slide-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* 슬라이드 인 (오른쪽에서) */
.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
}

.slide-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* 스케일 인 */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
}

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

/* 지연 효과 (순차 애니메이션) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 이미지 호버 효과 */
img.hover-lift {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

img.hover-lift:hover {
  transform: translateY(-5px) scale(1.02);
}

/* 버튼 호버 효과 */
a[class*="button"],
button {
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

a[class*="button"]:hover,
button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* 부드러운 스크롤 */
html {
  scroll-behavior: smooth;
}

/* 레이아웃 안정성을 위한 설정 */
.animate-on-scroll {
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 모바일 최적화 - 간단한 애니메이션만 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 모바일에서는 더 빠르게 */
@media (max-width: 768px) {
  .animate-on-scroll {
    transition-duration: 0.5s;
  }
}





