:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #292f36;
    --light-color: #f7fff7;
    --accent-color: #ff9f1c;
    --text-color: #333;
    --text-light: #777;
    --bg-gradient: linear-gradient(135deg, #ff6b6b 0%, #4ecdc51a 100%);
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    padding-top: 80px;
    overflow-x: hidden;
}

/* شريط التنقل */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(0, 0, 0, 0.95);
}

.logo-img {
    height: 40px;
    transition: all 0.3s;
}

.brand-name {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 50px;
    transition: all 0.3s;
    position: relative;
    text-align: center;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
}

/* أزرار خاصة */
.btn-admin, .btn-cart {
    padding: 0.5rem 1rem;
    margin: 0.4rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-admin {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-admin:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.2rem;
}

.btn-cart:hover {
    background: #ff5252;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

/* قسم الهيرو */
.hero-section {
    background: var(--bg-gradient), url('../images/steak.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    color: var(--dark-color);
    background-color: var(--light-color);
    transform: translateY(-2px);
}

/* قسم قائمة الطعام */
.menu-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.section-title {
    position: relative;
    display: inline-block;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* فلترة الأقسام */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
    border-color: var(--primary-color);
}

.filter-btn.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: white;
}

/* بطاقات الأصناف */
.menu-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 30px;
    height: 100%;
    background-color: white;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.menu-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.menu-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.menu-card:hover .menu-img {
    transform: scale(1.1);
}

.menu-card-body {
    padding: 25px;
}

.item-name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.item-description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.badge-category {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* قسم الدعوة للطلب */
.cta-section {
    background: var(--dark-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.btn-light {
    background-color: white;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all 0.3s;
}

.btn-light:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* الفوتر */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand img {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-list {
    list-style: none;
    padding-left: 0;
}

.footer-list li {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-list li:hover {
    color: white;
    transform: translateX(5px);
}

.footer-list i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-color);
}

hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* أنماط السلة */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

#cart-count {
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* نافذة السلة */
.modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--dark-color);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: none;
    font-weight: bold;
}

.remove-item-btn {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.btn-close {
    filter: invert(1);
}

/* زر السلة العائم للهواتف */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

/* تعديلات للهواتف */
@media (max-width: 992px) {
    .navbar-collapse {
        padding: 1rem;
        background: rgba(0, 0, 0, 0.95);
        border-radius: 0 0 15px 15px;
        margin-top: 10px;
    }
    
    .nav-link {
        margin: 0.3rem 0;
        padding: 0.8rem 1rem;
    }
    
    .d-flex.ms-3 {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        width: 100%;
    }
    
    .btn-admin, .btn-cart {
        width: 100%;
        justify-content: center;
        margin: 0.3rem 0;
    }
    
    .btn-cart .d-none.d-lg-inline {
        display: inline-block !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: 500px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .menu-img {
        height: 180px;
    }
    
    .category-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* تحسينات السلة للهواتف */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }
    
    .modal-content {
        height: 100%;
        border-radius: 0;
    }
    
    .modal-body {
        max-height: calc(100vh - 200px);
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer input {
        width: 100%;
        margin: 0;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }
    
    .cart-item-image {
        margin-bottom: 1rem;
        margin-left: 0;
        width: 80px;
        height: 80px;
    }
    
    .quantity-control {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
    
    /* تحسينات زر السلة العائم */
    .floating-cart-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .floating-cart-badge {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title:after {
        width: 50px;
        height: 3px;
        bottom: -5px;
    }
    
    .category-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 5px;
    }
}

@media (min-width: 992px) {
    .floating-cart-btn {
        display: none;
    }
}
