/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll Reveal Styles */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3d9456;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #24723d;
}

/* Navbar Transition */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-transparent {
    background: transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-transparent .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.nav-transparent .nav-link:hover {
    color: #3d9456;
}

.nav-transparent .logo-text {
    color: #0c331a;
}

/* Mobile Menu Animation */
#mobile-menu {
    transform-origin: top;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.hidden {
    transform: scaleY(0);
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
}
