@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --colorText: #17171A;
    --colorPrimary: #7502FF;
    --gradient: linear-gradient(130deg,rgba(32, 226, 237, 1) 0%, rgba(117, 3, 255, 1) 100%);
    --borderRadius: 1.5rem;
    --footerBg: #17171A;
}

html {
    font-size: 62.5%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.6rem;
    color: var(--colorText);
    overflow-x: hidden;

    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 0.6rem;
        background: var(--gradient);
    }
}

::selection {
    background: var(--colorPrimary);
    color: #fff;
}

* {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--colorText);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.2rem;
}

h2 + p {
    margin-top: 2.4rem;
}

p + h3 {
    margin-top: 3.2rem;
}

p {
    line-height: 1.5;
}

p + p {
    margin-top: 2.4rem;
}

.icon {
    background-color: var(--colorPrimary);
    width: 1.6rem;
    height: 1.6rem;
    padding: 6px;
    border-radius: 8px;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {
    max-width: 118rem;
    margin-inline: auto;

    @media screen and (max-width: 1000px) {
        padding: 0 20px;
    }

    &.wrapper--small {
        max-width: 67rem;
    }

    &.wrapper--text-center {
        text-align: center;
    }
}

section {
    margin: 12.4rem 0;
}

.highlight {
    color: var(--colorPrimary);
}

.logo {
    display: block;
    height: 4.2rem;
    margin-inline: auto;
}

.hero {
    display: flex;
    justify-content: center;
    align-self: center;
    flex-direction: column;
    gap: 12rem;
    height: 55vh;
    max-height: 50rem;
    margin: 0;

    @media screen and (max-width: 1000px) {
        padding: 60px 20px 0;
        margin-bottom: 5rem;
        height: auto;
        max-height: none;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        gap: 2.4rem;
        max-width: 65rem;
        margin-inline: auto;
        text-align: center;
    }
}

.slider {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    height: 46.2rem;
    margin: 0;

    @media screen and (max-width: 1000px) {
        overflow: hidden;
    }

    .slider__row {
        display: flex;
        gap: 3.2rem;
    }
}

.image-text {
    display: flex;
    align-items: center;
    margin: 3.2rem 0;

    @media screen and (max-width: 1000px) {
        flex-direction: column;
        gap: 1.6rem;
        margin: 5rem 0;
    }

    &.image-text--reversed {
        flex-direction: row-reverse;

        @media screen and (max-width: 1000px) {
            flex-direction: column;
        }
    }

    .image-text__image {
        border-radius: var(--borderRadius);
    }

    .image-text__content {
        max-width: 39rem;
        margin-inline: auto;
    }

    .image-text__heading-highlight {
        color: var(--colorPrimary);
        font-size: 1.3rem;
    }
}

/* ANIMATION */

.image-text__image,
.image-text__content {
    opacity: 0;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.image-text__image {
    transform: translateX(-60px);
}
.image-text__content {
    transform: translateX(60px);
}

.image-text--reversed .image-text__image {
    transform: translateX(60px);
}
.image-text--reversed .image-text__content {
    transform: translateX(-60px);
}

.fade-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
}
/* END ANIMATION */

.flex-container {
    display: flex;
    align-self: center;
    gap: 2.2rem;
    margin: 4rem 0;

    &.flex-container--small {
        gap: 1rem;
        margin: 1rem 0;
    }
}

.highlight-boxes-container {
    @media screen and (max-width: 1000px) {
        overflow: hidden;
    }
}

.highlight-boxes-flex-container {
    @media screen and (max-width: 1000px) {
        overflow-x: scroll;
    }
}

.highlight-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 310px;
    border-radius: 15px;
    padding: 24px;
    text-align: left;

    @media screen and (max-width: 1000px) {
        min-width: 210px;
    }

    * {
        color: #fff;
    }

    h3 {
        font-size: 2.2rem;
        font-weight: 600;
    }

    p {
        font-size: 1.4rem;
    }
}

.site__footer {
    background-color: var(--footerBg);
    color: #fff;
    padding: 5rem 2rem;

    .wrapper {
        max-width: 375px;
        margin-inline: auto;
        text-align: center;
    }

    .logo {
        margin-bottom: 1.6rem;
    }
}