/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; overflow-x: hidden; }

/* ========== ANIMATIONS ========== */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation-name: fade-up;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* ========== SCROLL REVEAL ========== */
.reveal-on-scroll {
    /* Default: always visible for accessibility */
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll.animated {
        animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0710; }
::-webkit-scrollbar-thumb { background: #581c87; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7e22ce; }

/* ========== SELECTION ========== */
::selection { background: rgba(168, 85, 247, 0.3); color: #f3e8ff; }

/* ========== LINK FOCUS ========== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SMOOTH TRANSITIONS ========== */
img, video, canvas, svg { display: block; max-width: 100%; }
</style>
