/* Keyframe Animations */

/* Hero Title Glow Effect */
@keyframes glow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.3),
            0 0 30px rgba(0, 212, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 212, 255, 0.5),
            0 0 30px rgba(139, 92, 246, 0.3),
            0 0 40px rgba(255, 215, 0, 0.2);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.3),
            0 0 30px rgba(0, 212, 255, 0.2);
    }
}

/* Floating Particles Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Particle Movement Variations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-15px) translateX(10px) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-25px) translateX(-5px) rotate(240deg);
        opacity: 0.6;
    }
}

@keyframes floatFast {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-40px) translateX(20px) rotate(180deg);
        opacity: 0.4;
    }
}

/* Button Pulse Effect */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    }
}

/* Button Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #00D4FF;
    }
}

/* Card Flip Animation */
@keyframes flipIn {
    0% {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateY(-20deg);
        opacity: 1;
    }
    60% {
        transform: perspective(400px) rotateY(10deg);
    }
    80% {
        transform: perspective(400px) rotateY(-5deg);
    }
    100% {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

/* Wobble Animation */
@keyframes wobble {
    0% {
        transform: translate3d(0, 0, 0);
    }
    15% {
        transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    }
    30% {
        transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    }
    45% {
        transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    }
    60% {
        transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    }
    75% {
        transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Applied Animation Classes */

/* Hero Section Animations */
.hero-title {
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-content {
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.cta-buttons .btn-demo {
    animation: fadeIn 1s ease-out 1s both;
    position: relative;
    overflow: hidden;
}

.cta-buttons .btn-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.cta-buttons .btn-live {
    animation: fadeIn 1s ease-out 1.2s both;
}

.cta-buttons .btn-live:not(:disabled):hover {
    animation: pulse 2s infinite;
}

/* Particle System */
.particle {
    animation-duration: 6s, 8s, 10s;
    animation-name: float, floatSlow, floatFast;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.particle:nth-child(odd) {
    animation-name: float;
    animation-duration: 6s;
    animation-delay: -2s;
}

.particle:nth-child(even) {
    animation-name: floatSlow;
    animation-duration: 8s;
    animation-delay: -4s;
}

.particle:nth-child(3n) {
    animation-name: floatFast;
    animation-duration: 4s;
    animation-delay: -1s;
}

/* Feature Cards Animation */
.feature-card {
    animation: fadeIn 0.8s ease-out both;
}

.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-icon {
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    animation: bounce 1s ease;
}

/* Gallery Animations */
.screenshot {
    animation: scaleIn 0.5s ease-out both;
}

.gallery-btn:hover {
    animation: wobble 0.8s ease;
}

/* About Section Animations */
.about-text {
    animation: slideInLeft 1s ease-out both;
}

.about-image {
    animation: slideInRight 1s ease-out both;
}

.stat {
    animation: fadeIn 0.6s ease-out both;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.4s; }
.stat:nth-child(3) { animation-delay: 0.6s; }

/* Header Animation on Scroll */
.header {
    transition: all 0.3s ease;
}

/* Modal Animations */
.modal {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleIn 0.3s ease-out;
}

/* Form Animations */
.form-container {
    animation: fadeIn 1s ease-out 0.3s both;
}

.form-group {
    animation: slideInLeft 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* Dashboard Animations */
.dashboard-header {
    animation: fadeIn 1s ease-out both;
}

.balance-card-large {
    animation: scaleIn 0.8s ease-out 0.2s both;
}

.transaction-history {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.quick-actions .action-btn {
    animation: slideInLeft 0.6s ease-out both;
}

.quick-actions .action-btn:nth-child(1) { animation-delay: 0.6s; }
.quick-actions .action-btn:nth-child(2) { animation-delay: 0.7s; }
.quick-actions .action-btn:nth-child(3) { animation-delay: 0.8s; }

/* Payment Form Animations */
.payment-form {
    animation: fadeIn 1s ease-out both;
}

.amount-option {
    animation: flipIn 0.6s ease-out both;
}

.amount-option:nth-child(1) { animation-delay: 0.1s; }
.amount-option:nth-child(2) { animation-delay: 0.2s; }
.amount-option:nth-child(3) { animation-delay: 0.3s; }
.amount-option:nth-child(4) { animation-delay: 0.4s; }

/* Loading Animation */
.loading-overlay.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

/* Success/Error Message Animations */
.error-message,
.success-message {
    animation: slideInLeft 0.5s ease-out;
}

/* Button Hover Effects with Animations */
.btn-primary:hover,
.btn-secondary:hover,
.btn-demo:hover,
.btn-live:hover:not(:disabled) {
    animation: pulse 1.5s infinite;
}

/* Social Links Animation */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    animation: bounce 1s ease;
}

/* Navigation Links Hover Effect */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4FF, transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

/* Footer Animation on Scroll Into View */
.footer-section {
    animation: fadeIn 0.8s ease-out both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Custom Scroll Animation Classes */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframe Animations */

/* Hero Title Glow Effect */
@keyframes glow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.3),
            0 0 30px rgba(0, 212, 255, 0.2);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(0, 212, 255, 0.5),
            0 0 30px rgba(139, 92, 246, 0.3),
            0 0 40px rgba(255, 215, 0, 0.2);
    }
    100% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            0 0 20px rgba(255, 215, 0, 0.3),
            0 0 30px rgba(0, 212, 255, 0.2);
    }
}

/* Floating Particles Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Particle Movement Variations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-15px) translateX(10px) rotate(120deg);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-25px) translateX(-5px) rotate(240deg);
        opacity: 0.6;
    }
}

@keyframes floatFast {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-40px) translateX(20px) rotate(180deg);
        opacity: 0.4;
    }
}

@keyframes floatDiagonal {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) translateX(30px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-35px) translateX(-10px) rotate(270deg);
        opacity: 0.8;
    }
}

/* Button Pulse Effect */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0.3);
        transform: scale(1.02);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
        transform: scale(1);
    }
}

/* Golden Pulse for Demo Button */
@keyframes pulsegold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0.3);
        transform: scale(1.02);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
        transform: scale(1);
    }
}

