/* Custom styles for Wrap & Roll Cafe */

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

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 248, 244, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(127, 33, 33, 0.08);
}

.nav-scrolled #nav-brand,
.nav-scrolled a:not(.bg-burgundy-700):not(.bg-blush-500) {
    color: #7f2121 !important;
}

.nav-scrolled #nav-logo path {
    fill: #7f2121 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a2727;
}

/* Selection color */
::selection {
    background: #d44646;
    color: #FDF8F4;
}

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

/* Image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(127, 33, 33, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
</style>
