/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 92, 58, 0.08);
}

nav.scrolled .navbar-brand {
    color: #1a5c3a;
}

/* Fade-in animations for scroll-reveal */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(20px);
    }
    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle hover effects */
a {
    transition: color 0.2s ease;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ec;
}
::-webkit-scrollbar-thumb {
    background: #a8ccb0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #74ab82;
}
