/* Reset & Variables */
:root {
    --gold: #D4AF37;
    --gold-light: #f3cf58;
    --dark: #0a0a0a;
    --black: #000000;
    --text: #f4f4f4;
    --nav-bg: rgba(0, 0, 0, 0.95);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background-color: var(--nav-bg);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    /* Above mobile menu overlay */
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    /* Blend mode to handle non-transparent logo generation backgrounds */
    mix-blend-mode: screen;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 3rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn-contact)::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--gold);
    display: block;
    margin: auto;
    transition: 0.3s;
}

.nav-links a:not(.btn-contact):hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
}

/* Contact Button */
.btn-contact {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    transition: all 0.3s ease;
    font-weight: 600;
    border-radius: 50px;
}

.btn-contact:hover {
    background-color: var(--gold);
    color: var(--black) !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Hamburger */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Clean fallback if image fails, but image path is assumed */
    background: url('../images/landing.webp') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darkens the image for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1s;
}

.cta-button {
    padding: 1rem 3rem;
    background-color: var(--gold);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background 0.3s ease;
    display: inline-block;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.5s;
    border-radius: 50px;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--gold-light);
}

/* Placeholders */
.placeholder-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #222;
}

/* Animations */
@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--black);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Center items vertically on mobile */
        width: 100%;
        /* Full width or 50% */
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1000;
        padding-top: 0;
    }

    .nav-links li {
        margin: 2rem 0;
        /* Space out items */
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

.nav-active {
    transform: translateX(0%);
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* --- MENU PAGE STYLES --- */
.menu-hero {
    height: 40vh;
    background: url('../images/landing.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.menu-hero h1 {
    position: relative;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--gold);
}

.menu-interface {
    padding: 3rem 5%;
    min-height: 60vh;
    background: var(--dark);
}

.controls-container {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.type-toggles {
    display: flex;
    gap: 1rem;
    background: var(--gray);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid #333;
}

.type-btn {
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.type-btn.active {
    background: var(--gold);
    color: var(--black);
}

.filters-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Search */
.search-box {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    outline: none;
    font-family: var(--font-sans);
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Select */
.dropdown-box select {
    background: #1a1a1a;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #333;
    outline: none;
    cursor: pointer;
}

/* Checkbox Slider */
.veg-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2ecc71;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-card {
    background: #141414;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #222;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--gold);
    font-family: var(--font-serif);
}

.veg-icon {
    font-size: 0.8rem;
    border: 1px solid;
    padding: 0px 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.veg-icon.veg {
    color: #2ecc71;
    border-color: #2ecc71;
}

.veg-icon.non-veg {
    color: #e74c3c;
    border-color: #e74c3c;
}

.item-desc {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 1rem;
    margin-top: auto;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
}

.add-btn {
    background: var(--gold);
    color: black;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.add-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-hero h1 {
        font-size: 2.5rem;
    }
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    background: #1a1a1a;
    padding: 0.3rem 0.5rem;
    border-radius: 50px;
    border: 1px solid #333;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    color: white;
}

.filter-btn.active {
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
}