/* Features Section - Innovative Zigzag Layout */
.features {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    /* Prevent horizontal overflow from animations */
}

/* Feature Row - Full Width Zigzag */
.feature-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 8%;
    margin-bottom: var(--spacing-lg);
    min-height: 400px;
}

/* Right Aligned Feature */
.feature-right {
    justify-content: flex-end;
    padding-right: 12%;
}

.feature-right .feature-icon-large {
    order: 2;
    margin-left: var(--spacing-xl);
}

.feature-right .feature-content {
    order: 1;
    text-align: right;
}

/* Left Aligned Feature */
.feature-left {
    justify-content: flex-start;
    padding-left: 12%;
}

.feature-left .feature-icon-large {
    order: 1;
    margin-right: var(--spacing-xl);
}

.feature-left .feature-content {
    order: 2;
    text-align: left;
}

/* Feature Icon Large */
.feature-icon-large {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.1),
            rgba(255, 0, 110, 0.15),
            rgba(131, 56, 236, 0.1));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(255, 0, 110, 0.15);
    transition: all var(--transition-normal);
}

.feature-icon-large:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 70px rgba(255, 0, 110, 0.3);
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.15),
            rgba(255, 0, 110, 0.2),
            rgba(131, 56, 236, 0.15));
}

.feature-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Feature Content */
.feature-content {
    max-width: 550px;
    flex: 0 0 auto;
}

.feature-content h3 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    line-height: 1.2;
}

.feature-content p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-xl) auto;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    animation: gradient-shift 15s ease infinite;
}

.cta-section h3 {
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.cta-section p {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.cta-section .btn-cta {
    position: relative;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-row {
        padding: var(--spacing-lg) 6%;
        gap: var(--spacing-lg);
    }

    .feature-right {
        padding-right: 8%;
    }

    .feature-left {
        padding-left: 8%;
    }

    .feature-icon-large {
        width: 220px;
        height: 220px;
    }

    .feature-content {
        max-width: 480px;
    }
}

@media (max-width: 1024px) {
    .feature-row {
        padding: var(--spacing-lg) 5%;
        min-height: 350px;
    }

    .feature-right {
        padding-right: 6%;
    }

    .feature-left {
        padding-left: 6%;
    }

    .feature-icon-large {
        width: 190px;
        height: 190px;
    }

    .feature-content {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .feature-row {
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        margin-bottom: var(--spacing-md);
        min-height: auto;
        gap: var(--spacing-md);
    }

    .feature-right,
    .feature-left {
        justify-content: center;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .feature-right .feature-icon-large,
    .feature-left .feature-icon-large {
        order: 1;
        margin: 0 0 var(--spacing-md) 0;
    }

    .feature-right .feature-content,
    .feature-left .feature-content {
        order: 2;
        text-align: center;
        max-width: 100%;
    }

    .feature-icon-large {
        width: 160px;
        height: 160px;
        border-radius: 35px;
        padding: var(--spacing-md);
    }

    .cta-section {
        padding: var(--spacing-lg) var(--spacing-md);
        margin: var(--spacing-lg) var(--spacing-md);
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .feature-icon-large {
        width: 140px;
        height: 140px;
        border-radius: 30px;
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-content p {
        font-size: 1rem;
    }
}