* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #000; /* Changed to black for white background */
    background-color: #fff; /* Changed to white */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background: #fff; /* Changed to white */
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is on top */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

/* Logo Styling */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #000; /* Changed to black */
    font-weight: 600;
    padding: 12px 5px;
    display: block;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #ff0000; /* Changed to red */
    transition: all 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover {
    color: #ff0000; /* Changed to red */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #000; /* Changed to black */
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: #f8f9fa;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff; /* Changed to white */
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    border-top: 3px solid #ff0000; /* Changed to red */
    border-radius: 0 0 10px 10px;
    right: 0;
    top: 100%;
    overflow: hidden;
}

.dropdown-content a {
    color: #000; /* Changed to black */
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #ff0000; /* Changed to red */
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle .fas {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fas {
    transform: rotate(180deg);
}

/* Main Content Wrapper */
.main-content {
    padding: 0;
    display: flex;
    justify-content: center;
}

.content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    flex: 1;
}

/* Hero Section (Banner) */
.hero-section {
    padding: 0;
    margin: 0;
    width: 100vw; /* Full horizontal length */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content {
    display: flex;
    min-height: 550px;
    width: 100%; /* Ensure it fills the 100vw container */
    max-width: none; /* Remove max-width constraint */
    margin: 0 auto;
    flex-direction: column;
    gap: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0; /* Remove border-radius for full width */
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-top: 0; /* Changed to 0 to touch the header */
    background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url("Images/bg.jpg"); /* Removed linear-gradient overlay */
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: none; /* Removed the pseudo-element overlay */
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    color: #000; /* Changed to black */
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.033em;
    text-shadow: none; /* Removed text shadow */
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #000; /* Changed to black */
    font-size: 1.4em;
    font-weight: 1000;
    line-height: 1.4;
    text-shadow: none; /* Removed text shadow */
    max-width: 600px;
}

/* Section Titles */
.section-title {
    color: #000; /* Changed to black */
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    padding: 16px 16px 12px;
    margin: 60px 0 40px 60px;
    position: relative;
    text-align: center; /* Center the section title */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%; /* Center the pseudo-element */
    transform: translateX(-50%); /* Adjust for centering */
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d); /* Changed to red gradient */
    border-radius: 2px;
}

/* Products Grid Section */
.products-grid-section {
    padding: 40px 60px;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.product-item {
    background-color: #fff; /* Changed to white */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Added transparent border for outline effect */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 0.8s ease-out forwards;
    cursor: pointer; /* Added for clickability */
}

@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: #0000ff; /* Changed to blue outline on hover */
    /* Removed background-color and color changes on hover */
}

.product-image {
    max-width: 200px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-name {
    color: #000; /* Changed to black */
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-item:hover .product-name {
    color: #ff0000; /* Changed to red */
}

.product-description {
    color: #000; /* Changed to black */
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to take available space */
    text-align: justify; /* Changed to justify for proper alignment */
}

.learn-more-button {
    display: inline-block;
    background-color: #ff0000; /* Changed to red */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.learn-more-button:hover {
    background-color: #cc0000; /* Darker red on hover */
    transform: translateY(-2px);
}

/* Spacer */
.spacer {
    height: 60px;
}

/* Footer (from foodCupboard.css) */
.footer {
    background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
    padding: 80px 160px 0;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-content-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    padding-bottom: 50px;
}

.footer-block h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff0000; /* Changed to red */
}

.footer-block p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-block p i {
    margin-right: 10px;
    color: #ff0000; /* Changed to red */
    font-size: 16px;
    width: 20px;
}

/* Social Icons */
.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background: #ff0000; /* Changed to red */
    transform: translateY(-3px);
}

.footer hr {
    border: none;
    border-top: 1px solid #444;
    margin: 40px 0;
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-bottom .footer-text {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom .footer-links a {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-bottom .footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 50%;
    background-color: #ff0000; /* Changed to red */
    transition: all 0.3s ease;
}

.footer-bottom .footer-links a:hover::after {
    width: 100%;
    left: 0;
}

.footer-bottom .footer-links a:hover {
    color: #ff0000; /* Changed to red */
}

/* Image Popup Styles (Added for foodCupboard.css) */
#popup-overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 2000; /* Above everything else, but below the popup */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition */
}

#image-popup {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 2001; /* Above the overlay */
    max-width: 90%;
    max-height: 90%;
    overflow: auto; /* Enable scrolling for large images */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between image and name */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Active states for when the popup is shown */
#popup-overlay.active,
#image-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#popup-image {
    max-width: 100%;
    max-height: 70vh; /* Max height relative to viewport height */
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

#popup-image-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    text-align: center;
    word-wrap: break-word; /* Ensure long names wrap */
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #666;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover,
.popup-close:focus {
    color: #ff0000; /* Red on hover/focus */
}


/* Media Queries for responsiveness */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
      header .container {
        flex-wrap: nowrap; /* Prevent wrapping the logo and button */
        justify-content: space-between; /* Space between logo and menu button */
        padding: 10px 0;
    }
    .logo img{
       
        width:150px;

    }
    

    .logo {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
        height:30px;
    }

     nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        
    }

    nav ul {
        display: none; /* Hide desktop nav by default on mobile */
        flex-direction: column;
        width: 50%;
        background-color: #fff; /* Changed to white */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 10px;
        border-top: 1px solid #eee;
        margin-left:180px;
    }

    nav.mobile-active ul {
        display: flex; /* Show mobile nav when active */
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        color: #000; /* Changed to black */
    }

    nav ul li a:hover::after {
        width: 0; /* Remove hover underline for mobile */
    }

    .mobile-menu-btn {
        display: block; /* Show mobile menu button */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    

    /* Hero section adjustments */
    .hero-content {
        min-height: 450px;
        padding: 12px;
    }

    .hero-title {
        font-size: 3em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    /* Section titles adjustments */
    .section-title {
        font-size: 2.8em;
        margin: 50px 0 30px 0;
        padding: 12px;
    }

    /* Products grid section adjustments */
    .products-grid-section {
        padding: 30px 40px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .product-item {
        padding: 18px;
    }
    .product-image {
        max-width: 180px;
        height: 160px;
    }
    .product-name {
        font-size: 1.1em;
    }
    .product-description {
        font-size: 0.9em;
    }

    /* Footer adjustments */
    .footer {
        padding: 40px 40px 0;
    }
    .footer-content-main {
        gap: 30px;
        padding-bottom: 15px; /* Reduced gap */
    }
    .footer hr {
        margin: 8px 0; /* Reduced gap */
    }
    .footer-bottom {
        padding: 12px 0; /* Reduced gap */
    }
    /* Popup adjustments for tablet */
    #image-popup {
        padding: 20px;
    }
    #popup-image {
        max-height: 60vh;
    }
    #popup-image-name {
        font-size: 1.5em;
    }
    .popup-close {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    /* Header adjustments */
    header .container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }

    .logo {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
        height:30px;
    }

    nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    nav ul {
        display: none; /* Hide desktop nav by default on mobile */
        flex-direction: column;
        width: 50%;
        background-color: #fff; /* Changed to white */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 10px;
        border-top: 1px solid #eee;
        margin-left:180px;
    }

    nav.mobile-active ul {
        display: flex; /* Show mobile nav when active */
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        color: #000; /* Changed to black */
    }

    nav ul li a:hover::after {
        width: 0; /* Remove hover underline for mobile */
    }

    .mobile-menu-btn {
        display: block; /* Show mobile menu button */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Hero section adjustments */
    .hero-content {
        min-height: 350px;
        padding: 10px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    /* Section titles adjustments */
    .section-title {
        font-size: 2.2em;
        margin: 40px 0 20px 0;
        text-align: center;
        padding: 10px;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Products grid section adjustments */
    .products-grid-section {
        padding: 25px 20px;
    }
    .products-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .product-item {
        padding: 15px;
    }
    .product-image {
        max-width: 150px;
        height: 130px;
    }
    .product-name {
        font-size: 1em;
    }
    .product-description {
        font-size: 0.9em;
    }

    /* Footer adjustments */
    .footer {
        padding: 30px 20px 0;
    }
    .footer-content-main {
        grid-template-columns: 1fr; /* Stack footer blocks */
        text-align: center;
        gap: 30px;
        padding-bottom: 25px;
    }
    .footer-block h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-block p i {
        margin-right: 5px;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    /* Popup adjustments for small tablet */
    #image-popup {
        width: 95%; /* Adjust width for smaller screens */
        padding: 15px;
    }
    #popup-image {
        max-height: 50vh;
    }
    #popup-image-name {
        font-size: 1.3em;
    }
    .popup-close {
        font-size: 28px;
        top: 8px;
        right: 12px;
    }
}

/* Small Mobile (less than 600px) */
@media (max-width: 599px) {
    .logo img {
        height: 50px;
        max-width: 120px;
    }
    .hero-content {
        min-height: 350px;
        background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("Images/bg.jpg");
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .section-title {
        font-size: 2em;
        margin: 25px auto 20px;
    }
    .products-grid-section {
        padding: 20px 15px;
    }
    .product-item {
        padding: 15px;
    }
    .product-image {
        max-width: 180px;
        height: 160px;
    }
    .product-name {
        font-size: 14px;
    }
    .footer {
        padding: 20px 15px 0;
    }
    .footer-block h3 {
        font-size: 20px;
    }
    .footer-block p {
        font-size: 14px;
    }
    .social-icons a {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }

    /* Specific to contact.css responsiveness at 480px for mobile menu button */
    @media (max-width: 480px) {
        .mobile-menu-btn {
            font-size: 20px;
            padding: 8px;
        }
    }
    /* Popup adjustments for small mobile */
    #image-popup {
        padding: 10px;
    }
    #popup-image {
        max-height: 40vh;
    }
    #popup-image-name {
        font-size: 1.1em;
    }
    .popup-close {
        font-size: 25px;
        top: 5px;
        right: 8px;
    }
}


/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }

    .product-item {
        border: 2px solid black;
    }

    .footer {
        background: black;
        color: white;
    }

    nav ul li a:hover {
        background-color: black;
        color: white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-text,
    .about-section,
    .info-item,
    .product-item {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .logo img,
    .about-image-wrapper,
    .about-image,
    .info-item,
    .social-icons a,
    .product-image,
    .product-item {
        transition: none !important;
    }
}