/* How It Works Section - Modern Redesign */
.how-it-works {
    padding: 5rem 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(33, 150, 243, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: #1A237E;
}

.how-it-works .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    font-weight: 400;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

/* Connecting Line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(90deg, #2196F3 0%, #9B59B6 50%, #27AE60 100%);
    z-index: 0;
    opacity: 0.5;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Step Numbers - Now with Step text */
.step-number {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
}

.step-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.step-digit {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.step-1 .step-number {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.step-2 .step-number {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
}

.step-3 .step-number {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
}

.step-item:hover .step-number {
    transform: translateY(-10px);
}

.step-1:hover .step-number {
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.4);
}

.step-2:hover .step-number {
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.4);
}

.step-3:hover .step-number {
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.4);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A237E;
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Progress Bar at Bottom */
.progress-note {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #2196F3 0%, #4CAF50 100%);
    border-radius: 3px;
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.progress-text {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Call to Action */
.how-it-works-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 968px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step-number {
        width: 120px;
        height: 120px;
    }
    
    .step-text {
        font-size: 0.9rem;
    }
    
    .step-digit {
        font-size: 2rem;
    }
    
    .how-it-works h2 {
        font-size: 2.5rem;
    }
}