@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
}

body, html {
    overflow-x: hidden;
    width: 100%;
}

main {
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

/* HEADER STYLES */
header {
    width: 100%;
    padding: 15px 0;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* LOGO STYLES */
.logo {
    height: 16vh;
    max-height: 100px;
    transition: all 0.3s ease;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* NAVIGATION MENU */
.menu-nav {
    transition: all 0.3s ease;
}

.menu-nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.menu-nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 1.2rem;
    border-top: 3px solid transparent;
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: block;
}

.menu-nav ul li a:hover {
    border-color: #4f9cf9;
    color: #4f9cf9;
}

/* LOGIN BUTTON */
.login {
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.3s ease;
    z-index: 101;
}

.login-btn {
    padding: 6px 12px;
    background-color: transparent;
    color: #333;
    border: none;
    border-bottom: 1px solid #4f9cf9;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #cbcbcb;
    border-radius: 8px;
}

/* CONTACT BUTTON */
.btn-contato button {
    width: 130px;
    height: 50px;
    border: 0;
    background-color: #4f9cf9;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-contato button:hover {
    background-color: #3580db;
    transform: translateY(-2px);
}

/* HEADER ON SCROLL */
header.rolagem {
    background-color: #4f9cf9;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.rolagem .login {
    opacity: 0;
    pointer-events: none;
}

header.rolagem a, 
header.rolagem i {
    color: #fff;
}

header.rolagem ul li a:hover {
    border-color: #fff;
    color: #fff;
}

header.rolagem .logo {
    height: 8vh;
    max-height: 60px;
}

header.rolagem .btn-contato button {
    background-color: #ff9800;
}

header.rolagem .btn-contato button:hover {
    background-color: #e08800;
}

/* MENU MOBILE */
.menu-mobile {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 102;
}

.menu-mobile span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #4f9cf9;
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 3px;
}

header.rolagem .menu-mobile span {
    background-color: #fff;
}

.menu-mobile.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-mobile.active span:nth-child(2) {
    opacity: 0;
}

.menu-mobile.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Elementos para o menu mobile */
.login-mobile, .btn-contato-mobile {
    display: none;
}

/* BANNER SECTIONS */
.banner {
    min-height: 100vh;
    width: 100%;
    padding: 120px 0 50px;
    background-image: url(../imagens/fundo.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* HOME BANNER */
#home {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.slogan {
    width: 60%;
    max-width: 600px;
    font-size: 3rem;
    animation: slogan 1s ease-in-out forwards;
}

@keyframes slogan {
    0% {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.slogan h3, .slogan p {
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.slogan h1 span {
    color: #4f9cf9;
    font-weight: 800;
}

.img-banner {
    width: 30%;
    max-width: 350px;
    animation: img-banner 1s ease-in-out forwards;
}

@keyframes img-banner {
    0% {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.img-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* SOCIAL MEDIA */
.social {
    position: fixed;
    top: 40%;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: end;
    z-index: 90;
}

.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 40px;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social a:hover {
    width: 60px;
}

/* TRAJETORIA SECTION */
.sobre {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 0 auto;
}

.texto_sobre {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.texto_sobre p {
    margin-bottom: 1rem;
}

.texto_sobre p span {
    color: #4f9cf9;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.foto_sobre {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto_sobre img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* PORTFOLIO SECTION */
#portfolio {
    flex-direction: column;
    padding: 120px 20px 50px;
}

.titulo-port {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.titulo-port span {
    font-size: 1.8rem;
    color: #4f9cf9;
    font-weight: 700;
}
/* GALLERY */
/* GALLERY */
.galeria-wrap {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
}

.galeria {
    width: 85%;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 auto;
}

/* Ajuste do slider */
.galeria-slider {
    display: flex;
    
    align-items: center;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
}

/* Ajuste dos itens individuais da galeria - Desktop */
.galeria-item {
    flex: 0 0 33.3%; /* 4 imagens por vez (100% ÷ 4) */
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
}

.galeria-item img{
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.galeria div img:hover{
    cursor: pointer;
    transform: scale(1.1);
}

/* Ajuste das setas de navegação */
.btnGaleria {
    cursor: pointer;
    color: #4f9cf9;
    font-size: 1.7rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    transition: all 0.3s ease;
    z-index: 20; /* Garantir que fique acima das redes sociais */
    position: absolute;
}
.btnGaleria {
    cursor: pointer;
    color: #4f9cf9;
    font-size: 1.7rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    transition: all 0.3s ease;
    z-index: 10; /* Garante que os botões fiquem acima */
    
}

/* Botão esquerdo */
.btnGaleria:first-child {
    left: 3vw; /* Posição à esquerda */
}

/* Botão direito */
.btnGaleria:last-child {
    right: 3vw; /* Posição à direita */
}

.btnGaleria:hover {
    transform: scale(1.2);
}

/* LANGUAGES SECTION */
.lang {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lang h5 {
    font-size: 1.3rem;
    color: #333;
}

.lang-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.icon {
    width: 50px;
    height: auto;
    transition: all 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
    filter: brightness(0) saturate(100%) invert(45%) sepia(95%) saturate(1432%) hue-rotate(191deg) brightness(101%) contrast(101%);
}

/* CONTACT SECTION */
.container-contato {
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "titulo-contato titulo-contato"
        "form-contato infos-contato";
    gap: 20px;
}

.titulo-contato {
    grid-area: titulo-contato;
    text-align: center;
    margin-bottom: 20px;
}

.titulo-contato p {
    color: #3580db;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.titulo-contato h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.titulo-contato h2 {
    color: #ff9800;
    font-size: 1.8rem;
    font-weight: 700;
}

.form-contato {
    grid-area: form-contato;
}

.formulario {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.campo-form {
    width: 48%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #eee;
    font-size: 1rem;
    transition: border 0.3s;
}

.campo-form:focus {
    border-color: #ff9800;
    outline: none;
}

.mensagem-form {
    width: 100%;
    min-height: 150px;
    resize: none;
}

.btn-form {
    background-color: #ff9800;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-bottom: 2px solid #4f9cf9;
    border-radius: 25px;
    width: 200px;
    margin: 15px auto;
    display: block;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-form:hover {
    background-color: #4f9cf9;
    transform: translateY(-3px);
}

.infos-contato {
    grid-area: infos-contato;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    border: 2px solid #4f9cf9;
    border-radius: 10px;
    padding: 20px;
}

.infos-contato a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.infos-contato a:hover {
    transform: translateY(-5px);
}

.infos-contato i {
    font-size: 2rem;
    color: #4f9cf9;
}

.infos-contato p {
    text-align: center;
    font-size: 0.9rem;
}

/* FOOTER */
footer {
    background-color: #4f9cf9;
    padding: 20px 0;
    text-align: center;
    color: #fff;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 992px) {
    .slogan {
        font-size: 2.5rem;
        width: 65%;
    }
    
    .sobre {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .texto_sobre p span {
        font-size: 2.2rem;
    }

    .galeria-item {
        flex: 0 0 50%; /* Mostra 2 imagens por vez */
    }
    
    .container-contato {
        grid-template-columns: 2fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    /* HEADER MOBILE */
    .menu-mobile {
        display: block;
        position: absolute;
        right: 0;
        top: 10px;
    }
    
    .flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 10px;
        align-self: center;
    }
    
    .menu-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        z-index: 101;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.4s ease;
        display: flex;
        flex-direction: column;
    }
    
    .menu-nav.active {
        right: 0;
    }
    
    .menu-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .menu-nav ul li {
        width: 100%;
        margin: 0;
    }
    
    .menu-nav ul li a {
        padding: 15px 10px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    /* Botões no menu mobile */
    .btn-contato {
        display: none; /* Esconde o botão original no mobile */
    }
    
    .login {
        display: none; /* Esconde o botão original no mobile */
    }
    
    .login-mobile {
        display: block;
        width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    
    .login-mobile .login-btn {
        width: 100%;
        padding: 12px 15px;
        background-color: transparent;
        color: #333;
        border: none;
        border-bottom: 1px solid #4f9cf9;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        border-radius: 4px;
    }
    
    .login-mobile .login-btn:hover {
        background-color: #f0f0f0;
    }
    
    .btn-contato-mobile {
        display: block;
        width: 100%;
        margin: 15px 0;
        padding: 0 15px;
    }
    
    .btn-contato-mobile button {
        width: 100%;
        height: 50px;
        border: 0;
        background-color: #4f9cf9;
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 8px;
        font-size: 1.1rem;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(79, 156, 249, 0.3);
    }
    
    .btn-contato-mobile button:hover {
        background-color: #3580db;
        transform: translateY(-2px);
    }
    
    /* Ajuste para o menu quando estiver em rolagem */
    header.rolagem .menu-nav .login-mobile,
    header.rolagem .menu-nav .btn-contato-mobile {
        opacity: 1;
        pointer-events: auto;
    }
    
    header.rolagem .btn-contato-mobile button {
        background-color: #ff9800;
    }
    
    header.rolagem .btn-contato-mobile button:hover {
        background-color: #e08800;
    }
    
    /* Melhorando a estrutura do menu mobile */
    .menu-nav ul {
        margin-bottom: 15px;
    }
    
    .menu-nav ul li:last-child {
        margin-bottom: 10px;
    }

    /* HOME SECTION */
    .slogan {
        width: 90%;
        font-size: 2rem;
        text-align: center;
    }
    
    .img-banner {
        width: 70%;
    }
    
    /* SOCIAL */
    .social {
        flex-direction: row;
        top: unset;
        bottom: 20px;
        right: 10px;
    }
    
    .social a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .social a:hover {
        width: 40px;
    }
    
    /* TRAJETORIA */
    .sobre {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
    }
    
    .foto_sobre {
        order: -1;
    }
    
    .foto_sobre img {
        max-width: 80%;
    }

    .galeria {
        height: 300px;
    }
    
    /* Ajuste de padding para dar mais espaço à imagem */
    .galeria-item {
        padding: 5px;
        flex: 0 0 100%; /* Mostra 2 imagens por vez */
        align-items: center;
        justify-content: center;
    }
    .btnGaleria {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 30;
        background-color: rgba(255, 255, 255, 0.7); /* Fundo semi-transparente */
        border-radius: 50%;
        width: 35px;
        height: 35px;
    }
    
    /* Seta esquerda */
    .btnGaleria:first-child {
        left: 5px; /* Posicionada próxima à borda esquerda */
    }

    
    /* CONTACT */
    .container-contato {
        grid-template-columns: 1fr;
        grid-template-areas:
            "titulo-contato"
            "form-contato"
            "infos-contato";
    }
    
    .infos-contato {
        flex-direction: row;
        justify-content: space-around;
        padding: 15px;
    }
}

@media screen and (max-width: 576px) {
    .logo {
        height: 12vh;
    }
    
    header.rolagem .logo {
        height: 8vh;
    }
    
    .slogan {
        font-size: 1.6rem;
    }
    
    .slogan h1 span {
        font-size: 1.8rem;
    }
    
    .img-banner {
        width: 90%;
    }
    
    .texto_sobre {
        padding: 15px;
    }
    
    .texto_sobre p span {
        font-size: 1.8rem;
    }
    
    .titulo-port span {
        font-size: 1.5rem;
    }
    
    .galeria {
        height: 280px;
        width: 90%;
    }

    .galeria-wrap {
        width: 95%;
    }
    .galeria-item {
        padding: 5px;
        flex: 0 0 100%; /* Mostra 2 imagens por vez */
        align-items: center;
        justify-content: center;
        
    }
    
    .btnGaleria {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .campo-form {
        width: 100%;
    }
    
    .btn-form {
        width: 100%;
    }
    
    .infos-contato {
        flex-direction: column;
        gap: 20px;
    }
    
    .titulo-contato h3 {
        font-size: 1.1rem;
    }
    
    .titulo-contato h2 {
        font-size: 1.4rem;
    }
}

/* Telas muito pequenas */
@media screen and (max-width: 400px) {
    .slogan {
        font-size: 1.4rem;
    }
    
    .lang-icons {
        gap: 20px;
    }
    
    .icon {
        width: 40px;
    }

    .galeria {
        height: 250px;
        width: 95%;
        flex: 0 0 100%; /* Mostra 2 imagens por vez */
        align-items: center;
        justify-content: center;
    }
    .galeria-item img {
        max-width: 95%;
        max-height: 95%;
    }
    .btnGaleria {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}