/* 
 * Cloud 9 Boba & Dessert - Custom Styles
 * Using Tailwind CSS via CDN for utility classes, 
 * but this file handles custom animations and overrides.
 */

html {
    scroll-behavior: smooth;
}

body {
    /* Ensuring no flash of unstyled content */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #1a5f60;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f3d3e;
}

/* Navbar Transition State */
nav.scrolled {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

nav.scrolled .text-brand-dark {
    color: #0f3d3e;
}

/* Utility for fade-in animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        will-change: opacity, visibility;
    }
    .fade-in-section.is-visible {
        opacity: 1;
        transform: none;
    }
}
