/* --- VARIABLES --- */
:root {
    --primary: #d35400; /* Burnt Orange */
    --secondary: #2c3e50; /* Dark Blue */
    --accent: #f1c40f; /* Gold */
    --bg: #fafafa;
    --text: #333;
    --card-bg: #fff;
    --glass: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #f0f0f0;
    --card-bg: #1e1e1e;
    --glass: rgba(30, 30, 30, 0.95);
}

/* --- RESET & FONTS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: 0.3s;
}
body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}
h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
}
a {
    text-decoration: none;
    color: inherit;
}

/* --- 1. NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* The Branded Logo */
.brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-main {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.brand-sub {
    font-family: "Dancing Script", cursive; /* Signature Style */
    font-size: 1rem;
    color: var(--secondary);
    margin-top: -2px;
}
[data-theme="dark"] .brand-sub {
    color: #ccc;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a:hover {
    color: var(--primary);
}
.btn-nav {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}
#theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 15px;
}

/* --- 2. HERO --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("https://haipedia.github.io/COSC307-Group-Assignment-//Banner.avif");
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero h1 {
    font-size: 3.5rem;
    margin: 10px 0;
}
.highlight {
    color: var(--accent);
    font-style: italic;
}
.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
}
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
}

/* --- 3. LAYOUT UTILITIES --- */
.container {
    padding-top: 50px;
}
.content-block {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-header p {
    color: #888;
    font-size: 1.1rem;
}

/* --- 4. MENU SLIDER --- */
#menu {
    padding: 50px 5%;
    background: var(--bg);
}
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.menu-tab {
    background: var(--card-bg);
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text);
}
.menu-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.slider-container {
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}
.slider-track {
    display: flex;
    gap: 25px;
    width: max-content;
    margin: 0 auto;
}
.food-card {
    min-width: 280px;
    width: 280px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}
.food-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-details {
    padding: 20px;
}
.price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: #000;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
}

/* --- 5. RECIPE --- */
.recipe-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.recipe-visual {
    position: relative;
}
.recipe-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recipe-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}
.recipe-logic {
    padding: 40px;
}
.smart-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
.smart-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: var(--text);
}

/* --- 6. ORDER SECTION --- */
.order-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}
.coupon-box {
    display: flex;
    gap: 10px;
}
.coupon-box button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
}
.total-box {
    background: var(--bg);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
}
.full-width {
    width: 100%;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.feature i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(211, 84, 0, 0.1);
    padding: 15px;
    border-radius: 50%;
}

/* --- 7. REVIEWS & FEEDBACK CARD --- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent);
}
.review-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}
.stars {
    color: var(--accent);
    margin-top: 10px;
}

.feedback-card {
    background: var(--card-bg);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px dashed var(--primary);
}
.feedback-card textarea {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    min-height: 100px;
    background: var(--bg);
    color: var(--text);
}

/* --- 8. FOOTER (HOVER EFFECTS) --- */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 5% 20px;
    margin-top: 50px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--accent);
    margin-bottom: 20px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
    opacity: 0.8;
}
.footer-col input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
}
.footer-col button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Quick Link Hover Effect */
.footer-col ul li a {
    position: relative;
    transition: 0.3s;
}
.footer-col ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease-in-out;
}
.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}
.footer-col ul li a:hover::after {
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .recipe-container,
    .order-card {
        grid-template-columns: 1fr;
    }
}

/* --- SLIDER CONTROLS STYLING --- */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.slider-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Makes them circular */
    border: 2px solid var(--primary); /* Orange Border */
    background: transparent;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: var(--primary);
    color: white; /* Turns solid orange on hover */
    transform: scale(1.1); /* Slight zoom effect */
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.3);
}

/* --- CHECKBOX MENU STYLING --- */
.checkbox-menu {
    height: 200px; /* Fixed height */
    overflow-y: auto; /* Makes it scrollable */
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background: var(--bg);
}

.checkbox-menu label {
    display: block; /* Each item on new line */
    padding: 5px 0;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.checkbox-menu input {
    margin-right: 10px;
    /* Reset width for checkboxes so they don't stretch */
    width: auto !important; 
}

.vip-label {
    background: #eee;
    padding: 5px;
    font-weight: bold;
    text-align: center;
    color: var(--primary);
}