body {
    font-family: 'Poppins', sans-serif;
    background-color: #fafaf9;
}

.title {
    font-family: 'Playfair Display', serif;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
}

.loader {
    width: 100px;
    height: 100px;
    border: 5px solid #333;
    border-top: 5px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section {
    min-height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?auto=format&fit=crop&q=75&w=1200') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
    animation: fadeInUp 1.5s ease-out;
    position: relative;
    padding: 2rem 1rem;
}

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

/* Category Cards */
.category-card {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .category-card {
        height: 400px;
    }
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    transition: all 0.5s ease;
}

.category-card:hover::before {
    background: linear-gradient(45deg, rgba(245, 158, 11, 0.8), rgba(146, 64, 14, 0.9));
}

.category-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2);
}

.category-content {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-card:hover .category-content {
    transform: translateY(-10px);
}

/* Menu Search */
.menu-search {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(245, 158, 11, 0.2);
    transition: all 0.3s ease;
}

.menu-search:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Menu Items */
.menu-section {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-section.active {
    opacity: 1;
    height: auto;
    transform: translateY(0);
    padding: 2rem;
}

.menu-item {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.menu-item:hover {
    transform: translateX(10px);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), transparent);
}

.menu-price {
    transition: all 0.3s ease;
}

.menu-item:hover .menu-price {
    color: #f59e0b;
    transform: scale(1.1);
}

.divider {
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.6s ease;
}

.menu-item:hover .divider {
    width: 100%;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.15);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Scroll to Top Button */
.scroll-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

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

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-card {
        height: 250px;
    }
    
    .menu-section.active {
        padding: 1rem;
    }
    
    .hero-section {
        min-height: 40vh;
    }
    
    .title {
        font-size: 2.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
button:focus,
input:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.close-button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    color: #6b7280;
}
