/* Custom styles for Calico Vineyard */

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

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Scroll reveal base states */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion - keep everything visible */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    .animate-marquee {
        animation: none;
    }
}

/* Scroll reveal hidden states (applied via JS) */
.js-enabled .reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}

.js-enabled .reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 252, 250, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

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

/* Selection color */
::selection {
    background: #F5D5D0;
    color: #7B2D3B;
}

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

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

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

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #E96E8E;
    outline-offset: 2px;
}

/* Image loading optimization */
img {
    will-change: transform;
}
