/* Custom styles that complement Tailwind CSS */

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

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom selection color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Ensure all text has proper contrast */
.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

/* Button hover effects */
button,
a {
    transition: all 0.2s ease-in-out;
}

/* Form inputs */
input,
textarea,
select {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Card hover effects */
.group:hover .group-hover\\:translate-y-\\[-2px] {
    transform: translateY(-2px);
}

/* Reduce motion for users who prefer it */
@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-rotate-slow {
        animation: none;
    }
}
