/* Custom styles for Dr. Payal Dave website */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Hero image fade-in (below fold, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .hero-image-fade {
        opacity: 0;
        transform: translateY(20px);
        animation: heroFadeIn 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Button focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #4ade80;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Floating card animation */
@media (prefers-reduced-motion: no-preference) {
    .floating-card {
        animation: float 3s ease-in-out infinite;
    }
}

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

/* Decorative circles animation */
@media (prefers-reduced-motion: no-preference) {
    .deco-circle {
        animation: pulse 4s ease-in-out infinite;
    }
    
    .deco-circle:nth-child(2) {
        animation-delay: 1s;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Form input focus states */
input:focus,
select:focus,
textarea:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}
