/* styles.css */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #fefefe;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: 'Lobster', cursive;
    font-size: 28px;
    font-weight: 700;
    color: #c0392b;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    display: inline-block;
    margin-left: 20px;
}

.iii{
    color: blueviolet;
    font-size: 3rem;
    margin: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #c0392b;
}

.nav-links a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #c0392b;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
}

.hamburger {
    width: 30px;
    height: 3px;
    background-color: #333;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 30px;
    height: 5px;
    background-color: #333;
    position: absolute;
    right: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.hero {
    background-image: url('./Images/gourmet.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    color: #fff;
    display: flex;
    align-items:center;
    justify-content: center;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Lobster', cursive;
    font-size: 64px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn {
    background-color: #c0392b;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.btn:hover {
    background-color: #a93226;
}

.hh{
    list-style-type: none;
}

.menu-section {
    padding: 100px 20px;
    background-color: #f8f6f2;
    text-align: center;
}

.menu-section h2 {
    font-size: 42px;
    margin-bottom: 50px;
    font-family: 'Lobster', cursive;
    color: #c0392b;
}

.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-item {
    background-color: #fff;
    width: 300px;
    margin: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.menu-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item h4 {
    font-size: 24px;
    margin: 15px 0 10px;
    font-family: 'Lobster', cursive;
    color: #333;
}

.menu-item p {
    padding: 0 15px 15px;
    font-size: 16px;
    color: #666;
}

.price-quantity {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.add-to-cart {
    padding: 0.5rem 1rem;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #ff5252;
}

.cart-container {
    position: fixed;
    top: 9.9%;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.cart-container.active {
    transform: translateX(0);
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-item {
    background:#f99292;
    border: none;
    color: red;
    cursor: pointer;
    padding: .2rem;
    border: 1px solid gray;
    margin: 7px;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 50px 20px;
    background-color: #333;
    color: #fff;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards;
    animation-delay: 0.5s;
}

.contact-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 36px;
    margin-bottom: 20px;
    color: #c0392b;
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #c0392b;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards;
    animation-delay: 1s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        padding: 15px;
        display: block;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-container {
        flex-direction: column;
        align-items: center;
    }

    .cart-container{
        position: fixed;
        top: 9.9%;
        right: 0;
        width: 50%;
        padding: 1rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 100;
    }
}

/* Animation for Navigation Links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
