/* Custom styles that extend Tailwind */

/* Smooth reveal animation for scroll-triggered elements */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is visible even without JS */
@supports not (animation: gradientShift 12s ease infinite) {
    .hero-gradient {
        background: linear-gradient(135deg, #071c12 0%, #1a5c3c 35%, #38a16f 60%, #93dbb6 80%, #f5e5a8 100%);
    }
}

/* Navbar background on scroll */
nav.scrolled {
    background: rgba(7, 28, 18, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

/* Decorative divider */
.divider-ornament {
    display: flex;
    align-items: center;
    gap: 12px;
}
.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38a16f, transparent);
}

/* Selection color */
::selection {
    background: #38a16f;
    color: #fefdf8;
}

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