/* Product Categories Section - Professional Agriculture Seeds Design */

.product-categories {
    padding: 120px 0;
    background: linear-gradient(135deg, #2d2324 0%, #4b1e29 50%, #2d2324 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(246, 227, 234, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(139, 30, 56, 0.25) 0%, transparent 55%);
    pointer-events: none;
}

.product-categories .container {
    position: relative;
    z-index: 1;
}

.product-categories .sec-title {
    margin-bottom: 80px;
}

.product-categories .sec-title__tagline {
    color: #f6e3ea;
    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: 800;
    color: #ffffff;
    margin-top: 10px;
    line-height: 1.2;
    text-shadow: 0 0 28px rgba(0, 0, 0, 0.55);
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.product-category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(139, 30, 56, 0.22) 100%);
    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 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(246, 227, 234, 0.22);
    cursor: pointer;
}

.product-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b1e38 0%, #d38aa7 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 18px 46px rgba(0, 0, 0, 0.65);
    border-color: rgba(246, 227, 234, 0.8);
}

.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, rgba(255, 255, 255, 0.18) 0%, rgba(139, 30, 56, 0.26) 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(246, 227, 234, 0.22) 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(0, 0, 0, 0.6));
}

.product-category-label {
    font-size: 13px;
    font-weight: 500;
    color: #f6e3ea;
    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: #ffffff;
}

.product-category-name {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    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: #f6e3ea;
    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(246, 227, 234, 0.12) 0%, rgba(139, 30, 56, 0.3) 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; }

