/* ═══════════════════════════════════════════════════════
   PREMIUM UX: CURSOR & SCROLL
   Framer Motion Style Cursor & Sleek Scrollbar
   ═══════════════════════════════════════════════════════ */

/* ─── CUSTOM SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(183, 44, 219, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(183, 44, 219, 0.6);
}

/* Hide scrollbar completely when Lenis is active (optional, for ultra-sleek look) */
html.lenis {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/* ─── HIDE NATIVE CURSOR ─── */
@media (pointer: fine) {
    body, a, button, .btn, .nav-link {
        cursor: none !important;
    }
}

/* ─── CUSTOM CURSOR ─── */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #B72CDB; /* Brand Primary */
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(183, 44, 219, 0.5); /* Brand Primary Semi-transparent */
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cursor Hover States */
.custom-cursor-dot.cursor-hover {
    transform: translate(-50%, -50%) scale(0);
}

.custom-cursor-ring.cursor-hover {
    width: 50px;
    height: 50px;
    border-width: 2px;
    border-color: #FF7A45; /* Brand Accent Neon */
    background-color: rgba(255, 122, 69, 0.1);
    backdrop-filter: blur(2px);
}

/* Magnetic Element Wrapper */
.magnetic-wrap {
    display: inline-block;
    position: relative;
}

/* Ensure no custom cursor on mobile touch screens */
@media (max-width: 991.98px) {
    .custom-cursor-dot, .custom-cursor-ring {
        display: none !important;
    }
    body, a, button, .btn, .nav-link {
        cursor: auto !important;
    }
    a:hover, button:hover, .btn:hover {
        cursor: pointer !important;
    }
}
