/* --- Neural Effects Pack --- */

/* 1. Neon Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.3s;
    box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
    mix-blend-mode: screen;
}

.cursor-trail.hovering {
    width: 40px;
    height: 40px;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.6);
    background: rgba(var(--color-accent-rgb), 0.1);
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

/* 2. 3D Holographic Tilt */
.holo-card {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.holo-content {
    transform: translateZ(20px);
}

/* 3. Text Glitch Effect */
.glitch-hover {
    position: relative;
    display: inline-block;
}

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

.glitch-hover:hover::before {
    color: var(--color-secondary);
    z-index: -1;
    animation: glitch-anim-1 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-hover:hover::after {
    color: var(--color-primary);
    z-index: -2;
    animation: glitch-anim-2 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-anim-1 {
    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 glitch-anim-2 {
    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);
    }
}

/* 4. CRT Scanline Overlay (Optional, low opacity) */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.02) 50%,
            rgba(0, 0, 0, 0.02));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9000;
}