/* Custom Styles */

/* Hide scrollbar for ticker but allow functionality if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 3D Flip Card Support */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827; /* Match bg */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #DC2626;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #1E3A8A;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(117px, 9999px, 86px, 0); }
    20% { clip: rect(7px, 9999px, 86px, 0); }
    40% { clip: rect(22px, 9999px, 14px, 0); }
    60% { clip: rect(89px, 9999px, 66px, 0); }
    80% { clip: rect(27px, 9999px, 6px, 0); }
    100% { clip: rect(51px, 9999px, 93px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(104px, 9999px, 11px, 0); }
    20% { clip: rect(70px, 9999px, 2px, 0); }
    40% { clip: rect(51px, 9999px, 32px, 0); }
    60% { clip: rect(74px, 9999px, 45px, 0); }
    80% { clip: rect(21px, 9999px, 125px, 0); }
    100% { clip: rect(147px, 9999px, 88px, 0); }
}

/* Reverse Ticker */
.animate-ticker-reverse {
    animation: ticker-reverse 35s linear infinite;
}

@keyframes ticker-reverse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}
