/* font-family: "Allerta", sans-serif; */
/* font-family: "Roboto", sans-serif; */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: calc(16px * var(--scale));
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

html,
body {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: #FEFEFE;
    overflow-y: overlay;
}

::-webkit-scrollbar {
    width: calc(8px * var(--scale));
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: calc(10px * var(--scale));
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: calc(120px * var(--scale));
    padding: 0 5%;
    border-bottom-left-radius: calc(100px * var(--scale));
    border-bottom-right-radius: calc(100px * var(--scale));
    box-shadow: 1px 1px 5px #CACACA;
    background-color: #FEFEFE;
    position: fixed;
    z-index: 1000;

    .header-section-1 {
        justify-self: start;
        display: flex;
        align-items: center;
        gap: calc(10px * var(--scale));

        img {
            width: calc(85px * var(--scale));
        }

        div {
            display: flex;
            flex-direction: column;
        }

        h2 {
            font-family: Allerta;
            font-size: 2rem;
            font-weight: 400;
            color: #00032D;
        }

        p {
            font-family: Roboto;
            font-size: 1.2rem;
            color: #00032D;
        }
    }

    .header-section-2 {
        justify-self: center;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: calc(150px * var(--scale));

        a {
            font-family: Roboto;
            font-size: 1.3rem;
            font-weight: 500;
            color: #051A55;
            text-decoration: none;
            transition: 0.15s ease-in;
        }

        a:hover {
            color: #2835e7;
        }
    }

    .header-section-3 {
        justify-self: end;
        display: flex;

        a {
            button {
                position: relative;
                width: calc(250px * var(--scale));
                height: calc(60px * var(--scale));
                color: #FFFFFF;
                background: linear-gradient(90deg, rgba(57, 78, 229, 1) 0%, rgba(110, 72, 233, 1) 100%);
                border: 1px solid #5E43D2;
                border-radius: calc(40px * var(--scale));
                box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
                font-size: 1.3rem;
                cursor: pointer;
                overflow: hidden;
                z-index: 1;
            }

            button::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, rgb(42, 61, 204) 0%, rgb(73, 42, 175) 100%);
                border-radius: inherit;
                opacity: 0;
                transition: opacity 0.2s ease-in;
                z-index: -1;
            }

            button:hover::before {
                opacity: 1;
            }
        }
    }
}

.banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(500px * var(--scale));
    background-image: linear-gradient(90deg, #BBBBBB 0%, #220061 100%), url('/assets/17973908.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    box-shadow: 1px 1px 10px #CACACA;

    img {
        width: calc(250px * var(--scale));
        margin-top: 6%;
    }

    h1 {
        font-family: Allerta;
        font-size: 3.5rem;
        font-weight: 400;
        color: #00032D;
    }

    h2 {
        font-family: Roboto;
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: calc(8px * var(--scale));
        background: linear-gradient(90deg, #394EE5, #6E48E9);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    p {
        font-family: Roboto;
        font-size: 1.3rem;
        font-weight: 500;
        text-align: center;
        color: #616165;
        margin-top: calc(20px * var(--scale));
        width: 50rem;
    }

    .btn-portfolio {
        display: inline-flex;
        align-items: center;
        gap: calc(10px * var(--scale));
        background-color: #FFFFFF;
        margin-top: 5%;
        margin-bottom: calc(15px * var(--scale));
        padding: calc(10px * var(--scale)) calc(30px * var(--scale));
        border: 1px solid #6E48E930;
        border-radius: calc(50px * var(--scale));
        color: #5E43D2;
        font-family: Arial, sans-serif;
        font-weight: bold;
        letter-spacing: calc(1px * var(--scale));
        text-decoration: none;

        .ponto {
            width: calc(12px * var(--scale));
            height: calc(12px * var(--scale));
            background-color: #6343cb;
            border-radius: 50%;
        }
    }
}

main {
    .p-fix {
        font-family: Roboto;
        font-size: 2.5rem;
        font-weight: 500;
        text-align: center;
        color: #616165;
        margin-top: calc(200px * var(--scale));
    }
}

/* --- Responsividade --- */

/* 1920 * 1080 */
:root {
    --scale: 1;
}

/* 1600 * 900 */
@media (max-width: 1600px) {
    :root {
        --scale: 0.8333;
    }
}

/* 1366 * 768 */
@media (max-width: 1366px) {
    :root {
        --scale: 0.7115;
    }
}

/* 1280 * 720 */
@media (max-width: 1280px) {
    :root {
        --scale: 0.6667;
    }
}

/* Mobile */
@media (max-width: 768px) {

    header {
        display: flex;
        justify-content: center;
        padding: 0 5%;

        .header-section-1 {
            display: none;
        }

        .header-section-2 {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            gap: 10px;

            a {
                font-size: 1.4rem;
            }
        }

        .header-section-3 {
            position: fixed;
            bottom: 60px;
            right: 20px;
            z-index: 1001;

            a button {
                width: auto;
                height: 48px;
                padding: 0 20px;
                font-size: 1rem;
                box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
            }
        }
    }

    .banner {
        min-height: 320px;
        padding: 0 20px;

        .btn-portfolio {
            height: 40px;
            margin-top: 80px;
            margin-bottom: 15px;
            padding: 8px 20px;
            font-size: 0.95rem;

            .ponto {
                width: 10px;
                height: 10px;
            }
        }

        h1 {
            font-size: 2.2rem;
            text-align: center;
        }

        p {
            font-size: 1.1rem;
            width: 100%;
            max-width: 90%;
            margin-top: 10px;
            line-height: 1.5;
        }
    }

    main {
        padding: 0 20px;
        width: 100%;

        .p-fix {
            font-size: 1.5rem;
            margin-top: 80px;
            margin-bottom: 80px;
        }
    }
}