/* Custom Styles for Oak & Main */

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

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(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 1s ease-out forwards;
}

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

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

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Navbar Styles */
#navbar {
    background: rgba(242, 252, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(141, 227, 192, 0.2);
}

#navbar.scrolled {
    box-shadow: 0 2px 20px rgba(10, 22, 40, 0.08);
}

/* Form Styles */
input:focus,
textarea:focus {
    border-color: #2BA883 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #52C9A2;
}

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

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #2BA883;
}
