/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(123, 45, 110, 0.15);
    color: #4f1b46;
}

/* Scroll Indicator Animation */
@keyframes scrollIndicator {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 2s ease-in-out infinite;
}

/* Reveal Animations - Progressive Enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-scroll-indicator {
        animation: none;
        opacity: 0.5;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

/* Smooth Focus Styles */
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid rgba(123, 45, 110, 0.4);
    outline-offset: 2px;
}

/* Image Loading */
img {
    display: block;
    max-width: 100%;
}

/* Subtle hover lift for cards */
.hover\:shadow-lg:hover {
    transform: translateY(-2px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5fb;
}
::-webkit-scrollbar-thumb {
    background: #d4aad7;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b3a80;
}
