/* Product Categories Section - Professional Agriculture Seeds Design */

.product-categories {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.product-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(104, 211, 145, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(104, 211, 145, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.product-categories .container {
    position: relative;
    z-index: 1;
}

.product-categories .sec-title {
    margin-bottom: 80px;
}

.product-categories .sec-title__tagline {
    color: #68d391;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.product-categories .sec-title__title {
    font-size: 48px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 10px;
    line-height: 1.2;
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.product-category-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
}

.product-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #68d391 0%, #48bb78 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.product-category-card:hover::before {
    transform: scaleX(1);
}

.product-category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(104, 211, 145, 0.25);
    border-color: #68d391;
}

.product-category-image-wrapper {
    width: 100%;
    height: 220px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    border-radius: 15px;
    overflow: hidden;
}

.product-category-image-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(104, 211, 145, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    border-radius: 50%;
}

.product-category-card:hover .product-category-image-wrapper::after {
    width: 300px;
    height: 300px;
}

.product-category-image-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.product-category-card:hover .product-category-image-wrapper img {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 10px 25px rgba(104, 211, 145, 0.3));
}

.product-category-label {
    font-size: 13px;
    font-weight: 500;
    color: #68d391;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.product-category-card:hover .product-category-label {
    opacity: 1;
    color: #48bb78;
}

.product-category-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.product-category-card:hover .product-category-name {
    color: #68d391;
    transform: scale(1.05);
}

.product-category-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, rgba(104, 211, 145, 0.05) 0%, rgba(72, 187, 120, 0.05) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.product-category-card:hover::after {
    bottom: -20%;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .product-categories {
        padding: 80px 0;
    }
    
    .product-categories .sec-title__title {
        font-size: 38px;
    }
    
    .product-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .product-category-card {
        padding: 35px 25px;
    }
    
    .product-category-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .product-categories {
        padding: 60px 0;
    }
    
    .product-categories .sec-title {
        margin-bottom: 50px;
    }
    
    .product-categories .sec-title__title {
        font-size: 32px;
    }
    
    .product-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 40px;
    }
    
    .product-category-card {
        padding: 30px 20px;
    }
    
    .product-category-image-wrapper {
        height: 180px;
        margin-bottom: 20px;
    }
    
    .product-category-name {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .product-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-category-card {
        padding: 30px 20px;
    }
    
    .product-category-image-wrapper {
        height: 200px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-category-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.product-category-card:nth-child(1) { animation-delay: 0.1s; }
.product-category-card:nth-child(2) { animation-delay: 0.2s; }
.product-category-card:nth-child(3) { animation-delay: 0.3s; }
.product-category-card:nth-child(4) { animation-delay: 0.4s; }
.product-category-card:nth-child(5) { animation-delay: 0.5s; }
.product-category-card:nth-child(6) { animation-delay: 0.6s; }
.product-category-card:nth-child(7) { animation-delay: 0.7s; }
.product-category-card:nth-child(8) { animation-delay: 0.8s; }
.product-category-card:nth-child(9) { animation-delay: 0.9s; }
.product-category-card:nth-child(10) { animation-delay: 1s; }
.product-category-card:nth-child(11) { animation-delay: 1.1s; }
.product-category-card:nth-child(12) { animation-delay: 1.2s; }

