@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;600;700&display=swap');   

:root {
  --cor-fundo: #121214;
  --cor-primaria: #7b2cbf;
  --cor-texto: #e1e1e6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: normal; 
}

body {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: 'Fira Code', monospace;
}

/* --- ESTILOS DO CABEÇALHO (GERAL) --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
}

header ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

header a {
  text-decoration: none;
  color: var(--cor-texto);
}

header img {
  width: 150px;
  height: auto;
}

header.logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #121212;
  border-bottom: 1px solid #1a1a1a;
}

.logo a {
  text-decoration: none;
  display: inline-block;
}

.logo img {
  display: block;
}

/* --- SEÇÕES GERAIS --- */
section {
  padding: 100px 20px 60px 20px; /* Adicionado espaço extra no topo por causa do header fixo */
  max-width: 1200px;
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- SEÇÃO INÍCIO --- */
#inicio {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#inicio h1 {
  font-size: 80px;
  font-weight: normal; 
}

#inicio p {
  font-size: 18px;
}

/* --- SEÇÃO SOBRE --- */
#sobre {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 20px;
  box-sizing: border-box;
  text-align: center;
}

#sobre h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 32px; 
}

#sobre p {
  font-size: 1.1rem;      
  line-height: 1.6;       
  max-width: 850px;       
  margin: 0 auto;        
  color: #c5c5c5; 
}

/* --- SEÇÃO PROJETOS (FLEXBOX RESPONSIVO) --- */
#projetos h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #ffffff;
}

.lista-projetos {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.bloco-projeto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 340px;
  box-sizing: border-box;
}

.bloco-projeto h3 {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: #ffffff;
}

.card-projeto {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2d2d2d;
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.card-projeto:hover {
  transform: translateY(-5px);
}

.card-projeto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* --- SEÇÃO CONTATO & EMAIL ANIMADO --- */
#contato {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 20px;
  box-sizing: border-box;
  position: relative;
}

#contato h2 {
  margin-bottom: 24px;
  font-size: 2.5rem;
}

#email-animado {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: #ffffff;
  min-height: 1.6em;
  line-height: 1.6;
  display: flex;
  align-items: center; 
  justify-content: center;
  margin-bottom: 24px;
}

.btn-whatsapp {
  display: inline-block;
  text-decoration: none;
  color: var(--cor-texto);
  background-color: #4d0c8d;
  padding: 12px 24px;
  border-radius: 6px;
  transition: background 0.5s ease;
}

.btn-whatsapp:hover {
  filter: brightness(1.2);
  background-color: #651dad;
}

/* --- FOOTER FIXADO NA BASE DE CONTATO --- */
#contato footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  background-color: transparent;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

#contato footer p {
  font-family: 'Fira Code', monospace;
  font-size: 15px; /* Texto corrigido para o tamanho pequeno que você queria */
  color: #797979;
  margin: 0;
}

/* --- ELEMENTOS DE CONTROLE DO MENU INVISÍVEIS POR PADRÃO --- */
#menu-toggle, .menu-icon {
  display: none;
}

/* --- MEDIA QUERY (ESTILOS MOBILE) --- */
@media (max-width: 768px) {
  #inicio h1 {
    font-size: 2.5rem; 
    word-wrap: break-word; 
    text-align: center;
  }

  header.logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
  }

  .menu-icon {
    display: block;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Fica acima do menu lateral */
  }

  .menu-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff; 
    position: relative;
    transition: all 0.3s ease;
  }

  .menu-icon span::before,
  .menu-icon span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    transition: all 0.3s ease;
  }

  .menu-icon span::before {
    top: -8px;
  }
  
  .menu-icon span::after {
    top: 8px;
  }

  nav.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #121212;
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid #1a1a1a;
  }

  nav.menu ul {
    flex-direction: column;
    padding: 80px 20px; /* Aumentado espaço superior para os links não sumirem sob o topo */
    gap: 30px;
  }

  #menu-toggle:checked ~ nav.menu {
    right: 0; 
  }
}