/* How It Works Section Styles */
.how-it-works {
    padding: 80px 0;
    background-color: #0a0a0a;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--color-primary);
    bottom: -10px;
    left: 25%;
}

.section-header p {
    color: var(--color-text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    opacity: 1;
}

.timeline-step {
    width: 60px;
    height: 60px;
    background-color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 3px solid var(--color-primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-step {
    background-color: var(--color-primary);
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    transform: translateX(-50%) scale(1.1);
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 77, 0, 0.2) 0%, rgba(10, 10, 10, 0.8) 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
}

.timeline-item:hover .timeline-content {
    transform: translateX(15px);
    background: rgba(76, 175, 80, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-item:nth-child(odd):hover .timeline-content {
    transform: translateX(-15px);
}

.timeline-content h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
    color: var(--color-primary);
    transform: translateX(5px);
}

.timeline-content p {
    color: var(--color-text-gray);
    margin: 0;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content p {
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-step {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-item:hover .timeline-content,
    .timeline-item:nth-child(odd):hover .timeline-content {
        transform: translateX(5px);
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .timeline-step {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
}
