/* Custom styles beyond Tailwind */

/* Ensure smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #ff6b6b;
    color: #ffffff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-1px);
}

/* Ensure images don't cause layout shift */
img {
    display: block;
    max-width: 100%;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    .reveal-on-scroll * {
        transition: none !important;
    }
    .overflow-hidden img {
        transition: none !important;
    }
}

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

/* Navbar scrolled state */
.navbar-scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Smooth image transitions */
.overflow-hidden img {
    will-change: transform;
}

/* Ensure the hero image area doesn't have layout shift */
.aspect-square,
.aspect-\[4\/5\] {
    contain: layout;
}
