/* Custom styles that complement Tailwind CSS */

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

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #14b8a6;
    color: white;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Reduced motion for animations */
@media (prefers-reduced-motion: reduce) {
    .float-animation {
        animation: none;
    }
    
    .card-hover {
        transition: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    .float-animation,
    .reveal {
        display: block;
        opacity: 1;
    }
    
    .card-hover {
        box-shadow: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid currentColor;
    }
}

/* Reduced transparency */
@media (prefers-reduced-transparency: reduce) {
    .hero-gradient,
    .section-gradient {
        background: #f8fafc;
    }
    
    .absolute {
        opacity: 1;
    }
}
