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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.menu-item, .compact-menu-item {
    opacity: 0;
}

.menu-item.animate-in, .compact-menu-item.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.menu-section {
    padding:  8% 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(222, 34, 53, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(156, 21, 42, 0.03) 0%, transparent 30%);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--heading-font);
    color: #DE2235;
    font-size: var(--font-size-xxl);
    margin-bottom: var(--spacing-md);
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 1.5px;
   
}

.section-title.centered::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), #DE2235);
    border-radius: 3px;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    gap: 15px;
}

.menu-tab {
    background: linear-gradient(135deg, rgba(222, 34, 53, 0.05) 0%, rgba(222, 34, 53, 0.01) 100%);
    border: 2px solid #DE2235;
    color: #DE2235;
    padding: 12px 28px;
    font-family: var(--body-font);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 30px;
    letter-spacing: 1px;
    min-width: 180px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(222, 34, 53, 0.1);
    z-index: 1;
}

.menu-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #DE2235;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.menu-tab:hover::before, 
.menu-tab.active::before {
    left: 0;
}

.menu-tab:hover, 
.menu-tab.active {
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(222, 34, 53, 0.2);
}

.subcategory-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--spacing-lg) 0;
    gap: var(--spacing-sm);
    position: relative;
}

.subcategory-tabs::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(to right, transparent, #DE2235, transparent);
}

.subcategory-tab {
    position: relative;
    cursor: pointer;
    padding: 6px 18px;
    margin: 0 5px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.subcategory-tab:hover {
    background-color: rgba(222, 34, 53, 0.05);
}

.subcategory-name {
    font-family: var(--body-font);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.subcategory-line {
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #DE2235, var(--secondary-color));
    margin-top: 5px;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.subcategory-tab.active .subcategory-name {
    color: #DE2235;
}

.subcategory-tab.active .subcategory-line {
    width: 100%;
}

.subcategory-tab:hover .subcategory-name {
    color: #DE2235;
}

.subcategory-tab:hover .subcategory-line {
    width: 50%;
}

.subcategory-sections {
    margin-top: var(--spacing-xl);
}

.subcategory-section {
    margin-bottom: var(--spacing-xl);
}

.subcategory-title {
    font-family: var(--heading-font);
    color: #DE2235;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.subcategory-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #DE2235 0%, var(--secondary-color) 100%, transparent);
    border-radius: 2px;
}

.compact-menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.compact-menu-item {
    display: flex;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    height: 100%;
    min-height: 110px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.compact-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(222, 34, 53, 0.12);
    border-color: rgba(222, 34, 53, 0.1);
}

.compact-menu-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(222, 34, 53, 0.03) 0%, rgba(156, 21, 42, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.compact-menu-item:hover::after {
    opacity: 1;
}

.compact-item-image {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    margin: 12px;
	margin-right: 0;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.compact-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.compact-item-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 20px;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.compact-item-image:hover {
    transform: scale(1.05);
}

.compact-item-image:hover::before {
    opacity: 1;
}

.compact-item-image:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

.dish-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dish-image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: #DE2235;
    transform: rotate(90deg);
}

.special-mark {
    position: absolute;
    display: none !important;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #DE2235, var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.compact-item-content {
    flex: 1;
    padding: 20px;
    padding-left: 25px;
    display: flex;
    flex-direction: column;
}

.compact-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.compact-item-name {
    font-family: var(--heading-font);
    font-size: var(--font-size-base);
    color: #DE2235;
    margin: 0;
    flex: 1;
    padding-right: 10px;
	padding-top: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.compact-item-price {
    font-family: var(--body-font);
    font-size: var(--font-size-base);
    font-weight: bold;
    color: var(--light-text);
    background: #DE2235;
    padding: 5px 12px;
    border-radius: 20px;
    position: relative;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(222, 34, 53, 0.2);
    overflow: hidden;
}

.compact-item-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compact-menu-item:hover .compact-item-price::before {
    opacity: 1;
}

.compact-item-description {
    font-family: var(--body-font);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    margin-top: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.compact-item-ingredients {
    font-size: var(--font-size-xs);
    color: var(--text-color);
    margin-top: 8px;
    font-style: italic;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.compact-menu-item:hover .compact-item-ingredients {
    opacity: 1;
}

.compact-item-ingredients span {
    color: var(--secondary-color);
    margin-right: 3px;
}

.dish-special {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.dish-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #DE2235, var(--secondary-color));
    z-index: 0;
}

.no-menu-items {
    text-align: center;
    font-family: var(--body-font);
    font-size: var(--font-size-md);
    color: var(--text-color);
    padding: var(--spacing-lg);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px dashed rgba(222, 34, 53, 0.3);
}

.see-all-container {
    text-align: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.see-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #DE2235, var(--secondary-color));
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: var(--font-size-base);
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 5px 15px rgba(222, 34, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.see-all-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease;
}

.see-all-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(222, 34, 53, 0.3);
}

.see-all-button:hover::before {
    transform: translateX(100%);
}

.see-all-button i {
    transition: transform 0.3s ease;
}

.see-all-button:hover i {
    transform: translateX(5px);
}

@media screen and (max-width: 768px) {
    .subcategory-tabs {
        flex-direction: column; 
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        max-height: 300px; 
        overflow-y: auto; 
        overflow-x: hidden; 
        padding-bottom: 10px;
        padding-right: 5px; 
        margin-left: auto;
        margin-right: auto;
    }
    
    .subcategory-tab {
        width: 100%;
        min-width: 150px;
        margin: 5px 0; 
        white-space: normal; 
        text-align: center;
    }
    
    .subcategory-tabs::after {
        width: 50%; 
    }
    
    .subcategory-tabs::-webkit-scrollbar {
        width: 4px;
    }
    
    .subcategory-tabs::-webkit-scrollbar-track {
        background: rgba(222, 34, 53, 0.05);
        border-radius: 10px;
    }
    
    .subcategory-tabs::-webkit-scrollbar-thumb {
        background: #DE2235;
        border-radius: 10px;
    }
}

@media screen and (max-width: 992px) {
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .compact-menu-items {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .menu-section {
        padding: var(--spacing-lg) 0;
    }
    
    .menu-tabs {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }
    
    .menu-tab {
        width: 100%;
        max-width: 300px;
        margin-bottom: var(--spacing-xs);
    }
    
    .subcategory-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .subcategory-tab {
        min-width: auto;
        white-space: nowrap;
    }
    
    .compact-menu-items {
        grid-template-columns: 1fr;
    }
    
    .subcategory-title {
        font-size: var(--font-size-md);
    }

    .btn, .btn-primary {
        background-color: #DE2235 !important;
        border-color: #DE2235 !important;
        color: white !important;
        -webkit-appearance: none !important;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: var(--font-size-lg);
    }
    
    .subcategory-title {
        font-size: var(--font-size-base);
        display: block;
    }
    
    .compact-item-header {
        flex-direction: column;
    }
    
    .compact-item-price {
        margin-top: 8px;
        align-self: flex-start;
    }
    
    .compact-item-image {
        width: 70px;
        height: 70px;
    }
}

@media (prefers-color-scheme: dark) and (-webkit-min-device-pixel-ratio: 2) {
    .btn, .btn-primary, button.btn, a.btn {
        background-color: #DE2235 !important;
        border-color: #DE2235 !important;
        color: white !important;
        -webkit-text-fill-color: white !important;
        forced-color-adjust: none !important;
    }
}