/* Custom styles for Natalie's Piano Studio */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #334e68;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #eeaa3d;
}

/* Selection color */
::selection {
    background: #eeaa3d;
    color: #102a43;
}

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

/* Ensure hero image doesn't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent content flash on scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .floating-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    nav, .floating-card, #contact-form, button {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
