/* Custom styles and overrides */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1b1e;
}
::-webkit-scrollbar-thumb {
    background: #3a3c43;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5f616a;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(15, 16, 18, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(62, 64, 67, 0.5) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Hero stat card hover */
.hero-stat-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hero-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 63, 0.3);
    box-shadow: 0 12px 40px rgba(255, 107, 63, 0.1);
}

/* Service card hover */
.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 63, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 63, 0.2);
}

/* Area card image zoom */
.area-card-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.area-card:hover .area-card-img {
    transform: scale(1.1);
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.3);
    color: #f6f6f7;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Reduced motion */
@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;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Select dropdown styling */
select {
    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='%237b7d87' 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;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}
