@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home-banner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 40px;
    gap: 40px;
}

.home-banner div.home-banner-content {
    max-width: 590px;
}

.home-banner .home-banner-image {
    max-width: 460px;
    height: 100%;
    position: relative;
}

.home-banner .home-banner-image div.banner-background {
    padding: 0 5px;
    width: 100%;
    border-radius: 32px;
    position: absolute;
    background-color: var(--background-color-secondary-light);
    padding: 0 5px;
    height: 88%;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.home-banner .home-banner-image div:not(.banner-background) {
    overflow: hidden;
}

.home-banner .home-banner-content .subtitle {
    color: #777;
    font-size: 18px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.342px;
    max-width: 450px;
    background: none;
    text-align: left;
    padding-left: 0;
    border: none;
}

.home-banner .home-banner-content .subtitle::before {
    display: none;
}

.home-banner .home-banner-image img {
    max-width: 449px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(100px);
    animation: fade-in-up 2s forwards ease-out;
}

.home-banner .home-banner-image svg {
    position: absolute;
    z-index: 2;
    opacity: 0;
}

.home-banner .home-banner-image svg:first-child {
    animation: slide-in-right 1s forwards ease-out 0.3s;
}

.home-banner .home-banner-image .e-mec,
.home-banner .home-banner-image .e-mec-mobile {
    animation: slide-in-left 1s forwards ease-out 0.5s;
}

.home-banner .home-banner-image svg:first-child {
    top: 24px;
    right: -34px;
    border-radius: 50%;
}
.home-banner .home-banner-image .e-mec {
    bottom: 100px;
    left: -96px;
}
.home-banner .home-banner-image .e-mec-mobile {
    display: none;
}

.home-banner h1,
.home-banner strong {
    color: var(--text-color-dark);
    font-weight: 500;
    font-size: 56px;
    line-height: 130%;
    letter-spacing: -1.9%;
    opacity: 0;
    animation: slide-in-left 1s forwards ease-out 0.3s;
}

.home-banner strong {
    color: var(--text-color-primary);
}

.home-banner p {
    opacity: 0;
    color: var(--text-color-primary);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    text-align: center;
    background-color: var(--primary-color-light);
    position: relative;
    padding: 4px 8px 4px 24px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 24px;
    animation: slide-in-left 1.5s forwards ease-out 0.3s;
}

.home-banner p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 12px;
}

.home-banner a {
    max-width: 300px;
    width: 100%;
    background-color: var(--btn-color-light);
    color: var(--text-color-white);
    padding: 14px 85px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    text-decoration: none;
    margin-top: 32px;
    border-radius: 8px;
    display: inline-block;
    opacity: 0;
    animation: slide-in-left 2s forwards ease-out 0.3s;
}

.home-banner a:hover {
    background-color: var(--btn-color);
    padding: 14px 85px;
    transform: scale(1.05);
}

.home-banner .banner-mobile {
    display: none;
}

.home-banner .btn-mobile {
    display: none;
}

@media (max-width: 1100px) {
    .home-banner .home-banner-image .e-mec {
        bottom: 25px;
    }
}

@media (max-width: 992px) {
    .home-banner .home-banner-content .subtitle {
        max-width: 590px;
        text-align: center;
    }

    .home-banner {
        flex-wrap: wrap;
        padding: 0 40px;
    }

    .home-banner .home-banner-image svg:first-child {
        border: solid 5px var(--background-color-secondary-light);
        top: 30px;
        right: -37px;
    }
    .home-banner img {
        width: 100%;
        max-width: 590px;
    }
    .home-banner a {
        background-color: var(--btn-color-mobile);
    }

    .home-banner h1,
    .home-banner strong {
        text-align: center;
        font-size: 56px;
    }
    .home-banner div.home-banner-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .home-banner .banner-desktop {
        display: none;
    }

    .home-banner .banner-mobile {
        display: block;
    }

    .home-banner p {
        color: var(--text-color-tertiary);
        background-color: var(--background-color-primary-light);
        border: solid 1px var(--stroke-color-secondary);
    }

    .home-banner p::before {
        background-color: var(--text-color-tertiary);
    }
}

@media (max-width: 675px) {
    .home-banner .home-banner-image .e-mec {
        left: -70px;
    }
}

@media (max-width: 576px) {
    .home-banner .home-banner-content .subtitle {
        max-width: 590px;
        text-align: left;
        font-size: 16px;
    }

    .home-banner {
        gap: 24px;
        padding: 0 24px;
    }
    .home-banner .home-banner-image svg:first-child {
        width: 72px;
        height: 72px;
        right: -9px;
        top: 29px;
    }
    .home-banner .home-banner-image .e-mec {
        display: none;
    }
    .home-banner .home-banner-image .e-mec-mobile {
        display: block;
        bottom: 140px;
        left: -10px;
    }
    .home-banner p {
        margin-bottom: 14px;
        padding: 4px 8px;
        font-size: 12px;
    }

    .home-banner p::before {
        display: none;
    }

    .home-banner div.home-banner-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .home-banner h1,
    .home-banner strong {
        text-align: left;
        font-size: 36px;
    }
    .home-banner a {
        max-width: 100%;
        text-align: center;
    }
    .home-banner .home-banner-image {
        max-width: 100%;
    }
    .home-banner .home-banner-image div.banner-background {
        padding: 0;
    }
    .home-banner a {
        margin-top: 16px;
    }

    .home-banner .btn-mobile {
        display: block;
    }

    .home-banner .btn-desktop {
        display: none;
    }
    .home-banner .home-banner-image .e-mec-mobile {
        left: -7%;
    }
}
