* {
    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;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* evita rolagem */
}
body {
    background-color: #33414c;
    background-image: url('img/indexWallpapeTela.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    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 */
}
.animatable-image {
    display: none;
}
.texto-mobile{
    display: none;
}
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;
    top: 0;
}
header div {
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Classe para aplicar a animação */
.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); 
        opacity: 0;
    }
    100% {
        transform: translateY(0);    
        opacity: 1;
    }
}
.whatsapp { 
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%; 
    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;
}

/* Animação do logo Ephitex */
@keyframes growLogo {
    0% {
        transform: scale(0.1); 
        opacity: 0; 
    }
    100% {
        transform: scale(1);
        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;
    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;
    }
}

.introducao-sol{
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left:8rem;
    margin-top: 1rem;
}
/* Estilos para a seção de serviços */
.titulos-engre{
    display: flex;
    flex-direction: column;
    align-items: end;
}
.titulo-engre{
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgb(30, 38, 45);
}
.subtitulo-engre {
    font-size: 1.5rem;
    color: #bad57a;
    text-shadow: 2px 2px 6px rgb(30, 38, 45);
    position: relative;
    right: -10px;
}
.engrenagem {
    width: 120px; 
    animation: giraEngrenagem 2s ease-in-out;
    filter: drop-shadow(2px 2px 3px rgb(30, 38, 45));
}

@keyframes giraEngrenagem {
    0% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(90deg);
    }
    60% {
        transform: rotate(-45deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


.box-intro {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 78.6%;
    height: 10rem;
    background: linear-gradient(to bottom, #33414cea, rgba(70, 86, 99, 0.575)); 
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Estilo para a grade dos serviços */
.box-tela {
    display: flex;
    flex-direction: row;  
    justify-content: center;
    align-items: center;
    width: 85%;
}

/* Estilos para o texto */
.box-tela h2 {
    font-size: 1.5rem;
    color: white;
    text-align: left;
    margin-bottom: .3rem;
}

.box-tela p {
    color: rgb(222, 222, 222);
    font-size: 1.2rem;
    width: 80%;
    text-align: left;
    z-index: 5; 
}

.saibaMais {
    background: linear-gradient(to bottom, #acca52, #869e40);
    box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.182);
    padding: 0.70rem 1.4rem;
    cursor: pointer;
    border-radius: 10px;
    color: #242f38;
    text-decoration: none;
    width: 200px;
    margin-top: .5rem;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease;
    text-align: center;
}

.saibaMais:hover {
    background: linear-gradient(to bottom, #869e40, #4c5a24);
    color: #0d161e;
}


/* 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;
}


/* ------------------------------------------------------------------------------- */
/*                                      MOBILE                                     */
/*s                  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/indexWallpaper.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 */
    }

    
    /* Estilos para a introdução */

    .introducao-sol{
        display: flex;
        flex-direction: column;
        width: 74%;
        align-items: flex-start;
        justify-content: start;
        text-align: start;
        margin-top: .8rem;
        gap: .5rem;
        margin-left: 1rem;
    }
    .titulo-engre{
        font-size: 2.5rem;
        color: #ffffff;
        text-align: start;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    }
    .subtitulo-engre {
        font-size: 1.4rem;
        color: #bad57a;
        padding: 0;
        text-shadow: 2px 2px 6px rgb(30, 38, 45);
    }
    .engrenagem {
        width: 5rem; 
        animation: giraEngrenagem 2s ease-in-out;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    }

    /* 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;
        width: 20px;
    }

    .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  */
    /* ----------------------------------------- */

    .box-intro{
        padding: .1rem;
        width: 100%;
        height: 12rem;
        position: absolute;
        bottom: 0;
        background: linear-gradient(to bottom, #33414ce9, rgba(70, 86, 99, 0.289)); /* Degradê de cima para baixo */
        opacity: 0; 
        animation: fadeInUp 1s ease-out forwards; /* Animação de fadeIn */

    }
    
    /* SERVIÇOS */
    .box-tela {
        width: 100%;
        padding: 1rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .box-tela h2 {
        font-size: 2rem;
        color: white;
        text-align: left;
        margin-bottom: .5rem;
    }

    .box-tela p {
        color: rgb(222, 222, 222);
        font-size: 1.3rem;
        width: 100%;
        text-align: left;
        z-index: 5; 
        text-shadow: 3px 3px 3px  #0000003a;
    }
    .servicos-grid h2 {
        font-size: 1.4rem;
        color: white;
        margin-bottom: 1rem;
        text-align: left;
    }
    .servicos-grid p {
        color: rgb(222, 222, 222);
        text-align: left;
        font-size: 1rem;
    }
    .texto-tela{
        display: none;
    }
    .servicos-tela img{
        display: none;
    }
    .texto-mobile{
        display: flex;
    }

    /* Animação de fadeIn para a caixa de introdução */
    @keyframes fadeInUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .titulo{
        color: white;
        font-size: 1.5rem;
    }
    p{
        text-align: center;
        margin-bottom: 1rem;
        font-size: .8rem;

    }

    .saibaMais {
        background-color: #adc265;
        font-size: 1rem;
        padding: 0;
        padding: 0.75rem .5rem;
        cursor: pointer;
        border-radius: 10px;
        color: #242f38;
        text-decoration: none;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.252);
        margin-top: .1rem;
        font-weight: 700;
        display: inline-block;
        transition: background-color 0.3s ease;
    }
    
    .saibaMais:hover {
        background-color: #839740;
        color: #161c21;
    }


    /* --------------------------------------------- */
    /* whatsapp */
    /* --------------------------------------------- */
    .whatsapp { 
    position: fixed;
    right: 1rem;
    top: 20rem;
    z-index: 1000;
    padding: 10px;
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    }

    .whatsapp img {
        width: 60px;
        transition: transform 0.3s ease;
    }

    .whatsapp img:hover {
        transform: scale(1.1);
    }

    /* --------------------------------------------- */
    /* 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;
    }
    
}
