/* =================================
   1. RESET GLOBAL E VARIÁVEIS
   ================================= */
:root {
  --primary-color: #00ff99;
  --primary-color-hover: #00ffaa;
  --background-dark: #121212;
  --text-light: #e0e0e0;
  --text-dark: #1a1a1a;
}

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

* {
  box-sizing: border-box;
}


body {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--background-dark);
  color: var(--primary-color);
  font-size: 1rem;
  position: relative;
  line-height: 1.6;
}

/* Garante que o conteúdo principal fique acima do canvas de fundo */
main {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* BOTÃO CIRCULAR DE SOM (estilo auto falante) */
#toggle-som {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #00ff99;
  background: rgba(0, 255, 153, 0.1);
  color: #00ff99;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 0 12px #00ff99;
  transition: transform 0.2s, background 0.3s;
}

#toggle-som:hover {
  background: rgba(0, 255, 153, 0.3);
  transform: scale(1.1);
}

/* POSIÇÃO ESPECÍFICA */
#toggle-som {
  right: 20px;
}


/* =================================
   2. EFEITO MATRIX (CANVAS)
   ================================= */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: -1;
  /* Fica atrás de todo o conteúdo */
}

/* =================================
   3. HEADER E NAVEGAÇÃO
   ================================= */
/* HEADER */
.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  gap: 2rem;
  background: radial-gradient(circle at right, rgba(0, 255, 153, 0.1), rgba(0, 0, 0, 0.9) 70%);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.15);

}

.header-content {
  margin: 0;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;

}

.header-content nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.header-content nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
  text-shadow: 0 0 15px var(--primary-color);
}

.header-content nav a:hover {
  color: var(--primary-color-hover);
  text-shadow: 0 0 8px var(--primary-color-hover), 0 0 16px var(--primary-color-hover), 0 0 24px var(--primary-color-hover);
  transform: scale(1.1);
}



.btn-voltar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 120px;
  height: 30px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(to right, rgba(0, 255, 0, 0.3) 50%, rgba(255, 0, 0, 0.3) 50%);
  color: #4f4c4c;
  font-family: monospace;
  font-size: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 10px #00ff99, 0 0 10px #ff0033 inset;
  backdrop-filter: blur(4px);
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-voltar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ff99, 0 0 20px #ff0033 inset;
}

/* Efeito de brilho separado por metade */
.btn-voltar::before,
.btn-voltar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border-radius: 50px;
  z-index: -1;
}

.btn-voltar::before {
  left: 0;
  background: rgba(0, 255, 0, 0.3);
  box-shadow: 0 0 15px #00ff99;
}

.btn-voltar::after {
  right: 0;
  background: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 15px #ff0033;
}

/* =================================
   4. SEÇÃO SOBRE
   ================================= */
#sobre {
  height: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at right, rgba(0, 255, 153, 0.1), rgba(0, 0, 0, 0.9) 70%);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.15);
  overflow: hidden;


}

#sobre .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}


#sobre .foto1 img {
  margin: 0 auto;
  /* ✅ Centralizado */
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-color);


}

.foto1 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.experiencia {
  margin-left: 7rem;
}

.cursos {
  margin-top: 20px;
}

.cursos h3 {
  color: #00ffcc;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about__item {
  margin-bottom: 8px;
}

.about__item a {
  text-decoration: none;
  color: #ffffff;
  background-color: #00ffcc22;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
  display: inline-block;
}

.about__item a:hover {
  background-color: #00ffcc;
  color: #111;
}

.foto2 {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5rem;
  -webkit-tap-highlight-color: transparent;
  outline: none;

}


.foto2 img {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  background: radial-gradient(circle at center, rgba(0, 255, 153, 0.1), rgba(0, 0, 0, 0.9) 70%);
  box-shadow:
    0 0 10px rgba(0, 255, 153, 0.5),
    0 0 20px rgba(0, 255, 153, 0.6),
    0 0 30px rgba(0, 255, 153, 0.7),
    0 0 40px rgba(0, 255, 153, 0.8);
}

