/* Custom styles for Dr. Melissa Lin website */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Ensure hero image loads properly */
.hero-img-mask {
    border-radius: 24px 80px 24px 80px;
}

/* Prevent content flash on load */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu overlay */
#mobile-overlay {
    backdrop-filter: blur(4px);
}

/* Custom selection color */
::selection {
    background: rgba(255, 107, 74, 0.2);
    color: #1e1e24;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #ff6b4a;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #mobile-overlay { display: none !important; }
    body { color: #000; background: #fff; }
    .hero-img-mask { border-radius: 8px; }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-img-mask {
        border-radius: 20px 60px 20px 60px;
    }
}

/* Large desktop adjustments */
@media (min-width: 1280px) {
    .hero-img-mask {
        border-radius: 28px 96px 28px 96px;
    }
}
