/* Custom styles and overrides */

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

/* Custom selection color */
::selection {
    background-color: #3c663d;
    color: #f8f9f5;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(15, 26, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hover\\:scale-105:hover,
    .hover\\:scale-110:hover {
        transform: none;
    }
}

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

/* Image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

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

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

::-webkit-scrollbar-thumb {
    background: #3c663d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2f502f;
}
