/* Custom styles for Agee' S Dairy */

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

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-fresh {
    animation-delay: 0s;
}

.card-local {
    animation-delay: -2s;
}

.card-premium {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(2deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

.card-local {
    animation-name: float-local;
}

@keyframes float-local {
    0%, 100% {
        transform: translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.card-premium {
    animation-name: float-premium;
}

@keyframes float-premium {
    0%, 100% {
        transform: translateY(0px) rotate(1deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

/* Scroll reveal animations - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only apply hidden state when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(43, 22, 31, 0.98) !important;
    backdrop-blur: md;
}

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

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

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

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

/* Selection color */
::selection {
    background: #ffc954;
    color: #2b161f;
}
