/* Custom styles for Gateway Internal Medicine Associates */

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

/* Mobile menu animations */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service cards */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(31, 107, 31, 0.1);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal[data-reveal="left"] {
        transform: translateX(-24px);
    }
    
    .reveal[data-reveal="right"] {
        transform: translateX(24px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Selection color */
::selection {
    background-color: #b8dfb8;
    color: #1f6b1f;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #52a852;
}

/* Mobile link hover */
.mobile-link {
    display: block;
}

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