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

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

/* Scroll reveal — progressive enhancement, only active when JS runs */
.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(24px);
    }

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(53, 165, 136, 0.1);
    box-shadow: 0 1px 20px rgba(10, 19, 51, 0.06);
}

/* Custom selection color */
::selection {
    background: #95d3c0;
    color: #0a1333;
}

/* Subtle image hover */
img {
    transition: filter 0.3s ease;
}

img:hover {
    filter: brightness(1.02);
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5bbfa3;
    outline-offset: 2px;
    border-radius: 4px;
}
