/* Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Utility Classes for Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-play-state: paused;
    /* Controlled by JS */
}

.fade-in.visible {
    animation-play-state: running;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Ripple Animation */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    30% {
        opacity: 0.4;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* 리플 배경 래퍼: repaint 제한으로 프레임 부담 감소 */
.bg-ripple-wrap {
    contain: paint;
}

.ripple-circle {
    transform-origin: center;
    transform-box: fill-box;
    animation: ripple 3s infinite ease-out;
}

.ripple-delay-1 {
    animation-delay: 0s;
}

.ripple-delay-2 {
    animation-delay: 1s;
}

.ripple-delay-3 {
    animation-delay: 2s;
}