/* Custom styles for Beverly Hills Boba */

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4f7fb;
}
::-webkit-scrollbar-thumb {
    background: #9db5d4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #718fbd;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(244, 247, 251, 0.9);
    backdrop-blur-lg;
    border-bottom: 1px solid rgba(157, 181, 212, 0.2);
    box-shadow: 0 1px 20px rgba(26, 37, 53, 0.06);
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Card hover lift effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Subtle pulse for the live dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #ecbf54;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(236, 191, 84, 0.3);
    color: #1a2535;
}

/* Image placeholder fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure text readability on all backgrounds */
.text-navy-800,
.text-navy-900,
.text-navy-700 {
    color: #1a2535;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ecbf54;
    outline-offset: 2px;
}

/* Mobile menu active link color */
.mobile-link:hover {
    color: #d4900f;
}

/* Form input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.05) inset !important;
    -webkit-text-fill-color: #ffffff !important;
}
</style>
