/* ===== TOKENOMICS SECTION - CRYPTO/MONEY ANIMATION ===== */

.tokenomics {
    position: relative;
    overflow: hidden;
}

/* Crypto Background */
.crypto-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0.25;
}

/* Flying Coins */
.crypto-coin {
    position: absolute;
    font-size: 40px;
    opacity: 0.6;
    animation: coinFloat 15s linear infinite;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

.crypto-coin:nth-child(1) { left: 10%; top: -50px; animation-delay: 0s; }
.crypto-coin:nth-child(2) { left: 30%; top: -50px; animation-delay: 2s; }
.crypto-coin:nth-child(3) { left: 50%; top: -50px; animation-delay: 4s; }
.crypto-coin:nth-child(4) { left: 70%; top: -50px; animation-delay: 6s; }
.crypto-coin:nth-child(5) { left: 90%; top: -50px; animation-delay: 8s; }
.crypto-coin:nth-child(6) { left: 20%; top: -50px; animation-delay: 3s; }
.crypto-coin:nth-child(7) { left: 60%; top: -50px; animation-delay: 5s; }
.crypto-coin:nth-child(8) { left: 80%; top: -50px; animation-delay: 7s; }

@keyframes coinFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Dollar Signs Rain */
.dollar-rain {
    position: absolute;
    font-size: 30px;
    font-weight: bold;
    color: rgba(251, 191, 36, 0.4);
    animation: dollarFall 10s linear infinite;
}

.dollar-rain:nth-child(1) { left: 15%; animation-delay: 0s; }
.dollar-rain:nth-child(2) { left: 35%; animation-delay: 1.5s; }
.dollar-rain:nth-child(3) { left: 55%; animation-delay: 3s; }
.dollar-rain:nth-child(4) { left: 75%; animation-delay: 4.5s; }
.dollar-rain:nth-child(5) { left: 25%; animation-delay: 2s; }
.dollar-rain:nth-child(6) { left: 65%; animation-delay: 3.5s; }

@keyframes dollarFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Blockchain Blocks */
.blockchain-block {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(6, 182, 212, 0.4);
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.05);
    animation: blockFloat 20s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.blockchain-block::before {
    content: '⛓️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

.blockchain-block:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.blockchain-block:nth-child(2) { top: 30%; right: 8%; animation-delay: 3s; }
.blockchain-block:nth-child(3) { top: 60%; left: 10%; animation-delay: 6s; }
.blockchain-block:nth-child(4) { top: 80%; right: 12%; animation-delay: 9s; }

@keyframes blockFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* Chart Lines Animation */
.chart-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(34, 197, 94, 0.6),
        transparent
    );
    animation: chartPulse 4s ease-in-out infinite;
}

.chart-line:nth-child(1) {
    top: 20%;
    left: 0;
    width: 50%;
    animation-delay: 0s;
}

.chart-line:nth-child(2) {
    top: 40%;
    right: 0;
    width: 60%;
    animation-delay: 1s;
}

.chart-line:nth-child(3) {
    top: 60%;
    left: 0;
    width: 55%;
    animation-delay: 2s;
}

.chart-line:nth-child(4) {
    top: 80%;
    right: 0;
    width: 45%;
    animation-delay: 3s;
}

@keyframes chartPulse {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Percentage Numbers */
.percentage-float {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: rgba(251, 191, 36, 0.5);
    animation: percentFloat 8s ease-in-out infinite;
}

.percentage-float:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
.percentage-float:nth-child(2) { top: 35%; right: 20%; animation-delay: 2s; }
.percentage-float:nth-child(3) { top: 65%; left: 25%; animation-delay: 4s; }
.percentage-float:nth-child(4) { top: 85%; right: 15%; animation-delay: 6s; }

@keyframes percentFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    25%, 75% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

/* Glowing Money Orbs */
.money-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.2;
    animation: moneyOrbFloat 25s ease-in-out infinite;
}

.money-orb:nth-child(1) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.6), transparent);
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.money-orb:nth-child(2) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.5), transparent);
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
}

@keyframes moneyOrbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(60px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.95);
    }
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(251, 191, 36, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(251, 191, 36, 1);
    animation: sparkleAnim 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 40%; left: 70%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 60%; left: 40%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 80%; left: 80%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { top: 30%; left: 50%; animation-delay: 2s; }
.sparkle:nth-child(6) { top: 70%; left: 15%; animation-delay: 2.5s; }

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(3);
    }
}

/* Rocket Trail (for Moon vibes) */
.rocket-trail {
    position: absolute;
    font-size: 50px;
    animation: rocketFly 12s linear infinite;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
}

.rocket-trail:nth-child(1) { animation-delay: 0s; }
.rocket-trail:nth-child(2) { animation-delay: 6s; }

@keyframes rocketFly {
    0% {
        left: -100px;
        top: 80%;
        transform: rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 100px);
        top: 10%;
        transform: rotate(-45deg);
        opacity: 0;
    }
}

/* Make sure content is above animation */
.tokenomics .container {
    position: relative;
    z-index: 2;
}

.tokenomics-content {
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .crypto-bg {
        opacity: 0.15;
    }
    
    .crypto-coin {
        font-size: 30px;
    }
    
    .blockchain-block {
        width: 40px;
        height: 40px;
    }
}
