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

body {
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #31a25d;
}

/* Focus states for accessibility */
button:focus, a:focus, input:focus, textarea:focus {
    outline: 2px solid #31a25d;
    outline-offset: 2px;
}

/* Mobile Menu Transitions */
#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;
}

/* Sticky Nav Active State */
.nav-scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding-top: 0;
    padding-bottom: 0;
    height: 80px;
}

.nav-not-scrolled {
    background-color: transparent;
    padding-top: 0;
    padding-bottom: 0;
    height: 96px;
}
