/* =============================================
   CUSTOM STYLES — Supplements Tailwind CSS
   ============================================= */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4517cf;
}

/* =============================================
   HERO ORBS — Animated Background
   ============================================= */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(69, 23, 207, 0.6), transparent 70%);
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.hero-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(103, 62, 230, 0.4), transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: -7s;
}

.hero-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(69, 23, 207, 0.3), transparent 70%);
    top: 50%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

/* =============================================
   VIDEO GLOW — Ambient light behind player
   ============================================= */
.video-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(69, 23, 207, 0.35) 0%, rgba(21, 17, 33, 0) 70%);
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.anim-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.anim-on-scroll:nth-child(2) {
    transition-delay: 0.08s;
}

.anim-on-scroll:nth-child(3) {
    transition-delay: 0.16s;
}

.anim-on-scroll:nth-child(4) {
    transition-delay: 0.24s;
}

/* =============================================
   NAV SCROLLED STATE — applied via JS
   ============================================= */
.nav-scrolled {
    background: rgba(21, 17, 33, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* =============================================
   SELECTION
   ============================================= */
::selection {
    background: #4517cf;
    color: white;
}

/* =============================================
   SMOOTH SCROLL
   ============================================= */
html {
    scroll-behavior: smooth;
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 640px) {
    .hero-orb {
        opacity: 0.25;
    }

    .hero-orb--1 {
        width: 300px;
        height: 300px;
    }

    .hero-orb--2 {
        width: 250px;
        height: 250px;
    }

    .hero-orb--3 {
        width: 200px;
        height: 200px;
    }
}