/* Zeus Enhanced Animations V2 - Inspired by boop.fun */

/* Core entrance animations */
@keyframes zeus-appear-in {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes zeus-float-in {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    60% {
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zeus-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes zeus-glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(99, 102, 241, 0.3),
            0 0 40px rgba(139, 92, 246, 0.2),
            inset 0 0 20px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(99, 102, 241, 0.5),
            0 0 60px rgba(139, 92, 246, 0.3),
            inset 0 0 30px rgba(99, 102, 241, 0.2);
    }
}

@keyframes zeus-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

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

@keyframes zeus-rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* Hero section animations */
.zeus-hero-section {
    animation: zeus-fade-in 1.2s ease-out;
}

.hero-canvas-container {
    position: relative;
    animation: zeus-appear-in 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

/* Feature cards with staggered entrance */
.feature-card {
    animation: zeus-appear-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    animation: zeus-glow-pulse 2s ease-in-out infinite;
}

/* Stats cards animations */
.stat-card {
    animation: zeus-float-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.15s; }
.stat-card:nth-child(2) { animation-delay: 0.3s; }
.stat-card:nth-child(3) { animation-delay: 0.45s; }

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

/* Button animations */
.zeus-btn,
.claim-btn,
.connect-wallet-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zeus-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;
}

.zeus-btn:hover::before {
    left: 100%;
}

.zeus-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.zeus-btn:active {
    transform: translateY(0);
}

/* Gradient border animation */
.gradient-border-card {
    position: relative;
    border-radius: 20px;
}

.gradient-border-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        #6366f1 0%,
        #8b5cf6 25%,
        #a78bfa 50%,
        #8b5cf6 75%,
        #6366f1 100%
    );
    background-size: 200% 200%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: zeus-shimmer 3s linear infinite;
}

.gradient-border-card:hover::before {
    opacity: 1;
}

/* Loading spinner */
@keyframes zeus-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.zeus-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: zeus-spinner 0.8s linear infinite;
}

/* Toast notification animations */
@keyframes zeus-toast-in {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes zeus-toast-out {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.toast-notification {
    animation: zeus-toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notification.hiding {
    animation: zeus-toast-out 0.3s ease-out forwards;
}

/* Number counter animation */
@keyframes zeus-count-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value {
    animation: zeus-count-up 0.8s ease-out;
}

/* Particle background enhancement */
@keyframes zeus-particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-15px) translateX(3px);
    }
}

.particle-background .particle {
    animation: zeus-particle-float 6s ease-in-out infinite;
}

/* Modal animations */
@keyframes zeus-modal-overlay-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes zeus-modal-content-in {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay {
    animation: zeus-modal-overlay-in 0.3s ease-out;
}

.modal-content {
    animation: zeus-modal-content-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Icon animations */
@keyframes zeus-icon-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.icon-animated:hover {
    animation: zeus-icon-bounce 0.6s ease-in-out;
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    .feature-card {
        animation-duration: 0.4s;
    }
    
    .feature-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .stat-card:hover {
        transform: translateY(-3px);
    }
}
