/* Custom Styles & Animations */

html {
    scroll-behavior: smooth;
}

body {
    /* Prevent flash of unstyled content */
    background-color: #fcfbf7;
}

/* Typography enhancements */
.font-serif {
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #064e3b;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #022c22;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Scroll Reveal Logic - Progressive Enhancement */
/* Default state is visible (opacity: 1) for accessibility/no-JS */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When JS adds .is-visible, it stays visible */
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* If JS works, we can add a hidden state via a class, 
   but per rules, default must be visible. 
   We will use IntersectionObserver to add a class that triggers animation 
   only if it hasn't already been seen, or just rely on the transition.
   
   Actually, to strictly follow "content's DEFAULT state must be visible":
   We will use JS to add 'is-visible' which keeps opacity 1.
   Wait, usually reveal animations hide first. 
   Let's do this: The CSS default is visible. 
   We will use JS to add a class 'animate-reveal' that adds a slight fade-in 
   for elements that appear later, but since the default is visible, 
   it will just fade in smoothly.
*/

/* Smooth navbar background transition */
.nav-scrolled {
    background-color: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}
