/* Custom styles for Brian Lieb Medical Website */

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAFAF6;
}
::-webkit-scrollbar-thumb {
    background: #9dbe76;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #558033;
}

/* Scroll indicator animation */
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.animate-scrollDown {
    animation: scrollDown 1.5s ease-in-out infinite;
}

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

/* Navbar scroll effect */
header.scrolled {
    background: rgba(250, 250, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu transitions */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}
.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #406227;
    transition: width 0.3s ease;
}
.mobile-link:hover::after {
    width: 100%;
}

/* Fade-in animation for scroll reveal */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.hidden-init {
    opacity: 0;
    transform: translateY(20px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-scrollDown {
        animation: none;
    }
    .service-card:hover {
        transform: none;
    }
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

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

/* Button press effect */
button:active, a:active {
    transform: scale(0.98);
}

/* Selection color */
::selection {
    background: #c5d9b0;
    color: #11190a;
}
