/* Custom styles and overrides */

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

/* Custom selection color */
::selection {
    background-color: #2d6a42;
    color: #ffffff;
}

/* Ensure all images have consistent styling */
img {
    max-width: 100%;
    height: auto;
}

/* Navbar transition */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled #nav-bg {
    opacity: 1;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.3s ease;
}

#mobile-menu.active {
    transform: translateX(0);
}

#mobile-menu.inactive {
    transform: translateX(100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: #97c7a5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #66a778;
}

/* Animation for elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .animate-bounce {
        animation: none;
    }
}

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

/* Mobile menu link styles */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #66a778;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}
