:root {
    --primary: #e32619;
    --primary-hover: #c11f14;
    --dark: #0f0f0f;
    --dark-accent: #1a1a1a;
    --light: #f5f5f5;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
}

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

html, body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #1d8348; /* Exact match with Menu section green */
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo img {
    height: 85px; /* Increased size */
    display: block;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover, .nav-links a.active {
    color: #000000;
}

.nav-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    border-radius: 4px;
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10000 !important; /* Above the mobile menu panel */
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Mobile Nav Links */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0a0a0a !important; /* Pure black */
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999 !important; /* Above everything */
        box-shadow: -10px 0 50px rgba(0,0,0,0.8);
        padding: 50px;
        visibility: visible !important;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: white !important;
        display: block;
        padding: 10px;
        width: 100%;
    }

    /* Animate Hamburger to X */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: var(--primary);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: var(--primary);
    }
}

/* Hero Section */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

/* Menu Section */
#menu {
    background-color: #1d8348; /* Vibrant, appetizing green */
    color: white;
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

/* Wavy Dividers */
.wave-divider {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.wave-top {
    top: -1px;
    transform: rotate(180deg);
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

.wave-fill {
    fill: var(--dark);
}

#menu .wave-fill {
    fill: #1d8348;
}

/* Homepage Gallery Frame (Improved) */
.gallery-frame {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border: 8px solid var(--dark-accent);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    background: #050505;
}

/* Contact & Map Card */
.contact-card {
    display: flex;
    background: var(--dark-accent);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    min-height: 400px;
}

.contact-info-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-map-side {
    flex: 1.5;
    min-height: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.contact-info-side h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
    }
    .contact-info-side {
        padding: 30px;
    }
    .gallery-frame {
        height: 300px;
    }
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Aspect ratio preserved, no cropping */
    padding: 10px;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-frame img.active {
    opacity: 1;
}

/* Slider for Gallery Page */
.slider-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    background: #050505;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    min-width: 100%;
    height: 500px; /* Fixed height for consistency */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.slider-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* No stretching or distortion */
    border-radius: 10px;
}

/* Menu Page Tabs (Fixed/Sticky on Mobile) */
.menu-tabs-wrapper {
    position: sticky;
    top: 105px;
    background: var(--dark);
    z-index: 100;
    padding: 10px 0;
    margin-bottom: 20px;
}

/* Menu Grid */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.tab-btn {
    position: relative;
    background: var(--dark-accent);
    color: var(--text-main);
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.menu-card {
    background: var(--dark-accent);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.menu-card.show {
    opacity: 1;
    transform: translateY(0);
}

.menu-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-info {
    padding: 20px;
}

.menu-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.menu-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 45px;
    overflow: hidden;
}

.price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.3rem;
}

/* Order Button (Sticky Mobile) */
.order-btn-mobile {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(227, 38, 25, 0.4);
    z-index: 100;
    display: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none; /* Mobile menu can be added if needed */
    }
    .order-btn-mobile {
        display: block;
    }
    header {
        padding: 10px 0;
    }
    .menu-tabs-wrapper {
        width: 100%;
        max-width: 100vw;
    }
    .menu-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        width: 100%;
        scroll-snap-type: x mandatory;
    }
    .menu-tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}
