/* Keyframe Animations */

/* Spinning animation for coins */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Pulsing glow effect */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Bouncing scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Grid movement animation */
@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Particle floating animation */
@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* 3D coin floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 3D coin rotation */
@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Rising graphs animation */
@keyframes graphRise {
    0%, 100% {
        transform: translateY(10px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.7;
    }
}

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Slide in from top */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* Text shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Loading bar animation */
@keyframes loadingBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Blink cursor */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Animation Classes */

/* Fade animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}

/* Delayed animations */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* Text effects */
.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--text-secondary) 0%,
        var(--neon-gold) 50%,
        var(--text-secondary) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 2s linear infinite;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--neon-gold);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Loading animations */
.loading-bar {
    height: 4px;
    background: var(--gunmetal-dark);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-gold), var(--electric-blue));
    border-radius: 2px;
    animation: loadingBar 2s ease-in-out infinite;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Stagger animation delays for multiple elements */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Particle system animations */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-gold);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(2n) {
    background: var(--electric-blue);
    animation-duration: 12s;
    animation-delay: -2s;
}

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

.particle:nth-child(4n) {
    background: rgba(255, 215, 0, 0.6);
    animation-duration: 15s;
    animation-delay: -6s;
}

/* Timeline animations */
.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.timeline-item:nth-child(even) {
    transform: translateX(50px);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Feature card entrance animations */
.feature-card {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s ease-out;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Social card hover effects */
.social-card {
    position: relative;
    overflow: hidden;
}

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

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

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Hero title entrance */
.hero-title {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.hero-coin {
    opacity: 0;
    animation: scaleIn 1s ease-out 0.2s forwards;
}

/* Scroll indicator animation */
.scroll-indicator {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

/* Section entrance animations */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.2s;
}

.section-subtitle.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Tokenomics chart animation */
.pie-chart {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease-out;
}