/* Button Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Shimmer for Special Elements */
@keyframes shimmerGlow {
    0% {
        background-position: -200% 0;
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
    100% {
        background-position: 200% 0;
        filter: brightness(1);
    }
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Spin with Glow */
@keyframes spinGlow {
    0% { 
        transform: rotate(0deg);
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up (more dramatic) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scale In Bounce */
@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Rotate with Scale */
@keyframes rotateScale {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Gradient Flow */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 50%;
        filter: hue-rotate(90deg);
    }
    50% {
        background-position: 100% 0%;
        filter: hue-rotate(180deg);
    }
    75% {
        background-position: 0% 0%;
        filter: hue-rotate(270deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

/* Typing Animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #00D4FF;
    }
}

/* Card Flip Animation */
@keyframes flipIn {
    0% {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateY(-20deg);
        opacity: 1;
    }
    60% {
        transform: perspective(400px) rotateY(10deg);
    }
    80% {
        transform: perspective(400px) rotateY(-5deg);
    }
    100% {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

/* 3D Flip */
@keyframes flip3D {
    0% {
        transform: perspective(400px) rotateX(0deg);
    }
    100% {
        transform: perspective(400px) rotateX(360deg);
    }
}

/* Wobble Animation */
@keyframes wobble {
    0% {
        transform: translate3d(0, 0, 0);
    }
    15% {
        transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
    }
    30% {
        transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
    }
    45% {
        transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
    }
    60% {
        transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
    }
    75% {
        transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

/* Rubber Band Effect */
@keyframes rubberBand {
    0% {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Neon Glow Animation */
@keyframes neonGlow {
    0%, 100% {
        text-shadow: 
            0 0 5px #00D4FF,
            0 0 10px #00D4FF,
            0 0 15px #00D4FF,
            0 0 20px #00D4FF;
    }
    50% {
        text-shadow: 
            0 0 2px #00D4FF,
            0 0 5px #00D4FF,
            0 0 8px #00D4FF,
            0 0 12px #00D4FF;
    }
}

/* Lightning Effect */
@keyframes lightning {
    0%, 90%, 100% {
        background: transparent;
    }
    1%, 3%, 5% {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Zoom In Out */
@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Applied Animation Classes */

/* Hero Section Animations */
.hero-title {
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-content {
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

.cta-buttons .btn-demo {
    animation: fadeIn 1s ease-out 1s both;
    position: relative;
    overflow: hidden;
    background-size: 200% 100%;
    background-image: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
}

.cta-buttons .btn-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 3s infinite;
    z-index: 1;
}

.cta-buttons .btn-live {
    animation: fadeIn 1s ease-out 1.2s both;
}

.cta-buttons .btn-demo:hover {
    animation: pulsegold 2s infinite, shimmerGlow 2s infinite;
}

.cta-buttons .btn-live:not(:disabled):hover {
    animation: pulse 2s infinite;
}

/* Balance Display Animation */
.balance-card {
    animation: scaleInBounce 0.8s ease-out 2s both;
}

/* Particle System Enhanced */
.particle {
    animation-duration: 6s, 8s, 10s, 12s;
    animation-name: float, floatSlow, floatFast, floatDiagonal;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    will-change: transform, opacity;
}

.particle:nth-child(1) { animation: float 6s infinite ease-in-out -0.5s; }
.particle:nth-child(2) { animation: floatSlow 8s infinite ease-in-out -1s; }
.particle:nth-child(3) { animation: floatFast 4s infinite ease-in-out -1.5s; }
.particle:nth-child(4) { animation: floatDiagonal 10s infinite ease-in-out -2s; }
.particle:nth-child(5) { animation: float 7s infinite ease-in-out -2.5s; }
.particle:nth-child(6) { animation: floatSlow 9s infinite ease-in-out -3s; }

.particle:nth-child(odd) {
    animation-name: float, rotateScale;
    animation-duration: 6s, 12s;
    animation-delay: -2s, -4s;
}

.particle:nth-child(even) {
    animation-name: floatSlow, rotate;
    animation-duration: 8s, 15s;
    animation-delay: -4s, -6s;
}

.particle:nth-child(3n) {
    animation-name: floatFast, zoomInOut;
    animation-duration: 4s, 8s;
    animation-delay: -1s, -2s;
}

.particle:nth-child(4n) {
    animation-name: floatDiagonal, flip3D;
    animation-duration: 10s, 20s;
    animation-delay: -3s, -8s;
}

/* Feature Cards Enhanced Animation */
.feature-card {
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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-icon {
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    animation: bounceIn 1s ease, rotateScale 2s ease infinite;
}

.feature-card:hover {
    animation: rubberBand 1s ease;
}

/* Gallery Animations Enhanced */
.screenshot {
    animation: scaleIn 0.5s ease-out both;
}

.screenshot.active {
    animation: scaleInBounce 0.6s ease-out both;
}

.gallery-btn:hover {
    animation: wobble 0.8s ease, heartbeat 1.5s ease infinite;
}

/* About Section Enhanced Animations */
.about-text {
    animation: slideInLeft 1s ease-out both;
}

.about-image {
    animation: slideInRight 1s ease-out both;
}

.about-image img:hover {
    animation: zoomInOut 2s ease infinite;
}

.stat {
    animation: fadeInUp 0.6s ease-out both;
}

.stat:nth-child(1) { animation-delay: 0.2s; }
.stat:nth-child(2) { animation-delay: 0.4s; }
.stat:nth-child(3) { animation-delay: 0.6s; }

.stat h3 {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

/* Header Enhanced Animation on Scroll */
.header {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header.scrolled {
    animation: slideInLeft 0.3s ease;
}

/* Logo Animation */
.logo {
    animation: gradientFlow 10s ease infinite;
    background-size: 400% 400%;
    background-image: linear-gradient(45deg, #00D4FF, #8B5CF6, #FFD700, #00D4FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links Enhanced */
.nav-links a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4FF, #8B5CF6, transparent);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    animation: rubberBand 0.6s ease;
}

/* Modal Enhanced Animations */
.modal {
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.modal-content {
    animation: scaleInBounce 0.4s ease-out;
}

.modal.closing {
    animation: fadeIn 0.3s ease-out reverse;
}

.modal.closing .modal-content {
    animation: scaleIn 0.3s ease-out reverse;
}

/* Form Enhanced Animations */
.form-container {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.form-group {
    animation: slideInLeft 0.6s ease-out both;
    opacity: 0;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

.form-group input:focus {
    animation: pulse 1s ease infinite;
}

/* Dashboard Enhanced Animations */
.dashboard-header {
    animation: fadeInUp 1s ease-out both;
}

.balance-card-large {
    animation: scaleInBounce 0.8s ease-out 0.2s both;
}

.balance-amount {
    animation: neonGlow 3s ease-in-out infinite alternate;
}

.transaction-history {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.quick-actions .action-btn {
    animation: slideInLeft 0.6s ease-out both;
    opacity: 0;
}

.quick-actions .action-btn:nth-child(1) { animation-delay: 0.6s; }
.quick-actions .action-btn:nth-child(2) { animation-delay: 0.7s; }
.quick-actions .action-btn:nth-child(3) { animation-delay: 0.8s; }

.quick-actions .action-btn:hover {
    animation: heartbeat 1.5s ease infinite;
}

/* Payment Form Enhanced Animations */
.payment-form {
    animation: fadeInUp 1s ease-out both;
}

.amount-option {
    animation: flipIn 0.6s ease-out both;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.amount-option:nth-child(1) { animation-delay: 0.1s; }
.amount-option:nth-child(2) { animation-delay: 0.2s; }
.amount-option:nth-child(3) { animation-delay: 0.3s; }
.amount-option:nth-child(4) { animation-delay: 0.4s; }

.amount-option:hover {
    animation: rubberBand 0.6s ease, pulse 2s ease infinite;
}

.amount-option.selected {
    animation: bounceIn 0.6s ease, heartbeat 2s ease infinite;
}

.flutterwave-btn:hover {
    animation: pulse 1.5s ease infinite, shimmerGlow 3s ease infinite;
}

/* Loading Enhanced Animation */
.loading-overlay.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    animation: spinGlow 1s linear infinite;
}

/* Success/Error Message Enhanced Animations */
.error-message {
    animation: slideInLeft 0.5s ease-out, shake 0.5s ease 0.5s;
}

.success-message {
    animation: slideInLeft 0.5s ease-out, bounceIn 0.5s ease 0.5s;
}

/* Button Enhanced Hover Effects */
.btn-primary:hover,
.btn-secondary:hover {
    animation: pulse 1.5s infinite, zoomInOut 2s ease infinite;
}

.btn-demo:hover {
    animation: pulsegold 1.5s infinite, rubberBand 1s ease;
}

.btn-live:hover:not(:disabled) {
    animation: pulse 1.5s infinite, heartbeat 2s ease infinite;
}

/* Social Links Enhanced Animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-links a:hover {
    animation: bounceIn 1s ease, rotateScale 2s ease infinite;
}

/* Footer Enhanced Animation on Scroll Into View */
.footer-section {
    animation: fadeInUp 0.8s ease-out both;
    opacity: 0;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced Scroll Animation Classes */
.scroll-animation {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animation.animate {
    opacity: 1;
    transform: translateY(0);
    animation: bounceIn 0.6s ease;
}

/* Stagger Enhanced Animation for Lists */
.stagger-animation {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-animation.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.stagger-animation:nth-child(1) { 
    transition-delay: 0.1s; 
    animation: slideInLeft 0.6s ease 0.1s both, bounceIn 0.4s ease 0.7s both;
}
.stagger-animation:nth-child(2) { 
    transition-delay: 0.2s;
    animation: slideInLeft 0.6s ease 0.2s both, bounceIn 0.4s ease 0.8s both;
}
.stagger-animation:nth-child(3) { 
    transition-delay: 0.3s;
    animation: slideInLeft 0.6s ease 0.3s both, bounceIn 0.4s ease 0.9s both;
}
.stagger-animation:nth-child(4) { 
    transition-delay: 0.4s;
    animation: slideInLeft 0.6s ease 0.4s both, bounceIn 0.4s ease 1s both;
}



/* Performance Optimizations */
.particle,
.hero-title,
.logo,
.feature-card,
.btn-demo,
.btn-live,
.spinner {
    will-change: transform, opacity;
}

/* GPU Acceleration for Smooth Animations */
.hero-content,
.feature-card,
.modal-content,
.amount-option {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}