:root {
    --primary-color: #c9a86a;
    /* Gold */
    --secondary-color: #1a1a1a;
    /* Dark background */
    --accent-color: #2c2c2c;
    /* Lighter dark */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --bg-gradient: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.logo-text {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: pulse 2s infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation */
nav {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-color);
}

.search-bar {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 15px 12px 45px;
    border-radius: 50px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(201, 168, 106, 0.2);
}

/* Hero */
.hero {
    padding: 60px 0;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(201, 168, 106, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #c9a86a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories {
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.category-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-wrapper::-webkit-scrollbar {
    height: 0;
}

.cat-btn {
    padding: 12px 25px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.menu-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeIn 0.8s ease backwards;
}

.menu-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-card:hover .card-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.card-img:hover .overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: var(--transition);
}

.card-img:hover .view-btn {
    transform: translateY(0);
}

.card-content {
    padding: 25px;
}

.tags {
    margin-bottom: 12px;
}

.tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(201, 168, 106, 0.1);
    color: var(--primary-color);
    border-radius: 5px;
    margin-right: 5px;
    text-transform: uppercase;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.order-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.order-btn:hover {
    color: #ff4757;
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--accent-color);
    max-width: 800px;
    width: 100%;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    animation: modalIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.modal-info .price {
    display: block;
    font-size: 2rem;
    margin-bottom: 25px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-img {
        height: 300px;
    }

    .modal-info {
        padding: 30px;
    }

    .category-wrapper {
        justify-content: flex-start;
    }
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--primary-color);
}