/* ===== Custom Styles for Morazan Restaurant ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base transitions */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(41, 69, 41, 0.1);
}

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

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

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

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

/* ===== Menu Cards ===== */
.menu-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.menu-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.menu-card:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
}

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

.reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(40px);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    transition: opacity 0.3s ease;
}

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

/* ===== Image Hover ===== */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    .menu-card,
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img {
        transition: none;
    }
}

/* ===== Mobile Menu Transitions ===== */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* ===== Selection Color ===== */
::selection {
    background: #9cc79c;
    color: #121f12;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4f8a4f;
    outline-offset: 4px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6da86d;
}
