/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scroll-reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(249, 240, 247, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(107, 45, 91, 0.08) !important;
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.06) !important;
}

.navbar-scrolled .nav-logo-text {
    color: #270F20 !important;
}

.navbar-scrolled .nav-link {
    color: #6B2D5B !important;
}

.navbar-scrolled .nav-link:hover {
    background: rgba(107, 45, 91, 0.08) !important;
    color: #270F20 !important;
}

.navbar-scrolled #menu-btn {
    color: #6B2D5B !important;
}

.navbar-scrolled #menu-btn:hover {
    background: rgba(107, 45, 91, 0.08) !important;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu.hidden {
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* Selection color */
::selection {
    background: rgba(107, 45, 91, 0.15);
    color: #270F20;
}

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

::-webkit-scrollbar-track {
    background: #F9F0F7;
}

::-webkit-scrollbar-thumb {
    background: #D48BC8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A03E8A;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #A03E8A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    loading: lazy;
    decoding: async;
}
