/* Variables */
:root {
    /* Colors */
    --bg-gradient-start: #0f0f11;
    --bg-gradient-end: #1a1c1d;
    --primary-color: #3a6bff;
    /* Neon Blue Accent */
    --text-silver: #d7d7d7;
    --text-secondary: #8a8e91;

    /* Metallic Gradient */
    --metallic-gradient: linear-gradient(135deg, #d0d4d7 0%, #8a8e91 50%, #55585c 100%);

    /* Reusable Backgrounds */
    --bg-gradient-premium: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);

    /* UI Elements */
    --card-bg: rgba(28, 30, 33, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 15px;
    --border-radius: 20px;
    /* Soft rounded corners */

    /* Layout */
    --container-width: 1280px;
    --header-height: 70px;
    --transition-speed: 0.3s;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient-premium);
    background-attachment: fixed;
    color: var(--text-silver);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.metallic-text {
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(58, 107, 255, 0.3);
}

/* Header */
#main-header {
    background-color: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    /* Responsive font size */
}

.desktop-nav {
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }

    .desktop-nav .nav-link {
        margin-left: 25px;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-secondary);
        transition: color var(--transition-speed);
    }

    .desktop-nav .nav-link:hover {
        color: var(--text-silver);
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    }
}

/* Hero Section */
#hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.8) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 17, 0.4), var(--bg-gradient-end));
    z-index: -1;
}

.hero-content {
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-text h2 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 90%;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #2b55cc, var(--primary-color));
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 20px rgba(58, 107, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 107, 255, 0.6);
}

/* Sticky Nav & Search */
#sticky-nav-wrapper {
    position: sticky;
    top: var(--header-height);
    z-index: 900;
    background-color: rgba(15, 15, 17, 0.95);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 15px 0;
    border-bottom: 1px solid var(--card-border);
    transition: top 0.3s;
}

.search-container {
    margin-bottom: 15px;
}

#search-input {
    width: 100%;
    padding: 14px 25px;
    border-radius: 50px;
    border: 1px solid var(--card-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-silver);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-speed);
}

#search-input:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(58, 107, 255, 0.15);
}

.category-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
    /* Space for scrollbar if visible on some systems */
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-scroll {
    display: flex;
    gap: 12px;
    padding: 0 5px;
    /* Side padding */
    white-space: nowrap;
}

.cat-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.cat-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-silver);
}

.cat-btn.active {
    background: var(--metallic-gradient);
    color: #1a1c1d;
    /* Dark text on metallic bg */
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(208, 212, 215, 0.3);
}

/* Menu Sections */
#menu {
    padding-top: 30px;
    padding-bottom: 80px;
}

.menu-category {
    margin-bottom: 50px;
    scroll-margin-top: 200px;
}

.category-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 25px;
    color: var(--text-silver);
    position: relative;
    padding-left: 20px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Grid System - Mobile First */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 column */
    gap: 20px;
}

/* Tablet Breakpoint */
@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 columns */
    }
}

/* Desktop Breakpoint */
@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Desktop: 3 columns */
    }
}

/* Product Card */
.menu-item {
    background-color: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 20px 25px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--card-border);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.menu-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu-item:hover::before {
    transform: translateX(100%);
}

.item-name {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-silver);
}

.item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(58, 107, 255, 0.2);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
}

.menu-table th,
.menu-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.menu-table th {
    background-color: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.menu-table td {
    color: var(--text-silver);
}

.menu-table td:not(:first-child) {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
#footer {
    background-color: rgba(15, 15, 17, 0.9);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

#footer h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    background: var(--metallic-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#footer p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-icons {
    margin-top: 20px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Specific Breakpoint Adjustments */
@media (max-width: 390px) {
    .container {
        width: 94%;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .cat-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}