
body {
    margin: 0;
    font-family: 'Alegreya Sans SC', sans-serif;
    background-color: #111;
    color: #00CEFC;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
main {
  height: 100%;
  --s: 37px; /* control the size */

  --c: #0000, #282828 0.5deg 119.5deg, #0000 120deg;
  --g1: conic-gradient(from 60deg at 56.25% calc(425% / 6), var(--c));
  --g2: conic-gradient(from 180deg at 43.75% calc(425% / 6), var(--c));
  --g3: conic-gradient(from -60deg at 50% calc(175% / 12), var(--c));
  background: var(--g1), var(--g1) var(--s) calc(1.73 * var(--s)), var(--g2),
    var(--g2) var(--s) calc(1.73 * var(--s)), var(--g3) var(--s) 0,
    var(--g3) 0 calc(1.73 * var(--s)) #1e1e1e;
  background-size: calc(2 * var(--s)) calc(3.46 * var(--s));
}

label, span, .coluna-direita li, .coluna-direita p, .popup {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

form, input, label{
  margin-left: auto;
  margin-right: auto;
  display: grid;
  justify-items: center;
}

header, footer {
    background-color: black;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    flex-wrap: wrap;
}

.logo {
    width: 50px;
    height: 50px;
}

.nome {
    font-size: 1.5rem;
    margin-left: 10px;
    margin-top: auto;
    margin-bottom: auto;
}

.redes-contato {
  display: flex;
  flex-direction: column;
  margin-left: 10%;
}

.redes-contato a {
    color: #15FC00;
    text-decoration: none;
    margin: 0.5rem 0;
}

div.logo-nome {
    display: flex;
    justify-items: center;
    margin-top: auto;
    margin-bottom: auto;
    align-items: center;
}
.nav {
    display: none;
    flex-direction: column;
}

.nav a {
    color: #00CEFC;
    text-decoration: none;
    margin: 0.5rem 0;
}

.btn-curriculo {
    background-color: #00CEFC;
    color: black;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
}

.sobre-mim {
  padding: 40px;
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #111;
}

.nome {
  color: #15FC00;
  font-size: 2em;
  text-align: center;
}

.conteudo {
  display: flex;
  gap: 90px;
  margin-inline: 200px;
  justify-content: center;
}

.coluna-esquerda {
  margin-top: auto;
  margin-bottom: auto;
}

.hexagono {
  display: inline-block;
  position: relative;
  width: 400px;
  height: 410px;
  background: #15FC00;
  box-sizing: border-box;
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hexagono img {
  position: absolute;
  top: 9px; /* equal to border thickness */
  left: 6.5px; /* equal to border thickness */
  width: 388px; /* container height - (border thickness * 2) */
  height: 392px; /* container height - (border thickness * 2) */
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.icone {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.icone i {
    font-size: 60px;
    transition: transform 0.3s, filter 0.3s;
}

.nome-icone {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    color: #15FC00;
    font-weight: bold;
    font-size: 1em;
    margin-top: 8px;
    z-index: 2;
}

.icone:hover .nome-icone {
    opacity: 1;
    transform: translateY(0);
}

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

.estrelas {
    display: block;
    color: #FF0000;
    font-size: 1.2em;
    margin-top: 2px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s;
}

.icone:hover .estrelas {
    opacity: 1;
}

/* .coluna-direita {
  flex: 2;
} */

.subtitulo {
  color: #15FC00;
  margin-top: 20px;
  margin-bottom: 10px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 15px;
}

span {
  margin-left: 5px;
}

/*Carrocel*/

.carrossel-container {
  overflow: hidden;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  position: relative;
}

.carrossel {
  display: flex;
  animation: deslizar 30s linear infinite;
}

.card {
  min-width: 250px;
  max-width: 250px;
  margin: 0 10px;
  background-color: black;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.card p {
  padding: 10px;
  color: #fff;
}

.card:hover {
  transform: scale(1.05);
}

@keyframes deslizar {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1500px); } /* Ajuste se necessário */
}

/* Pop-up */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.popup-conteudo {
  background: #111;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  text-align: center;
  border: 3px solid #15FC00;
  margin-top: 1%;
  max-height: 80vh;      /* Limita a altura máxima */
  overflow-y: auto;      /* Adiciona barra de rolagem vertical */
}

.popup img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.popup p {
  color: #fff;
  font-size: 1.05em;
  line-height: 1.8;
}

.fechar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2.5em;
  color: #FF0000;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  z-index: 1101;
  cursor: pointer;
  border: 2px solid #FF0000;
}

/*Conhecimentos*/

#conhecimentos {
  padding: 40px 20px;
}

.icones-conhecimentos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.icone i {
  font-size: 60px;
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

.icone:hover i {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.white-icon {
  color: white;
}

/* Scrollbar minimalista e combinando com o fundo */
::-webkit-scrollbar {
    width: 8px;
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #FF0000;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF0000;
}

::-webkit-scrollbar-corner {
    background: #111;
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #FF0000 #111;
}

@media (max-width: 1023px) {
  .conteudo {
    display: flex;
    flex-direction: column;
  }
  .coluna-esquerda {
    margin: auto;
  }
}
@media (min-width: 768px) {
    .nav {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
    .menu-toggle {
        display: none;
    }
    .icones-conhecimentos {
    grid-template-columns: repeat(3, 1fr);
    }
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
}
/* --- MOBILE FIRST --- */
@media (max-width: 767px) {
  main {
    padding: 1rem;
    background: var(--g1), var(--g1) var(--s) calc(1.73 * var(--s)), var(--g2),
      var(--g2) var(--s) calc(1.73 * var(--s)), var(--g3) var(--s) 0,
      var(--g3) 0 calc(1.73 * var(--s)) #1e1e1e;
    background-size: calc(2 * var(--s)) calc(3.46 * var(--s));
  }

  body {
    padding-top: 80px; /* ajuste conforme a altura do seu header */
  }

  .conteudo {
    flex-direction: column;
    gap: 30px;
    margin-inline: 0;
    align-items: center;
  }

  .hexagono {
    width: 220px;
    height: 225px;
  }
  .hexagono img {
    width: 210px;
    height: 210px;
    left: 5px;
    top: 5px;
  }

  .coluna-direita {
    width: 100%;
    padding: 0 10px;
  }

  .icones-conhecimentos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .redes-contato {
    margin-left: 0;
    align-items: flex-start;
  }

  .redes-contato a {
    font-size: 1.1em;
    align-items: center;
    display: flex;
    gap: 8px;
  }

  /* Menu sanduíche */
  .menu-toggle {
    display: block;
    z-index: 1100;
  }
  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background: #111;
    width: 70vw;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    box-shadow: -2px 0 10px #000a;
    z-index: 1050;
    transition: transform 0.3s;
    transform: translateX(100%);
  }
  .nav.open {
    display: flex;
    transform: translateX(0);
  }
  .nav a {
    color: #15FC00;
    font-size: 1.3em;
    margin: 1rem 0;
    width: 100%;
  }
  .container {
    flex-wrap: nowrap;
  }
}

/* Corrige o background para mobile */
@media (max-width: 767px) {
  main {
    --s: 24px;
  }
}
@media (max-width: 480px) {
  .icones-conhecimentos {
    grid-template-columns: repeat(2, 1fr);
  }
}


main {
    padding: 2rem;
}

#contato label {
    display: block;
    margin-top: 1rem;
    color: #15FC00;
}

#contato input,
#contato textarea {
    width: 80%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background-color: #222;
    color: white;
    /*border: 1px solid #00CEFC;*/
}
#contato input, textarea{
  background-color: transparent;
  border-radius: 10px;
  box-shadow: 3px 3px 10px #15FC0079,
  -1px -1px 6px #15fc0079;
}
#contato button {
    margin-top: 1rem;
    background-color: #FF0000;
    color: black;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 1rem;
}

input::placeholder,
textarea::placeholder {
    background: #00CEFC;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1em;
}