/* === Base & Reset === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #a8e6cf;
    color: #0a2540;
}

/* === Navbar === */
#navbar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled #nav-logo-text {
    color: #ffffff;
}

/* === Hero Animations === */
.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-desc {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Floating Boba === */
@keyframes float1 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.08); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.03); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.06); }
}

.boba-float-1 { animation: float1 4s ease-in-out infinite; }
.boba-float-2 { animation: float2 3.5s ease-in-out infinite 0.5s; }
.boba-float-3 { animation: float3 4.5s ease-in-out infinite 1s; }
.boba-float-4 { animation: float4 3s ease-in-out infinite 0.3s; }

/* === Marquee === */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-block;
    padding: 0 8px;
}

/* === Menu === */
.menu-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
    transition: padding-left 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    padding-left: 8px;
}

/* === Feature Cards === */
.feature-card {
    border: 1px solid rgba(10, 37, 64, 0.06);
}

.feature-card:hover {
    border-color: rgba(168, 230, 207, 0.3);
    transform: translateY(-4px);
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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; }

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

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

.mobile-link {
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* === Form === */
#contact-form input:focus,
#contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }

    .menu-title,
    .about-title,
    .features-title,
    .visit-title,
    .contact-title {
        font-size: 3rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .about-label,
    .menu-label,
    .features-label,
    .visit-label,
    .contact-label {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .menu-title,
    .about-title,
    .features-title,
    .visit-title,
    .contact-title {
        font-size: 2.25rem;
    }

    #navbar {
        background: transparent;
    }

    #navbar.scrolled {
        background: rgba(10, 22, 40, 0.98);
    }
}

/* === Print === */
@media print {
    #navbar, .marquee-track { display: none; }
    body { background: white; color: black; }
}
