* {
    font-size: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box; /* Inclui padding e borda no cálculo de largura e altura */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
}
body {
    background-color: #33414c;
    background-image: url('img/sobrenosWallpaperTela.png');
    background-size: 100vw;
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    overflow-y: scroll;        /* mantém a rolagem funcional */
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;  /* IE e Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Edge, Opera */
}
header {
    /* background: linear-gradient(to right, white, rgba(255, 255, 255, 0)),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.406), rgba(255, 255, 255, 0.588)); */
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 5;
}
header div {
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blinking-border {
    animation: borderBlink 1s infinite;
}
.ephitex {
    background-color: #dcdcdc;
    padding: 2rem .5rem;
    width: 10rem; 
    height: auto; 
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.307));
    transform-origin: top;
    animation: slideFromTop 0.8s ease-out forwards;
    opacity: 0; /* começa invisível */
}

@keyframes slideFromTop {
    0% {
        transform: translateY(-50px); /* começa acima */
        opacity: 0;
    }
    100% {
        transform: translateY(0);     /* posição original */
        opacity: 1;
    }
}
.menu-navegacao{
    background-color: #dcdcdc;
    padding: .5rem 2rem;
}
.menu-navegacao a {
    position: relative;
    text-decoration: none;
    color: #33414c;
    margin-right: 1.5rem;  
    font-size: 1rem;
}

.menu-navegacao a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Ajusta conforme o espaçamento desejado */
    width: 0;
    height: 2px;
    background-color: #33414c;
    transition: width 0.3s ease;
}

.menu-navegacao a:hover::after {
    width: 100%;
}

.menu-navegacao a:hover {
    color: #17222a;
}

.menu-versao-mobile{
    display: none;
}
.animatable-image-tela {
    width: 50%;
    height: auto;
    animation: slideInImage 1.6s ease-out forwards; /* Animação da imagem */
    margin-top: 2rem;
}


@keyframes slideInImage {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.whatsapp {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%; /* Faz com que a borda seja circular */
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp img {
    width: 60px;
    transition: transform 0.3s ease;
}

.whatsapp img:hover {
    transform: scale(1.1);
}

/* Animação de borda piscante */
@keyframes borderBlink {
    0%, 100% {
        filter: drop-shadow(0px 0px 10px  rgba(255, 255, 255, 0.339));

    }
    50% {
        filter: drop-shadow(0px 0px 10px  rgb(255, 255, 255));
    }
}

/* Classe para aplicar a animação */
.blinking-border {
    animation: borderBlink 1s infinite;
}
/* SERVIÇOS BOX  */
.box-intro {
    padding-top: 1rem;
    padding-left: 6rem;
    animation: slideInFromLeft 1.2s ease-in-out forwards; /* Duração de 2 segundos, suavização com ease-in-out */
    
}
/* Animação para mover o elemento da esquerda para a direita */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-10%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.box-tela {
    width: 90%;
    max-width: 1500px; /* Define a largura máxima */
    padding: 2rem; /* Adiciona espaçamento interno */
}
.sec-serv{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sec-serv-div{
    width: 70%;
    height: auto;
    background: #242f38ce;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    padding-top: 8rem;
}
.box-intro h2 {
    font-size: 1.4rem; 
    color: white;
    text-align: left;
    margin-bottom: 1rem;

}

.box-intro p {
    color: rgb(222, 222, 222);
    font-size: 1rem; 
    text-align: left;
    width: 80%;
    z-index: 1;
}
/* GRID SERVIÇOS  */
.grid-container {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fit, 440px);
    justify-content: center;
    justify-items: center; 
    text-align: center;  
    align-items: center;
    padding: 3rem;
}
.grid-container  img {
    width: 100px;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.307));
}
.grid-container div{
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Define a sombra */
    background: #283f4bb4;
    height: 270px;
    display: grid;
    justify-content: center;
    justify-items: center; 
    text-align: center;  
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 10px;
}

.titulo {
    color: white;
    font-size: 1.4rem;
}
.grid-container p{
    color: #dcdcdc;
}

p {
    font-size: 0.9rem;
}
.espaco{
    height: 200px;
}


/* FOOTER  */
footer {
    color: white;
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    width: 100%;
    background-color: #171f2783;
    height: 100px;
    padding: 0 15rem 0 15rem;
}

footer div {
    display: flex;
    flex-direction: column;
}

footer h3 {
    margin-bottom: 2px;
}

footer h2 {
    font-size: 0.8rem;
}
footer h3 {
    font-size: .7rem;
    margin-bottom: .6rem;
}
footer .siganos{
    margin-bottom: .6rem;
}
.linkedin {
    width: 2rem;
    padding-top: .2rem;
}




