/* Estilos do portfólio */

/* Reset de estilos padrão do navegador */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* Header fixo com navegação principal */
header {
  background: #333;
  color: white;
  padding: 10px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  min-height: 50px;
}

/* Menu de navegação */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Botão hamburger para mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px 12px;
  outline: none;
  width: auto;
  height: auto;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

/* Barras do hamburger menu */
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

/* Links da navegação */
nav a {
  color: white;
  margin: 0;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Seções principais do portfólio */
section {
  padding: 100px 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tema escuro */
.dark {
  background: #111;
  color: white;
}

.dark header {
  background: #222;
}

.dark nav a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dark .hamburger span {
  background-color: white;
}

/* Botões */
button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

button:hover {
  background: #555;
}

.dark button {
  background: #666;
}

.dark button:hover {
  background: #888;
}

/* Formulário de contato */
form {
  max-width: 500px;
  margin: 20px 0;
}

form input,
form textarea {
  display: block;
  margin: 10px 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.dark form input,
.dark form textarea {
  background: #222;
  color: white;
  border-color: #444;
}

/* Responsividade para tablets */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: #333;
    flex-direction: column;
    padding: 10px 0;
    z-index: 999;
  }
  
  nav.active {
    display: flex;
  }
  
  nav a {
    padding: 12px 20px;
    border-radius: 0;
  }
  
  section {
    padding: 80px 15px 20px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  form input,
  form textarea {
    max-width: 100%;
  }
}

/* Responsividade para celulares */
@media (max-width: 480px) {
  section {
    padding: 70px 10px 15px;
  }
  
  header {
    padding: 8px 5px;
  }
  
  nav a {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  p {
    font-size: 14px;
  }
}