/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #34a86b;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d8750;
}

/* Selection color */
::selection {
    background: #34a86b;
    color: white;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 3px solid #34a86b;
    outline-offset: 2px;
}

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .animate-float,
    .animate-float-delayed,
    .animate-spin-slow {
        animation: none;
    }
}

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

/* Better form styling */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(52, 168, 107, 0.1);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
