/* Base styles & resets */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal styles — progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar styles */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(107, 58, 93, 0.1);
}

#navbar.scrolled .font-display {
    color: #6B3A5D !important;
}

#navbar.scrolled a:not(.bg-amber-400):not(.bg-plum-600) {
    color: #6B3A5D !important;
}

#navbar.scrolled a:not(.bg-amber-400):not(.bg-plum-600):hover {
    color: #F5A623 !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #D8BDE5;
    border-radius: 5px;
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    background-color: #fff !important;
}

/* Selection color */
::selection {
    background-color: #F5A623;
    color: #2F1828;
}
