/* Custom styles and animations */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Reveal animations - only applied when JS is enabled and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger children reveals */
    .reveal-grid > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    
    .reveal-grid.revealed > *:nth-child(1) { transition-delay: 0.1s; }
    .reveal-grid.revealed > *:nth-child(2) { transition-delay: 0.2s; }
    .reveal-grid.revealed > *:nth-child(3) { transition-delay: 0.3s; }
    .reveal-grid.revealed > *:nth-child(4) { transition-delay: 0.4s; }
    .reveal-grid.revealed > *:nth-child(5) { transition-delay: 0.5s; }
    .reveal-grid.revealed > *:nth-child(6) { transition-delay: 0.6s; }
    
    .reveal-grid.revealed > * {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(44, 82, 45, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #9cc59f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6fa572;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a834e;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
