/* ============================================
   MODERN PRODUCTS SHOWCASE SECTION STYLES
   ============================================ */

/* Modern Products Section */
.modern-products-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 50%, #ffffff 100%);
    overflow: hidden;
    padding: 80px 0;
}

.products-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(178, 83, 42, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(178, 83, 42, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-products-section .container {
    position: relative;
    z-index: 1;
}

/* Modern Section Header */
.modern-section-header {
    margin-bottom: 4rem;
    position: relative;
}

.header-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #07406e 0%, #07406e 100%);
    color: #ffffff;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(178, 83, 42, 0.2);
}

.modern-section-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.title-highlight {
    background: linear-gradient(135deg, #07406e 0%, #07406e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-tagline {
    font-size: 1.125rem;
    color: #6b7280;
    margin-top: 1rem;
    font-weight: 400;
}

/* Modern Products Grid */
.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

@media (min-width: 1200px) {
    .modern-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Modern Product Card */
.modern-product-card {
    position: relative;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-product-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-product-link:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(178, 83, 42, 0.15);
    border-color: rgba(178, 83, 42, 0.3);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(178, 83, 42, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.modern-product-link:hover .image-glow {
    opacity: 1;
}

.modern-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.modern-product-link:hover .modern-product-image {
    transform: scale(1.1) rotate(1deg);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-product-link:hover .product-overlay {
    opacity: 1;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(178, 83, 42, 0.7) 0%, rgba(178, 83, 42, 0.9) 100%);
}

.product-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 4;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modern-product-link:hover .product-actions {
    transform: translateY(0);
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07406e;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background: #07406e;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(178, 83, 42, 0.4);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    background: linear-gradient(135deg, #07406e 0%, #07406e 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(178, 83, 42, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modern-product-link:hover .product-badge {
    transform: scale(1);
}

[dir="rtl"] .product-badge {
    right: auto;
    left: 20px;
}

/* Product Content Wrapper */
.product-content-wrapper {
    padding: 2rem;
    position: relative;
    background: #ffffff;
}

.product-content {
    position: relative;
    z-index: 2;
}

.modern-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #07406e;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    min-height: 3.9rem;
}

.modern-product-link:hover .modern-product-name {
    color: #07406e;
    background: linear-gradient(135deg, #07406e 0%, #07406e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-product-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 4.5rem;
}

.product-footer {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #07406e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.modern-product-link:hover .read-more-text {
    color: #07406e;
    gap: 0.75rem;
}

.read-more-text i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.modern-product-link:hover .read-more-text i {
    transform: translateX(5px);
}

[dir="rtl"] .modern-product-link:hover .read-more-text i {
    transform: translateX(-5px);
}

/* Decorative Elements */
.product-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(178, 83, 42, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.decoration-top {
    top: -50px;
    left: -50px;
}

.decoration-bottom {
    bottom: -50px;
    right: -50px;
}

.modern-product-link:hover .product-decoration {
    opacity: 1;
}

[dir="rtl"] .decoration-top {
    left: auto;
    right: -50px;
}

[dir="rtl"] .decoration-bottom {
    right: auto;
    left: -50px;
}

/* Modern View All Button */
.modern-view-all-wrapper {
    margin-top: 4rem;
}

.modern-view-all-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 18px 40px;
    background: linear-gradient(135deg, #07406e 0%, #07406e 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(178, 83, 42, 0.25);
    z-index: 1;
}

.modern-view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #07406e 0%, #07406e 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.modern-view-all-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(178, 83, 42, 0.4);
}

.modern-view-all-btn:hover::before {
    left: 0;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.modern-view-all-btn:hover .btn-icon {
    transform: translateX(8px);
}

[dir="rtl"] .modern-view-all-btn:hover .btn-icon {
    transform: translateX(-8px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.modern-view-all-btn:hover .btn-shine {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .modern-section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .modern-products-section {
        padding: 60px 0;
    }
    
    .modern-products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modern-section-title {
        font-size: 2rem;
    }
    
    .section-tagline {
        font-size: 1rem;
    }
    
    .product-image-container {
        height: 280px;
    }
    
    .modern-product-name {
        font-size: 1.25rem;
        min-height: auto;
    }
    
    .modern-product-description {
        min-height: auto;
    }
    
    .modern-view-all-btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .modern-section-header {
        margin-bottom: 3rem;
    }
    
    .modern-section-title {
        font-size: 1.75rem;
    }
    
    .product-image-container {
        height: 250px;
    }
    
    .product-content-wrapper {
        padding: 1.5rem;
    }
    
    .modern-product-name {
        font-size: 1.125rem;
    }
    
    .modern-product-description {
        font-size: 0.875rem;
    }
}

/* Animation Support */
@media (prefers-reduced-motion: no-preference) {
    .modern-product-card {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
