/* 스크롤 애니메이션 스타일 */

/* 기본 상태 - 애니메이션 전 */
.scroll-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.scroll-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.scroll-rotate {
  opacity: 0;
  transform: rotate(-5deg) scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 애니메이션 실행 상태 */
.scroll-fade-in.in-view,
.scroll-fade-up.in-view,
.scroll-fade-down.in-view,
.scroll-fade-left.in-view,
.scroll-fade-right.in-view,
.scroll-scale.in-view,
.scroll-rotate.in-view {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0deg);
}

/* 지연 애니메이션을 위한 클래스 */
.delay-100 {
  transition-delay: 0.1s !important;
}

.delay-200 {
  transition-delay: 0.2s !important;
}

.delay-300 {
  transition-delay: 0.3s !important;
}

.delay-400 {
  transition-delay: 0.4s !important;
}

.delay-500 {
  transition-delay: 0.5s !important;
}

.delay-600 {
  transition-delay: 0.6s !important;
}

.delay-700 {
  transition-delay: 0.7s !important;
}

.delay-800 {
  transition-delay: 0.8s !important;
}

/* 순차적 애니메이션을 위한 클래스 */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-children.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.in-view > *:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children.in-view > *:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-children.in-view > *:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger-children.in-view > *:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger-children.in-view > *:nth-child(5) {
  transition-delay: 0.4s;
}

.stagger-children.in-view > *:nth-child(6) {
  transition-delay: 0.5s;
}

.stagger-children.in-view > *:nth-child(7) {
  transition-delay: 0.6s;
}

.stagger-children.in-view > *:nth-child(8) {
  transition-delay: 0.7s;
}

/* 숫자 카운트업 애니메이션 */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-up {
  animation: countUp 1s ease-out forwards;
}

/* 텍스트 타이핑 효과 */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 2s steps(40, end);
}

/* 펄스 애니메이션 */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}