/* ========================================
   Bubble Tea Culture — Custom Styles
   ======================================== */

/* ── Base ── */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: rgba(196, 103, 74, 0.2);
    color: #1e2a3a;
}

/* ── Navigation ── */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(13, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-logo-text {
    transition: color 0.5s ease;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #fff !important;
}

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

.hero-bubble {
    animation: float 8s ease-in-out infinite;
}

.hero-bubble:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 10s;
}

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

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(30px);
    }

    .menu-card {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
    }

    .menu-card[data-revealed="false"] {
        opacity: 0;
        transform: translateY(25px);
    }
}

/* Default state — always visible for accessibility */
.reveal, .menu-card {
    opacity: 1;
    transform: none;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

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

.mobile-link {
    position: relative;
}

/* ── Buttons ── */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #c4923e;
}

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

/* ── Utility ── */
@media (max-width: 767px) {
    .font-display {
        line-height: 1.15;
    }
}
