/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&display=swap');

/* Variáveis de cor e fontes */
:root {
    --C01: #007acc;
    --C02: #11174D;
    --C03: #0B0F3F;
    --C04: #060830;
    --C05: #00001F;
    --PRETO: #000000;
    --BRANCO: #FFFFFF;

    --F01: 'Roboto', Courier, monospace;
    --F02: 'Open Sans', Courier, monospace;
    --F03: 'Montserrat', Courier, monospace; 
}

/* Estilos gerais */
body {
    font-family: var(--F01);
    color: var(--BRANCO);
    background-color: var(--C05);
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
    position: relative; /* Para evitar sobreposição */
  z-index: 0;
}

html {
    width: 100%;
}

h1 {
    font-family: var(--F01);
}

p {
    font-family: var(--F02);
}

span {
    color: var(--C01);
    font-weight: bold;
}

.header {
    background: url('../images/fundo-header.png') no-repeat center center;
    background-size: contain;
    background-position: top right;
    width: 96%;
    text-align: left;
    color: white;

}

.header-image {
    margin-right: 5%;
}

.header-content {
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 5%;
}

.header-info {
    max-width: 50%;
}

.header-info > h1 {
    color: var(--BRANCO);
}

header > a {
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
}

a > img {
    max-width: 50px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 40px;
    margin-right: 10px;
}

.hero {
    max-width: 90%;
    text-align: center;
    margin-top: 20px;
}

.texto-hero {
    max-width: 100%;
}

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: start;
    gap: 20px;
    padding: 20px;
    
}

.curriculo {
    flex: 1 1 100%;
    max-width: 600px;
    text-align: start;
}

.av-habilidade > img {
    width: 15px;
    height: 15px;
    margin: 0 2px;
}

ul.habilidades {
    padding: 0;
  }


  .habilidades > li > span {
    color: var(--BRANCO);

  }

  .habilidade-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; /* controla o espaçamento vertical entre os filhos */
    padding: 8px 0;
    list-style: none;
    cursor: pointer;
  }
  
  .habilidade-item > span {
    color: var(--BRANCO);
    line-height: 1.4; /* dá mais "respiro" entre linhas */
  }

  .descricao-popup {
    background-color: var(--C02);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 8px;
    display: none; /* escondido por padrão */
  }

  .descricao-popup::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent;
  }

  .descricao-popup.active {
    display: block;
  }

.curriculo > ul > li {
    list-style: none;
    font-size: 1.1em;
    display: flex;
}

.curriculo > ul {
    padding: 0;

}

hr {
    width: 100%;
    display: none; /* Esconde o <hr> por padrão */

}

.icone {
    display: flex;   
}

.icone > img {
     max-width: 40px;
     max-height: 40px;
     margin-right: 30px;
     margin-top: 3%;  

}

.curriculo > h1 {
    height: 10%;
}
  

.team {
    background-image: url('../images/fundo.png');
    background-size: cover;
    text-align: start;
    padding: 20px;
    padding-bottom: 10%;
}

.portifolio {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; 
}

.img-sites {
    text-align: center;
    margin-top: 5%;
    margin-bottom: 100px;
}

.img-sites img {
    width: 450px;
    height: 270px;
    border-radius: 5px;
    margin: 0 1%;
    margin-bottom: 50px;
}

.img-sites #logo-projeto {
    margin-top: 70px;
    height: 500px;
}

.img-sites > a {
    color: var(--C01);
    padding: 20px 100px;
    border-radius: 10px;
    color: var(--C04);
    text-decoration: none;
    text-align: center;
    background-color: rgb(232, 244, 255);

}

.projeto {
    padding: 0; /* Remove o padding que estava atrapalhando */
    width: calc(50% - 20px); /* Garante que dois itens fiquem na mesma linha */
    max-width: 35%; /* Permite melhor adaptação */
    flex: 1 1 calc(50% - 20px); /* Ajusta o tamanho dos itens */
    box-sizing: border-box; /* Evita que o padding/margin aumente o tamanho */

}

.img-sites > p {
    text-align: start;
    margin-bottom: 80px;
}

.img-sites > h2 {
    text-align: start;
}

.tecnologias {
    width: 50%;
    text-align: center;
}

.tecnologias-portifolio {
    text-align: center;
    max-width: 100%;
}

.contato {
    background-image: url("../images/fundo-contato-mobile.png");
    background-size: cover;
    color: #fff;
    padding: 150px 20px;
    text-align: start;
    position: relative;
    z-index: 0;
    margin-bottom: 10%;
    width: 100%;
}

.container-contato {
    width: 100%;
    margin: 0 auto;
}

.info-contato {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    align-items: start;
    width: 94%;
}

.contato-item {
    display: inline-flex;
    text-align: start;
    gap: 12px;
    width: 100%;
    padding: 20px;
    margin: 8px 0;
    background-color: var(--C04); /* #060830 */
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: background 0.3s;
    text-decoration: none;
}

.contato-item > h2 > a{
    color:var(--BRANCO);
    text-decoration: none;
    font-weight: bold;
}

.container-contato > h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-left: 5%;
}

.container-contato > p {
    font-size: 18px;
    margin-bottom: 32px;
    font-family: var(--F02);
    margin-left: 5%;
}

