/* ==============================================
   스크롤 애니메이션 - 메인 페이지용
   ============================================== */

/* 초기 상태 - 애니메이션 전 */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 화면에 나타날 때 */
.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 섹션별 딜레이 */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }

/* 배너1 - 좌우에서 들어오는 효과 */
.ban1-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ban1-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ban1-animate-left.is-visible,
.ban1-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 배너2 - 카드 스타일 애니메이션 */
.ban2-card-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ban2-card-animate.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 타이틀 애니메이션 */
.title-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.title-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 최근 본 호텔 - 순차적 페이드인 */
.hotel-item-animate {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.5s ease-out;
}

.hotel-item-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 순차적 딜레이 */
.hotel-item-animate:nth-child(1) { transition-delay: 0.1s; }
.hotel-item-animate:nth-child(2) { transition-delay: 0.2s; }
.hotel-item-animate:nth-child(3) { transition-delay: 0.3s; }
.hotel-item-animate:nth-child(4) { transition-delay: 0.4s; }

/* 모바일에서는 애니메이션 간소화 */
@media only screen and (max-width: 768px) {
  .scroll-animate,
  .ban1-animate-left,
  .ban1-animate-right,
  .ban2-card-animate,
  .title-animate,
  .hotel-item-animate {
    transform: translateY(20px);
  }
  
  .scroll-animate.is-visible,
  .ban1-animate-left.is-visible,
  .ban1-animate-right.is-visible,
  .ban2-card-animate.is-visible,
  .title-animate.is-visible,
  .hotel-item-animate.is-visible {
    transform: translateY(0);
  }
}

/* 프리퍼 모션 비활성화 대응 */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .ban1-animate-left,
  .ban1-animate-right,
  .ban2-card-animate,
  .title-animate,
  .hotel-item-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
