/* Custom scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #090909;
}

::-webkit-scrollbar-thumb {
    background: #500000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b0000;
}

/* Custom Text Shadow utilities */
.text-shadow-horror {
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8), 0 0 20px rgba(139, 0, 0, 0.4);
}

.text-shadow-glow {
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.9), 0 0 25px rgba(239, 68, 68, 0.5);
}

/* Glitch Animation (Used in Menu headers or logo) */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.05em -0.025em 0 rgba(0,255,0,.75), -0.025em 0.05em 0 rgba(0,0,255,.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.05em -0.025em 0 rgba(0,255,0,.75), -0.025em 0.05em 0 rgba(0,0,255,.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255,0,0,.75), -0.025em -0.025em 0 rgba(0,255,0,.75), -0.025em -0.05em 0 rgba(0,0,255,.75);
    }
}

.glitch-text {
    animation: glitch 1.5s infinite;
}

/* Page Loader transitions */
#loader.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

/* Distressed/Metal styling */
.metal-border {
    border: 2px solid #500000;
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.4);
    background: linear-gradient(135deg, #151515, #0a0a0a);
}

.metal-border:hover {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* Background darkness transitions */
.bg-overlay-dark {
    background: radial-gradient(circle, transparent 30%, rgba(9, 9, 9, 0.95) 100%);
}
