/* Custom styles beyond Tailwind */

html {
    scroll-behavior: smooth;
}

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

/* Selection color */
::selection {
    background-color: rgba(212, 154, 16, 0.25);
    color: #0c2038;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #d49a10;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #a8bcd0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c99b8;
}

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

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

/* Only apply hidden state when JS is active via prefers-reduced-motion check */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image loading placeholder */
img {
    background-color: #f0f4f8;
}
