/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  z-index: 1000;
}
.navbar ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
}
.navbar a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}
.navbar a:hover {
  color: #38ef7d;
  transform: scale(1.1);
}

/* ===== HERO ===== */
.hero {
  background: url('hero-bg.jpg') center/cover no-repeat, #1e1e1e;
  color: #f5f5f5;
  text-align: center;
  padding: 120px 20px 80px;
  border-bottom: 4px solid #333;
}
.hero h1 {
  font-size: 2.8rem;
  color: #38ef7d;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  animation: fadeInDown 1.5s ease;
}
.hero p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #ccc;
  animation: fadeInUp 2s ease;
}
.hero-btn {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #333, #000);
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.hero-btn::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  top: 0;
  left: -100%;
  transition: left 0.5s;
}
.hero-btn:hover::after { left: 0; }
.hero-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

/* ===== SEÇÕES ===== */
section {
  padding: 60px 30px;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 12px;
  background: #1e1e1e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(40px);
  animation: reveal 1s forwards;
}
section:nth-child(odd) { animation-delay: 0.3s; }
section:nth-child(even) { animation-delay: 0.6s; }
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #38ef7d;
  position: relative;
  animation: slideInLeft 1s ease;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #555;
  margin-top: 8px;
  border-radius: 2px;
  animation: growLine 1.5s ease;
}

/* ===== CARDS ===== */
.card {
  background: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  padding: 20px;
  transition: transform 0.4s, box-shadow 0.4s;
  color: #f5f5f5;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.8);
}

/* ===== LINKS "Leia mais" ===== */
#artigos a {
  display: inline-block;
  margin-top: 10px;
  background: #333;
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}
#artigos a:hover { transform: scale(1.1) rotate(1deg); }

/* ===== HABILIDADES ===== */
#habilidades ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
}
#habilidades li {
  background: #000;
  color: #38ef7d;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: bounceIn 1.5s ease;
}
#habilidades li:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.8);
}

/* ===== CONTATO ===== */
.contato-btn {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  margin: 5px;
  transition: all 0.3s ease;
}
.contato-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.8);
}

/* ===== RODAPÉ ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
  color: #ccc;
  font-size: 0.9rem;
  animation: fadeIn 2s ease-in;
}
footer a {
  color: #38ef7d;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s;
}
footer a:hover { color: #fff; }

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes growLine {
  from { width: 0; }
  to { width: 60px; }
}
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    position: relative;
    padding: 8px 0;
  }
  .navbar ul {
    flex-direction: column;
    align-items: flex-start; /* mantém alinhado à esquerda */
    gap: 8px;
    padding-left: 12px; /* leve respiro da borda */
  }
  .navbar a {
    font-size: 0.85rem;
  }

  /* Hero */
  .hero {
    padding: 40px 15px 25px;
    text-align: center; /* hero continua centralizado */
  }
  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .hero p {
    font-size: 0.95rem;
    margin-top: 6px;
  }
  .hero-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  /* Seções */
  section {
    padding: 18px 12px;
    margin: 12px 0; /* evita centralização estranha */
    text-align: left;
  }
  section h2 {
    font-size: 1.4rem;
    text-align: left;
  }
  section p {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
  }

  /* Cards */
  .card {
    width: 100%;
    margin-bottom: 12px;
  }

  /* Formulário Jotform */
  iframe {
    width: 100%;
    height: 450px;
  }

  /* Rodapé */
  footer {
    padding: 12px;
    font-size: 0.75rem;
    text-align: center;
  }
}

/* ===== FORMULÁRIO DE CONTATO ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form label {
  color: #38ef7d;
  font-weight: 500;
  margin-bottom: 4px;
}

form input,
form textarea {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px;
  color: #f5f5f5;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%; /* ocupa toda a largura no mobile */
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #38ef7d;
  box-shadow: 0 0 6px #38ef7d;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Botão de envio */
.contato-btn {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.contato-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,0.8);
  background: #38ef7d;
  color: #000;
}