/* ========================================
   ANIMATION STYLES
   ======================================== */

/* ---- Fade In Up ---- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ---- Ambient Background Shift ---- */
@keyframes ambientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ---- Subtle Float ---- */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ---- Gold Shimmer ---- */
@keyframes goldShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ---- Pulse Glow ---- */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    }
}

/* ---- Line Grow ---- */
@keyframes lineGrow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ---- Smooth Entrance for Cards ---- */
.feature-card,
.stat-card,
.philosophy-card,
.responsible-fact,
.resource-card,
.contact-info-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Button Ripple Effect ---- */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ---- Header Transition ---- */
.header {
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---- Game Frame Hover ---- */
.game-frame-wrapper {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Stat Bar Animation ---- */
.stat-card__bar span {
    animation: barGrow 2s ease-out;
    animation-fill-mode: both;
}

@keyframes barGrow {
    from {
        width: 0%;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
    }

    .particle {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }
}