/* 
 * Incursion 2026 - Animation Stylesheet
 * JoyJam Platform Design Inspired Effects
 */

/* 1. Cursor Spotlight Container */
.cursor-spotlight {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* 2. 3D Tilt Card Base Styles */
.tilt-enabled {
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-enabled:hover {
    box-shadow: 0 12px 24px -15px rgba(230, 36, 41, 0.18), 0 0 10px rgba(230, 36, 41, 0.08);
    border-color: rgba(230, 36, 41, 0.25) !important;
}

/* 3. Scroll Reveal Transition */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 4. Magnetic Buttons */
.magnetic-btn, button, nav a.bg-primary-container, main a.bg-primary-container {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, filter 0.3s ease;
    will-change: transform;
}

.magnetic-btn:hover, button:hover, main a.bg-primary-container:hover {
    box-shadow: 0 0 12px rgba(230, 36, 41, 0.25);
}

nav a.bg-primary-container:hover {
    box-shadow: 0 0 6px rgba(230, 36, 41, 0.14);
}

.glass-cta {
    background: linear-gradient(135deg, rgba(14, 14, 14, 0.92) 0%, rgba(230, 36, 41, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.glass-cta:hover {
    background: linear-gradient(135deg, rgba(14, 14, 14, 0.96) 0%, rgba(230, 36, 41, 0.96) 100%) !important;
}

/* 5. Click Ripple */
.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(230, 36, 41, 0.8) 0%, rgba(230, 36, 41, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-out 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes ripple-out {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(12);
        opacity: 0;
    }
}

/* 6. Continuous Marquee Ticker */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #0e0e0e;
    border-top: 1px solid #5d3f3c;
    border-bottom: 1px solid #5d3f3c;
    padding: 14px 0;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-flex;
    gap: 2rem;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: #e5e2e1;
    display: inline-flex;
    items-center: center;
    gap: 0.75rem;
}

.marquee-item span.accent {
    color: #e62429;
}
