/* ===== CUSTOM STYLES ===== */

/* Scroll reveal base — content is visible by default, JS adds animated state */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion — never animate for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .animate-bounce { animation: none; }
    .animate-pulse { animation: none; }
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background-color: rgba(52, 211, 153, 0.3);
    color: #065f46;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #022c22;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.open {
    max-height: 400px;
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(52, 211, 153, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
