/* How It Works Section */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(90, 0, 209, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.how-it-works h2 {
    margin-bottom: 20px;
}

.how-it-works .section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 80px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.steps-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 80px;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-connector {
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% + 60px);
    background: linear-gradient(180deg, #FF0080 0%, #FFA500 100%);
    opacity: 0.3;
}

.step-item:last-child .step-connector {
    display: none;
}

.step-number-wrapper {
    flex-shrink: 0;
    margin-right: 40px;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5A00D1 0%, #FF0080 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(90, 0, 209, 0.3);
    position: relative;
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #FF0080, #FFA500);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-number::before {
    opacity: 0.3;
}

.step-content {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF0080, #FFA500, #FFD700);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step-item:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.step-item:hover .step-content::before {
    transform: scaleX(1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(90, 0, 209, 0.1) 0%, rgba(255, 0, 128, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.step-icon i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #5A00D1 0%, #FF0080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #5A00D1; /* Fallback */
}

.step-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

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

.step-content p strong {
    color: #5A00D1;
    font-weight: 600;
}

.step-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(90, 0, 209, 0.1) 0%, rgba(255, 0, 128, 0.1) 100%);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5A00D1;
    transition: all 0.3s ease;
    border: 1px solid rgba(90, 0, 209, 0.2);
}

.feature-tag:hover {
    background: linear-gradient(135deg, #5A00D1 0%, #FF0080 100%);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: transparent;
}

.cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
    box-shadow: 0 10px 30px rgba(90, 0, 209, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-it-works {
        padding: 80px 0;
    }
    
    .how-it-works h2 {
        font-size: 2.5rem;
    }
    
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .step-number-wrapper {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .step-connector {
        left: 50%;
        transform: translateX(-50%);
        top: 90px;
        height: calc(100% + 40px);
    }
    
    .step-content {
        padding: 30px 25px;
    }
    
    .step-icon {
        margin: 0 auto 20px;
    }
    
    .step-features {
        justify-content: center;
    }
}

/* Animation for step items on scroll */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(90, 0, 209, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(90, 0, 209, 0.5);
    }
}

.step-number {
    animation: pulse-glow 3s ease-in-out infinite;
}
