/* Custom styles to complement Tailwind */

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

/* Hero animations - only below the fold or with reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .hero-anim {
        opacity: 1;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .hero-anim:nth-child(2) { animation-delay: 0.1s; }
    .hero-anim:nth-child(3) { animation-delay: 0.2s; }
    .hero-anim:nth-child(4) { animation-delay: 0.3s; }
    .hero-anim:nth-child(5) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations - below the fold only */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Service card hover effects */
.service-card {
    will-change: transform, box-shadow;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .animate-bounce, #contact-form {
        display: none !important;
    }
    
    body {
        color: #064e3b !important;
        background: white !important;
    }
}
