:root {
    /* Light Theme */
    --primary-bg: #779E5F;
    --primary-accent: #bf7642;
    --secondary-accent: #849e61;
    --text-light: #f8f8f8;
    --card-bg: #ffffff;
    --section-bg: #ffffff;
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-bg: linear-gradient(135deg, # #779E5F
    , # #779E5F
    );
    --nav-bg: #ffffff;
    --input-bg: #ffffff;
    --border-color: #e0e0e0;
}
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #a56036;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#backToTop.show {
    display: flex;
}
.back-to-top-button {
    /* Base Styling */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    
    /* Futuristic Glass Morphism */
    background: rgba(191, 118, 66, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Neon Glow Effect */
    box-shadow: 
        0 0 15px rgba(191, 118, 66, 0.7),
        0 0 30px rgba(191, 118, 66, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    
    /* 3D Button Shape */
    color: white;
    border: none;
    padding: 16px 18px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    
    /* Smooth Animations */
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: 
        transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.5s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    
    /* Micro-Interaction Ready */
    animation: pulseGlow 2.5s infinite alternate;
}

/* Show Animation */
#backToTop.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects (3D + Neon Boost) */
#backToTop:hover {
    transform: scale(1.15) translateY(-5px) !important;
    background: rgba(168, 95, 49, 0.95);
    box-shadow: 
        0 0 25px rgba(191, 118, 66, 0.9),
        0 0 45px rgba(191, 118, 66, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Active/Pressed Effect */
#backToTop:active {
    transform: scale(0.95) translateY(2px) !important;
    box-shadow: 
        0 0 10px rgba(191, 118, 66, 0.7),
        0 0 20px rgba(191, 118, 66, 0.4),
        inset 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Floating Arrow Icon */
#backToTop i {
    display: block;
    transition: transform 0.3s ease;
}

/* Arrow Bounce on Hover */
#backToTop:hover i {
    transform: translateY(-3px);
}

/* Continuous Pulse Glow */
@keyframes pulseGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(191, 118, 66, 0.7),
            0 0 30px rgba(191, 118, 66, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 0 25px rgba(191, 118, 66, 0.9),
            0 0 45px rgba(191, 118, 66, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

/* Optional: Add a smooth scroll effect */
html {
    scroll-behavior: smooth;
}


/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}
body {
    background-color: var(--primary-bg);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    line-height: 1.6;
    min-height: 100vh;
}

@font-face {
    font-family: 'Hanimation Arabic';
    src: url('../fonts/hanimation-arabic-bold.woff2') format('woff2'),
         url('../fonts/hanimation-arabic-bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.arabic {
    font-family: 'Hanimation Arabic', 'Amiri', serif;
}

/* Header Styles */
.header {
    background: var(--header-bg);
    color: var(--text-light);
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 2rem;
    transition: background 0.5s ease;
}

.logo {
    max-height: 100px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 12px;
    transition: var(--transition);
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--secondary-accent);
}

/* Search and Filter */
.search-filter {
    margin-bottom: 2rem;
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-accent);
    z-index: 2;
}


.search-input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #333333;
    box-shadow: var(--shadow);
    transition: var(--transition);
}


.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(191, 118, 66, 0.3);
    transform: translateY(-2px);
}


.form-select {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}


.form-select:focus {
    box-shadow: 0 0 0 3px rgba(66, 191, 66, 0.3);
    transform: translateY(-2px);
}

/* Menu Navigation */
.menu-nav {
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    justify-content: center !important;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .menu-nav {
        justify-content: flex-start !important;
        flex-wrap: nowrap;
    }
}

.menu-nav::-webkit-scrollbar {
    display: none;
}

.menu-nav a {
    background-color: transparent;
    flex: 0 0 auto;
    margin-right: 1rem;
    text-decoration: none;
    color: var(--text-light);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    min-width: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.menu-nav a::before {
    
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2));
    transform: translateX(-100%);
    transition: var(--transition);
}

.menu-nav a:hover::before {
    transform: translateX(100%);
}

