h1, h2, h3, h4, h5 {
    font-family: 'Roboto-Bold', 'Montserrat', sans-serif;
    font-weight: normal;
}

.dots {
    position: relative;
    margin-top: 1rem;
    display: flex;

    gap: 0.5rem;
    justify-content: center;
    > .dot {
        cursor: pointer;
        width: 1rem;
        height: 1rem;
        border: 2px solid transparent;
        border-radius: 50%;
        background-color: white;
        box-shadow: 0 0 0.5rem 0.5rem rgba(48, 48, 48, 0.1);

        &.shown {
            background-color: var(--primary);
        }
    }

    > .switch {
        position: absolute;
        right: 0;
        bottom: 0;
        display: flex;
        gap: 0.25rem;
        cursor: pointer;

        background-color: var(--primary);
        padding: 0.25rem 0.5rem;
        border-radius: 0.5rem;
        border: 2px solid var(--primary);
        font-family: "Roboto-Medium";

        &:disabled {
            cursor: not-allowed;
            border-color: var(--primary-lighten);
            background-color: var(--primary-lighten);
        }
        &:not(:disabled) {
            cursor: pointer;
            &:hover {
                border-color: var(--primary-lighten);
                background-color: var(--primary-lighten);
            }
        }
    }
}

.background {
    position: absolute;
    width: 100% !important;
    height: 100%;
    top: 0;
    left: 0;
    transform: skewY(-5deg);
    z-index: -1;
}

section {
    position: relative;
    padding: 8rem 1.5rem;
}

.features {
    position: relative;
    padding: 3rem 0;
    .background {
        background-color: var(--primary);
    }
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;

    > :not(.background) {
        text-align: center;
        flex: none;
        width: 11rem;
        padding: 1rem;
        border-radius: 1rem;
        &:hover {
            background-color: var(--primary-lighten);
        }

        > i {
            margin-bottom: 1rem;
            font-size: 4rem;
        }

        > .icon-group {
            position: relative;
            font-size: 2.5rem;
            line-height: 0;
        }
    }
}

.images-container {
    .images,
    .images-mobile {
        display: none;
        overflow: hidden;
        position: relative;
        &.shown {
            display: flex;
        }
        img {
            cursor: pointer;
            user-select: none;
            max-width: 100%;
            height: auto;
            touch-action: pan-y !important;
            transition: all 0.2s ease-in-out;
        }
    }
    max-width: 60rem;
    &.mobile {
        max-width: 30rem;
    }
}


#presentation {
    padding: 5rem 1.5rem 11rem;
    .background {
        top: -20rem;
        height: calc(100% + 20rem);
        background-color: var(--primary);
    }

    .text {
        max-width: 40rem;
        box-shadow: none;
        background-color: transparent;
    }
    img {
        max-width: 30rem;
    }

    ul {
        list-style: none;
        margin: 2rem auto 0;
        li {
            strong {
                margin-left: 1rem;
            }
            line-height: 2;
            font-size: 2rem;
        }
    }
}

#your-app {
    position: relative;
    img {
        max-width: 50rem;
        width: calc(100vw - 48px);
        display: block;
        margin: 2rem auto;
    }
    .text-1 {
        font-size: 3rem;
        margin: 0;
        text-align: center;
    }

    .text {
        max-width: 40rem;
        margin: auto;
    }
}

#products {
    .background {
        background: url(/assets/world-map-146505.svg);
        background-color: var(--secondary-lighten);
        background-repeat: no-repeat;
        background-position: center 1rem;
        background-size: auto calc(100% - 2rem);
    }

    .text {
        max-width: 40rem;
    }
}

#dashboard {
    .text {
        max-width: 35rem;
        flex: 0 0 auto;
    }
    .extra {
        i {
            margin-right: 0.5rem;
        }
        h3 {
            margin: 0 0 1rem;
        }
        background: var(--primary);
        max-width: 40rem;
        margin: 2rem auto 0;
        padding: 2rem;
        border-radius: 1rem;
    }
}

#driver {
    .background {
        background-color: var(--secondary-lighten);
    }

    .text-container {
        max-width: 35rem;
        flex: 0 1 auto;
        img {
            width: 100%;
        }
    }
}

#client {
    .text-container {
        max-width: 35rem;
        flex: 0 1 auto;
        img {
            width: 100%;
        }
    }
}

@media (max-width: 1024px) {
    .flex {
        flex-direction: column;
        &#presentation,
        &#client,
        &#dashboard,
        &#contact {
            flex-direction: column-reverse;
        }
        align-items: center;

    }
    .text {
        padding: 2.5rem 1.5rem;
        margin: 0;
    }
    #presentation {
        ul {
            display: none;
        }
    }
}

@media (max-width: 650px) {
    section {
        padding: 6rem 1.5rem;
    }

    #presentation {
        padding: 1rem 1.5rem 1rem;
        img {
            width: 100%;
        }
    }

    .text h2 {
        font-size: 2rem;
    }
}
