/* General Reset */
:root {
    --header-color: #123a15d7; /* Color for the header */
    --welcome-color: #f8edcd;
    --section-color: #2ecc71; /* Color for other identical parts */
    --text-color: #ffffff; /* Common text color */
    --background-color: #f8edcd; /* Background color */
    --background-color2: #f8edcd; 
    --pop-up-background-color: #fad2fc;
    --pop-up-item-background-color: #fad2fc;
}

/* Prevent body overflow */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Ensure elements do not overflow the viewport */
* {
    box-sizing: border-box; /* Include padding and border in element width */
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header Styling */
header {
    /*background: linear-gradient(to right, #ff7e5f, #feb47b);*/
    background-color: var(--header-color);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Logo Styling */
.logo-img {
    max-height: 60px;  /* Adjust based on your logo's size */
    width: auto;
}

/* Header Styling */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Arial Black', sans-serif;
    color: #fff;
    letter-spacing: 2px;
}

/* Navigation Menu */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1rem;    
}


nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #000;    
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
}

#nav-links {
    display: flex;
    transition: all 0.3s ease;
}

/* Contact Info */
.contact-info p {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}


/* Mobile-Specific Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        padding: 5px; /* Keep the button compact */
    }

    #nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-color);
        text-align: center;
        padding: 1rem 0;
    }

    #nav-links.active {
        display: flex;
    } 

    nav ul {
        padding: 0; /* Avoid unnecessary padding */
    }

    nav ul li {
        margin: 0.75rem 0;
        width: 100%; /* Ensure each menu item spans full width */
        text-align: center;
    }

    header {
        padding: 10px 15px; /* Reduce padding for smaller screens */
    }
    nav ul li:hover {
        background-color: #597922e8;
    }

    .contact-info {
        display: none;
    }
    
}
/* Images: Make them responsive */
img {
    max-width: 100%;
    height: auto;
}
/* Containers: Ensure they don’t exceed the viewport width */
.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Global settings for better responsiveness */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Section styling */
#welcome-massage {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-image: url('images/vegitable-baner.jpg') !important; /* Replace with your image path */
    background-size: cover; /* Ensures the image covers the section completely */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
    background-color: #fffcfb; /* Fallback color */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white; /* Adjust text color for readability */
    padding: 20px;
}

/* Content styling inside the section */
.welcome-massage .content {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--welcome-color);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #welcome-massage {
        height: auto; /* Adjust height for smaller screens */
        padding: 20px;
    }
    .welcome-massage .content {
        padding: 10px;
    }
    section {
        margin: 2rem -2rem;    
     }
}


/* General Reset */
body, ul, h1, h2, p {
    margin: 0;
    padding: 0;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;    
    color: #000000;
    background-color: var(--background-color2); /* This apply to entier page between header and footer */
}

/* Global Text Alignment for Main Sections */
main, section {
    text-align: center;
    background-color: var(--background-color);
}


main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;    
}

section {
   margin: 2rem 0;       
}

#home {
    margin-top: 0;
}

section h1, section h2 {
    color: #ff7e5f;
    margin-bottom: 0.5rem;
}

section p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Footer Styling */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Header Styling (Updated for Mobile Number) */
.desktop-only {
    display: block;
}

.mobile-phone {
    display: none;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    padding: 0.5rem 0;
}

/* Mobile-Specific Styles */
@media (max-width: 768px) {
    #nav-links {
        padding-bottom: 1rem;
    }

    .desktop-only {
        display: none;
    }

    .mobile-phone {
        display: none;
        text-align: center;
    }
}

/* Home Section */
/* Page-specific styles */
#menu-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #e5e5e5;
  }
  
  #menu-header h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #333;
  }
  
  .menu-category {
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    background: #e2d6a8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  } 


/* Showcase Section */
#showcase {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #fff;    
}

.showcase-item {
    margin: 1rem 0;
}

#showcase h2 {
    color: #ff7e5f;
    margin-bottom: 1rem;
}

.showcase-gallery {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
    border-radius: 8px;
}

.showcase-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.showcase-gallery p {
    font-size: 1.1rem;
    color: #333;
    margin-top: 0.5rem;
}

/* Menu Section Styling */
#menu {
    padding: 2rem 1rem;
    background-color: #fff;
}

#menu h2 {
    color: #ff7e5f;
    margin-bottom: 1rem;
    text-align: center;
}

#menu p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.menu-item {
    flex: 1 1 calc(30.33% - 1rem);
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 1rem 0;
}

.menu-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.menu-item h3 {
    color: #ff7e5f;
    margin-bottom: 0.5rem;
}

.menu-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.menu-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-item ul li {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* Mobile View */
@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
    }

    .menu-item {
        flex: 1 1 100%;
    }

    .menu-item ul {
        text-align: center;
    }
}

/* Why Choose Us Section */
#why-choose-us {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #fff;
}

#why-choose-us h2 {
    color: #ff7e5f;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#why-choose-us p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.why-choose-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.why-item {
    flex: 1 1 calc(30.33% - 1rem); /* 3 columns for desktop */
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease;
}

.why-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.why-item h3 {
    color: #ff7e5f;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.why-item p {
    font-size: 1rem;
    color: #555;
}

.why-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile View */
@media (max-width: 768px) {
    .why-choose-container {
        flex-direction: column;
        gap: 1rem;
    }

    .why-item {
        flex: 1 1 100%; /* Full-width for mobile */
    }
}

/* Contact Section */
#contact {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #fff;
    margin-top: 2rem;
}

#contact h2 {
    color: #ff7e5f;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Contact Section */
#contact {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
}

#contact h2 {
    color: #ff7e5f;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Contact Form Styling */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff7e5f;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 126, 95, 0.5);
}

textarea {
    resize: none;
}

.submit-btn {
    background: var(--header-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #8d8b7a;
    color: #000;
}

/* Pop-up Overlay Styling */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  /* Pop-up Content Styling */
  .popup-content {
    background: var(--pop-up-background-color);
    width: 90%;
    max-width: 400px;
    margin: auto;
    margin-top: 10%;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  }
  
  .popup-content h2 {
    margin-bottom: 0.5rem;
    color: #551201;
  }
  
  .popup-content p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
  }
  
  .promotion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 5px;
    background: var(--pop-up-item-background-color);
  }
  
  .food-thumbnail {
    width: 60px;
    height: auto;
    border-radius: 5px;
  }
  
  .promotion-details h3 {
    margin: 0;
    font-size: 1rem;
    color: #333;
  }
  
  .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #201f1f;    
  }
  
  /* Close Button Styling */
  .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #ff7e5f;
    cursor: pointer;
  }

   #order, #contact-us {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  #order:hover, #contact-us:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2);
  }
  
   #order::after, #contact-us::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 127, 95, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  #order:hover::after, #contact-us:hover::after {
    opacity: 1;
  }
  /* my own test codes for #menu 644 to 666*/
  .menu-item, .showcase-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  .menu-item:hover, .showcase-item:hover {
    /* transform: translateY(-10px);
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2); */ /*  this will make the section box shoow and like bit of 3D */
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }
  .menu-item::after, .showcase-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(255, 127, 95, 0.2); */ /* this will chang the colour when the mouse cover over */
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .menu-item:hover::after, .showcase-item:hover::after {
    opacity: 1;
  }
