/* Custom styles that complement Tailwind */

/* Smooth focus states for accessibility */
*:focus-visible {
    outline: 2px solid #3ab37a;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(58, 179, 122, 0.2);
    color: #0d1c28;
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none !important;
    }
    
    .btn-shine::after {
        display: none;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal, .btn-shine::after {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-midnight-950, .bg-midnight-900 {
        background: #f5f5f5 !important;
    }
    
    .text-white, .text-midnight-200, .text-midnight-300 {
        color: #333 !important;
    }
}

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

/* Better form select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Subtle parallax for hero image on desktop */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    #hero {
        perspective: 1000px;
    }
}

/* Ensure all interactive elements have proper hover states */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar active state */
#navbar a.active {
    color: #63cc98 !important;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure proper text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
