/* Custom styles that complement Tailwind */

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #ff6b3d;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #ffd4c8;
    color: #27273a;
}

/* Prevent layout shift on images */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu animation */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

#mobile-menu.open {
    max-height: 400px;
    padding-bottom: 0.5rem;
}

/* Navbar scroll state */
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group:hover img {
        transform: none;
    }
}

/* Print styles */
@media print {
    nav, #back-to-top, .reveal {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
