/* Custom styles and overrides */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fa4ad;
}

/* Selection color */
::selection {
    background: #ffd6cc;
    color: #252830;
}

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

/* Image placeholder fallbacks */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    nav, .mobile-menu-btn, .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-gradient {
        background: #181a1f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary,
    .coral-gradient {
        border: 2px solid currentColor;
    }
}

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

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .stat-card {
        animation: float 6s ease-in-out infinite;
    }
    
    .stat-card:nth-child(2) {
        animation-delay: -1.5s;
    }
    
    .stat-card:nth-child(3) {
        animation-delay: -3s;
    }
    
    .stat-card:nth-child(4) {
        animation-delay: -4.5s;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
