/* Custom styles beyond Tailwind */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Reveal animations — progressive enhancement, works without JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#main-nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu */
#mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: #e65528;
    color: #fefcf8;
}

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

/* Subtle pattern overlay for hero */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(230, 85, 40, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(226, 163, 74, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
