/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

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

/* Scroll reveal animations - progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #72c0b0;
}

/* Selection color */
::selection {
    background-color: #98d4c8;
    color: #0a2540;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #98d4c8;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(10, 37, 64, 0.08);
}

#navbar.scrolled .font-display {
    color: #0a2540;
}
