/* ========================================
   Asian Bite — Custom Styles
   Fresh & Airy · Charcoal + Coral
======================================== */

/* Base & Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: rgba(240, 96, 64, 0.2);
    color: #1f2937;
}

/* ========================================
   Floating Card Animations
======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card.animate-float-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    animation-delay: 2s;
}

/* ========================================
   Scroll Line Animation
======================================== */
@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: content visible
   by default, JS adds animated state.
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    /* Stagger children */
    .reveal-grid > * {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Reduced motion: no animations */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .animate-scroll-line {
        animation: none;
    }

    .reveal,
    .reveal > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========================================
   Navbar Scroll State
======================================== */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .menu-line {
    background-color: #1f2937 !important;
}

/* ========================================
   Mobile Menu
======================================== */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

/* ========================================
   Image Hover Effects
======================================== */
img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Focus Visible
======================================== */
:focus-visible {
    outline: 2px solid #f06040;
    outline-offset: 2px;
}

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

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

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

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

/* ========================================
   Tablet & Desktop Tweaks
======================================== */
@media (min-width: 768px) {
    .nav-scrolled {
        background-color: rgba(255, 255, 255, 0.97) !important;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    nav, .floating-card, .animate-scroll-line {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
