/**
 * 홈페이지 모던 애니메이션 효과
 */

/* 스크롤 애니메이션 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 부드러운 호버 애니메이션 */
.smooth-hover {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.smooth-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* 글로우 효과 */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(var(--theme-primary-rgb), 0.3),
    transparent
  );
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
  opacity: 1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* 펄스 애니메이션 */
.pulse-effect {
  position: relative;
}

.pulse-effect::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(
    45deg,
    rgba(var(--theme-primary-rgb), 0.3),
    rgba(var(--theme-primary-rgb), 0.1),
    rgba(var(--theme-primary-rgb), 0.3)
  );
  background-size: 200% 200%;
  animation: pulse 2s ease-in-out infinite;
  z-index: -1;
  opacity: 0;
}

.pulse-effect:hover::after {
  opacity: 1;
}

@keyframes pulse {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 텍스트 그라데이션 효과 */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--theme-primary),
    rgba(var(--theme-primary-rgb), 0.8),
    var(--theme-primary)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* 모바일 CTA 섹션 개선 */
.mobile-cta-enhanced {
  background: linear-gradient(
    135deg,
    rgba(var(--theme-primary-rgb), 0.9),
    rgba(var(--theme-primary-rgb), 0.7)
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.mobile-cta-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

/* 기능 카드 개선 */
.feature-card-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.feature-card-modern:hover::before {
  left: 100%;
}

.feature-card-modern:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--theme-primary-rgb), 0.3);
}

/* 스텝 인디케이터 개선 */
.step-indicator-modern {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--theme-primary),
    rgba(var(--theme-primary-rgb), 0.8)
  );
  box-shadow: 0 8px 25px rgba(var(--theme-primary-rgb), 0.3);
  transition: all 0.3s ease;
}

.step-indicator-modern:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(var(--theme-primary-rgb), 0.4);
}

/* 버튼 개선 */
.btn-modern {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--theme-primary),
    rgba(var(--theme-primary-rgb), 0.9)
  );
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(var(--theme-primary-rgb), 0.4);
  color: white;
}

.btn-modern:hover::before {
  left: 100%;
}

/* 스크롤 트리거 애니메이션 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 이용 후기 카드 개선 */
.review-card-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.review-card-modern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--theme-primary),
    rgba(var(--theme-primary-rgb), 0.5),
    var(--theme-primary)
  );
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-card-modern:hover::before {
  opacity: 1;
}

.review-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