/* Efeito ao passar o mouse (hover) */
.foto2 img:hover {
  transform: scale(1.15);
  filter: brightness(1.6) saturate(1.5);
  box-shadow:
    0 0 15px rgba(0, 255, 153, 0.8),
    0 0 30px rgba(0, 255, 153, 1),
    0 0 45px rgba(0, 255, 153, 1),
    0 0 60px rgba(0, 255, 153, 1);
}

/* Mensagem oculta que aparece no hover da imagem */
.hover-msg {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  color: var(--primary-color-hover);
  font-size: 1rem;
  font-family: monospace;
  text-align: center;
  margin-top: 1rem;
  background-color: rgba(0, 255, 153, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 255, 153, 0.4);
}

/* Quando o mouse passa sobre a imagem, mostra a mensagem */
.foto2:hover .hover-msg {
  opacity: 1;
  transform: translateY(0);
}


/* Ícones em anel circular */
.icon-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 14rem;
  left: 0;
  transform-style: preserve-3d;
  animation: rotateIcons 12s linear infinite;
  pointer-events: none;
}

.icon-ring i {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.5rem;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(120px);
  transform-origin: center;
}

/* Animação de rotação contínua */
@keyframes rotateIcons {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

#sobre .texto {
  flex: 1;
  max-width: 600px;
}

#sobre .texto h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

#sobre .texto h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

#sobre .texto p {
  text-align: justify;
  margin-bottom: 1rem;
  color: #ccc;
}

.tec-icons-wrapper {
  width: 59%;
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  background: rgba(0, 255, 170, 0.05);
  border-top: 1px solid rgba(0, 255, 170, 0.2);
  border-bottom: 1px solid rgba(0, 255, 170, 0.2);
}

.tec-icons-scroll {
  display: flex;
  gap: 3rem;
  /* Animação de scroll infinito */
  animation: scroll-horizontal 20s linear infinite;
}

/* Tamanho base dos ícones */
.tec-icons-scroll i {
  font-size: 2.5rem;
  color: var(--primary-color-hover);
  filter: drop-shadow(0 0 6px rgba(0, 255, 170, 0.7));
  transition: transform 0.3s, filter 0.3s;
  flex-shrink: 0;
}

.tec-icons-scroll:hover {
  animation-play-state: paused;
}

.tec-icons-scroll i:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 16px #00ffaa);
}

@keyframes scroll-horizontal {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =================================
   5. SEÇÃO PROJETOS
   ================================= */
#projetos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  perspective: 1500px;
  align-items: center;
  gap: 1rem;
}

.botoes-navegacao {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: -3rem;
}

.botoes-navegacao button {
  background: rgba(0, 255, 170, 0.1);
  border: 2px solid var(--primary-color-hover);
  color: var(--primary-color-hover);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
  transition: background 0.3s, box-shadow 0.3s;
}

.botoes-navegacao button:hover {
  background: rgba(0, 255, 170, 0.3);
  box-shadow: 0 0 20px #00ffaa;
}

#carrossel-container {
  width: 90%;
  max-width: 1000px;
  height: 54vh;
  margin-top: 6rem;
  perspective: 1000px;
  z-index: 10;
}


#circulo {

  margin-left: 37%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(1, 0, 0, 1);
}

/* Cards */
.projeto-card {
  width: 240px;
  height: 340px;
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid var(--primary-color);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
  backdrop-filter: blur(10px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform-origin: center;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

/* Card central maior e em destaque */
.projeto-card.destaque {
  transform: scale(1.4) translateZ(30px) !important;
  z-index: 10;
  filter: brightness(1.3);
  box-shadow: 0 0 40px #00ffaa;
}

#projetos h2 {
  font-size: 3rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--primary-color);
  text-shadow: 0 0 15px var(--primary-color);
}

.projeto-card h3 {
  font-size: 1rem;
  color: #fff;
  margin: 0.5rem 0;
}

.projeto-card p {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.4;
  flex-grow: 1;
}

.projeto-card a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  background-color: var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.projeto-card a:hover {
  background-color: white;
  color: #000;
}

/* Imagem */

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;

}

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

/* =================================
   6. SEÇÃO CONTATO
   ================================= */
#contato {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem 2rem;
  align-items: center;
  position: relative;

}