.icone-contato {

    padding: 8px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#qr {
    width: 60%;
    margin-top: 50px;
    border-radius: 10px;
}

.language-switcher {
    position: fixed;
    bottom: 50px;
    left: 30px;
    z-index: 1000;
    width: 100px;
    height: 100px;
}

#toggle-language {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

#button-switch {
    max-width: 100px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#toggle-language.active #button-switch {
    opacity: 1;
}

.language-options {
    position: relative;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-60px, -150px); /* Mantido fixo */
    pointer-events: none;
}

.language-options.show {
    pointer-events: auto;
}

.language-options img {
    width: 42px;
    height: 42px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    opacity: 0;
    /* Posição "fechada" = no centro */
    transform: rotate(0deg) translate(0, 0) rotate(0deg);
    transition: transform 0.6s ease, opacity 0.6s ease;
    object-fit: cover;
    image-rendering: auto;
    pointer-events: auto;
}

/* Abertura com posição em arco */
.language-options.show img:nth-child(1) {
    transform: rotate(120deg) translate(-20px, 60px) rotate(-120deg);
    opacity: 1;
}
.language-options.show img:nth-child(2) {
    transform: rotate(0deg) translate(10px, -50px) rotate(0deg);
    opacity: 1;
}
.language-options.show img:nth-child(3) {
    transform: rotate(60deg) translate(10px, -50px) rotate(-60deg);
    opacity: 1;
}


.language-options.show {
    transform: translate(-60px, -150px); /* Ajuste esse valor pra subir */
}


.footer {
    background-color: #0b0d28;
    color: #fff;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
  }

  .footer-column > h1 {
    display: flex;
    align-items: center;
    font-size: 1em;
  }

  .footer-column > h1 > img {
    width: 30px;
    margin-right: 10px;
  }

  .footer-column > h1 > span {
    color: var(--BRANCO);
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
  }
  
  .footer-column {
    flex: 1 1 200px;
    min-width: 200px;
    text-align: start;
  }
  
  .footer-column h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column li {
    margin-bottom: 8px;
  }

  #opc-contato-footer {
    display: flex;
    align-items: center;
  }

  #opc-contato-footer > img {
    width: 20px;
    margin-right: 20px;
  }
  
  .footer-column a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
  }
  
  .footer-column a:hover {
    color: #fff;
  }
  
  .brand .logo {
    max-width: 120px;
    margin-bottom: 10px;
  }

  .social-icons {
    margin-top: 100px;
    text-align: end;

  }
  
  .social-icons a {
    display: inline-block;
    margin-right: 10px;
  }
  
  .social-icons img {
    width: 20px;
  }
  
  .footer-bottom {
    border-top: 1px solid #2a2d50;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  .footer-bottom span {
    align-self: flex-end;
    color: var(--BRANCO);
  }

  



/* Responsividade */
@media (max-width: 768px) {
    * {
        font-size: 1em;
    }

    h1 {
        font-size: 1.5em;
    }
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    header {
        height: auto;
        padding: 20px;
        text-align: center;
    }

    .header-info {
        max-width: 90%;
    }

    .header-image{
        width: 100%;
        text-align: center;
    }

    a > h1 {
        font-size: 1em;
    }

    a > img {
        max-width: 30px;
        margin-right: 10px;
    }
    
    .logo img {
        max-width: 30px;
    }
    
    .texto-hero h1 {
        font-size: 1.5em;
    }
    
    .texto-hero p {
        font-size: 1em;
    }
    
    .services {
        flex-direction: column;
        align-items: start;
    }
    
    .curriculo {
        max-width: 100%;
    }

    hr {
        width: 100%;
        display: block; /* Esconde o <hr> por padrão */
    
    }
    
    .team {
        background-size: cover;
        background-position: left;
        padding: 10px;
        padding-top: 30%;
        padding-bottom: 30%;
        position: relative;
        top: 80px;
        background-image: url("../images/fundo-mobile.png");
        background-position: center;
        
    }

    .portifolio {
        display: inline;
        width: 100%;
        gap: 0;
    }



    .projeto {
        min-width: 100%;
    }
    
    

    .tecnologias {  
        text-align: center;
        margin-top: 10%;
        width: 100%;
        text-align: center;
    }

    #icone-tecnologias-portifolio > img {
        width: 100px;
    }
    
    .img-sites img {
        background-color: #FFFFFF;
        width: 90%;
        height: 26vh;
        
    }

    .img-sites  {
        width: 100%;
        text-align: center;
    }

    .container-contato > h1, .container-contato > p {
        text-align: center;
        margin-right: 15%;
    }

    .contato-item {
        width: 90%;
        text-align: start;
    }

    #button-switch {
        max-width: 90px;
        opacity: 60%;
    }

    #button-switch.active {
        opacity: 100%;
    }
    
    .footer-container {
        flex-direction: row;
        gap: 30px;
      }
    
      .footer-bottom {
        align-items: center;
        text-align: center;
      }
    
      .footer-bottom span {
        align-self: center;
      }

      #opc-contato-footer > img {
        width: 20px;
        margin-right: 5px;
      }

      .social-icons {
        margin-top: 100px;
        text-align: end;

      }
}
