/* Lotties Competitions - Custom Styles */

/* Optimized Stable Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-15px);
    }
}

@keyframes gradient-shift {
    0% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
    100% { 
        background-position: 0% 50%;
    }
}

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

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

@keyframes prize-float {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-10px);
    }
}

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

@keyframes text-glow {
    0%, 100% { 
        opacity: 0.9;
    }
    50% { 
        opacity: 1;
    }
}

@keyframes simple-glow {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 0, 80, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(0, 242, 234, 0.4);
    }
}

@keyframes gentle-shake {
    0%, 100% { 
        transform: translateX(0);
    }
    25% { 
        transform: translateX(-2px);
    }
    75% { 
        transform: translateX(2px);
    }
}

@keyframes particle-fall {
    0% { 
        transform: translateY(-20px);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Body and Global Styles */
body {
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FF0050, #00F2EA);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00F2EA, #A020F0);
}

/* Optimized Button Styles */
#pay-now-btn {
    position: relative;
    background: linear-gradient(45deg, #FF0050, #00F2EA, #A020F0, #007FFF);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3);
}

#pay-now-btn:hover {
    transform: translateY(-3px) scale(1.02);
    animation: gradient-shift 3s ease infinite, gentle-shake 0.3s ease;
    box-shadow: 0 12px 35px rgba(255, 0, 80, 0.4);
}

#pay-now-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF0050, #00F2EA, #A020F0, #007FFF);
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-shift 8s ease infinite;
    opacity: 0.5;
    filter: blur(4px);
}

/* Glowing effects for prize cards */
.prize-card:hover {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(45deg, #FF0050, #00F2EA, #A020F0);
    background-size: 300% 300%;
    animation: rainbow 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Advanced Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    display: block;
    pointer-events: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: particle-fall 15s infinite linear;
    will-change: transform, opacity;
}

/* Stable hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Neon border effect */
.neon-border {
    border: 2px solid transparent;
    background: linear-gradient(45deg, #FF0050, #00F2EA, #A020F0) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Countdown and Animation Classes */
.animate-gradient-shift {
    background: linear-gradient(45deg, #FF0050, #00F2EA, #A020F0, #39FF14);
    background-size: 400% 400%;
    animation: gradient-shift 8s ease infinite;
}

.animate-text-shimmer {
    background: linear-gradient(90deg, #FF0050, #00F2EA, #A020F0, #39FF14);
    background-size: 400% 100%;
    animation: text-shimmer 3s linear infinite;
}

.animate-number-pulse {
    animation: number-pulse 2s ease-in-out infinite;
}

.animate-prize-float {
    animation: prize-float 4s ease-in-out infinite;
}

.animate-prize-spin {
    animation: prize-spin 6s ease-in-out infinite;
}

.animate-text-glow {
    animation: text-glow 2s ease-in-out infinite;
}

.countdown-item {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countdown-item::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.8s;
}

.countdown-item:hover::before {
    left: 100%;
}

.countdown-item:hover {
    animation: simple-glow 2s ease-in-out infinite;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #pay-now-btn {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* Loading animation for buttons */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success message styling */
.success-message {
    background: linear-gradient(45deg, #39FF14, #00F2EA);
    color: #000;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Payment method icons hover */
.payment-icon {
    transition: all 0.3s ease;
}

.payment-icon:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Winner testimonials styling */
.winner-card {
    position: relative;
    overflow: hidden;
}

.winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.winner-card:hover::before {
    left: 100%;
}

/* Countdown timer styling */
#countdown {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Trust badges */
.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Mobile menu animation */
@media (max-width: 768px) {
    .mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    
    .mobile-menu.open {
        max-height: 500px;
    }
}