/* ===========================
   WILLSLOTS.COM - Animations
   =========================== */

/* ===== Keyframes ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(224, 64, 251, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(224, 64, 251, 0.6), 0 0 40px rgba(224, 64, 251, 0.2);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes terminalFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scanline {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes neonFlicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow:
            0 0 7px rgba(224, 64, 251, 0.6),
            0 0 10px rgba(224, 64, 251, 0.4),
            0 0 21px rgba(224, 64, 251, 0.3),
            0 0 42px rgba(156, 39, 176, 0.2);
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

@keyframes progressBar {
    from {
        width: 0;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes radarSweep {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(224, 64, 251, 0.2);
    }

    50% {
        border-color: rgba(224, 64, 251, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ===== Animation Utility Classes ===== */
.animate-fade-in {
    animation: fadeIn 0.5s ease both;
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease both;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease both;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease both;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease both;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease both;
}

/* Stagger delays */
.stagger-1 {
    animation-delay: 0.05s;
}

.stagger-2 {
    animation-delay: 0.1s;
}

.stagger-3 {
    animation-delay: 0.15s;
}

.stagger-4 {
    animation-delay: 0.2s;
}

.stagger-5 {
    animation-delay: 0.25s;
}

.stagger-6 {
    animation-delay: 0.3s;
}

.stagger-7 {
    animation-delay: 0.35s;
}

.stagger-8 {
    animation-delay: 0.4s;
}

.stagger-9 {
    animation-delay: 0.45s;
}

.stagger-10 {
    animation-delay: 0.5s;
}

/* ===== Scroll Animation (IntersectionObserver) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Hover Effects ===== */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--accent-glow);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
    box-shadow: var(--accent-glow-strong);
}

.hover-scale {
    transition: transform var(--transition-spring);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ===== Special Effects ===== */

/* Scanline Effect */
.scanline-effect {
    position: relative;
    overflow: hidden;
}

.scanline-effect::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(224, 64, 251, 0.4),
            transparent);
    animation: scanline 3s linear infinite;
    pointer-events: none;
}

/* Shimmer Loading Effect */
.shimmer {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 25%,
            rgba(224, 64, 251, 0.08) 50%,
            var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
}

/* Neon Text */
.neon-text {
    animation: neonFlicker 4s ease-in-out infinite;
}

/* Pulse Glow Border */
.pulse-border {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Radar Sweep */
.radar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.radar-circle {
    position: absolute;
    border: 1px solid rgba(224, 64, 251, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radar-circle:nth-child(1) {
    width: 60px;
    height: 60px;
}

.radar-circle:nth-child(2) {
    width: 120px;
    height: 120px;
}

.radar-circle:nth-child(3) {
    width: 180px;
    height: 180px;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-secondary), transparent);
    transform-origin: left center;
    animation: radarSweep 2s linear infinite;
}

/* Matrix/Digital Rain */
.matrix-char {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-secondary);
    opacity: 0.7;
    animation: matrixRain 3s linear infinite;
    pointer-events: none;
}

/* Particle explosion on button click */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}