/* --- CORE STYLES --- */
body {
    cursor: none;
    overflow-x: hidden;
}

/* Custom Selection Color */
::selection {
    background: #6366f1;
    color: white;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #333;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background 0.2s;
}

/* Hover Effect */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* --- UTILITIES --- */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient {
    background: linear-gradient(to right, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ANIMATIONS --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-line {
    width: 200px;
    height: 2px;
    background: #333;
    overflow: hidden;
    border-radius: 4px;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: #6366f1;
    transition: width 0.1s;
}

/* Mobile Fixes */
@media (hover: none) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}