/* Estilos globais */
* {
    font-size: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
}


main {
    flex: 1;
    padding: 20px;
}

body {
    background-color: #33414c;
    background-image: url('img/contatoWallpapeTela.png');
    background-size: 100vw;
    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 */
}

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;
}
header div {
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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; 
}

@keyframes slideFromTop {
    0% {
        transform: translateY(-50px); 
        opacity: 0;
    }
    100% {
        transform: translateY(0);  
        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 {
    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;
    }
}

/* SERVIÇOS BOX */
.box-intro {
    background: #33414ca7;
    justify-self: center; 
    align-items: center; 
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    height: 400px;
    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(-30%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CONTATO BOX (versão desktop) */
.contato {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
    padding: 3.5rem .5rem;
    justify-content: center;
    justify-items: center; 
    text-align: center;  
    align-items: center;
    background: #242f386b;
    border-radius: 10px;
    margin-left: 22%;
    margin-right: 22%;
}

.contato h2 {
    font-size: 1.2rem; 
    color: white;
    text-align: left;
    margin-bottom: 1rem;
}

.contato p {
    color: rgb(222, 222, 222);
    font-size: 1rem; 
    margin-bottom: 1.5rem; 
    text-align: left;
    width: 80%;
    z-index: 1;
}

/* GRID SERVIÇOS */
.titulo {
    color: white;
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.espaco {
    height: 150px;
}

/* CONTATO BOX (versão mobile) */
.mobileTela {
    display: none; /* Oculta por padrão em desktop */
}

/* BOTÃO DO WHATS */
.saibaMais {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center; 
    width: 100%;
    cursor: pointer;
    color: #242f38;
    margin-top: 1rem;
}
.saibaMais a {
    color: #242f38;
    text-decoration: none;
    font-size: 1rem;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    background: linear-gradient(to bottom, #acca52, #869e40);
    box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.182);
    transition: background-color 0.3s ease;
}
.saibaMais a:hover {
    background: linear-gradient(to bottom, #869e40, #4c5a24);
    color: #0f161b;
}

/* BOTÃO LINKEDIN  */
.saibaMais-linkedin {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center; 
    width: 100%;
    cursor: pointer;
    color: #242f38;
    margin-top: .6rem;
}
.saibaMais-linkedin a {
    color: #141c22;
    text-decoration: none;
    font-size: 1rem;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87c0ee, #6083a0);
    box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.182);
    transition: background-color 0.3s ease;
}
.saibaMais-linkedin a:hover {
    background: linear-gradient(to bottom, #405a70, #212d38);
    color: #0f161b;
}

/* FORMULÁRIO DE E-MAIL */
.box-email {
    background: #33414ca7;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.box-email h2 {
    color: white;
    margin-bottom: .8rem;
    font-size: 1.2rem;
    text-align: center;
}

.form {
    text-align: left;
}

.form label,
.form input,
.form textarea,
.form button {
    display: block;
    width: 100%;
    font-size: 1rem;
}

.form textarea {
    min-height: 5rem;
}

.form label {
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.form input,
.form textarea {
    padding: 0.4rem;
    width: 280px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color, box-shadow 0.2s;
}

.form input:hover,
.form input:focus,
.form textarea:hover,
.form textarea:focus {
    outline: none;
    border-color: #546323;
    box-shadow: 0 0 0 3px #7b922e;
}

.form button {
    display: block;
    padding: 1rem;
    width: 280px;
    background: linear-gradient(to bottom, #acca52, #869e40);
    box-shadow: 3px 3px 1px rgba(0, 0, 0, 0.182);
    color: #242f38;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.form button:hover,
.form button:focus {
    outline: none;
    background: linear-gradient(to bottom, #869e40, #4c5a24);
}

/* FOOTER */
footer {
    color: white;
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    width: 100%;
    position: fixed;
    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/contatoWallpaper.png');
        background-size: auto;
        background-size: 100vh;
        background-repeat: no-repeat;
        background-position: top center;
        background-attachment: fixed;
    }

    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 */
    .box-intro {
        padding: 1rem;
        margin-top: 2rem; /* Ajuste conforme necessário */
        height: auto; /* Ajuste a altura conforme necessário */
        background: #33414ca7;
        animation: fadeInUp 1s ease-out forwards; /* Animação de fadeIn */
        margin-bottom: 1rem;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .box-intro h2 {
        font-size: 1.1rem;
        color: white;
        margin-bottom: 1rem;
        text-align: center;
    }

    /* Animação de fadeIn para a caixa de introdução */
    @keyframes fadeInUp {
        from {
            transform: translateY(50px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* CONTATO BOX */
    .contato {
        display: none; /* Oculta na versão mobile */
    }

    .mobileTela {
        display: flex; /* Mostra na versão mobile */
        flex-direction: column;
        text-align: center;
        align-items: center;
        border-radius: 10px;
        margin-top: 1rem;
        margin: 1rem;
        width: 90%;
        gap: 1rem;
    }

    
    .mobileTela p {
        color: rgb(222, 222, 222);
        font-size: 1rem;
        text-align: left;
        padding: .8rem;
        z-index: 1;
    }

    .saibaMais a {
        color: #242f38;
        width: 250px;
        text-decoration: none;
        font-size: 1.1rem;
        transition: background-color 0.3s ease;
    }
    .saibaMais-linkedin a {
        color: #242f38;
        text-decoration: none;
        font-size: 1.1rem;
        width: 250px;
        transition: background-color 0.3s ease;
    }


    /* FORMULÁRIO DE E-MAIL */
    .box-email {
        background: #33414ca7;
        padding: 1rem .4rem;
        border-radius: 10px;
        height: auto;
        width: 100%;
    }

    .box-email h2 {
        color: white;
        margin-bottom: .8rem;
        font-size: 1rem;
    }

    .form {
        width: 92%;
        margin: auto;
        text-align: left;
    }

    .form label,
    .form input,
    .form textarea,
    .form button {
        display: block;
        width: 100%;
        font-size: .8rem;
    }

    .form label {
        color: #fff;
        line-height: 1;
        margin-bottom: 0.5rem;
    }

    .form input,
    .form textarea {
        padding: 0.8rem;
        margin-bottom: 1rem;
        border: 1px solid transparent;
        border-radius: 8px;
        transition: border-color, box-shadow 0.2s;
    }

    .form textarea {
        min-height: 13rem;
        resize: vertical;
    }

    .form input:hover,
    .form input:focus,
    .form textarea:hover,
    .form textarea:focus {
        outline: none;
        border-color: #546323;
        box-shadow: 0 0 0 3px #7b922e;
    }

    .form button {
        display: block;
        padding: 1rem;
        background: #adc265;
        color: #242f38;
        text-transform: uppercase;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.2s;
        font-size: 1rem;
    }

    .form button:hover,
    .form button:focus {
        outline: none;
        background: #7b922e;
    }

    .espaco {
        display: none;
    }

    /* FOOTER */
    footer {
        color: white;
        padding: 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        bottom: 0;
        width: 100%;
        height: 100px;
        position: relative;
    }

    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;
    }
}
