/* ==========================================================================
   B2B Solutions Section Styles
   ========================================================================== */

.b2b-section {
    background: var(--background-secondary);
    position: relative;
    overflow: hidden;
}

.b2b-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.03;
    z-index: 1;
}

.b2b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.b2b-card {
    background: var(--background-card);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.b2b-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left 0.6s ease;
}

.b2b-card:hover::before {
    left: 100%;
}

.b2b-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.b2b-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.b2b-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.b2b-card:hover .b2b-icon::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.b2b-icon i {
    font-size: 24px;
    color: white;
    z-index: 2;
    position: relative;
}

.b2b-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.b2b-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.b2b-features li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.b2b-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.b2b-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--glass), rgba(37, 99, 235, 0.05));
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

.b2b-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.b2b-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.b2b-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Products Section Styles
   ========================================================================== */

.products-section {
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.products-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, transparent 0%, var(--background-secondary) 100%);
    pointer-events: none;
    z-index: 1;
}

.products-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.product-animation {
    position: relative;
}

.lottie-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.lottie-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

.products-content {
    padding: 2rem;
}

.product-preview h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.product-preview h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.product-preview p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-soft);
}

.highlight-item i {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.product-notify {
    padding: 2rem;
    background: linear-gradient(135deg, var(--glass), rgba(37, 99, 235, 0.05));
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-notify::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s ease-in-out infinite;
}

.product-notify h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.product-notify p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.notify-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Responsive Design for B2B and Products */
@media (max-width: 968px) {
    .products-preview {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .product-highlights {
        grid-template-columns: 1fr;
    }
    
    .b2b-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .b2b-card {
        padding: 2rem;
    }
    
    .b2b-cta {
        padding: 3rem 2rem;
        margin-top: 4rem;
    }
    
    .b2b-cta h3 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .b2b-cta p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .cta-buttons, .notify-actions {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-buttons .btn, .notify-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
    }
}

@media (max-width: 640px) {
    .lottie-container {
        min-height: 300px;
    }
    
    .lottie-container lottie-player {
        width: 300px !important;
        height: 300px !important;
    }
    
    .b2b-grid {
        grid-template-columns: 1fr;
    }
    
    .b2b-card {
        padding: 1.5rem;
    }
    
    .product-preview h3 {
        font-size: 1.5rem;
    }
    
    .b2b-cta h3 {
        font-size: 1.5rem;
    }
}

/* Animation Keyframes */
@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* ==========================================================================
   CTA and Footer Icon Stats Fix
   ========================================================================== */

.cta-stat {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cta-stat i {
    font-size: 2.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-stat i {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.footer-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ==========================================================================
   Hero Stats Icon Fix
   ========================================================================== */

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.hero-stats .stat-item i {
    font-size: 2rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.9;
}