/* ----------------------------------------------------------------------------------- */
/* Estilos específicos para dispositivos móveis */
@media only screen and (max-width: 850px) {
    body {
        background-color: rgb(51, 68, 83);
        background-image: url('img/sobrenosWallpaperMobile.png');
        background-size: auto;
        background-size: 100vh;
        background-repeat: no-repeat;
        background-position: top center;
    }
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    /* --------------------------------------------- */
    /* HEADER */
    /* --------------------------------------------- */

    header {
        background-color: #dcdcdc;
        display: flex;
        width: 100%;

        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 46%;
    }
    header div {
        width: 100%;
        display: block;
    }
    .animatable-image-tela{
        display: none;
    }
    .animatable-image {
        width: 100%;
        display: flex;
        height: auto;
        animation: slideInImage 1.6s ease-out forwards; /* Animação da imagem */
        margin-top: 3rem;
    }
    @keyframes slideInImage {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .servicos-grid img{
        display: none;
    }
    .menu-navegacao{
        display: none;
    }
    .menu-versao-mobile{
        display: inline-block;
    }
    .ephitex {
        width: 10rem; 
        background-color: #ffffff00;
        filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.307));
        height: 100px;
        object-fit: cover;
        transform-origin: center; /* Define o ponto de origem da transformação no centro */
        animation: growLogo 1s ease-out forwards; /* Animação do logo */
    }

    /* ----------------------------------------------- */
    /* Animação do logo Ephitex */
    /* ----------------------------------------------- */

    @keyframes growLogo {
        0% {
            transform: scale(0.1); /* Começa pequeno */
            opacity: 0; /* Invisível no início */
        }
        100% {
            transform: scale(1); /* Tamanho normal */
            opacity: 1; /* Totalmente visível no final */
        }
    }

    nav {
        display: flex;
        align-items: center;
    }

    .hamburguer-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 101;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: #33414c;
        margin: 3px 0;
        transition: transform 0.3s ease;
    }

    .menu-mobile {
        display: none;
        position: absolute;
        width: 50%;
        top: 33%;
        right: 0;
        background-color: #242f38;
        padding: 10px;
        border-radius: 5px;
        z-index: 100;
        margin-right: .5rem;
    }

    .menu-mobile a {
        font-size: 1.4rem;
        padding: .8rem;
    }

    .menu-mobile.active {
        display: block;
    }

    .menu-mobile ul {
        list-style-type: none;
    }

    .menu-mobile ul li {
        margin-bottom: 20px;
    }

    .menu-mobile ul li:first-child {
        margin-top: 20px;
    }

    .menu-mobile ul li a {
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .menu-mobile ul li a:hover {
        color: #adc265;
        border-radius: 5px;
    }

    /* ----------------------------------------------- */
    /* SERVIÇOS BOX  */
    /* ----------------------------------------------- */
    .sec-serv{
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .sec-serv-div{
        width: 100%;
        height: auto;
        background: #242f3895;
        justify-content: center; 
        align-items: center; 
        text-align: center;
        padding-top: 3rem;
    }

    .box-intro {
        padding: 1rem;
        margin-top: 2rem; 
        opacity: 0; 
        animation: fadeInUp 1s ease-out forwards;
        text-align: left;
        width: 100%;
    }
    .box-intro h2 {
        font-size: 1.8rem;
        color: white;
        margin-bottom: 1rem;
        text-align: left;
    }
    .box-intro p {
        color: rgb(222, 222, 222);
        text-align: left;
        font-size: 1rem;
        width: 95%;
    }

    /* Animação de fadeIn para a caixa de introdução */
    @keyframes fadeInUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* ------------------------------------------------- */
    /* GRID SERVIÇOS  */
    /* ------------------------------------------------- */
    .grid-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        justify-content: center; 
        align-items: center; 
        text-align: center;
        padding: 1.2rem;
    }
    .grid-container div {
        height: auto;
        padding: .2rem 1rem;

    }
    .grid-item {
        padding: 1rem;
        text-align: center;
        color: rgb(222, 222, 222);
        padding: 2rem;
    }
    .grid-container img {
        width: 100px;
        margin-top: 1rem;
        filter: drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.326));
    }
    .titulo {
        color: white;
        font-size: 1.3rem;
    }
    p {
        text-align: left;
        font-size: 1rem;
    }


    /* FOOTER  */
    footer {
        color: white;
        padding: 1.5rem;
        display: flex; /* Usar flex em vez de absolute */
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100px;
    }

    footer div {
        display: flex;
        flex-direction: column;
    }

    footer h2, footer h3 {
        margin-bottom: 5px;
    }

    footer h2 {
        font-size: 1.3rem;
    }

    .linkedin {
        width: 2.6rem;
        padding-top: .2rem;
    }
    
}
