/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

/* Prevent flash of hidden content */
body {
    opacity: 1;
}

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

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

::-webkit-scrollbar-thumb {
    background: #4f8a5a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d6d46;
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #4f8a5a;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #c5dfcb;
    color: #223827;
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
