/* ===== Custom Styles for Route 193 Treats and Eats ===== */

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

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

body {
    margin: 0;
}

/* Selection */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A0E22;
}
::-webkit-scrollbar-thumb {
    background: #5B2C6F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B4A93;
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(26, 14, 34, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Floating Animations ===== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-15px) rotate(12deg); }
}

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

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

.float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.float-medium {
    animation: floatMedium 4s ease-in-out infinite;
}

.float-fast {
    animation: floatFast 3s ease-in-out infinite;
}

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

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Menu Tabs ===== */
.menu-tab {
    transition: all 0.3s ease;
}

.menu-tab.active {
    background: #F59E0B;
    color: #1A0E22;
    border-color: #F59E0B;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.menu-tab:not(.active) {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-tab:not(.active):hover {
    background: rgba(245, 158, 11, 0.1);
}

/* ===== Menu Panel Transitions ===== */
.menu-panel {
    animation: fadeIn 0.4s ease;
}

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

/* ===== Button Hover Effects ===== */
a, button {
    transition: all 0.3s ease;
}

/* ===== Image Hover ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .float-slow, .float-medium, .float-fast {
        animation: none;
    }
    
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

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

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

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

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
    h1 {
        line-height: 1.1;
    }
}
