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

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

/* Hide scrollbar for mobile menu icon swap */
#menu-icon-open,
#menu-icon-close {
    transition: opacity 0.15s ease;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(26, 92, 42, 0.08);
}

/* Nav links underline on hover */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a5c2a;
    transition: all 0.2s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile links */
.mobile-link {
    display: block;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animated state: only applied via JS for below-fold sections */
.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.animated > * {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-stagger.animated.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.animated.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.animated.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.animated.visible > *:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.animated.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle float animation for decorative shapes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

.float-medium {
    animation: float 4s ease-in-out infinite;
}

/* Geometric shape hover effects */
.group:hover .group-hover\:rotate-45 {
    transform: rotate(45deg);
}
