/* Custom styles and overrides */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f7f0;
}
::-webkit-scrollbar-thumb {
    background: #bfe0bf;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #93c993;
}

/* Selection color */
::selection {
    background: #dcefdc;
    color: #1a3a1a;
}

/* Fade-in for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Ensure all content is visible by default (no JS required) */
.reveal {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(251, 253, 248, 0.92) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 58, 26, 0.06);
}

/* Image hover zoom */
img {
    transition: transform 0.6s ease;
}

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