* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    
}

body, html {
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.8);

}
/* =========================================
   TELA DE LOADING
   ========================================= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1); /* Fundo escuro sólido */
    z-index: 9999; /* Garante que fique por cima de todo o site */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loader-content {
    text-align: center;
}

.logo-loading {
    width: 150px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate; /* Faz o logo pulsar levemente */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

.progress-container {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto 10px auto;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: #0051ff; /* Azul Ciano que você usou nas luzes do cérebro */
    transition: width 0.2s ease-out;
}

#loading-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Classe que o JS vai adicionar para fazer a tela sumir suavemente */
.esconder-loading {
    opacity: 0;
    visibility: hidden;
}

.pai {
    background: radial-gradient(158.85% 55.58% at 3.91% 5%, #383838 0.76%, rgba(0, 0, 0, 0.80) 47.4%);
    
}

.divbrain {

    width: 100%;
    position: absolute;
    height: 200vh;

    .brain {
        position: sticky;
        top: 0;
    }
}

.s1 {
    padding-bottom: 20vh;
    width: 100%;

    header {
        padding: 3vw 2vw 2vw 4vw;
        width: 100%;
    }

    .flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 1vw;
        width: 100%;

        .direita {
            width: 50%;
            height: auto;
            margin: 5vw 0vw 0vw 10vw;

            h1 {
                font-size: 4.5vw;
                font-weight: 400;

                font-family: "Montserrat", sans-serif;
                font-optical-sizing: auto;
                font-weight: normal;
                font-style: normal;
            }
            p{
                display: none;
            }
        }

        .botoes-s1 {
            display: flex;

            .botao-orcamento {
                color: rgb(22, 20, 20);
                background-color: rgba(255, 255, 255, 0.9);
                border: none;
                outline: none;
                padding: 4px 10px 4px 18px;
                font-size: 16px;
                margin-right: 40px;
                margin-top: 35px;
                border-radius: 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 20px;
                font-weight: 500;
                transition: ease-in-out .2s;

                img {
                    height: 50px;
                    width: 50px;
                    transition: ease-in-out .2s;
                }

                img:hover{
                     transform: scale(1.1);
                }
            }

            .botao-orcamento:hover{
            transform: scale(1.07);
        }



            .botao-contato {
                color: rgba(255, 255, 255, 0.8);
                background-color: rgba(255, 255, 255, 0.05);
                border: none;
                outline: none;
                padding: 4px 10px 4px 18px;
                font-size: 16px;
                margin-right: 40px;
                margin-top: 35px;
                border-radius: 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 20px;
                font-weight: 500;
                transition: ease-in-out .2s;

                img {
                    height: 50px;
                    width: 50px;
                    transition: ease-in-out .2s;
                }
                img:hover{
                    transform: scale(1.1);
                }
            }
            .botao-contato:hover{
                transform: scale(1.07);
            }
        }

    }

    .esquerda {
        
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        width: 50vw;
        height: 60vh;
        margin: 0vw 10vw 0vw 0vw;

    }


    .img-seta{
        position: absolute;
        bottom: 7%;
        right: 10%;
        background-color: #ffffff05;
        padding: 20px 20px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.07);
        box-shadow: 0px 0px 4px 1px rgba(255, 255, 255, 0.2);
    }
}


.s2 {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 4.5vh 9vw;

    h2 {
        font-size: 4vw;
        text-align: start;
        margin-bottom: 10px;
        font-weight: 400;

    }

    .content-s2 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;

        .titulo-s2 {
            margin-left: 3vw;
            display: flex;
            flex-direction: column;
            width: 46%;
            text-align: start;
            justify-content: flex-start;
            flex-wrap: wrap;

            p {

                margin: 3px .5vw 0px .5vw;
            }

            .botao-saiba-mais {
                margin-left: .5vw;
                width: max-content;
                color: rgb(22, 20, 20);
                background-color: rgba(255, 255, 255, 0.9);
                border: none;
                outline: none;
                padding: 4px 10px 4px 18px;
                font-size: 16px;
                margin-right: 40px;
                margin-top: 25px;
                border-radius: 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 20px;
                font-weight: 500;
                transition: ease-in-out .2s;

                img {
                    height: 50px;
                    width: 50px;
                    transition: ease-in-out .2s;
                }

                img:hover{
                    transform: scale(1.1);
                }
            }

            .botao-saiba-mais:hover{
                transform: scale(1.07);
            }
        }

        .card {
            background: radial-gradient(275.07% 156.42% at 155.66% 31.23%, #2F2F2F 4.67%, rgba(80, 71, 71, 0.08) 65.23%, rgba(2, 2, 2, 0.80) 98.04%, rgba(2, 2, 2, 0.80) 100%);
            box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            width: 24%;
            height: 250px;
            margin-bottom: 80px;
            padding: 30px;
            transition: ease-in-out .2s;

            h3 {
                color: rgba(255, 255, 255, 0.8);
                margin: 10px;
                font-size: 1.3vw;
                font-weight: 600;

            }

            p {
                color: rgba(255, 255, 255, 0.8);
                margin: 0px 20px 0px;
                font-size: 0.79vw;
                font-weight: 300;

            }

            img {
                width: 50px;
                height: 50px;
            }
        }
        .card:hover{
            transform: scale(1.02);
            filter: brightness(1.3);
        }
        #selecionado {
            box-shadow: none;
            background-color: rgba(255, 255, 255, 0.02);
            background-image: none;
        }
        #selecionado:hover{
            box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.1);
            background-color: rgba(255, 255, 255, 0.08);
        }
    }
}

