/* Animations for SharkDoge Website */

/* Jumping Shark Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.jumping-shark {
    animation: float 6s ease-in-out infinite;
}

/* Neon Pulse Animation */
@keyframes neonPulse {
    0% {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.9), 0 0 30px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(0, 255, 255, 0.5);
    }
}

.neon-text {
    animation: neonPulse 2s infinite;
}

/* Button Hover Animation */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary:after, .btn-secondary:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover:after, .btn-secondary:hover:after {
    left: 100%;
}

/* Bubble Animation */
@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-1000px) scale(0);
        opacity: 0;
    }
}

.bubble {
    position: absolute;
    bottom: -20px;
    background: radial-gradient(circle at 70% 30%, white, rgba(0, 255, 255, 0.5) 40%, rgba(0, 255, 255, 0.1) 60%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    animation: bubbleRise var(--duration) ease-in infinite;
    opacity: 0;
}

/* Wave Animation */
@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

.waves {
    animation: waveAnimation 20s linear infinite;
}

/* Shark Appear on Scroll */
@keyframes sharkAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.shark-element {
    opacity: 0;
}

.shark-element.visible {
    animation: sharkAppear 0.8s forwards;
}

/* Countdown Animation */
@keyframes countdownPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.countdown-value {
    animation: countdownPulse 1s infinite;
}

/* NFT Card Hover Animation */
@keyframes nftGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(255, 0, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
}

.nft-card:hover {
    animation: nftGlow 2s infinite;
}

/* Progress Bar Animation */
@keyframes progressFill {
    0% {
        width: 0%;
    }
}

.progress-fill {
    animation: progressFill 2s ease-out forwards;
}

/* Swap Arrow Animation */
@keyframes swapArrowPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.swap-arrow img:hover {
    animation: swapArrowPulse 1s infinite;
}

/* Mobile Menu Animation */
@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active {
    animation: menuFadeIn 0.3s forwards;
}

/* Page Transition Animation */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.app-section.active {
    animation: pageFadeIn 0.5s forwards;
}

/* Staking Plan Hover Animation */
@keyframes stakingPlanHover {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), 0 0 25px rgba(0, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
}

.staking-plan:hover {
    animation: stakingPlanHover 2s infinite;
}

/* Wallet Connect Button Animation */
@keyframes connectButtonPulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    }
}

#connectWalletBtn {
    animation: connectButtonPulse 2s infinite;
}

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

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: loadingRotate 1s infinite linear;
}
