/* Menu Section Variables and Base */
:root {
    --menu-bg: #2A2A2C;
    --menu-secondary-bg: #333335;
    --menu-accent: rgba(239, 144, 40, 0.1);
    --menu-text: #F5F5F5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Menu Section */
.menu-section {
    background-color: var(--menu-bg);
    position: relative;
    overflow: hidden;
    color: var(--menu-text);
    min-height: 100vh;
}

/* Background Patterns */
.menu-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        linear-gradient(45deg, var(--primary-color) 25%, transparent 25%),
        linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--primary-color) 75%),
        linear-gradient(-45deg, transparent 75%, var(--primary-color) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    pointer-events: none;
}

/* Menu Hero Section */
.menu-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.menu-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

.menu-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(239, 144, 40, 0.85) 0%,
        rgba(58, 58, 60, 0.9) 100%
    );
    backdrop-filter: blur(3px);
}

.menu-hero-content {
    position: relative;
    color: var(--white);
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.menu-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

.menu-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
    margin-top: 1.5rem;
}

/* Menu Categories */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--menu-secondary-bg);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.category-btn {
    padding: 0.8rem 1.8rem;
    border: none;
    background: none;
    font-size: 1.1rem;
    color: var(--menu-text);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.category-btn::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-btn:hover::before,
.category-btn.active::before {
    transform: scaleX(1);
}

/* Menu Container */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Menu Items */
.menu-item {
    background: var(--menu-secondary-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: var(--card-transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(239, 144, 40, 0.15);
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 1.8rem;
}

.menu-item-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
}

.menu-item-content p {
    color: var(--menu-text);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.spicy-level {
    float: right;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

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

@keyframes slowZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-hero {
        min-height: 300px;
    }

    .menu-title {
        font-size: 2.8rem;
    }

    .menu-subtitle {
        font-size: 1.2rem;
    }

    .menu-categories {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.8rem;
        justify-content: center;
    }

    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        width: calc(50% - 1rem);
        text-align: center;
    }

    .menu-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .menu-item-image {
        height: 200px;
    }

    .menu-item {
        max-width: 400px;
        margin: 0 auto;
    }

    .menu-item:hover {
        transform: translateY(-4px);
    }

    .menu-item-content {
        padding: 1.5rem;
    }

    .menu-item-content h3 {
        font-size: 1.3rem;
    }

    .price {
        font-size: 1.2rem;
    }

    .menu-hero-bg {
        animation: none;
    }
}