/* Custom styles that extend Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    /* Ensure smooth rendering on all devices */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Reveal animations - Progressive Enhancement */
/* Default state is visible (opacity: 1) so content renders immediately */
.reveal-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When JS enables, we add the 'hidden-start' class to hide initially, 
   then JS removes it to trigger the animation */
.reveal-content.hidden-start {
    opacity: 0;
    transform: translateY(30px);
}

/* If user prefers reduced motion, ensure everything is visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal-content.animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback for browsers that don't support CSS transitions for the animation class */
.reveal-content.animate {
    opacity: 1;
    transform: translateY(0);
}
