/* ============================================
   HOW IT WORKS SECTION - EXPERT UI/UX ROADMAP
   ============================================ */

.how-it-works-section {
    background: var(--bg-primary, #0f172a);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before,
.how-it-works-section::after {
    display: none; /* Remove any gradient overlays */
}

.section-heading {
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary, #94a3b8);
    margin-top: 10px;
}

/* Roadmap Steps */
.roadmap-step {
    position: relative;
    background: var(--bg-card, #1e2838);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.roadmap-step:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary, #6366f1);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
    background: var(--bg-card-hover, #252f42);
}

/* Step Number Wrapper */
.step-number-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.4s ease;
}

.roadmap-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.step-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.step-icon i {
    font-size: 24px;
    color: white;
}

.roadmap-step:hover .step-icon {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Step Content */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 15px;
    line-height: 1.3;
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
    margin: 0;
}

/* Step Arrow (between steps) */
.step-arrow {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-card, #1e2838);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary, #6366f1);
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.step-arrow:hover {
    background: var(--accent-primary, #6366f1);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Hide arrow on last step and mobile */
.roadmap-step:last-child .step-arrow,
.roadmap-step:nth-child(3) .step-arrow {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .how-it-works-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .roadmap-step {
        padding: 35px 25px;
        margin-bottom: 30px;
    }
    
    .step-arrow {
        display: none; /* Hide arrows on tablet and mobile */
    }
    
    .step-number-wrapper {
        width: 90px;
        height: 90px;
        margin-bottom: 25px;
    }
    
    .step-number {
        font-size: 32px;
    }
    
    .step-icon {
        width: 55px;
        height: 55px;
    }
    
    .step-icon i {
        font-size: 22px;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .step-description {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .roadmap-step {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .step-number-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .step-number {
        font-size: 28px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon i {
        font-size: 20px;
    }
    
    .step-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .step-description {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .roadmap-step {
        padding: 25px 18px;
    }
    
    .step-number-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 18px;
    }
    
    .step-number {
        font-size: 24px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
    }
    
    .step-icon i {
        font-size: 18px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 13px;
    }
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roadmap-step {
    animation: fadeInUp 0.6s ease-out;
}

.roadmap-step:nth-child(1) {
    animation-delay: 0.1s;
}

.roadmap-step:nth-child(2) {
    animation-delay: 0.2s;
}

.roadmap-step:nth-child(3) {
    animation-delay: 0.3s;
}

