:root {
    --bg-dark: #0f1012;
    --bg-card: #16181b;
    --text-light: #e0e0e0;
    --text-muted: #8e8e8e;
    --accent-gold: #cba874;
    --accent-hover: #b89562;
    --white: #ffffff;
    --border-color: #272a2e;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

a {
    text-decoration: none;
    color: var(--text-light);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--white);
}

.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.mb-4 {
    margin-bottom: 2rem;
}

.container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 1px;
    width: 60px;
    background-color: var(--accent-gold);
    opacity: 0.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    background: linear-gradient(to bottom, rgba(15, 16, 18, 0.9) 0%, rgba(15, 16, 18, 0) 100%);
}

.navbar.scrolled {
    background-color: rgba(15, 16, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(15, 16, 18, 0.5), rgba(15, 16, 18, 1) 95%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
    max-width: 800px;
}

/* Halal Badge */
.halal-badge {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    width: 120px;
    height: 120px;
    color: var(--accent-gold);
    z-index: 10;
    opacity: 0.8;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.halal-badge:hover {
    opacity: 1;
    transform: scale(1.08) rotate(8deg);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Menu Section */
.menu-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.menu-categories {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.menu-category h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-note {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-muted);
}

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

.menu-item {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    overflow: hidden;
    position: relative;
}

.menu-item-img {
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--bg-dark);
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-item-img {
    transform: scale(1.05);
}

.menu-item.visible,
.specialty-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Added Animations --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.animate-on-load {
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.bg-image-container {
    position: relative;
    overflow: hidden;
}

/* Image Slider */
.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.slider-slide {
    width: 33.3333%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 10%;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 2px;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: var(--accent-gold);
    transform: scaleY(1.5);
}

.bg-image-zoom {
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background-size: cover;
    background-position: center;
    /* Keep underneath overlay */
    animation: slowZoom 30s ease-in-out infinite alternate;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.menu-item.translucent-card {
    background: rgba(22, 24, 27, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(203, 168, 116, 0.2);
}

.menu-item.translucent-card:hover {
    border-color: var(--accent-gold);
    background: rgba(22, 24, 27, 0.85);
}

.menu-item.translucent-card .menu-item-img {
    border-bottom: 2px solid var(--accent-gold);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
}

.menu-item-header h4 {
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: 1px;
}

.price {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

.menu-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.badge {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    opacity: 0.8;
}

/* Spécialités Section */
.specialties-section {
    padding: 8rem 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.specialties-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 16, 18, 0.85);
    backdrop-filter: blur(5px);
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.specialty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.specialty-card {
    background: rgba(22, 24, 27, 0.7);
    border: 1px solid rgba(203, 168, 116, 0.3);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.specialty-card:hover {
    border-color: var(--accent-gold);
    background: rgba(22, 24, 27, 0.9);
}

.specialty-card h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.specialty-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.specialty-prices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.price-row i {
    color: var(--accent-gold);
    margin-right: 0.5rem;
}

/* --- Sidebar Layout --- */
@media (min-width: 900px) {
    .menu-category.category-with-aside {
        display: flex;
        gap: 0;
        align-items: stretch;
    }

    .menu-category.category-with-aside.reverse {
        flex-direction: row-reverse;
    }

    .category-main {
        flex: 2;
        min-width: 0;
        padding: 4rem 3rem;
    }

    .category-aside {
        flex: 1;
        position: relative;
        display: flex;
        flex-direction: column;
    }
}

.category-aside {
    position: relative;
}

.category-aside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.category-aside::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(15, 16, 18, 0) 40%, rgba(15, 16, 18, 1) 100%),
        linear-gradient(to bottom, rgba(15, 16, 18, 1) 0%, rgba(15, 16, 18, 0) 10%, rgba(15, 16, 18, 0) 90%, rgba(15, 16, 18, 1) 100%);
}

.menu-category.category-with-aside.reverse .category-aside::after {
    background: linear-gradient(to left, rgba(15, 16, 18, 0) 40%, rgba(15, 16, 18, 1) 100%),
        linear-gradient(to bottom, rgba(15, 16, 18, 1) 0%, rgba(15, 16, 18, 0) 10%, rgba(15, 16, 18, 0) 90%, rgba(15, 16, 18, 1) 100%);
}

@media (max-width: 899px) {
    .menu-category.category-with-aside {
        display: flex;
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .menu-category.category-with-aside.reverse {
        flex-direction: column;
    }

    .category-aside {
        height: 260px;
        width: calc(100% + 2rem);
        margin: 0 -1rem -2rem -1rem;
        position: relative;
        z-index: 0;
    }

    .category-main {
        padding: 0;
        z-index: 1;
        position: relative;
    }

    .category-aside::after,
    .menu-category.category-with-aside.reverse .category-aside::after {
        background: linear-gradient(to bottom,
                rgba(15, 16, 18, 1) 0%,
                rgba(15, 16, 18, 0) 15%,
                rgba(15, 16, 18, 0) 70%,
                rgba(15, 16, 18, 1) 100%);
    }
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    background-color: #08090a;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--accent-gold);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar.active {
        background-color: var(--bg-card);
    }

    .nav-links.active {
        display: flex;
        border-top: 1px solid white;
    }

    .mobile-toggle {
        display: block;
    }

    .slider-indicators {
        left: 50%;
        transform: translateX(-50%);
        bottom: 5rem;
    }

    .hero {
        align-items: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
        text-align: center;
    }

    .hero p {
        text-align: center;
    }

    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .halal-badge {
        width: 70px;
        height: 70px;
        bottom: 2rem;
        right: 1.5rem;
    }

    .container {
        padding: 0 1rem;
        max-width: 95vw;
    }

    .specialty-card {
        padding: 2rem 1.5rem;
    }

    .menu-category.category-with-aside .category-main {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-category h3 {
        font-size: 1.6rem;
    }
}

/* Mobile Animations Overrides */
@media (max-width: 900px) {
    @keyframes fadeInUpMobile {
        from {
            opacity: 0;
            transform: translateY(15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-on-load {
        animation-name: fadeInUpMobile;
        animation-duration: 0.5s;
        animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .menu-item,
    .specialty-card,
    .scroll-reveal {
        transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, background 0.3s ease;
        transform: translateY(15px) scale(0.98);
    }

    .menu-item.visible,
    .specialty-card.visible,
    .scroll-reveal.visible {
        transform: translateY(0) scale(1);
    }

    .reveal-left {
        transition: all 0.5s ease-out;
        transform: translateX(-20px);
    }

    .reveal-right {
        transition: all 0.5s ease-out;
        transform: translateX(20px);
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: translateX(0);
    }
}