/* ==================== BITCOIN MAXIMALIST ANIMATIONS ==================== */

/* Bitcoin Symbol Floating Animation */
@keyframes bitcoinFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* Glowing Pulse Effect */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(247, 147, 26, 0.4),
                    0 0 40px rgba(247, 147, 26, 0.2),
                    0 0 60px rgba(247, 147, 26, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(247, 147, 26, 0.6),
                    0 0 60px rgba(247, 147, 26, 0.4),
                    0 0 90px rgba(247, 147, 26, 0.2);
    }
}

/* Text Shimmer Effect */
@keyframes textShimmer {
    0% {
        background-position: -500%;
    }
    100% {
        background-position: 500%;
    }
}

/* Scale and Glow on Hover */
.hover-scale-glow {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale-glow:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(247, 147, 26, 0.8))
            drop-shadow(0 0 40px rgba(247, 147, 26, 0.4));
}

/* Bitcoin Border Animation */
@keyframes bitcoinBorder {
    0% {
        border-color: #f7931a;
        box-shadow: 0 0 10px rgba(247, 147, 26, 0.5);
    }
    50% {
        border-color: #ffb800;
        box-shadow: 0 0 20px rgba(255, 184, 0, 0.8),
                    0 0 40px rgba(255, 184, 0, 0.4);
    }
    100% {
        border-color: #f7931a;
        box-shadow: 0 0 10px rgba(247, 147, 26, 0.5);
    }
}

/* Rotating Gradient Background */
@keyframes rotateGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Lightning Strike Effect */
@keyframes lightning {
    0%, 100% {
        opacity: 0;
    }
    10%, 30%, 50% {
        opacity: 1;
    }
    20%, 40%, 60% {
        opacity: 0;
    }
}

/* Neon Glow Text */
.neon-text {
    animation: neonGlow 2s ease-in-out infinite;
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(247, 147, 26, 0.8),
                     0 0 20px rgba(247, 147, 26, 0.6),
                     0 0 30px rgba(247, 147, 26, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 184, 0, 1),
                     0 0 40px rgba(255, 184, 0, 0.8),
                     0 0 60px rgba(255, 184, 0, 0.6),
                     0 0 80px rgba(255, 184, 0, 0.4);
    }
}

/* Particle Effect Background */
@keyframes particles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.hover-lift::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #f7931a 0%, #ffb800 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(247, 147, 26, 0.4),
                0 10px 20px rgba(247, 147, 26, 0.3);
}

.hover-lift:hover::after {
    opacity: 0.1;
}

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(247, 147, 26, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:hover::before {
    width: 300px;
    height: 300px;
    animation: ripple 1s ease-out;
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(
        45deg,
        #f7931a 0%,
        #ffb800 25%,
        #ffd700 50%,
        #ffb800 75%,
        #f7931a 100%
    );
    background-size: 400% 400%;
    animation: holographic 3s ease infinite;
}

@keyframes holographic {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Magnetic Hover Effect */
.magnetic-hover {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-hover:hover {
    transform: scale(1.1);
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }
    20% {
        clip: rect(60px, 9999px, 20px, 0);
    }
    40% {
        clip: rect(90px, 9999px, 10px, 0);
    }
    60% {
        clip: rect(40px, 9999px, 80px, 0);
    }
    80% {
        clip: rect(70px, 9999px, 30px, 0);
    }
    100% {
        clip: rect(10px, 9999px, 60px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 119px, 0);
    }
    20% {
        clip: rect(20px, 9999px, 80px, 0);
    }
    40% {
        clip: rect(95px, 9999px, 40px, 0);
    }
    60% {
        clip: rect(50px, 9999px, 100px, 0);
    }
    80% {
        clip: rect(10px, 9999px, 70px, 0);
    }
    100% {
        clip: rect(85px, 9999px, 15px, 0);
    }
}

/* Bitcoin Symbol Rotation */
.bitcoin-rotate {
    animation: bitcoinRotate 20s linear infinite;
}

@keyframes bitcoinRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Spotlight Effect */
.spotlight-effect {
    position: relative;
    overflow: hidden;
}

.spotlight-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 184, 0, 0.3) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.spotlight-effect:hover::before {
    opacity: 1;
    animation: spotlight 2s ease-in-out infinite;
}

@keyframes spotlight {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20%, 20%);
    }
    50% {
        transform: translate(40%, 0);
    }
    75% {
        transform: translate(20%, -20%);
    }
}

/* Ember Effect */
.ember-effect {
    position: relative;
}

.ember-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 120%,
        rgba(247, 147, 26, 0.8) 0%,
        rgba(255, 184, 0, 0.4) 30%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ember-effect:hover::after {
    opacity: 1;
    animation: emberFlicker 2s ease-in-out infinite;
}

@keyframes emberFlicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Metallic Sheen */
.metallic-sheen {
    position: relative;
    overflow: hidden;
}

.metallic-sheen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

.metallic-sheen:hover::before {
    left: 150%;
}

/* Digital Rain Effect */
@keyframes digitalRain {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Energy Pulse */
.energy-pulse {
    animation: energyPulse 2s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(247, 147, 26, 0);
    }
}

/* Scan Line Effect */
@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.scan-line-effect {
    position: relative;
    overflow: hidden;
}

.scan-line-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7931a, transparent);
    animation: scanLine 2s linear infinite;
    opacity: 0;
}

.scan-line-effect:hover::after {
    opacity: 0.7;
}