.menu-nav a i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.menu-nav a:hover i {
    transform: scale(1.2);
}

.nav-title {
    
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Category-specific colors */
.nav-garden {
    background: linear-gradient(135deg, #4CD4B0, #3aab8a);
}

.nav-oven {
    background: linear-gradient(135deg, #FF8B94, #e67d86);
}

.nav-bar {
    background: linear-gradient(135deg, #96C0CE, #7aa8b8);
}

.nav-desserts {
    background: linear-gradient(135deg, #FFB347, #e69e3d);
}

.menu-nav a:hover {
    
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Menu Sections */
.menu-section {
    
    margin-bottom: 3rem;
    background-color: transparent;
    border-radius: 15px;
    padding: 2rem;

}

.section-title {
    color: var(--text-light);
    background: linear-gradient(90deg, var(--primary-accent), #a05c34);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin: 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.section-title:hover::after {
    transform: translateX(100%);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.menu-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-accent);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Item Name and Price Layout */
.item-name {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.arabic {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-accent);
    direction: rtl;
    text-align: right;
    margin-bottom: 0.3rem;
}

.english {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-top: auto;
    text-align: right;
}

/* Dietary Tags Layout */

/* Rial Logo */

.riyal-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 2px;
}

.item-price {
    display: inline-flex;
    align-items: center;
}

/* For larger screens */
@media (min-width: 768px) {
    .riyal-icon {
        width: 18px;
        height: 18px;
    }
}

/* Rial Logo */

/* menu navigation sticky */
#menuNav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Add a shadow when scrolled */
#menuNav.scrolled {
    background-color: #849E61 !important; /* Add !important to override any other styles */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Adjust the header clip-path to account for sticky nav */
.header {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

@media (max-width: 768px) {
    .header {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
}

/* menu navigation sticky */

/* Responsive Fixes */

@media (min-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .menu-item {
        padding: 1.8rem;
    }
    
    .arabic {
        font-size: 1.4rem;
    }
    
    .english {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.item-price::before {
    content: '•';
    margin: 0 8px;
    color: var(--primary-accent);
}

.item-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-style: italic;
}

.item-allergens {
    color: #d35400;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}



/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-accent), #8e5a3b);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Special Mobile Styles */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .logo {
        max-height: 100px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    /* Special Mobile Category Navigation */
    .menu-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        margin: 0;
        justify-content: flex-start !important;
        direction: ltr;
    }
    
    .menu-nav a {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        padding: 0.7rem 0.3rem;
        font-size: 0.9rem;
        border-radius: 10px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-right: 0.3rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .menu-nav a i {
        margin-bottom: 0;
        font-size: 1.2rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    /* Floating category indicator */
    .menu-section::before {
        content: attr(id);
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(90deg, var(--primary-accent), #8e5a3b);
        color: white;
        padding: 0.3rem 1.5rem;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        z-index: 1;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        padding: 1.2rem;
    }
    
    .arabic {
        font-size: 1.2rem;
    }
    
    .english {
        font-size: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .header {
        clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .menu-nav .col-6 {
        width: 100%;
    }
    
    .menu-nav a {
        padding: 1rem;
    }
    
 /* Center the section titles */
.section-title {
    display: block;
    text-align: center;
    width: 100%;
    margin: 1.5rem auto;
    /* Keep existing styles but remove the inline-block */
    color: var(--text-light);
    background: linear-gradient(90deg, var(--primary-accent), #a05c34);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Remove the mobile floating indicator since we're centering */
@media (max-width: 768px) {
    .menu-section::before {
        display: none;
    }
}
    
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    /* Phone Number Link Style */
.header a {
    color: white !important;
}

.header a:hover,
.header a:focus {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
}


    
    .section-title {
        background: linear-gradient(90deg, #3a3a3a, #2a2a2a);
    }
    
    .search-input, 
.form-select {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    

}



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

/* Menu Item Image Styling */
.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

/* Responsive image sizing */
@media (max-width: 768px) {
    .item-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .item-image {
        height: 140px;
    }
}
/* Animation for menu items */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}
/* Trigger animation on scroll */
        /* Optimized Navigation Styles */
        #menuNav {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(var(--nav-bg-rgb), 0.98);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 0;
            transition: all 0.2s ease;
            box-shadow: 0 1px 10px rgba(0,0,0,0.08);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .menu-nav {
            display: flex;
            justify-content: center;
            padding: 0.3rem 0.5rem;
            margin: 0 auto;
            max-width: 100%;
            overflow-x: auto;
            scrollbar-width: none;
            background-color: transparent;
        }

        .menu-nav::-webkit-scrollbar {
            
            display: none;
        }

        .menu-nav a {
            background-color: transparent;
            flex: 0 0 auto;
            text-decoration: none;
            color: white;
            padding: 0.6rem 1rem;
            border-radius: 24px;
            transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
            margin: 0 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 70px;
        }

        .menu-nav a i {
            font-size: 1.2rem;
            margin-bottom: 0.2rem;
            transition: all 0.2s ease;
        }

        .menu-nav a .nav-title {
            font-weight: 500;
            font-size: 0.8rem;
            transition: all 0.2s ease;
        }

        .menu-nav a:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .menu-nav a.active {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        /* Category Colors */
        .nav-soup           { background: linear-gradient(135deg, #A8E063, #56AB2F); }
        .nav-coldAppetizer  { background: linear-gradient(135deg, #6dd5fa, #2980b9); }
        .nav-hotAppetizer   { background: linear-gradient(135deg, #ff512f, #dd2476); }
        .nav-salad          { background: linear-gradient(135deg, #56ab2f, #a8e063); }
        .nav-plate          { background: linear-gradient(135deg, #ff9966, #ff5e62); }
        .nav-grilled        { background: linear-gradient(135deg, #e53935, #e35d5b); }
        .nav-mankoush       { background: linear-gradient(135deg, #FDC830, #F37335); }
        .nav-pasta          { background: linear-gradient(135deg, #b06ab3, #4568dc); }
        .nav-kidsMeal       { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
        .nav-desserts       { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .nav-coldDrinks     { background: linear-gradient(135deg, #74ebd5, #ACB6E5); }


        @media (min-width: 768px) {
            .menu-nav {
                padding: 0.4rem 1rem;
            }
            .menu-nav a {
                padding: 0.7rem 1.2rem;
                margin: 0 6px;
                min-width: 80px;
            }
            .menu-nav a i {
                font-size: 1.3rem;
            }
            .menu-nav a .nav-title {
                font-size: 0.85rem;
            }
        }

        @media (max-width: 480px) {
            .menu-nav a {
                padding: 0.5rem 0.8rem;
                min-width: 65px;
                margin: 0 3px;
            }
            .menu-nav a i {
                font-size: 1.1rem;
            }
            .menu-nav a .nav-title {
                font-size: 0.75rem;
            }
        }

        /* Centered Section Titles */
        .section-title {
            display: block;
            text-align: center;
            width: 100%;
            margin: 1.5rem auto;
            color: var(--text-light);
            background: linear-gradient(90deg, var(--primary-accent), #a05c34);
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 700;
            box-shadow: var(--shadow);
        }

        @media (min-width: 768px) {
            .section-title {
                font-size: 1.3rem;
            }
        }

/* Delay animations for staggered effect */
.menu-item:nth-child(1) { transition-delay: 0.1s; }
.menu-item:nth-child(2) { transition-delay: 0.2s; }
.menu-item:nth-child(3) { transition-delay: 0.3s; }
.menu-item:nth-child(4) { transition-delay: 0.4s; }
/* ... add more as needed */



.card.h-100.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 160px;
    text-align: start;
}
.card-img-side {
    flex: 0 0 110px;
    margin-left: 1rem;
    margin-right: 0;
    display: flex;
    align-items: center;
}
.card-img-side img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.card-img-side img:hover {
    transform: scale(1.05);
}
.price-badge {
    background: #a46036;
    color: #fff;
    border-radius: 18px;
    padding: 4px 14px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    align-self: flex-end;
}
