/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base — content is always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
    .card-float-1 {
        animation: float1 4s ease-in-out infinite;
    }
    .card-float-2 {
        animation: float2 5s ease-in-out infinite;
    }
    .card-float-3 {
        animation: float3 4.5s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 245, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(88, 28, 135, 0.08);
}

.nav-scrolled .nav-link {
    color: rgb(107, 33, 168) !important;
}

.nav-scrolled .logo-text {
    color: rgb(107, 33, 168) !important;
}

/* Mobile menu */
.mobile-menu-open {
    display: block !important;
}

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

::-webkit-scrollbar-track {
    background: rgb(250, 245, 255);
}

::-webkit-scrollbar-thumb {
    background: rgb(216, 180, 254);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(192, 132, 252);
}

/* Selection color */
::selection {
    background: rgb(251, 191, 36);
    color: rgb(88, 28, 135);
}
