/*
 * General Styles
 */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F9FA;
    color: #343A40;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #212529;
}

/*
 * Header Section (Desktop View)
 */
header {
    background-color: #1d573b;
    padding: 0px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    max-width: 60px;
    height: auto;
    border-radius: 8px;
}

.nav_links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

.nav_links a {
    text-decoration: none;
    color: #F8F9FA;
    font-weight: 500;
    transition: color 0.3s;
}


.cart,
.pfp_icon {
  margin-left: 0;
  size: 10px;
}

.nav_links a:hover {
    color: #28a745;
}

.pfp_icon img, .cart img {
    height: 24px;
}

.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    font-size: 2rem;
    color: #efe3c2;
}

/*
 * Hero Section
 */
.hero {
    position: relative;
    text-align: center;
    color: #FFFFFF;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.hero-container {
    position: relative;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.hero-container h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.hero-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #28a745;
    color: #FFFFFF;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
}

/*
 * Farms Section
 */
.farms {
    padding: 80px 40px;
    background-color: #FFFFFF;
    text-align: center;
}

.farms h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.farms h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #28a745;
    margin: 10px auto 0;
}

.farms-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.farm-item {
    background-color: #F8F9FA;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.farm-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.farm-item a img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #E9ECEF;
    transition: border-color 0.3s;
}

.farm-item:hover img {
    border-color: #28a745;
}

.farm-item h3 {
    margin-top: 20px;
    font-size: 1.4rem;
    color: #212529;
}

/*
 * About Us Section
 */
.about-us {
    padding: 80px 40px;
    text-align: center;
    background-color: #E9ECEF;
}

.about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.about-us p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/*
 * Footer Section
 */
footer {
    background-color: #343A40;
    color: #ADB5BD;
    text-align: center;
    padding: 1.5rem 0;
}

/*
 * Mobile Styles - Applied on screens up to 768px wide
 */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: row; /* Keep logo and menu on the same row */
        justify-content: space-between;
        padding: 1rem;
    }

    .nav_links {
        position: fixed;
        top: 60px; /* Adjust based on header height */
        right: 0;
        height: 100%;
        width: 70%; /* Takes up 70% of the screen width */
        background-color: #1d573b;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateX(100%); /* Initially hide the menu off-screen */
        z-index: 10;
    }

    .nav_links.active {
        transform: translateX(0); /* Slide the menu into view */
    }
    
    .nav_links li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: block; /* Show the burger icon on small screens */
    }

    .hero-container h1 {
        font-size: 2rem; /* Smaller font for mobile hero title */
    }

    .hero-container p {
        font-size: 0.9rem; /* Smaller font for mobile hero text */
    }

    .farms, .about-us {
        padding: 40px 20px; /* Reduced padding on mobile */
    }

    .farms h2, .about-us h2 {
        font-size: 1.8rem; /* Smaller section titles */
    }

    .farm-item {
        width: 100%; /* Farms take up full width on mobile */
        margin-bottom: 20px; /* Add spacing between items */
    }

    .farm-item a img {
        width: 120px; /* Smaller image size on mobile */
        height: 120px;
    }
}