/* Custom styles for Yavari Morteza MD */

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(252, 211, 77, 0.1);
}

/* Mobile menu transitions */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #243b53;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334e68;
}

/* Selection color */
::selection {
    background: rgba(252, 211, 77, 0.3);
    color: #fcd34d;
}

/* Smooth focus styles */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Image lazy load fade */
img[loading="lazy"] {
    transition: opacity 0.5s ease;
}

/* Hero decorative animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-10px) rotate(45deg); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-float {
        animation: float 6s ease-in-out infinite;
    }
    .hero-float-slow {
        animation: floatSlow 8s ease-in-out infinite;
    }
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-indicator { display: none; }
    body { background: white; color: black; }
}
