/* Product Cards Hover Effects */
.product-card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    transform: translateY(0);
}

.product-card:hover {
    box-shadow: 0 15px 30px -5px rgba(255,125,0,0.4);
    transform: translateY(-2px);
}

/* Smooth transition for product card images with gradient blending */
.product-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
}

.product-card:hover img {
    transform: scale(1.02);
}

/* Gradient overlay for product images - Enhanced Smooth */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 134, 52, 0) 0%,
        rgba(245, 134, 52, 0.02) 15%,
        rgba(245, 134, 52, 0.05) 30%,
        rgba(245, 134, 52, 0.08) 45%,
        rgba(245, 134, 52, 0.12) 60%,
        rgba(245, 134, 52, 0.15) 75%,
        rgba(245, 134, 52, 0.18) 90%,
        rgba(245, 134, 52, 0.2) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
}

.product-card:hover::after {
    opacity: 0.6;
}

/* Enhanced product card positioning for gradient overlay */
.product-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle inner glow effect on hover */
.product-card:hover {
    box-shadow: 
        0 15px 30px -5px rgba(245, 134, 52, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Section gradient blending effects - Ultra Smooth */
.system-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.03) 20%,
        rgba(0, 0, 0, 0.08) 40%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0.25) 80%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.6s ease;
}

/* Smooth section transitions with enhanced gradient blend */
.system-section + .system-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.25) 75%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* System Title Hover Effects - Ultra Smooth */
.system-title {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.system-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(245, 134, 52, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.system-title:hover::before {
    left: 100%;
}

.system-title:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(245, 134, 52, 0.15),
        0 4px 15px rgba(245, 134, 52, 0.1);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(245, 134, 52, 0.05) 100%
    );
}

.system-title h3 {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Section Overlay Hover Effects with Ultra-Enhanced Gradient Blending */
.system-section {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.system-section .bg-overlay {
    opacity: 0.65;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.68) 25%,
        rgba(0, 0, 0, 0.72) 50%,
        rgba(0, 0, 0, 0.68) 75%,
        rgba(0, 0, 0, 0.6) 100%
    );
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.system-section:hover .bg-overlay {
    opacity: 0.45;
    background: linear-gradient(
        135deg,
        rgba(245, 134, 52, 0.25) 0%,
        rgba(245, 134, 52, 0.15) 20%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(245, 134, 52, 0.2) 80%,
        rgba(245, 134, 52, 0.3) 100%
    );
}

/* Enhanced gradient transition between adjacent sections */
.system-section:not(:last-child)::after {
    bottom: -30px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(245, 134, 52, 0.08) 25%,
        rgba(245, 134, 52, 0.15) 50%,
        rgba(245, 134, 52, 0.25) 75%,
        rgba(245, 134, 52, 0.35) 100%
    );
    transition: all 0.5s ease;
}

/* Additional styling - border radius and overflow are handled by Tailwind classes */
/* rounded-xl = border-radius: 0.75rem */
/* overflow-hidden = overflow: hidden */

/* Product Grid Enhanced Spacing with Gradient Blending */
.product-grid-container {
    position: relative;
}

.product-grid-container .grid {
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Inter-card gradient blending effects - Ultra Smooth */
.product-card + .product-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: 30px;
    background: linear-gradient(
        90deg,
        rgba(245, 134, 52, 0.08) 0%,
        rgba(245, 134, 52, 0.12) 20%,
        rgba(255, 255, 255, 0.9) 40%,
        rgba(255, 255, 255, 0.95) 60%,
        rgba(245, 134, 52, 0.12) 80%,
        rgba(245, 134, 52, 0.08) 100%
    );
    z-index: -1;
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover + .product-card::before,
.product-card:hover::before {
    opacity: 0.8;
}

/* Smooth image blend on card borders - Enhanced */
.product-card img {
    border-bottom: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(
                    45deg, 
                    rgba(245, 134, 52, 0.2) 0%,
                    rgba(245, 134, 52, 0.1) 50%,
                    rgba(245, 134, 52, 0.05) 100%
                ) border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    border-bottom-color: rgba(245, 134, 52, 0.3);
}

/* Enhanced grid spacing for better visual flow - Ultra Smooth */
@media (min-width: 768px) {
    .product-grid-container .grid {
        gap: 2.5rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
        position: relative;
    }
    
    /* Subtle glow between cards on desktop */
    .product-card::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        background: radial-gradient(
            circle at center,
            rgba(245, 134, 52, 0.05) 0%,
            rgba(245, 134, 52, 0.02) 50%,
            transparent 100%
        );
        z-index: -2;
        opacity: 0;
        transition: opacity 0.5s ease;
        border-radius: 1rem;
    }
    
    .product-card:hover::before {
        opacity: 1;
    }
}

/* Mobile enhancements */
@media (max-width: 767px) {
    .product-grid-container .grid {
        gap: 1.25rem;
    }
    
    .product-card {
        margin-bottom: 0.75rem;
    }
}