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

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

/* Animated state applied by JS only */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 400px;
}

/* Header scroll state */
#site-header.scrolled {
    box-shadow: 0 4px 20px rgba(26, 31, 54, 0.08);
}

/* Smooth focus outlines */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: #fbbf24;
    color: #1a1f36;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4ff;
}
::-webkit-scrollbar-thumb {
    background: #4c6ef5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b5bdb;
}
</style>
