/* Custom Styles for Bethlehem Compost Center */

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(10, 25, 47, 0.08);
}

#navbar.scrolled .nav-link {
    color: #112240 !important;
}

#navbar.scrolled .mobile-link {
    color: #112240 !important;
}

/* Leaf Animations */
.leaf {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.leaf.float-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.leaf.float-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.leaf.float-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* Product Card Hover */
.product-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Service Card Hover */
.service-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(212, 163, 115, 0.05);
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .leaf,
    .animate-bounce {
        animation: none;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

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

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