/* 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;
}

body.is-loading {
    overflow: hidden;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00032D;
    background-image: radial-gradient(circle, #1A1F5C 0%, #00032D 100%);
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(24px * var(--scale));
}

.preloader-logo {
    width: calc(110px * var(--scale));
    animation: preloader-pulse 1.6s ease-in-out infinite;
}

@keyframes preloader-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.75;
    }
}

.preloader-counter {
    font-family: Roboto;
    font-size: 2.4rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.preloader-bar {
    width: calc(220px * var(--scale));
    height: 6px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #394EE5, #6E48E9);
    border-radius: inherit;
}

::-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(600px * var(--scale));
    background-image: radial-gradient(circle, #FFFFFF 0%, #D4CBF4 100%), url('/assets/Gemini_Generated_Image_s3n7qts3n7qts3n7.png');
    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));
    }
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .main-section-1 {
        display: flex;
        width: 100%;
        height: calc(650px * var(--scale));

        .who-we-are {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            width: 40%;
            height: 100%;

            .users-icon {
                display: flex;
                justify-content: center;
                align-items: center;
                width: calc(70px * var(--scale));
                height: calc(70px * var(--scale));
                margin-top: 15%;
                margin-left: 40%;
                border-radius: 50%;
                box-shadow: 1px 1px 10px;

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

            h2 {
                font-family: Roboto;
                font-size: 3rem;
                color: #111E50;
                margin-left: 40%;
            }

            .colored-bar {
                width: calc(90px * var(--scale));
                margin-left: 40%;
            }
        }

        .card-1 {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            width: calc(750px * var(--scale));
            height: calc(450px * var(--scale));
            margin-top: 5.5%;
            margin-left: 5.5%;
            background-image: radial-gradient(circle, #969696 0%, #FdC8C8 100%), url('/assets/v882batch2-kul-07-e.jpg');
            background-size: cover;
            background-position: bottom center;
            background-repeat: no-repeat;
            background-blend-mode: overlay;
            border-radius: calc(40px * var(--scale));
            box-shadow: 1px 1px 10px #CACACA;

            p {
                font-family: Roboto;
                font-size: 1.4rem;
                font-weight: 500;
                text-align: start;
                padding: 5%;
                color: #111E50;
            }

            .lamp-icon {
                display: flex;
                justify-content: center;
                align-items: center;
                width: calc(70px * var(--scale));
                height: calc(70px * var(--scale));
                margin-left: 5%;
                border-radius: 50%;
                box-shadow: 1px 1px 5px;
                background: #9E60F2;
                background: linear-gradient(90deg, rgba(158, 96, 242, 1) 0%, rgba(90, 72, 226, 1) 100%);

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

    .main-section-2 {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        height: calc(450px * var(--scale));
        background-color: #F3F8FE;

        .card-2 {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: flex-start;
            width: calc(700px * var(--scale));
            height: calc(320px * var(--scale));
            margin-left: 12%;
            background-image: radial-gradient(circle, #DAD5d5 0%, #93ABDA 100%), url('/assets/b1b1da53-1588-4b54-99bb-831f87428efa.jpg');
            background-size: cover;
            background-position: bottom center;
            background-repeat: no-repeat;
            background-blend-mode: overlay;
            border-radius: calc(40px * var(--scale));
            box-shadow: 1px 1px 10px #CACACA;

            .arrow-icon {
                display: flex;
                flex-shrink: 0;
                justify-content: center;
                align-items: center;
                width: calc(70px * var(--scale));
                height: calc(70px * var(--scale));
                margin-top: 8%;
                margin-left: 5%;
                border-radius: 50%;
                box-shadow: 1px 1px 5px;
                background: #0151E5;

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

            p {
                font-family: Roboto;
                font-size: 1.4rem;
                font-weight: 500;
                text-align: start;
                margin-top: 3%;
                padding: 5%;
                color: #111E50;
            }
        }

        .our-mission {

            h2 {
                font-family: Roboto;
                font-size: 3rem;
                color: #111E50;
            }

            .colored-bar {
                width: calc(90px * var(--scale));
            }
        }

        >img {
            width: calc(230px * var(--scale));
            margin-right: 12%;
            filter: brightness(0.8);
        }
    }

    .main-section-3 {
        display: flex;
        width: 100%;
        height: calc(650px * var(--scale));

        .our-services {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            width: 40%;
            height: 100%;

            .gear-icon {
                display: flex;
                justify-content: center;
                align-items: center;
                width: calc(70px * var(--scale));
                height: calc(70px * var(--scale));
                margin-top: 15%;
                margin-left: 40%;
                border-radius: 50%;
                box-shadow: 1px 1px 10px;

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

            h2 {
                font-family: Roboto;
                font-size: 3rem;
                color: #111E50;
                margin-left: 40%;
            }

            .colored-bar {
                width: calc(90px * var(--scale));
                margin-left: 40%;
            }

            p {
                font-family: Roboto;
                font-size: 1.4rem;
                font-weight: 500;
                text-align: start;
                color: #111E50;
                margin-left: 40%;
            }
        }

        .card-3 {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            width: calc(750px * var(--scale));
            height: calc(450px * var(--scale));
            margin-top: 5.5%;
            margin-left: 5.5%;
            background-image: radial-gradient(circle, #73747A 0%, #909AD3 100%), url('/assets/f.jpg');
            background-size: 110% 110%;
            background-position: center;
            background-repeat: no-repeat;
            background-blend-mode: overlay;
            border-radius: calc(40px * var(--scale));
            box-shadow: 1px 1px 10px #CACACA;

            h2 {
                font-family: Roboto;
                font-size: 1.7rem;
                background: linear-gradient(90deg, #394EE5, #6E48E9);
                background-clip: text;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                margin-left: 2%;
                margin-bottom: 0.5%;
            }

            p {
                font-family: Roboto;
                font-size: 1.4rem;
                font-weight: 500;
                text-align: start;
                color: #111E50;
                margin-left: 2%;
                margin-bottom: 2%;
            }

            p:last-child {
                margin-bottom: 0;
            }
        }
    }
}

main#main-content {
    scroll-margin-top: calc(130px * var(--scale));
}

.contact-us {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: calc(720px * var(--scale));
    padding: 0 10%;
    background-color: #F7F8FC;

    .images-container {
        display: flex;
        align-items: center;
        margin-left: 10%;
        gap: calc(20px * var(--scale));

        .img1,
        .img2,
        .img3 {
            width: calc(160px * var(--scale));
            height: calc(400px * var(--scale));
            border-radius: calc(30px * var(--scale));
            object-fit: cover;
            box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        }

        .img1 {
            transform: translateY(calc(-25px * var(--scale)));
        }

        .img2 {
            transform: translateY(0);
        }

        .img3 {
            transform: translateY(calc(25px * var(--scale)));
        }
    }

    .contacts {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        margin-right: 15%;

        h2 {
            font-family: Roboto;
            font-size: 2rem;
            font-weight: 500;
            text-align: start;
            color: #111E50;
        }

        span {
            background: linear-gradient(90deg, #394EE5, #6E48E9);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .colored-bar {
            width: calc(90px * var(--scale));
        }

        .contacts-list {
            display: flex;
            flex-direction: column;

            .email {
                display: flex;
                align-items: center;
                margin-top: calc(10px * var(--scale));
                gap: calc(15px * var(--scale));

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

                a {
                    font-family: Roboto;
                    font-size: 1.6rem;
                    font-weight: 500;
                    color: #1E54D2;
                }

                a:hover {
                    color: #2636B4;
                }
            }

            .linkedin {
                display: flex;
                align-items: center;
                margin-top: calc(10px * var(--scale));
                gap: calc(15px * var(--scale));

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

                a {
                    font-family: Roboto;
                    font-size: 1.6rem;
                    font-weight: 500;
                    color: #1E54D2;
                }

                a:hover {
                    color: #2636B4;
                }
            }

            .instagram {
                display: flex;
                align-items: center;
                margin-top: calc(10px * var(--scale));
                gap: calc(15px * var(--scale));

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

                a {
                    font-family: Roboto;
                    font-size: 1.6rem;
                    font-weight: 500;
                    color: #1E54D2;
                }

                a:hover {
                    color: #2636B4;
                }
            }

            .facebook {
                display: flex;
                align-items: center;
                margin-top: calc(10px * var(--scale));
                gap: calc(15px * var(--scale));

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

                a {
                    font-family: Roboto;
                    font-size: 1.6rem;
                    font-weight: 500;
                    color: #1E54D2;
                }

                a:hover {
                    color: #2636B4;
                }
            }
        }
    }
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100px * var(--scale));
    padding: calc(20px * var(--scale)) 0;
    gap: calc(20px * var(--scale));
    box-shadow: 1px 1px 5px #CACACA;
    background: #394EE5;
    background: linear-gradient(90deg, rgba(57, 78, 229, 1) 0%, rgba(110, 72, 233, 1) 100%);

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

    .lets-innovate {
        display: flex;
        flex-direction: column;
        margin-right: 30%;

        h3 {
            font-family: Roboto;
            font-size: 1.6rem;
            color: #FFFFFF;
        }

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

    button {
        position: relative;
        width: calc(210px * var(--scale));
        height: calc(50px * var(--scale));
        color: #FFFFFF;
        background: linear-gradient(90deg, rgba(57, 78, 229, 1) 0%, rgba(110, 72, 233, 1) 100%);
        border: 1px solid #FFFFFF;
        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;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    position: relative;
    width: 90%;
    max-width: calc(650px * var(--scale));
    max-height: 80vh;
    background-color: #FEFEFE;
    border-radius: calc(30px * var(--scale));
    padding: calc(35px * var(--scale)) calc(30px * var(--scale));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    h2 {
        font-family: 'Roboto', sans-serif;
        font-size: 2rem;
        color: #111E50;
    }

    .colored-bar {
        width: calc(80px * var(--scale));
        margin-top: calc(5px * var(--scale));
        margin-bottom: calc(20px * var(--scale));
    }
}

.close-modal-btn {
    position: absolute;
    top: calc(20px * var(--scale));
    right: calc(25px * var(--scale));
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: #616165;
    cursor: pointer;
    transition: color 0.2s ease;

    &:hover {
        color: #394EE5;
    }
}

.modal-body {
    width: 100%;
    overflow-y: auto;
    padding-right: calc(15px * var(--scale));

    h3 {
        font-family: 'Roboto', sans-serif;
        font-size: 1.3rem;
        color: #394EE5;
        margin-top: calc(15px * var(--scale));
        margin-bottom: calc(10px * var(--scale));
    }

    .credits-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: calc(8px * var(--scale));

        li {
            font-family: 'Roboto', sans-serif;
            font-size: 0.95rem;
            color: #444;
            line-height: 1.4;

            strong {
                color: #111E50;
            }

            a {
                color: #394EE5;
                text-decoration: none;
                transition: color 0.15s ease;

                &:hover {
                    text-decoration: underline;
                    color: #6E48E9;
                }
            }
        }
    }
}

.modal-body::-webkit-scrollbar {
    width: calc(6px * var(--scale));
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: rgba(57, 78, 229, 0.4);
    border-radius: calc(10px * 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;

        img {
            width: 100px;
            margin-top: 80px;
        }

        h1 {
            font-size: 2.2rem;
        }

        h2 {
            font-size: 1.3rem;
            letter-spacing: 4px;
        }

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

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

        .main-section-1,
        .main-section-2,
        .main-section-3 {
            flex-direction: column;
            height: auto;
            padding: 30px 0;
            width: 100%;
            gap: 20px;
        }

        .main-section-1 {
            .who-we-are {
                width: 100%;
                height: auto;
                align-items: center;
                text-align: center;

                .users-icon {
                    margin-left: 0;
                    margin-top: 0;
                    margin-bottom: 10px;
                }

                h2 {
                    margin-left: 0;
                    font-size: 2.2rem;
                    text-align: center;
                }

                .colored-bar {
                    margin-left: 0;
                }
            }

            .card-1 {
                width: 100%;
                height: auto;
                margin-top: 0;
                margin-left: 0;
                padding: 20px;

                p {
                    font-size: 1.1rem;
                    padding: 10px;
                }

                .lamp-icon {
                    margin-left: 10px;
                    margin-bottom: 10px;
                }
            }
        }

        .main-section-2 {
            flex-direction: column-reverse;

            .card-2 {
                width: 100%;
                height: auto;
                margin-left: 0;
                padding: 20px;
                flex-direction: column;

                .arrow-icon {
                    margin-top: 0;
                    margin-left: 10px;
                }

                p {
                    font-size: 1.1rem;
                    padding: 10px;
                }
            }

            .our-mission {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;

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

            >img {
                display: none;
            }
        }

        .main-section-3 {
            .our-services {
                width: 100%;
                height: auto;
                align-items: center;
                text-align: center;

                .gear-icon {
                    margin-left: 0;
                    margin-top: 0;
                    margin-bottom: 10px;
                }

                h2 {
                    margin-left: 0;
                    font-size: 2.2rem;
                    text-align: center;
                }

                .colored-bar {
                    margin-left: 0;
                    margin-bottom: 10px;
                }

                p {
                    margin-left: 0;
                    font-size: 1.1rem;
                    text-align: center;
                }
            }

            .card-3 {
                width: 100%;
                height: auto;
                margin-top: 0;
                margin-left: 0;
                padding: 20px;

                p {
                    font-size: 1.1rem;
                    padding: 10px;
                }

                span {
                    font-size: 1.3rem;
                }
            }
        }
    }

    .contact-us {
        flex-direction: column;
        height: auto;
        padding: 50px 20px;
        justify-content: center;

        .images-container {
            display: none;
        }

        .contacts {
            margin-right: 0;
            align-items: center;
            text-align: center;
            width: 100%;

            h2 {
                font-size: 1.8rem;
                text-align: center;
            }

            .colored-bar {
                margin: 10px 0;
            }

            .contacts-list {
                align-items: flex-start;

                .email,
                .linkedin,
                .instagram,
                .facebook {
                    a {
                        font-size: 1.2rem;
                    }

                    img {
                        width: 30px;
                    }
                }
            }
        }
    }

    footer {
        flex-direction: column;
        height: auto;
        padding: 30px 20px;
        text-align: center;
        gap: 15px;

        .lets-innovate {
            margin-right: 0;
            align-items: center;

            h3 {
                font-size: 1.3rem;
            }

            p {
                font-size: 1rem;
            }
        }

        button {
            width: 180px;
            height: 45px;
            font-size: 1.1rem;
        }
    }
}