.contato-wrapper {
  width: 56%;
  margin-top: 8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 255, 153, 0.05), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(0, 255, 153, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 2rem;


}


.contato-itens,
#contato-form {
  flex: 1;
  min-width: 300px;
}

.contato-itens a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
  margin-bottom: 1rem;
}

.contato-itens a:hover {
  color: white;
}

#contato-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contato-form input,
#contato-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background-color: transparent;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

#contato-form input:focus,
#contato-form textarea:focus {
  border-color: white;
}

#contato-form button {
  padding: 0.8rem;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contato-form button:hover {
  background-color: white;
}

#status {
  text-align: center;
  margin-top: 1.5rem;
  font-weight: bold;
  min-height: 1.5em;
}

/* ============================
   MEDIA QUERIES - RESPONSIVIDADE
   ============================ */
/* Ajustes para celulares em pé (portrait) */


@media screen and (max-width: 375px) {

  .header {
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .header-content {
    padding: 0;

  }

  .header-content nav {

    flex-direction: row;
    gap: 1rem;
  }

  .header-content nav a {
    font-size: 1.2rem;
  }

  #sobre {
    flex-direction: column;
    padding: 0rem 0.5rem;
  }

  #sobre .container {
    margin-top: 2rem;
    padding: 0.5rem;
  }

  .section-title,
  #projetos h2 {
    font-size: 1.8rem;
    margin-top: 1rem;
  }

  .experiencia {

    text-align: left;
  }

  .foto2 {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 9rem;

    margin-bottom: 7rem;
  }

  #carrossel-container {
    width: 100%;
    height: auto;
    min-height: 320px;
    margin: 2rem auto;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
  }

  #circulo {
    margin: 2rem auto;
    margin-top: 2rem;
    left: 24%;
    transform: translateX(-50%);
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(1, 0, 0, 1);
    width: 55%;
    margin-top: 4rem;
  }

  .projeto-card {
    width: 100%;
    padding: 1rem;
    gap: 1rem;
  }


  .card-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 12px;
  }

  .projeto-card h3 {
    font-size: 0.6rem;
    color: #fff;
  }

  .projeto-card p {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .projeto-card a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    background-color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .botoes-navegacao {
    justify-content: center;
    gap: 4rem;
    margin-top: -1rem;
  }


  .contato-wrapper {
    width: 116%;
    padding: 1rem;
    margin-top: 6rem;
  }

  .tec-icons-scroll i {
    font-size: 2rem;
  }

  .btn-voltar {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
  }

  .tec-icons-wrapper {
    width: 76%;
    margin-top: 13.5rem;
  }
}
  @media screen and (max-width: 844px) and (orientation: landscape) {
  #carrossel-container {
    width: 100%;
    height: auto;
    min-height: 500px;
    margin: 4rem auto;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
  }
    #circulo {
    position: absolute;
    left: 1%;
    transform: translateX(-50%);
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(.79,.14,.15,.86);
    width: 31%;
    margin-top: 4rem;
    }

    .projeto-card {
      width: 90%;
      padding: 1rem;
     
    }

    .card-img {
      width: 100%;
      height: auto;
      max-height: 200px;
      object-fit: cover;
      border-radius: 12px;
    }

    .projeto-card h3 {
      font-size: 0.8rem;
      color: #fff;
    }

    .projeto-card p {
      font-size: 0.6rem;
      line-height: 1.4;
    }

    .projeto-card a {
      display: inline-block;
      padding: 0.5rem 1rem;
      color: var(--text-dark);
      background-color: var(--primary-color);
      border-radius: 8px;
      text-decoration: none;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    .botoes-navegacao {
      justify-content: center;
      gap: 4rem;
      margin-top: -1rem;
    }

    .contato-wrapper {
      width: 116%;
      padding: 1rem;
      margin-top: 6rem;
    }

    .tec-icons-scroll i {
      font-size: 2rem;
    }

    .btn-voltar {
      font-size: 1rem;
      padding: 0.3rem 0.8rem;
    }

    .tec-icons-wrapper {
      width: 76%;
      margin-top: 1rem;
    }
  }


  @media screen and (min-width: 1080px) {

    main,
    .header,
    .header-content {
      max-width: 1200px;

    }
  }