/* Custom animations and utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Mobile menu transitions */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(20, 24, 13, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

::-webkit-scrollbar-track {
    background: #14180d;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #465932;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .reveal-on-scroll {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img {
        transition: none;
    }
}

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