/* Hero Section */
.hero {
    position: relative;
    color: var(--white-color);
    text-align: center;
    overflow: hidden;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 2;

    opacity: 1;
}



.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-slideshow .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.4), rgba(210, 105, 30, 0.4));
    pointer-events: none;
}

/* Additional overlay effect for hero section */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero h2 {
font-size: 3em;
margin-bottom: 20px;
color: #fff !important;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
animation: fadeInUp 1s ease-out;
letter-spacing: 1px;
}

/* Ensure H1 in hero has the same strong treatment as H2 */
.hero h1 {
    font-size: 3.25em;
    margin-bottom: 16px;
    color: #fff !important;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Subtle glass card to make hero text pop on busy images */
.hero .hero-text {
    display: inline-block;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 20px 28px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-width: 900px;
    margin: 0 auto;
}

.hero .hero-text p {
    color: #fff;
    margin-bottom: 0; /* avoid extra space under the card */
    font-size: 1.15rem;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Sections General Styling */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* Product Search and Filters */
.product-search .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#product-search {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    color: var(--text-color);
    background-color: var(--white-color);
}

#product-search::placeholder {
    color: #999;
}

#search-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-btn:hover {
    background-color: var(--secondary-color);
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#category-filter,
#crop-filter {
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--white-color);
    color: var(--text-color);
    cursor: pointer;
    appearance: none; /* Remove default select arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C197.3L159.4%2C69.8c-4.1-4.1-10.8-4.1-14.9%2C0L5.4%2C197.3c-4.1%2C4.1-4.1%2C10.8%2C0%2C14.9c4.1%2C4.1%2C10.8%2C4.1%2C14.9%2C0l130.3-130.3l130.3%2C130.3c4.1%2C4.1%2C10.8%2C4.1%2C14.9%2C0C291.1%2C208.1%2C291.1%2C201.4%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px;
    padding-right: 35px; /* Make space for the custom arrow */
}

@media (max-width: 768px) {
    .search-container,
    .filter-options {
        flex-direction: column;
        width: 90%;
    }

    #product-search,
    #search-btn,
    #category-filter,
    #crop-filter {
        width: 100%;
    }
}



/* Why Choose Us Section */
.why-choose-us {
    background-color: var(--white-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.feature i {
    font-size: 3.5rem; /* Larger icons */
    color: var(--primary-color);
    margin-bottom: 25px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Our Story Section */
.our-story {
    background-color: var(--light-color);
}

.our-story p {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Contact Section */
.contact {
    background-color: var(--white-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 64px;
    margin-top: 24px;
    margin-bottom: 40px;
}

.contact-info div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Improve spacing for the intro paragraph under the contact heading */
.contact > .container > p {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}


@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .product-info {
        text-align: center;
    }

    .product-info .btn {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .hero { height: 85vh; }
    .hero h2 { font-size: 2.2em; }
    .hero p { font-size: 1.05rem; line-height: 1.6; padding: 0 12px; }
}

@media (max-width: 480px) {
    .hero { height: 80vh; }
    .hero h2 { font-size: 1.8em; }
    .hero p { font-size: 0.98rem; line-height: 1.55; padding: 0 10px; }
}
