/* Custom styles for Furniture Aid */

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

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: 1.5s;
}

/* Scroll reveal - progressive enhancement */
/* Default state: visible (works without JS) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Enhanced state with JS - only applied when JS is available */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 252, 249, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(45, 90, 61, 0.08);
}

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

#mobile-menu.open {
    max-height: 500px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2D5A3D;
}

/* Selection color */
::selection {
    background: #dce8df;
    color: #142a1c;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}
