/* How It Works Section Styles */

.how-it-works {
    padding: 120px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

/* Add subtle background pattern */
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--gray-light) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 0;
}

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

.steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 70px;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    background-color: white;
    border-radius: 16px;
    padding: 40px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Replace the line with a more modern connector */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -20px;
    width: 40px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12' fill='none'%3E%3Cpath d='M0 6H36.5M36.5 6L31 1M36.5 6L31 11' stroke='%23CCCCCC' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #4e46e5));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin: -55px auto 25px;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb, 79, 70, 229), 0.3);
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.6;
}

/* Step icon styles */
.step-icon {
    margin-top: 25px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    color: var(--primary-light, #8b85f9);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.step:hover .step-icon svg {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive styles */
@media (max-width: 992px) {
    .how-it-works {
        padding: 100px 0;
    }
    
    .steps {
        margin-top: 60px;
        gap: 30px;
    }
    
    .step-number {
        width: 65px;
        height: 65px;
        font-size: 24px;
        margin: -50px auto 20px;
    }
    
    .step-icon {
        margin-top: 20px;
    }
    
    .step-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 60px;
    }
    
    .step {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: auto;
        right: auto;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
        width: 40px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .how-it-works {
        padding: 80px 0;
    }
    
    .step {
        padding: 35px 20px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 22px;
        margin: -45px auto 20px;
    }
    
    .step h3 {
        font-size: 20px;
    }
    
    .step-icon svg {
        width: 36px;
        height: 36px;
    }
} 