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

body {
    font-family: "Ubuntu", sans-serif;
    overflow-x: hidden;
}

/* Background Section */
.food {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?w=1920');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding-bottom: 40px;
}

/* Header */
.header {
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: clamp(20px, 4vw, 28px);
    color: #00FF00;
    font-family: "Matemasie", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo span {
    color: #FFFF00;
    font-size: clamp(24px, 5vw, 32px);
}

.logo:hover {
    text-shadow: 0 0 25px #00FF00;
    transform: scale(1.05);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: #FFFF00;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f50909;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

#nav-toggle {
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
}

#nav-toggle:hover {
    color: #00FF00;
    transform: scale(1.1);
}

/* Navigation */
.nav {
    position: relative;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: #00FF00;
    border-bottom: 3px solid #00FF00;
}

#nav-close {
    display: none;
}

/* Desktop Navigation - Always Visible */
@media screen and (min-width: 1025px) {
    .header {
        display: flex;
    }

    .nav {
        position: static;
        background: transparent;
    }

    .nav__menu {
        display: flex;
    }

    .nav__menu>.logo {
        display: none;
    }

    .nav__list {
        display: flex;
    }
}

/* Food Container */
.food-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding: 100px 5% 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.food-box {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border: 2px solid #f50909;
    padding: 25px 15px 20px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.food-box:hover {
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00FF00;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 0, 0.3);
}

.food-img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.4s ease;
    border: 3px solid #fff;
}

.food-box:hover .food-img {
    transform: scale(1.1) rotate(5deg);
    border-color: #00FF00;
}

.food-title {
    color: #FCEE21;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.food-price {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.add-cart {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    background: transparent;
    border: 2px solid #FCEE21;
    color: #FCEE21;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 25px;
    text-transform: uppercase;
}

.add-cart:hover {
    background: #FCEE21;
    color: black;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(252, 238, 33, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    color: #fff;
    font-size: 14px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    margin-top: 40px;
}

/* Tablet and Mobile */
@media screen and (max-width: 1024px) {
    #nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: 100vh;
        padding: 2rem 0;
        z-index: 999;
        transition: left 0.4s ease;
    }

    .nav.show {
        left: 0;
    }

    #nav-close {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 1.5rem;
        font-size: 24px;
        color: white;
        height: 40px;
        width: 40px;
        align-items: center;
        justify-content: center;
        background-color: #f50909;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    #nav-close:hover {
        background-color: #00FF00;
        transform: rotate(90deg);
    }

    .nav__menu {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .nav__menu>.logo {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav__link {
        font-size: 18px;
    }
}

/* Mobile Specific */
@media screen and (max-width: 768px) {
    .food-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 90px 4% 30px;
    }

    .food-box {
        padding: 20px 12px 18px;
    }

    .food-img {
        height: 100px;
        width: 100px;
    }

    .cart-icon {
        font-size: 22px;
    }
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .food-container {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 25px;
    }
}

/* Large Screens */
@media screen and (min-width: 1441px) {
    .food-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}