    /* 1. DESKTOP VIEW (Default) */
.mobile-controls {
    display: none !important; /* Force hide on desktop */
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger i {
    color: #d4a373; /* Your theme color */
    font-size: 1.5rem;
}

/* 2. MOBILE VIEW (Breakpoints) */
@media (max-width: 768px) {
    /* Hide the Desktop Logo */
    nav .logo {
        display: none !important;
    }

    /* Show the Hamburger */
    .mobile-controls {
        display: block !important;
    }

    /* Stack the Navigation Links */
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Height of your navbar */
        left: 0;
        width: 100%;
        background: #1a1a1a;
        padding: 20px 0;
        z-index: 1000;
        border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    }

    /* Class added by JS to show the menu */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        width: 100%;
        text-align: center;
    }
}
    
    :root {
        --bg: #0d0b09;
        --card: #181512;
        --accent: #9d7c5d;
        --text: #f4f1ed;
        --muted: #8b837a;
        --btn-dark: #0d0b09;
        --easing: cubic-bezier(0.2, 0.8, 0.2, 1);
        --input-base: #13100d;
        --nav-bg: rgba(13, 11, 9, 0.8); /* Dark semi-transparent */
    }

    [data-theme="light"] {
        --bg: #f7f4f0;
        --card: #ffffff;
        --accent: #8a6a4d;
        --text: #1a1714;
        --muted: #6b635b;
        --btn-dark: #ffffff;
        --input-base: #f0ede9;
        --nav-bg: rgba(247, 244, 240, 0.8); /* Light semi-transparent */
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        transition: background 0.5s var(--easing), color 0.5s var(--easing), transform 0.5s var(--easing), border-color 0.5s var(--easing);
    }

    body {
        font-family: 'League Spartan', sans-serif;
        background-color: var(--bg);
        color: var(--text);
        overflow-x: hidden;
        line-height: 1.4;
    }

    .serif-italic {
        font-family: 'Bodoni Moda', serif;
        font-style: italic;
        font-weight: 600;
        letter-spacing: -1px;
    }

    h1 {
        font-size: clamp(3.2rem, 9vw, 6rem);
        line-height: 0.9;
        letter-spacing: -4px;
        font-weight: 800;
    }

    /* --- Logo Styling --- */
    .logo {
        display: flex;
        align-items: center;
    }

    .nav-logo {
        height: 40px; /* Adjust height to fit your navbar */
        width: auto;
        object-fit: contain;
        /* No filters added here to keep the original image colors */
    }

    /* Optional: If the logo is white and the light mode background is too bright,
    we can add a very subtle dark glow or background to the nav area only. */
    [data-theme="light"] nav {
        background-color: rgba(247, 244, 240, 0.95); /* Slightly more opaque */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Adds depth to help white logos pop */
    }

    /* --- Navigation Fixes --- */
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 6%;
        position: fixed;
        width: 100%;
        z-index: 1000;
        background-color: var(--nav-bg); /* Use variable for visibility */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(157, 124, 93, 0.1);
    }

    .nav-links { display: flex; gap: 2.5rem; align-items: center; }
    .nav-links a {
        text-decoration: none;
        color: var(--muted);
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1.5px;
    }
    .nav-links a:hover { color: var(--accent); }

    /* Changed color to use variable instead of !important fixed color */
    .logo { 
        font-weight: 700; 
        font-size: 1.6rem; 
        letter-spacing: -1px; 
        color: var(--text); 
    }

    .nav-actions { display: flex; align-items: center; gap: 1.5rem; }

    /* Fixed visibility for Log In text */
    .login-link-nav {
        text-decoration: none;
        color: var(--text);
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
    }
    .login-link-nav:hover { color: var(--accent); }

    .toggle-track {
        width: 52px; height: 26px;
        background: #2a2622;
        border-radius: 30px;
        padding: 3px;
        cursor: pointer;
        display: flex;
        align-items: center;
        border: 1px solid rgba(157, 124, 93, 0.3);
    }

    .toggle-thumb {
        width: 18px; height: 18px;
        background: var(--accent);
        border-radius: 50%;
    }

    [data-theme="light"] .toggle-thumb { transform: translateX(26px); }

    /* --- Hero Section --- */
    .hero { padding: 12rem 5% 5rem; text-align: center; }

    .pill-badge {
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        background: rgba(157, 124, 93, 0.15);
        color: var(--accent);
        padding: 8px 20px;
        border-radius: 50px;
        font-weight: 800;
        margin-bottom: 2.5rem;
        display: inline-block;
    }

    .sub-text {
        color: var(--muted);
        max-width: 500px;
        margin: 2.5rem auto 5rem;
        font-size: 1.2rem;
        font-weight: 400;
    }

    /* --- Main CTA Card --- */
    .cta-container {
        max-width: 1100px;
        margin: 0 auto;
        background: var(--accent);
        border-radius: 45px;
        padding: 6rem 2rem;
        color: #fff;
        position: relative;
        overflow: hidden;
        box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    }

    .cta-container::after {
        content: "🍳";
        position: absolute; right: -20px; top: 50%;
        transform: translateY(-50%) rotate(-15deg);
        font-size: 250px; opacity: 0.08; pointer-events: none;
    }

    .btn-row { display: flex; justify-content: center; gap: 1.2rem; margin-top: 3.5rem; }

    .btn-custom {
        padding: 1.1rem 3.5rem;
        border-radius: 12px;
        font-weight: 800;
        font-size: 1rem;
        cursor: pointer;
        border: none;
        text-transform: uppercase;
    }

    .btn-white { background: #fff; color: #0d0b09; }
    .btn-outline-custom { 
        background: rgba(255,255,255,0.1); 
        border: 1px solid rgba(255,255,255,0.4); 
        color: #fff;
    }

    /* --- Stats Row --- */
    .stats-row {
        display: flex; justify-content: center;
        gap: clamp(2rem, 5vw, 6rem); padding: 8rem 5%;
    }

    .stat h4 { font-size: 3rem; color: var(--accent); margin-bottom: 0.2rem; letter-spacing: -1px; }
    .stat p { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); letter-spacing: 1.5px; font-weight: 700; }

    /* --- Features Section --- */
    .section-tag { 
        color: var(--accent); font-size: 0.7rem; font-weight: 800; 
        letter-spacing: 3px; display: block; margin-bottom: 1rem;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem; padding: 4rem 6% 10rem;
    }

    .feature-card {
        background: var(--card); padding: 4rem 3rem;
        border-radius: 28px; text-align: left;
        border: 1px solid rgba(157, 124, 93, 0.05);
    }

    .icon-wrapper {
        width: 44px; height: 44px;
        background: rgba(157, 124, 93, 0.12);
        border-radius: 10px; display: flex;
        align-items: center; justify-content: center;
        margin-bottom: 2rem; font-size: 1.2rem;
    }

    /* --- Modal Styling --- */
    .modal-content {
        background-color: var(--card);
        padding: 3rem; border-radius: 40px;
        border: 1px solid rgba(157, 124, 93, 0.1);
        color: var(--text);
    }

    .modal-backdrop { background-color: var(--bg); opacity: 0.8 !important; }

    .popup-header {
        font-family: 'Bodoni Moda', serif; font-size: 2.5rem;
        font-weight: 700; letter-spacing: -1px; text-align: center; margin-bottom: 2rem;
    }

    .input-group-custom { margin-bottom: 1.2rem; text-align: left; }

    label {
        display: block; color: var(--muted);
        font-size: 0.7rem; text-transform: uppercase;
        letter-spacing: 1px; font-weight: 700; margin-bottom: 0.5rem; padding-left: 5px;
    }

    .neomorphic-wrapper {
        position: relative; background-color: var(--input-base);
        border-radius: 12px; border: 1px solid rgba(157, 124, 93, 0.1);
    }

    .input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent); }

    .neomorphic-wrapper input {
        width: 100%; padding: 0.9rem 1rem 0.9rem 45px;
        background: transparent; border: none; outline: none;
        color: var(--text); font-family: 'Inter', sans-serif;
    }

    .premium-btn {
        width: 100%; padding: 1.1rem; background-color: var(--accent);
        border: none; border-radius: 12px; color: #fff;
        font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-top: 1rem;
    }

    [data-theme="dark"] .btn-close { filter: invert(1); }

    footer {
        padding: 4rem 6%; border-top: 1px solid rgba(157, 124, 93, 0.1);
        display: flex; justify-content: space-between; align-items: center;
        font-size: 0.75rem; color: var(--muted);
    }

    @media (max-width: 768px) {
        .nav-links { display: none; }
        .btn-row { flex-direction: column; }
    }

    /* --- About Us Page Layout --- */

    /* This section provides the darker outer background */
    .about-section {
        padding: 10rem 6% 8rem;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        background-color: var(--bg);
    }

    /* This is the main card container (The 'box' from your image) */
    .about-container {
        max-width: 1000px;
        width: 100%;
        background: var(--card);
        padding: 5rem 4rem;
        border-radius: 40px;
        border: 1px solid rgba(157, 124, 93, 0.1);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); /* Depth for dark mode */
    }

    /* Light mode shadow adjustment */
    [data-theme="light"] .about-container {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    }

    .story-block {
        margin: 2.5rem 0;
    }

    .story-block p {
        color: var(--muted);
        line-height: 1.8;
        font-size: 1rem;
    }

    .section-title {
        color: var(--accent);
        font-family: 'League Spartan', sans-serif;
        font-weight: 700;
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    /* Vision & Mission Cards adjustment */
    .about-container .feature-card {
        background: rgba(157, 124, 93, 0.03); /* Slightly different tint for inner cards */
        padding: 3rem 2rem;
        border: 1px solid rgba(157, 124, 93, 0.1);
    }

    .about-container .icon-wrapper {
        margin-left: auto;
        margin-right: auto;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        background: rgba(157, 124, 93, 0.08);
    }

    /* Team Section Styling */
    .team-section {
        text-align: center;
    }

    .team-card {
        border: 1px dashed rgba(157, 124, 93, 0.4) !important;
        background: transparent !important;
        margin-top: 2rem;
    }

    /* Text Center Utility */
    .text-center {
        text-align: center;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .about-section {
            padding-top: 8rem;
        }
        .about-container {
            padding: 3rem 1.5rem;
            border-radius: 30px;
        }
    }

    /* --- Featured Recipe & Categories --- */
    .featured-recipe-section {
        padding: 80px 5%;
    }

    .recipe-card-main {
        background: #ffffff;
        color: #121212;
        border-radius: 30px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        display: flex;
    }

    [data-theme="dark"] .recipe-card-main {
        background: #ffffff; /* Contrast card in dark mode */
        color: #121212;
    }

    .recipe-badge {
        position: absolute;
        top: 20px;
        left: 20px;
        background: var(--accent);
        color: white;
        padding: 6px 15px;
        border-radius: 50px;
        font-size: 0.7rem;
        font-weight: 800;
        z-index: 2;
    }

    .recipe-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        min-height: 400px;
    }

    .recipe-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .recipe-details {
        padding: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .recipe-details h2 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 1rem;
        line-height: 1;
    }

    .recipe-meta {
        display: flex;
        gap: 20px;
        margin-top: 15px;
        font-weight: 600;
    }

    /* Categories Pills */
    .categories-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 50px;
    }

    .category-pill {
        padding: 10px 22px;
        border: 1px solid var(--text);
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        opacity: 0.6;
    }

    .category-pill.active, .category-pill:hover {
        background: var(--text);
        color: var(--bg);
        opacity: 1;
    }

    .category-pill i { margin-right: 8px; }

    @media (max-width: 768px) {
        .recipe-content { grid-template-columns: 1fr; }
        .recipe-details { padding: 40px 20px; }
    }

    /* --- Secondary Recipe Grid --- */
    .recipe-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .recipe-card-secondary {
        background: var(--bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .recipe-card-secondary:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }

    .card-img-wrapper {
        position: relative;
        height: 200px;
    }

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-img-wrapper .tag {
        position: absolute;
        bottom: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        padding: 4px 12px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .card-body-custom {
        padding: 25px;
    }

    .card-body-custom h5 {
        font-weight: 700;
        margin-bottom: 8px;
    }

    .card-body-custom p {
        font-size: 0.9rem;
        color: var(--muted);
        margin-bottom: 20px;
    }

    .card-footer-custom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .card-footer-custom span {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .icon-btn {
        background: var(--accent);
        color: white;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }

    .icon-btn:hover {
        background: var(--text);
        color: var(--bg);
    }

    .neomorphic-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .password-toggle-icon {
        position: absolute;
        right: 15px;
        cursor: pointer;
        color: var(--muted);
        transition: color 0.3s ease;
        z-index: 10;
    }

    .password-toggle-icon:hover {
        color: var(--accent);
    }

    /* Ensure the input doesn't hide text behind the icon */
    .neomorphic-wrapper input {
        padding-right: 45px !important;
    }

    .user-icon i {
        font-size: 28px;
        color: #333;
        cursor: pointer;
    }

    .user-icon i:hover {
        color: #e67e22;
    }