/* Reset Global e Efeito de Rolagem Suave */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth; /* Efeito de rolagem suave */
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Estilos do Cabeçalho */
.header {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background: #333; 
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.header p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* MENU DE NAVEGAÇÃO */
.header-content .link {
  position: relative;
  display: inline-block;
  margin: 0 15px;
  font-size: 1.3rem;
  color: white;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.3s ease-in-out;
}

/* Animação ao passar o mouse */
.header-content .link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #00ffcc; 
  transition: all 0.4s ease-in-out;
}

.header-content .link:hover {
  color: #00ffcc;
}

.header-content .link:hover::after {
  width: 100%;
  left: 0;
}

/* Seção */
.section {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#projects {
background-color: rgb(212, 212, 214);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content {
  display: flex;
  align-items: center;
  text-align: left;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-right: 20px;
}

/* Estilos do Rodapé */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  margin-top: 50px;
}

/* Estilos da Imagem de Projetos */
#projects-img {
  max-width: 70%;  
  height: auto;     
}

/* Matrix e Efeito de Texto (com base no código que você forneceu) */
.matrix-text {
  color: #0f0;
  font-size: 80px;
  font-family: monospace;
  position: relative;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0;
  z-index: 2;
}

.matrix-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: glitch 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-2px, -2px);
  color: #0f0;
  text-shadow: 0 0 5px #0f0, 0 0 15px #0f0;
}

.rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
      0deg,
      rgba(0, 255, 0, 0.1) 0,
      rgba(0, 255, 0, 0.2) 2px,
      transparent 4px
  );
  animation: rain 10s linear infinite;
  z-index: 1;
}

/* Animação da Chuva */
@keyframes rain {
  0% {
      transform: translateY(-100%);
  }
  100% {
      transform: translateY(100%);
  }
}

/* Efeito Glitch para o Texto */
@keyframes glitch {
  0%, 100% {
      clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
      transform: translate(0);
  }
  33% {
      clip-path: polygon(0 0, 100% 0, 100% 15%, 0 15%);
      transform: translate(-5px, -5px);
  }
  66% {
      clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%);
      transform: translate(5px, 5px);
  }
}
/* SITES QUE PEGUEI ANIMAÇAO MATRIX:https://prismic.io/blog/css-text-animations */
/* SITES QUE PEGUEI AS PARTICULAS:https://vincentgarreau.com/particles.js/ */
