/* Custom styles for Sweet Berry Farms */

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

/* Base animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

#navbar.scrolled .logo-text {
    color: rgb(6, 78, 59);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Product card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgb(253, 251, 247) inset !important;
    caret-color: rgb(6, 78, 59);
}

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

::-webkit-scrollbar-track {
    background: rgb(253, 251, 247);
}

::-webkit-scrollbar-thumb {
    background: rgb(110, 231, 183);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(52, 211, 153);
}

/* Selection color */
::selection {
    background: rgb(167, 243, 208);
    color: rgb(6, 78, 59);
}
