.hero {
  /* Imagem de fundo com um gradiente por cima para legibilidade */
  background-image: url('../assets/img/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out; /* Transição suave para a imagem */
  
  color: #fff;
  padding: 4rem 0 1rem 0;
  margin-top: 3.5rem; /* Ajuste conforme a altura do seu navbar */
  text-align: center;
  min-height: 350px;
  display: flex;
  align-items: center;
  scroll-margin-top: 80px;
}
.hero-content {
  display: flex;
  align-items: center;
  align-self: baseline;
  gap: 2.5rem;
}

.profile-pic-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-pic {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border: 1px solid #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  background: #eee;
  transition: transform 0.3s;
}
.profile-pic:hover {
  transform: scale(1.05) rotate(-2deg);
}
.hero-text {
  text-align: left;
  min-width: 34rem;
  min-height: 200px; 
  position: relative;
  height: 100px; /* Altura para evitar "pulos" no layout */
}

.hero-text-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-text-slider .slide.active {
  opacity: 1;
}

.hero-text h1 {
  margin: 0 0 1rem 0;
  font-size: 3rem;
  letter-spacing: 1px;
  white-space: nowrap;
  font-family: monospace;
  font-weight: bold;
  overflow: hidden; /* Esconde o texto antes da animação */
  width: 0; /* Começa sem largura */
  border-right: 2px solid transparent; /* Cursor invisível por padrão */
}

.hero-text h1.typing {
  width: 100%; /* Anima a largura para revelar o texto */
  animation:
    typewriter-full 3s steps(40, end) forwards,
    blink-caret 0.4s step-end infinite;
}

.hero-text p {
  font-size: 1.2rem;
  margin: 0;
}
@media (max-width: 800px) {
  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
    align-self: center;
  }
  .profile-pic {
    width: 180px; /* Reduz o tamanho da foto de perfil para mobile */
    height: 180px;
  }
  .hero-text {
    text-align: center;
    min-width: 0; /* Remove a largura mínima para o texto se ajustar */
    height: auto;
    min-height: 300px; 
  }
  .hero-text h1 {
    font-size: 2rem; /* Reduz o tamanho da fonte do título */
    white-space: normal; /* Permite que o texto quebre a linha */
  }
  .hero-text p {
    font-size: 1rem; /* Reduz a fonte do parágrafo */
  }
  .hero-text-slider .slide.active {
    position: relative;
    color: white; /* Volta a cor do texto para branco no mobile */
  }
  .hero-text h1.typing {
    width: 100%; /* Anima a largura para revelar o texto */
    animation: none; /* Desativa a animação de digitação no mobile */
  }
  .slide:nth-child(2) {
    min-width: unset !important;
  }
  .slide h1 {
    font-size: 1.6rem !important; /* Ajusta o tamanho da fonte do segundo slide */
  }
}