/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

body {
  font-family: Arial, sans-serif;
  background: #111 url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  padding: 0;
  min-height: 100vh;
  display: block;
  flex-direction: column;
}

main {
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100%;
}

a{
  text-decoration: none;
}

/* Background */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header */
.main-header {
  background-color: #111;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  text-align: center;
  /* Centraliza o conteúdo dentro do header */
  width: 100%;
  /* Garante que ocupe toda a largura */
}

.main-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  font-weight: bold;
}

#typed-text {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.877);
  /* cor branca */
  margin-top: 10px;
  min-height: 1.5em;
  position: relative;
}

/* Efeito de cursor piscando */
#typed-text::after {
  content: '|';
  animation: blink 1s infinite;
  display: inline-block;
  width: 5px;
  animation: blink 0.7s infinite;
}


/* Conteúdo principal */
.main-content {
  max-width: 80%;
  margin: 3% auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card {
  position: relative;
  padding: 40px 25px 25px 25px;
  background-color: #222;
  /* Fundo dos cards em cinza escuro */
  /* min-height: 250px; */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.877);
}

.card h2 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  position: absolute;
  top: 6%;
  left: 3%;
  color: #fff;
  /* Título em branco */
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  /* Destaque suave sob o título */
  border-radius: 8px;
  align-self: flex-start;
  text-align: left;
  width: fit-content;
}

/* Card Superior com layout de bio à esquerda e foto à direita */
.card-superior {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  width: 80%;
}

.bio-container {
  flex: 1;
  max-width: 600px;
  /* Largura máxima */
  width: 100%;
  /* Ocupa o espaço disponível */
  min-width: 300px;
  /* Largura mínima (ajuste conforme necessário) */
  height: 200px;
  /* Altura fixa */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio p {
  display: block;
  position: absolute;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #ddd;
  white-space: pre-line;
  margin: 0;
  min-width: 100%;
  /* Garante que ocupe toda a largura do container */
  overflow: hidden;
  /* Impede crescimento indesejado */
}

#typed-bio::after {
  content: '|';
  animation: blink 0.7s infinite;
  display: inline-block;
  width: 5px;
}

.perfil-imagem {
  width: 350px;
  /* Alterado */
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.877);
}

/* Card Médio */
.card-medio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 80%;
  width: 80%;
}

.lista-formacoes {
  list-style: none;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.formacao-item {
  background-color: #333;
  overflow: hidden;
  padding: 15px 10px;
  border-radius: 10px;
  font-size: 1rem; /* Reduzi um pouco para caber mais conteúdo */
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* Organiza título e descrição em coluna */
  align-items: center;
  justify-content: center;
  min-height: 120px;
  gap: 8px; /* Espaço entre título e descrição */
}

.formacao-item h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
}

.formacao-item p {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
  opacity: 0.8;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.formacao-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.formacao-item:hover {
  transform: translateY(-5px);
  background-color: #444;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.877);
  /* Sombra branca */
}

/* Contatos */
.card-inferior {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 80%;
}

.lista-contatos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contato-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  background-color: #333;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 150px;
  min-height: 60px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contato-item:hover {
  background-color: #444;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.877);
  /* Sombra branca */
}

/* Rodapé */
.rodape {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 20px;
  width: 100%;
}

/* Botão notificação */
#notificacao {
  visibility: hidden;
  min-width: 200px;
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.877);
  ;
  /* Amarelo dourado */
  color: #000;
  /* Texto escuro para contraste */
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  padding: 16px 20px;
  position: fixed;
  z-index: 9999;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  transition: all 0.4s ease;
  transform: scale(0.9) translateY(20px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.877);
  /* Sombra branca */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  animation: pulse 1.2s infinite;
}

#notificacao.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}



/* RESPONSIVIDADE */

@media (max-width: 1024px) {
  .perfil-imagem {
    width: 280px;
    height: 280px;
  }

  .card-superior {
    gap: 20px;
  }

  .lista-formacoes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .perfil-imagem {
    width: 220px;
    height: 220px;
  }

  .card-superior {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio-container {
    max-width: 100%;
  }

  .card-medio,
  .card-inferior {
    width: 100%;
  }

  .main-content {
    max-width: 95%;
  }

  .lista-formacoes {
    grid-template-columns: 1fr;
  }

  .formacao-item {
    min-height: auto;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .perfil-imagem {
    width: 150px;
    height: 150px;
  }

  .main-header h2 {
    font-size: 1.4rem;
  }

  #typed-text {
    font-size: 1.2rem;
  }

  .bio p {
    font-size: 1rem;
  }

  .contato-item {
    min-width: 120px;
    min-height: 50px;
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .card {
    padding: 25px 15px;
  }

  .card h2 {
    font-size: 1.2rem;
    top: 5%;
    left: 5%;
  }
}