/* ==================================================
   Products Page Specific CSS (Modern UI)
================================================== */

/* Hero Section */
.products-hero-modern {
    position: relative;
    padding: 140px 0 60px;
    min-height: 460px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(8, 10, 26, 0.85) 0%, rgba(13, 23, 56, 0.9) 100%),
                url('../assets/images/products/hero-banner-v2.jpg?v=3') center/cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.products-hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.products-hero-modern .container {
    position: relative;
    z-index: 2;
}

.products-hero-modern h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.products-hero-modern p {
    font-size: 20px;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Flagship Layout */
.flagship-product {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.flagship-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.1);
}

.flagship-product.reverse {
    flex-direction: row-reverse;
}

.flagship-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.flagship-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flagship-content {
    flex: 1;
    padding: 50px;
}

.flagship-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.flagship-content h2 {
    font-size: 36px;
    color: #0b223f;
    margin-bottom: 20px;
    font-weight: 700;
}

.flagship-content p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.flagship-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flagship-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-weight: 500;
}

.flagship-features li i {
    color: #10b981;
    font-size: 18px;
}

/* Bento Grid */
.bento-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.bento-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover h3, .bento-card:hover p, .bento-card:hover li {
    color: #fff !important;
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #3b82f6;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.bento-card:hover .bento-icon {
    color: #3b82f6 !important;
    transform: scale(1.1);
}

.bento-card h3 {
    font-size: 22px;
    color: #0b223f;
    margin-bottom: 15px;
    font-weight: 700;
}

.bento-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bento-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bento-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    margin-bottom: 10px;
}

.bento-list li i {
    color: #3b82f6;
}

.bento-card:hover .bento-list li i {
    color: #fff !important;
}

/* Modern Features Grid */
.modern-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.modern-feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #f1f5f9;
}

.modern-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.modern-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #3b82f6;
    transition: all 0.4s ease;
}

.modern-feature-card:hover .modern-feature-icon {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.modern-feature-card h4 {
    font-size: 20px;
    color: #0b223f;
    margin-bottom: 15px;
    font-weight: 700;
}

.modern-feature-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

/* CTA Section */
.cta-premium {
    background: linear-gradient(135deg, #0b223f 0%, #1e3a8a 100%);
    padding: 100px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=') repeat;
    opacity: 0.5;
}

.cta-premium .container {
    position: relative;
    z-index: 2;
}

.cta-premium h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-premium p {
    font-size: 20px;
    color: #93c5fd;
    max-width: 700px;
    margin: 0 auto 40px;
}

.cta-premium .btn-light-glow {
    background: #fff;
    color: #0b223f;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-premium .btn-light-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    background: #f8fafc;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .flagship-product, .flagship-product.reverse {
        flex-direction: column;
        gap: 0;
    }
    
    .flagship-image {
        width: 100%;
        min-height: 300px;
    }
    
    .flagship-content {
        padding: 40px 30px;
    }
    
    .flagship-features {
        grid-template-columns: 1fr;
    }
    
    .bento-showcase, .modern-features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .products-hero-modern h1 {
        font-size: 40px;
    }
    
    .cta-premium h2 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .bento-showcase, .modern-features-grid {
        grid-template-columns: 1fr;
    }
}
