﻿body {
    background: #f8fff8;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.crop-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #eaf9e6 0%, #ffffff 100%);
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    color: #1b5e20;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.crop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    justify-content: center;
    align-items: center;
}

.crop-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    position: relative;
}

    .crop-card:hover {
        transform: translateY(-15px) scale(1.03);
        box-shadow: 0 18px 45px rgba(46, 125, 50, 0.35);
    }

/* Full image view */
.crop-image {
    width: 100%;
    height: 420px; /* large image height */
    background-color: #f1f8e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .crop-image img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* ensures entire image is visible */
        transition: transform 1.2s ease, filter 0.5s ease;
    }

.crop-card:hover .crop-image img {
    transform: scale(1.1);
    filter: brightness(1.15);
}

/* Crop info section */
.crop-info {
    padding: 25px 30px;
    text-align: center;
}

    .crop-info h3 {
        font-size: 1.8rem;
        color: #2e7d32;
        margin-bottom: 10px;
    }

    .crop-info p {
        font-size: 1rem;
        color: #555;
        margin-bottom: 20px;
        line-height: 1.6;
    }

/* Button styling */
.btn-view {
    display: inline-block;
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #fff;
    padding: 12px 35px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
}

    .btn-view:hover {
        background: linear-gradient(135deg, #2e7d32, #1b5e20);
        transform: translateY(-3px);
    }

/* Floating leaf background animation for life */
.crop-section::before,
.crop-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: url('../Images/leaf.png') no-repeat center/contain;
    opacity: 0.07;
    animation: floatLeaf 12s ease-in-out infinite alternate;
}

.crop-section::before {
    top: 8%;
    left: 3%;
}

.crop-section::after {
    bottom: 8%;
    right: 3%;
    animation-delay: 2s;
}

@keyframes floatLeaf {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-25px) rotate(15deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .crop-image {
        height: 300px;
    }

    .section-title {
        font-size: 2.2rem;
    }
}
