body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Poppins', sans-serif;
    /* FIX #1: Enable smooth scrolling for the whole page */
    scroll-behavior: smooth;
    /* FIX #2: Add padding so content isn't hidden under the fixed nav bar */
    scroll-padding-top: 80px; 
}

/* Add this to ensure footer is properly targeted */
#contact {
    scroll-margin-top: 80px;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.main-nav {
    /* THIS IS THE CHANGE: The navigation is now 'absolute' so it scrolls with the page. */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    box-sizing: border-box;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 10;
}

/* On desktop, we override the above and make it 'fixed' again */
@media (min-width: 769px) {
    .main-nav {
        position: fixed;
    }
}

.logo {
    font-size: 1.2rem;
}

.mobile-icon {
    display: none; /* Hidden by default on larger screens */
    height: 50px; /* Adjust size as needed */
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffd700;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    color: white;
    z-index: 5;
    padding: 0 15px;
    box-sizing: border-box;
    padding-top: 80px;
    /*
     TO CONTROL THE TEXT'S VERTICAL POSITION:
     Increase the 'padding-bottom' value to move the text higher up (e.g., '15vh').
     Decrease it to move it lower.
    */
    padding-bottom: 20vh;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff 20%, #ffd700 40%, #ffffff 60%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-top: 10px;
    text-transform: lowercase;
}

/* --- Products Section Styles --- */
.products-section {
    padding: 80px 40px;
    color: white;
    background-color: rgba(14, 13, 6, 0.8);
    z-index: 5;
    position: relative;
}

.products-container {
    max-width: 900px;
    margin: 0 auto;
}

.products-container > h2 {
    text-align: center;
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 1px;
    color: #ffd700;
}

.menu-category {
    margin-bottom: 60px;
}

.menu-category > h3 {
    font-size: 2.2rem;
    text-transform: uppercase;
    color: white;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: flex-start; 
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.item-details {
    padding-right: 20px;
}

.item-details h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
}

.item-details .ingredients {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    white-space: nowrap;
}

.vegan-label {
    font-size: 1.1rem;
    font-weight: normal;
    color: #7bdcb5;
}

.vegan-label-category {
    font-weight: normal;
    font-size: 1.8rem;
    color: #7bdcb5;
    text-transform: none;
    margin-left: 10px;
    vertical-align: middle;
}

.category-note {
    margin-top: 20px;
    font-style: italic;
    color: #aaa;
    text-align: left;
}

/* --- Google Rating Styles --- */
.google-rating {
    margin-top: 20px;
    text-align: center; /* Center the stars and text */
}

.stars-container {
    position: relative; /* This is key for layering the stars */
    display: inline-block; /* Allows the container to size to its content */
    font-size: 2.5rem;
}

.stars-background {
    color: #ccc; /* A light gray for the "empty" part of the stars */
}

.stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffd700; /* The gold color for the "filled" stars */
    white-space: nowrap; /* Prevents the stars from wrapping */
    overflow: hidden; /* This is what "cuts" the stars to the correct width */
}

.rating-text {
    color: white;
    margin-top: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.rating-text strong {
    font-weight: 700;
}

/* --- Responsive styles for the rating --- */
@media (max-width: 768px) {
    .stars-container {
        font-size: 2rem;
    }
    .rating-text {
        font-size: 0.9rem;
    }
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    /*
     TO CONTROL THE HERO SECTION HEIGHT ON MOBILE:
     Adjust the 'height' value below.
     - '80vh' means 80% of the screen height.
     - Increase it (e.g., '90vh') to make it taller.
     - Decrease it (e.g., '70vh') to make it shorter.
    */
    .hero-content {
        height: 100vh; 
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .products-section {
        padding: 40px 20px;
    }
    .products-container > h2 {
        font-size: 2.5rem;
    }

    .menu-category > h3 {
        font-size: 1.4rem; 
        justify-content: center; 
    }
    .vegan-label-category {
        font-size: 1.1rem; 
    }
    
    .main-nav {
        flex-direction: row; 
        justify-content: center; 
        padding: 20px;
    }

    .main-nav .logo {
        display: none; 
    }
    
    .nav-links {
        display: none; /* Hide text links on mobile */
    }

    .mobile-icon {
        display: block; /* Show the icon on mobile */
    }
    
    .nav-links a {
        margin: 0 15px;
    }
    .item-details h4, .item-price {
        font-size: 1.25rem;
    }
    .item-details .ingredients {
        font-size: 0.9rem;
    }
    
    /* Adjust scroll margin for mobile */
    #contact {
        scroll-margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .item-price {
        margin-top: 8px;
    }
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #0E0D06;
    color: #ccc;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    margin: 20px;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.8rem;
    color: #ffd700;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-column p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        margin-bottom: 40px;
    }
}

/* --- Keyframe Animation --- */
@keyframes shine {
  to {
    background-position: 200% center;
  }
}