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

:root {
    --charcoal-900: #0D0D0D;
    --charcoal-800: #1A1A1A;
    --charcoal-700: #2A2A2A;
    --charcoal-600: #3A3A3A;
    --coral-500: #FF6B4A;
    --coral-400: #FF8566;
    --cream-50: #FAF8F6;
    --cream-200: #EDE5DC;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--charcoal-900);
    color: var(--cream-50);
    overflow-x: hidden;
}

::selection {
    background: var(--coral-500);
    color: white;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--charcoal-900);
}
::-webkit-scrollbar-thumb {
    background: var(--charcoal-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--coral-500);
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

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

#navbar.scrolled nav > div {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* ===== Floating Cards Animation ===== */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

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

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

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

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ===== Menu Tabs ===== */
.menu-tab {
    position: relative;
    overflow: hidden;
}

.menu-tab.active {
    background: var(--coral-500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.3);
}

.menu-tab:not(.active):hover {
    background: var(--charcoal-600);
    color: var(--cream-50);
}

/* ===== Menu Item Hover ===== */
.menu-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Button Focus ===== */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--coral-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-bottom: 1rem;
    }

    .floating-card:nth-child(3) {
        order: -1;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}