.s3 {
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 4.5vh 8vw;

    .title-s3 {
        width: 100%;
        display: flex;
        gap: 50px;
        justify-content: center;
        align-items: center;
        margin-bottom: 12vh;

        h3 {
            font-size: 3.2vw;
            font-weight: 400;
        }
    }

    .grid-container {
        height: 80%;
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(8, 1fr);
        gap: 15px;



        h4 {
            color: rgba(255, 255, 255, 0.863);
            position: absolute;
            display: block;
            padding: 10px;
            margin: 15px;
            border-radius: 10px;
            width: max-content;
            background-color: #383838cc;
            box-shadow: 0px 0px 6px 1px rgba(255, 255, 255, 0.1);
        }

        .containers-flutuantes {
            border-radius: 20px;
            filter: saturate(0) brightness(1);
            transition: all .3s ease-in-out;
        }

        .containers-flutuantes:hover {
            transform: scale(1.01);
            filter: saturate(1);
        }

        #animacao {
            grid-column: 1 / 4;
            grid-row: 1 / 6;
            border: none;
            background-size: cover;
            background-position: center;

            video {
                height: 100%;
                width: 100%;
                object-fit: cover;
                border-radius: 20px;
            }
        }

        #design {
            grid-column: 4 / 9;
            grid-row: 1 / 3;
            grid-row: 1 / 5;
            border: none;
            background-image: url('imagens/desing\ web.webp');
            background-size: cover;
            background-position: center center;
        }

        #automacao {
            grid-column: 4 / 6;
            grid-row: 5/ 9;
            background-image: url('imagens/automação\ web.webp');
            background-size: cover;
        }

        #tresd {
            grid-column: 6/ 9;
            grid-row: 5 / 9;
            background-color: #e2e1e1;
        }

        #metricas {
            grid-column: 1 / 4;
            grid-row: 6 / 9;
            background-image: url('imagens/Print\ Gerenciador\ web.webp');
            background-size: cover;
        }

    }
}

#tresd canvas {

    width: 100%;
    height: 100%;
    position: absolute;
    margin-top: -16px;
    background-color: rgba(113, 131, 131, 0);

}

.canvas-fundo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 0; /* Mudamos de -1 para 0 para ele não sumir atrás do fundo da página */
    overflow: hidden;
    pointer-events: none; /* Garante que você consiga clicar nos botões que estão por cima */
}

.s4 {
    height: auto;
    padding: 20vh 11vw 10vh 11vw;
    display: flex;
    justify-content: space-around;
    gap: 12vw;
    align-items: center;
    background: radial-gradient(180.85% 90.58% at -20.91% 85%, #383838 0.76%, rgba(0, 0, 0, 0.80) 68.4%);

    .direita {
        h2 {
            font-size: 4.5vw;
            font-weight: 300;
            padding-bottom: 1vh;
        }


        .botoes-s4 {
            margin-top: 2vh;
            display: flex;
            gap: 15px;

            .botao-orcamento {
                color: rgb(22, 20, 20);
                background-color: rgba(255, 255, 255, 0.9);
                border: none;
                outline: none;
                padding: 4px 10px 4px 18px;
                font-size: 16px;
                margin-right: 40px;
                margin-top: 35px;
                border-radius: 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 20px;
                font-weight: 500;
                transition: ease-in-out .2s;

                img {
                    height: 50px;
                    width: 50px;
                    transition: ease-in-out .2s;
                }
                img:hover{
                    transform: scale(1.1);
                }
            }

            .botao-orcamento:hover{
            transform: scale(1.07);
        }

            .botao-contato {
                color: rgba(255, 255, 255, 0.8);
                background-color: rgba(255, 255, 255, 0.07);
                border: none;
                outline: none;
                padding: 4px 10px 4px 18px;
                font-size: 16px;
                margin-right: 40px;
                margin-top: 35px;
                border-radius: 20px;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 20px;
                font-weight: 500;
                transition: ease-in-out .2s;

                img {
                    height: 50px;
                    width: 50px;
                    transition: ease-in-out .2s;
                }

                img:hover{
                    transform: scale(1.1);
                }

                
            }
        }
        .botao-contato:hover{
            transform: scale(1.07);
        }
    }

    .esquerda {
        img {
            width: 30vw;
            height: 60vh;
            margin-right: 5vw;
        }

        .redes-sociais {
            padding-top: 4vh;
            padding-left: 5vw;
            display: flex;
            align-items: center;
            justify-content: start;
            gap: 30px;

            h4 {
                font-size: 1.1vw;
                font-weight: 300;
            }

            .icones {
                display: flex;
                justify-content: center;
                gap: 20px;

                a {
                    width: 40px;

                    img {
                        width: 40px;
                        height: min-content;
                        transition: ease-in-out .2s;
                    }
                }
                img:hover{
                    transform: scale(1.08);
                }
            }

            
        }
    }
}