/* Custom styles that complement Tailwind and script.js */

/* Ensure smooth rendering of animated elements */
.animate-on-scroll {
    will-change: opacity, transform;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll.is-hidden {
        opacity: 1 !important;
        transform: none !important;
    }
    html { scroll-behavior: auto; }
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #mobileOverlay, footer { display: none; }
    body { color: #000; background: #fff; }
    .hero-gradient { background: #1e293b !important; }
}

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