/* Custom Styles for Mohamed Siddique MD Website */

/* Base styles */
html {
    scroll-behavior: smooth;
}

/* Reveal animation for hero text */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealFadeIn 0.8s ease forwards;
}

.reveal-text:nth-child(1) {
    animation-delay: 0.2s;
}

.reveal-text:nth-child(2) {
    animation-delay: 0.4s;
}

.reveal-text:nth-child(3) {
    animation-delay: 0.6s;
}

.reveal-text:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes revealFadeIn {
    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(-8px);
}

/* Mobile menu transitions */
.mobile-link {
    transition: color 0.3s ease;
}

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

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

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

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

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #c46f50;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-text {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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