/* How It Works Section */
.how-it-works {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0 5rem;
}

.how-it-works .container {
    position: relative;
}

.how-it-works::before,
.how-it-works::after,
.how-it-works .container::before,
.how-it-works .container::after,
.steps::before,
.steps::after,
.step:nth-child(1)::before,
.step:nth-child(2)::before,
.step:nth-child(3)::before,
.how-it-works .section-header::before,
.how-it-works .section-header::after {
    content: '';
    position: absolute;
}

.how-it-works::before {
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(52, 184, 193, 0.15), rgba(109, 214, 220, 0.1));
    border-radius: 20px;
    transform: rotate(-15deg);
    animation: floatShape 8s ease-in-out infinite;
    z-index: 0;
}

.how-it-works::after {
    bottom: 15%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2), transparent);
    border-radius: 50%;
    animation: floatShape 6s ease-in-out infinite reverse;
    z-index: 0;
}

.how-it-works .container::before {
    top: 20%;
    right: 15%;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(52, 184, 193, 0.4), transparent);
    transform: rotate(25deg);
    animation: lineMove 10s ease-in-out infinite;
    z-index: 0;
}

.how-it-works .container::after {
    bottom: 30%;
    left: 20%;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(109, 214, 220, 0.3);
    border-radius: 50%;
    animation: circlePulse 7s ease-in-out infinite;
    z-index: 0;
}

.how-it-works .section-header::before {
    top: -20px;
    left: -30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.15);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: triangleFloat 9s ease-in-out infinite;
    z-index: 0;
}

.how-it-works .section-header::after {
    top: -10px;
    right: -25px;
    width: 50px;
    height: 25px;
    background: linear-gradient(135deg, rgba(52, 184, 193, 0.2), rgba(109, 214, 220, 0.1));
    border-radius: 15px;
    transform: rotate(45deg);
    animation: rectangleRotate 12s linear infinite;
    z-index: 0;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: clamp(0.5rem, 1vw, 1.5rem);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    top: 50%;
    left: -50px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(52, 184, 193, 0.2), transparent);
    border-radius: 50%;
    animation: circlePulse 5s ease-in-out infinite;
    z-index: 0;
}

.steps::after {
    top: 30%;
    right: -40px;
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.2), rgba(52, 184, 193, 0.1));
    transform: rotate(45deg);
    animation: rectangleRotate 8s linear infinite reverse;
    z-index: 0;
}

.how-it-works .section-header,
.how-it-works .steps,
.how-it-works .step {
    position: relative;
    z-index: 1;
}

.step {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(52, 184, 193, 0.3);
}

.step-connector {
    flex: 0 0 clamp(40px, 5vw, 80px);
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    margin-bottom: clamp(2rem, 4vw, 4rem);
}

.step-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step:nth-child(1)::before {
    top: -15px;
    left: -20px;
    width: 20px;
    height: 20px;
    background: rgba(109, 214, 220, 0.2);
    border-radius: 50%;
    animation: circlePulse 4s ease-in-out infinite;
    z-index: 0;
}

.step:nth-child(2)::before {
    top: -10px;
    right: -15px;
    width: 15px;
    height: 15px;
    background: rgba(255, 107, 53, 0.2);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: triangleFloat 6s ease-in-out infinite;
    z-index: 0;
}

.step:nth-child(3)::before {
    bottom: -20px;
    left: -25px;
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, rgba(52, 184, 193, 0.2), rgba(109, 214, 220, 0.1));
    transform: rotate(30deg);
    animation: rectangleRotate 10s linear infinite;
    z-index: 0;
}

.how-it-works .floating-shape-1,
.how-it-works .floating-shape-2,
.how-it-works .floating-shape-3,
.how-it-works .floating-shape-4,
.how-it-works .floating-shape-5 {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.steps .floating-shape-1,
.steps .floating-shape-2,
.steps .floating-shape-3,
.steps .floating-shape-4,
.steps .floating-shape-5 {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.how-it-works .floating-shape-1 {
    top: 25%;
    left: 10%;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, rgba(52, 184, 193, 0.15), transparent);
    border-radius: 50%;
    animation: floatShape 7s ease-in-out infinite;
}

.how-it-works .floating-shape-2 {
    top: 60%;
    right: 12%;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.2), rgba(52, 184, 193, 0.1));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: triangleFloat 8s ease-in-out infinite reverse;
}

.how-it-works .floating-shape-3 {
    top: 40%;
    left: 5%;
    width: 20px;
    height: 20px;
    background: rgba(109, 214, 220, 0.2);
    transform: rotate(45deg);
    animation: rectangleRotate 6s linear infinite;
}

.how-it-works .floating-shape-4 {
    bottom: 20%;
    right: 5%;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(52, 184, 193, 0.2);
    border-radius: 50%;
    animation: circlePulse 9s ease-in-out infinite;
}

.how-it-works .floating-shape-5 {
    top: 15%;
    right: 25%;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(109, 214, 220, 0.1));
    border-radius: 8px;
    animation: floatShape 11s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .steps {
        flex-direction: column;
        gap: 2rem;
        max-width: 600px;
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 4rem 0;
    }

    .steps {
        gap: 2rem;
    }

    .step {
        max-width: 300px;
        margin: 0 auto;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .steps {
        gap: 1.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.85rem;
    }
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(-15deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
}

@keyframes lineMove {
    0%, 100% {
        transform: rotate(25deg) translateX(0px);
        opacity: 0.5;
    }
    50% {
        transform: rotate(30deg) translateX(10px);
        opacity: 0.8;
    }
}

@keyframes circlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes triangleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

@keyframes rectangleRotate {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

