/* Custom styles for Clayton M. Anderson OD & Associates */

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

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #7d4a7d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

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

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(125, 74, 125, 0.1);
}

/* Service card hover effect */
.group:hover .group-hover\\:translate-y-1 {
    transform: translateY(-0.25rem);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f3eaf3 25%, #fef3c7 50%, #f3eaf3 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Print styles */
@media print {
    nav,
    .animate-bounce,
    .group {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}
