/* Additional custom styles */

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

/* Custom selection color */
::selection {
    background-color: #14b8a6;
    color: #0f172a;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #contactForm,
    .btn-primary {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-overlay {
        display: none;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card,
    .bg-slate-900\/50 {
        border-width: 2px;
        border-color: #14b8a6;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .btn-primary::before {
        display: none;
    }
}

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

/* Form validation styles */
input:invalid:focus,
textarea:invalid:focus {
    border-color: #ef4444;
}

input:valid:focus,
textarea:valid:focus {
    border-color: #14b8a6;
}

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

/* Custom checkbox/radio if needed in future */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #14b8a6;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Backdrop blur support fallback */
@supports not (backdrop-filter: blur(8px)) {
    nav {
        background-color: rgba(2, 6, 23, 0.98) !important;
    }
}
