/* Custom Styles for Boba Bar */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating Card Animations */
.floating-card {
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1s;
}

.floating-card:nth-child(3) {
    animation-delay: -2s;
}

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

/* Floating Geometric Shapes */
.floating-shape {
    animation: float-shape 4s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
    animation-delay: -0.5s;
    animation-duration: 3.5s;
}

.floating-shape:nth-child(3) {
    animation-delay: -1s;
    animation-duration: 4.5s;
}

.floating-shape:nth-child(4) {
    animation-delay: -1.5s;
    animation-duration: 3s;
}

.floating-shape:nth-child(5) {
    animation-delay: -2s;
    animation-duration: 5s;
}

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

/* Scroll Indicator */
.animate-scroll-indicator {
    animation: scroll-down 1.5s ease-in-out infinite;
}

@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Menu Card Hover */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Feature Card Hover */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(45, 106, 45, 0.08);
}

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

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

/* Scroll Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

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

    .reveal-delay-1 {
        transition-delay: 0.1s;
    }

    .reveal-delay-2 {
        transition-delay: 0.2s;
    }

    .reveal-delay-3 {
        transition-delay: 0.3s;
    }

    .reveal-delay-4 {
        transition-delay: 0.4s;
    }
}

/* Default visible state for reduced-motion / no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8fcd8f;
}

/* Selection Color */
::selection {
    background: #bce3bc;
    color: #1c401c;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid #3d8a3d;
    outline-offset: 2px;
}

/* Mobile Menu Button Active State */
#menu-toggle:active .menu-line {
    transform: scaleX(0.8);
}

/* Button Active States */
button:active,
a:active {
    transform: scale(0.98);
}
