/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    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 shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Page Load Animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Section Animations */
.features-grid {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.steps-grid {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s both;
}

.games-grid {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s both;
}

.tournament-grid {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s both;
}

.lottery-info {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.6s both;
}

.faq-list {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.8s both;
}

/* Card Animations */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    animation: pulse 0.6s ease-in-out;
}

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    animation: bounce 0.6s ease-in-out;
}

.game-card {
    transition: all 0.3s ease;
}

.game-card:hover {
    animation: scaleIn 0.3s ease-in-out;
}

.tournament-card {
    transition: all 0.3s ease;
}

.tournament-card:hover {
    animation: glow 1s ease-in-out infinite;
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary:hover {
    animation: pulse 0.6s ease-in-out;
}

.btn-register:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Navigation Animations */
.nav-menu a {
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    animation: glow 1s ease-in-out infinite;
}

/* Logo Animation */
.nav-logo img {
    transition: all 0.3s ease;
}

.nav-logo:hover img {
    animation: pulse 0.6s ease-in-out;
}

/* Countdown Animation */
.countdown-number {
    animation: pulse 2s ease-in-out infinite;
}

/* Prize Amount Animation */
.prize-amount {
    animation: float 3s ease-in-out infinite;
}

/* Social Links Animation */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    animation: bounce 0.6s ease-in-out;
}

/* FAQ Animations */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item[open] {
    animation: scaleIn 0.3s ease-in-out;
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    animation: glow 1s ease-in-out infinite;
}









/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

 



/* Statistics Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: countUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Testimonial Slide In */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

.testimonial-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

/* News Card Flip */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0);
    }
}

.news-card {
    animation: flipIn 0.8s ease-out;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

/* Platform Features Bounce */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.platform-card {
    animation: bounceIn 0.8s ease-out;
}

.platform-card:nth-child(1) { animation-delay: 0.1s; }
.platform-card:nth-child(2) { animation-delay: 0.2s; }
.platform-card:nth-child(3) { animation-delay: 0.3s; }
.platform-card:nth-child(4) { animation-delay: 0.4s; }



/* Mobile App Slide */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-app-image {
    animation: slideInFromRight 1s ease-out;
}

/* CTA Section Pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.cta-section {
    animation: pulse 2s ease-in-out infinite;
}

/* Hover Effects */
.stat-card:hover .stat-number {
    animation: glow 1s ease-in-out infinite alternate;
}

.testimonial-card:hover {
    animation: float 2s ease-in-out infinite;
}

.news-card:hover {
    animation: shimmer 1.5s ease-in-out;
}

.platform-card:hover {
    animation: rotate 0.5s ease-in-out;
}

.registration-step:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Mobile Responsive Animations */
@media (max-width: 768px) {
    .testimonial-card:nth-child(odd),
    .testimonial-card:nth-child(even) {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .mobile-app-image {
        animation: fadeInUp 0.8s ease-out;
    }
    
    .cta-section {
        animation: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .testimonial-card,
    .news-card,
    .platform-card,
    .registration-step,
    .mobile-app-image,
    .cta-section {
        animation: none;
    }
    
    .stat-card:hover .stat-number,
    .testimonial-card:hover,
    .news-card:hover,
    .platform-card:hover,
    .registration-step:hover {
        animation: none;
    }
} 