/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f; 
}
::-webkit-scrollbar-thumb {
    background: #4b0082; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b0000; 
}

/* Global Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Glitch Text Effect */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #dc143c;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #8b0000;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(34px, 9999px, 11px, 0); }
    20% { clip: rect(68px, 9999px, 96px, 0); }
    40% { clip: rect(14px, 9999px, 84px, 0); }
    60% { clip: rect(4px, 9999px, 58px, 0); }
    80% { clip: rect(62px, 9999px, 32px, 0); }
    100% { clip: rect(18px, 9999px, 88px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(2px, 9999px, 45px, 0); }
    20% { clip: rect(55px, 9999px, 86px, 0); }
    40% { clip: rect(88px, 9999px, 12px, 0); }
    60% { clip: rect(25px, 9999px, 66px, 0); }
    80% { clip: rect(9px, 9999px, 33px, 0); }
    100% { clip: rect(76px, 9999px, 5px, 0); }
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}
.btn-primary:hover::after {
    left: 100%;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -10px rgba(139, 0, 0, 0.5);
    border-color: #8b0000;
}

/* Sticker floating */
.sticker {
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}
