/* How Does OVINA Work Section */

.how-it-works {
    min-height: 100vh;
    padding: var(--spacing-3xl) 0;
    background: #1A375B;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 241, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.how-it-works::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 181, 52, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.how-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.how-header .section-title {
    color: var(--color-white);
    text-align: center;
}

.how-header .section-title .gradient-text {
    background: linear-gradient(135deg, #2EB2E3, #95E1FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.how-header .section-subtitle {
    color: #CDF1FF;
    text-align: center;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-md);
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.how-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-illustration {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
}

.step-illustration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.step-illustration span {
    font-size: 48px;
    font-family: var(--font-header);
    color: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.step-illustration img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 22px;
}

.step-content {
    background: rgba(255, 255, 255, 0.08);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 241, 255, 0.15);
    text-align: left;
    transition: var(--transition-normal);
}

.step-content:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(46, 178, 227, 0.3);
}

.step-title {
    font-size: 18px;
    background: linear-gradient(135deg, var(--color-orange), var(--color-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.step-description {
    font-size: 14px;
    color: #CDF1FF;
    line-height: 1.5;
    text-align: justify;
}

/* Tablet */
@media (max-width: 1199px) {
    .how-steps {
        max-width: 800px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .how-it-works {
        padding: var(--spacing-2xl-mobile) 0;
        min-height: auto;
    }

    .how-header {
        margin-bottom: var(--spacing-xl-mobile);
    }

    .how-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm-mobile);
        grid-auto-rows: 1fr;
    }

    .how-step {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs-mobile);
        text-align: center;
        transition: transform 0.1s ease, box-shadow 0.1s ease;
        display: flex;
        flex-direction: column;
    }

    /* Disable hover, add tap effect */
    .how-step:hover {
        transform: translateY(0);
    }

    .step-illustration {
        width: 70px;
        height: 70px;
        margin: 0 auto;
        border-radius: 16px;
    }

    .step-illustration::before {
        width: 75%;
        height: 75%;
    }

    .step-illustration span {
        font-size: 24px;
    }

    .step-illustration img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 16px;
        padding: 8px;
    }

    .step-content {
        padding: var(--spacing-sm-mobile);
        text-align: center;
        transition: transform 0.1s ease, box-shadow 0.1s ease;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Disable hover, add tap effect */
    .step-content:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(205, 241, 255, 0.15);
        transform: none;
    }

    .step-content:active {
        transform: scale(0.97);
        box-shadow: 0 8px 20px rgba(46, 178, 227, 0.3);
    }

    .step-title {
        font-size: var(--fs-body-mobile);
        margin-bottom: 4px;
    }

    .step-description {
        font-size: var(--fs-small-mobile);
        text-align: center;
        line-height: 1.4;
    }
}

@media (max-width: 479px) {
    .step-illustration {
        width: 60px;
        height: 60px;
    }

    .step-illustration span {
        font-size: 20px;
    }

    .step-illustration img {
        padding: 6px;
    }
}