/* Custom styles to complement Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    /* Fallback background color handled by Tailwind */
}

/* Animation Utilities */
.scroll-trigger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-trigger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(77, 115, 77, 0.2);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f2f7f4;
}
::-webkit-scrollbar-thumb {
    background: #c5d9c6;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9bb89b;
}

/* Navbar active state */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #4d734d;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
