﻿:root {
    --primary: #1e824c;
    --primary-dark: #14623a;
    --accent: #e8f5e9;
    --gray: #f5f5f5;
    --text: #1b1b1b;
    --radius: 18px;
    --transition: 0.3s ease;
}

/*====== Section Wrapper ======*/
.how-it-works-section {
    position: relative;
    background: #fff;
    padding: 80px 0 60px 0;
    z-index: 1;
    overflow: hidden;
}

.how-bg {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    height: 300px;
    background: radial-gradient(circle at 60% 40%, var(--accent) 60%, transparent 100%);
    opacity: 0.5;
    z-index: 0;
    animation: zoomBg 10s ease-in-out infinite alternate;
}

@keyframes zoomBg {
    0% {
        transform: translateX(-50%) scale(1);
    }

    100% {
        transform: translateX(-50%) scale(1.05);
    }
}

/*====== Title ======*/
.how-it-works-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 48px;
    font-weight: bold;
    z-index: 1;
    position: relative;
}

/*====== Steps Grid ======*/
.steps-grid {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/*====== Step Card ======*/
.step-card {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 32px 26px;
    width: 260px;
    max-width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px #1e824c12;
    cursor: default;
}

    .step-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 10px 28px #1e824c22;
        background: var(--accent);
    }

/*====== Icon Wrap ======*/
.icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px #1e824c1a;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconFloat 3s ease-in-out infinite alternate;
}

    .icon-wrap img {
        width: 36px;
        height: 36px;
    }

/*====== Keyframes ======*/
@keyframes iconFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

/*====== Texts ======*/
.step-card h3 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.step-card p {
    color: #333;
    font-size: 1rem;
    margin: 0;
}

/*====== Responsive ======*/
@media (max-width: 900px) {
    .steps-grid {
        gap: 20px;
    }

    .step-card {
        width: 90%;
    }

    .how-it-works-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .how-it-works-section {
        padding: 40px 0 20px 0;
    }
}
