/* Custom styles for Boba Chills */

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

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

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

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

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

/* Navbar transitions */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FBBF24;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #FBBF24;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu category hover */
.menu-category {
    opacity: 1;
    transition: transform 0.3s ease;
}

.menu-category:hover {
    transform: translateX(8px);
}

/* Boba circles animation */
.boba-circle {
    animation: float 6s ease-in-out infinite;
}

.boba-circle:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.boba-circle:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

.boba-circle:nth-child(4) {
    animation-delay: -1s;
    animation-duration: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

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

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

/* Image hover effects */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    transition: transform 0.7s ease;
}

.rounded-2xl.overflow-hidden:hover img,
.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #FBBF24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Light navbar state */
nav.light .nav-link {
    color: rgba(74, 30, 63, 0.8);
}

nav.light .nav-link:hover {
    color: #B45309;
}

nav.light .nav-link::after {
    background: #B45309;
}

nav.light a[href="tel:16789263345"] {
    background: #6B2D5B;
    color: white;
}

nav.light a[href="tel:16789263345"]:hover {
    background: #9D174D;
}
