/* Custom utility overrides and micro-interactions */

/* Smooth focus outlines for accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on loaded images */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
    object-fit: cover;
}

/* Subtle parallax on hero */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg {
        will-change: background-position;
    }
}

/* Print styles */
@media print {
    nav, .hero-bg, #gallery, .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
