/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

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

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(74, 35, 74, 0.08), 0 4px 20px rgba(74, 35, 74, 0.06);
}

#navbar:not(.scrolled) .font-display,
#navbar:not(.scrolled) a:not(.bg-plum-800):not(.bg-amber-500) {
    color: #4A234A;
}

#navbar.scrolled a:not(.bg-plum-800):not(.bg-amber-500) {
    color: #4A234A;
}

/* Scroll-reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

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

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

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

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

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

/* Selection color */
::selection {
    background: #D4A843;
    color: #2A1228;
}
</style>
