/* animations.css - Global Animations */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes loading-bounce {
    0% { transform: scale(1, 0.7); }
    40% { transform: scale(0.8, 1.2); }
    60% { transform: scale(1, 1); }
    100% { bottom: 110px; }
}

@keyframes loading-step {
    0% {
        box-shadow: 0 10px 0 rgba(0,0,0,0),
                    0 10px 0 #fff,
                    -35px 50px 0 #fff,
                    -70px 90px 0 #fff;
    }
    100% {
        box-shadow: 0 10px 0 #fff,
                    -35px 50px 0 #fff,
                    -70px 90px 0 #fff,
                    -70px 90px 0 rgba(0,0,0,0);
    }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bubbleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(20px) scale(1.5); opacity: 0; }
}

@keyframes ambientBubble {
    0% { transform: translate3d(0, 0, 0) scale(0.75); opacity: 0; }
    10% { opacity: 0.58; }
    50% { transform: translate3d(24px, -52vh, 0) scale(1); opacity: 0.34; }
    100% { transform: translate3d(-18px, -108vh, 0) scale(1.22); opacity: 0; }
}

@keyframes heroBubbleRise {
    0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    15% { opacity: 0.75; }
    100% { transform: translateY(-82vh) translateX(28px) scale(1.35); opacity: 0; }
}

@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes goldenGlow {
    0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
}

@keyframes borderDraw {
    0% { width: 0; height: 0; border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-left-color: transparent; }
    25% { width: 100%; height: 0; border-top-color: var(--secondary-color); border-right-color: transparent; border-bottom-color: transparent; border-left-color: transparent; }
    50% { width: 100%; height: 100%; border-top-color: var(--secondary-color); border-right-color: var(--secondary-color); border-bottom-color: transparent; border-left-color: transparent; }
    75% { width: 100%; height: 100%; border-top-color: var(--secondary-color); border-right-color: var(--secondary-color); border-bottom-color: var(--secondary-color); border-left-color: transparent; }
    100% { width: 100%; height: 100%; border-top-color: var(--secondary-color); border-right-color: var(--secondary-color); border-bottom-color: var(--secondary-color); border-left-color: var(--secondary-color); }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}
