/* Custom styles for Dr. Andrew Thompson Medical Website */

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

/* Subtle grid background pattern for service cards */
#services {
    background-image: radial-gradient(circle, rgba(12, 36, 97, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(5, 13, 30, 0.3);
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(5, 13, 30, 0.08);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card {
        transform: none;
        transition: none;
    }
    .service-card:hover {
        transform: none;
    }
    #mobile-menu {
        animation: none;
    }
    .animate-bounce {
        animation: none;
    }
    .animate-spin {
        animation: none;
    }
    .animate-pulse {
        animation: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #0c2461;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a3a7a;
}

/* Selection color */
::selection {
    background: rgba(43, 196, 171, 0.25);
    color: #050d1e;
}
