/* Custom CSS for JASS QSR POS Official Marketing Website */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Kantumruy+Pro:wght@300;400;500;600;700&family=Noto+Sans+Lao:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #ff4f38;
    --accent-hover: #e03e27;
    --accent-light: #fff0ed;
    --bg-light: #f8fafc;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Apply specific fonts for Khmer (km) and Lao (lo) languages dynamically */
body[lang="km"] {
    font-family: 'Kantumruy Pro', 'Inter', sans-serif;
}

body[lang="lo"] {
    font-family: 'Noto Sans Lao', 'Inter', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Marquee Slider */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Glassmorphism elements */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.08);
    border-color: rgba(255, 79, 56, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Custom UI Toggle switch styling */
.toggle-dot {
    transition: transform 0.3s ease;
}

/* Accordion transition classes */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}
.accordion-content.open {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* =====================================================
   Mobile Hamburger Menu
   ===================================================== */

/* Hamburger button — icon swap animation */
#mobile-hamburger-btn #menu-icon-burger,
#mobile-hamburger-btn #menu-icon-close {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#mobile-hamburger-btn[aria-expanded="true"] #menu-icon-burger {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
#mobile-hamburger-btn[aria-expanded="true"] #menu-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile dropdown menu wrapper */
#mobile-menu {
    /* Tailwind's absolute positioning is used */
}

/* Staggered entrance for nav links inside mobile menu */
#mobile-menu a {
    animation: slideInDown 0.25s ease both;
}
#mobile-menu a:nth-child(1) { animation-delay: 0.04s; }
#mobile-menu a:nth-child(2) { animation-delay: 0.08s; }
#mobile-menu a:nth-child(3) { animation-delay: 0.12s; }
#mobile-menu a:nth-child(4) { animation-delay: 0.16s; }
#mobile-menu a:nth-child(5) { animation-delay: 0.20s; }
#mobile-menu a:nth-child(6) { animation-delay: 0.24s; }

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

/* Backdrop overlay */
#mobile-menu-backdrop {
    transition: opacity 0.25s ease;
}
