/* Global Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #131314;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #009BDD;
}

/* Glass Effects */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dark .glass-panel {
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.dark .glass-card {
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}

/* Effects */
.glow-hover:hover {
    box-shadow: 0 0 20px var(--neon-color, rgba(0, 155, 221, 0.3));
}

.rating-dot {
    transition: all 0.3s ease;
}

/* Disc Textures */
.disc-texture {
    background: radial-gradient(circle, #6b7280 10%, #374151 30%, #111827 70%);
    position: relative;
}

.disc-texture::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.2) 25%, transparent 50%, rgba(255, 255, 255, 0.2) 75%, transparent 100%);
}

.spec-bar-active {
    background-color: #009BDD;
    box-shadow: 0 0 8px #009BDD;
}

/* Fade In Animations on Scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 1;
    /* Visible by default - JS will add animation if available */
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-from-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When JS marks elements to animate, they start hidden first */
.animate-on-scroll.will-animate:not(.is-visible) {
    opacity: 0;
    transform: translateY(30px);
}

.animate-from-left.will-animate:not(.is-visible) {
    opacity: 0;
    transform: translateX(-50px);
}

/* Only animate when the 'is-visible' class is added by JS */
.animate-on-scroll.is-visible {
    animation: fadeInUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-from-left.is-visible {
    animation: fadeInLeft 1.0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-100 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Neon Border Animation */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.neon-border-box {
    position: relative;
    /* Ensure rounded corners match */
    border-radius: inherit;
    z-index: 0;
}

.neon-border-box::before,
.neon-border-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: conic-gradient(from var(--angle), transparent 70%, var(--neon-color));
    border-radius: inherit;
    /* Slightly larger than parent */
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

.neon-border-box::after {
    filter: blur(10px);
}

.neon-border-box:hover::before,
.neon-border-box:hover::after {
    opacity: 1;
}

@keyframes rotate {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}