/* Custom styles for Dr. Kent McQuain Optometrist */

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

/* Hero image animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.3s ease-in-out;
}

#mobileMenu.open {
    transform: translateX(0);
}

/* Header scroll effect */
header.scrolled {
    box-shadow: 0 4px 20px rgba(20, 83, 45, 0.1);
}

/* Service card hover effect */
.group:hover .w-12 {
    transform: scale(1.1) rotate(5deg);
}

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

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

::-webkit-scrollbar-thumb {
    background: #14532D;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #166534;
}
