:root {
    --primary-color: #FF6B35;
    --secondary-color: #2C3E50;
    --dark-bg: #1a1a1a;
    --text-light: #f5f5f5;
    --orange-dark: #e55a2b;
    --orange-light: #ff8c5a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.7;
    font-weight: 400;
}

.top-bar {
    font-size: 0.875rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
}

.logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Navigation Icons */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.navbar-nav .dropdown-toggle::after {
    display: none;
}

.navbar-nav .dropdown-menu {
    margin-top: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Cart Badge */
.nav-link.position-relative {
    display: inline-flex;
    align-items: center;
}

.cart-count {
    position: absolute !important;
    top: 0 !important;
    right: -8px !important;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 500;
    z-index: 10;
    transform: translate(25%, -25%);
    line-height: 1;
}

/* Header cart count badge specific styling */
.header-icons .cart-count {
    top: 0px;
    right: -8px !important;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 0px solid #fff;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    color: var(--primary-color);
    display: block;
    line-height: 1;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-subtitle {
    color: #fff;
    font-size: 0.7rem;
    font-weight: 400;
    display: block;
    letter-spacing: 3px;
    margin-top: 2px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-section .lead {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dish-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.dish-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.dish-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s;
}

.dish-card:hover img {
    transform: scale(1.1);
}

.dish-card .card-body {
    padding: 1.8rem;
}

.dish-card .card-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.dish-card .price {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stats-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(44, 62, 80, 0.95) 100%), url('/images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: white;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 60%);
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.stat-item .label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

footer {
    background-color: var(--dark-bg) !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color) !important;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    background-color: #e55a2b !important;
}

/* Additional Styles */
.btn-warning {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--orange-dark) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--orange-dark) 0%, var(--primary-color) 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--orange-light));
    border-radius: 2px;
}

.testimonial-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    height: 100%;
    padding: 2rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Dish Card Image Styles */
.dish-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

a .dish-card {
    text-decoration: none;
    color: inherit;
}

a:hover .dish-card {
    text-decoration: none;
    color: inherit;
}

.dish-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.dish-card:hover img {
    transform: scale(1.05);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy loading for images - Show images immediately, no opacity hiding */
img[loading="lazy"] {
    opacity: 1 !important;
    transition: opacity 0.3s ease-in-out;
}

/* Pagination Styles */
.pagination {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    border-radius: 0.375rem;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    color: var(--primary-color);
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border-radius: 0.375rem;
    min-width: 44px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.pagination .page-link:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    background-color: #f8f9fa;
    color: #6c757d;
    box-shadow: none;
}

.pagination .page-link i {
    font-size: 0.875rem;
}

/* Image handling */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

img[src=""], img:not([src]) {
    opacity: 0;
}

.dish-card img,
.cart-item img {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dish-card img::before,
.cart-item img::before {
    content: "🍽️";
    font-size: 3rem;
    display: block;
    text-align: center;
    padding: 20px;
}

/* Fallback for broken images */
img[onerror] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .stat-item .number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-section {
        background-attachment: scroll;
        padding: 60px 0;
    }
}

