/**
 * Global Animations CSS
 * Animasi yang digunakan di semua halaman - Cocok untuk Web TK
 */

/* Keyframes untuk animasi */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

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

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Animasi float untuk feature-icon - digunakan di semua halaman */
.feature-icon {
    animation: float 3s ease-in-out infinite !important;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    animation: bounce 0.6s ease-in-out !important;
    transform: scale(1.2) !important;
}

/* Animasi float untuk stat-icon - digunakan di semua halaman */
.stat-icon {
    animation: float 3s ease-in-out infinite !important;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    animation: bounce 0.6s ease-in-out !important;
    transform: scale(1.2) !important;
}

/* Animasi float untuk program-emoji - digunakan di semua halaman */
.program-emoji {
    animation: float 3s ease-in-out infinite !important;
}

/* Animasi float untuk contact-icon - digunakan di semua halaman */
.contact-icon {
    animation: float 3s ease-in-out infinite !important;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    animation: bounce 0.6s ease-in-out !important;
    transform: scale(1.2) !important;
}

/* Animasi untuk feature cards - fade in on scroll */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }
.feature-card:nth-child(6) { transition-delay: 0.6s; }

/* Animasi untuk stat cards - fade in on scroll */
.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }

/* Animasi untuk program cards - fade in on scroll */
.program-card-new {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.program-card-new.visible {
    opacity: 1;
    transform: translateY(0);
}

.program-card-new:nth-child(1) { transition-delay: 0.1s; }
.program-card-new:nth-child(2) { transition-delay: 0.2s; }
.program-card-new:nth-child(3) { transition-delay: 0.3s; }
.program-card-new:nth-child(4) { transition-delay: 0.4s; }

/* Animasi untuk news cards - fade in on scroll */
.news-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.news-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating emoji animation */
.floating-emoji {
    animation: float 3s ease-in-out infinite;
}

/* Hero title bounce animation */
.hero-title-full {
    animation: bounce 2s ease-in-out infinite;
}

/* Hero content slide in */
.hero-content-full {
    animation: slideInUp 1s ease-out;
}

/* Sparkle animation untuk decorative elements */
.sparkle {
    animation: sparkle 3s ease-in-out infinite;
}

/* Wiggle animation untuk hover effects */
.wiggle-on-hover:hover {
    animation: wiggle 0.5s ease-in-out;
}

/* Pulse animation */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Rainbow animation */
.rainbow {
    animation: rainbow 20s ease infinite;
}

