/* Custom Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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 pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* New animations for NexusWealth */

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tilt {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.5s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-slideInLeft {
    animation: slideInLeft 0.3s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.3s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.3s ease-out;
}

.animate-slideInDown {
    animation: slideInDown 0.3s ease-out;
}

/* New animation classes for NexusWealth */
.animate-blob {
    animation: blob 7s infinite;
}

.animate-jump {
    animation: jump 1s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-popIn {
    animation: popIn 0.3s ease-out;
}

.animate-tilt {
    animation: tilt 2s infinite;
}

/* Transition Classes */
.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: colors 0.3s ease;
}

/* Delayed Animations */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.animate-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Duration Variants */
.animate-duration-300 {
    animation-duration: 0.3s;
}

.animate-duration-700 {
    animation-duration: 0.7s;
}

.animate-duration-1000 {
    animation-duration: 1s;
}

.animate-duration-2000 {
    animation-duration: 2s;
}

/* Hover Animations */
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow-lg:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-shadow-xl:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.hover-jump:hover {
    animation: jump 0.5s ease;
}

.hover-tilt:hover {
    animation: tilt 0.5s ease;
}

/* Staggered Animations for Lists */
.staggered-animation > * {
    opacity: 0;
    transform: translateY(20px);
}

.staggered-animation > *:nth-child(1) {
    animation: fadeInUp 0.5s ease-out 0.1s forwards;
}

.staggered-animation > *:nth-child(2) {
    animation: fadeInUp 0.5s ease-out 0.2s forwards;
}

.staggered-animation > *:nth-child(3) {
    animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

.staggered-animation > *:nth-child(4) {
    animation: fadeInUp 0.5s ease-out 0.4s forwards;
}

.staggered-animation > *:nth-child(5) {
    animation: fadeInUp 0.5s ease-out 0.5s forwards;
}

.staggered-animation > *:nth-child(6) {
    animation: fadeInUp 0.5s ease-out 0.6s forwards;
}

/* Special Effects */
.shimmer {
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Money Jump Animation */
@keyframes moneyJump {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
}

.animate-moneyJump {
    animation: moneyJump 2s ease-in-out infinite;
}

/* Pulse Animation for Statistics */
@keyframes pulseGrow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-pulseGrow {
    animation: pulseGrow 2s ease-in-out infinite;
}

/* Glow Animation for Buttons */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.5);
    }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Jumping Particles Animation */
@keyframes particleJump {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) translateX(10px) scale(1.2);
    }
    100% {
        transform: translateY(-100px) translateX(20px) scale(0);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
    animation: particleJump 3s ease-in infinite;
    z-index: -1;
}

.particle:nth-child(2n) {
    background: linear-gradient(135deg, #4f46e5, #8b5cf6);
    width: 6px;
    height: 6px;
}

.particle:nth-child(3n) {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    width: 4px;
    height: 4px;
}

/* Roaming Particles */
.roaming-particle {
    position: fixed;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #4f46e5);
    pointer-events: none;
    z-index: 9999;
}

@keyframes roam {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}