/* Base styles */
.vegetables-page {
    background: #ffffff;
    color: #1e293b;
    min-height: 100vh;
}

/* Hero Section with Slideshow */
.hero-slideshow {
    position: relative;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* Mobile modern */
    overflow: hidden;
    margin-bottom: 4rem;
    z-index: 1;
    margin-top: -76px;
    /* Consistency with home page */
}

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

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
    margin: 0 auto;
    height: 100vh;
    /* Fallback */
    height: 100svh;
    /* Mobile modern */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    /* Gradient text with fallback */
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    background-clip: text;
    color: #4CAF50;
    /* Fallback color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Add shadow for contrast */
}

/* Ensure text is visible even if animation fails or background is busy */
.hero-title {
    color: #fff;
    /* Make it white for better contrast against image */
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.8rem;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    margin-bottom: 3rem;
    color: #f1f5f9;
    /* White/Light gray */
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-btn {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
}

.contact-btn {
    background: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #8BC34A, #4CAF50);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover::before {
    opacity: 1;
}

/* Vegetables Section */
.vegetables-section {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    background: #ffffff;
}

.vegetable-card {
    max-width: 1200px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding: 2rem;
    background: #ffffff;
    border-radius: 30px;
}

.vegetable-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.vegetable-card:last-child {
    margin-bottom: 4rem;
}

.vegetable-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vegetable-card:nth-child(even) {
    direction: rtl;
}

.vegetable-card:nth-child(even) .vegetable-content {
    direction: ltr;
    text-align: right;
}

.vegetable-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.vegetable-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vegetable-image:hover img {
    transform: scale(1.05);
}

.vegetable-content {
    padding: 2rem;
}

.vegetable-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vegetable-origin {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vegetable-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2.5rem;
}

.details-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #4CAF50;
    text-decoration: none;
    background: transparent;
    border: 2px solid #4CAF50;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.details-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.details-btn:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.details-btn:hover::before {
    opacity: 1;
}

.details-btn i {
    transition: transform 0.3s ease;
}

.details-btn:hover i {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

    .vegetable-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
        direction: ltr !important;
    }

    .vegetable-content {
        text-align: center !important;
    }

    .vegetable-image {
        height: 400px;
        transform: none !important;
    }

    .vegetable-title {
        font-size: 3rem;
    }

    .vegetable-origin {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .vegetable-card {
        margin-bottom: 4rem;
    }

    .vegetable-image {
        height: 300px;
    }

    .vegetable-title {
        font-size: 2.5rem;
    }

    .vegetable-description {
        font-size: 1.1rem;
    }
}

/* Section Heading */
.section-heading {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: #ffffff;
}

.section-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
}