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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Container geral */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER E NAV
   =========================== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  /* Alterado de 0 20px para 15px 20px */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand h2 {
  color: #059669;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #059669;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* ===========================
   HERO
   =========================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding-top: 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  color: #059669;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #059669;
  color: white;
}

.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #059669;
  border: 2px solid #059669;
}

.btn-secondary:hover {
  background: #059669;
  color: white;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
}

/* ===========================
   ABOUT
   =========================== */

.about {
  padding: 5rem 0;
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1e293b;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* ===========================
   SOCIAL SECTION (ABOUT)
   =========================== */

.social-section {
  text-align: center;
  padding: 2rem;
  background: #f0fdf4;
  border-radius: 16px;
  border: 2px solid #dcfce7;
}

.social-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.social-section p {
  color: #64748b;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.social-links-about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid #dcfce7;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: #059669;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-link span {
  font-size: 1rem;
}

/* ===========================
   PROJECTS
   =========================== */

.projects {
  padding: 5rem 0;
  background: #f0fdf4;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.project-content p {
  color: #64748b;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tech span {
  background: #e2e8f0;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: #059669;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #047857;
}

.project-card-empty {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdf4;
  border: 2px dashed #dcfce7;
  cursor: pointer;
}

.project-card-empty .project-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.coming-soon-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: transparent;
  transition: all 0.4s ease;
  text-align: center;
}

.project-card-empty:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #059669;
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(5, 150, 105, 0.2);
}

.project-card-empty:hover .coming-soon-text {
  color: white;
  transform: scale(1.1);
}

/* ===========================
   SKILLS
   =========================== */

.skills {
  padding: 5rem 0;
  background: white;
}

.tech-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.tech-card {
  flex: 0 1 300px;
  background: #f0fdf4;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(5, 150, 105, 0.1);
  border-color: #059669;
  background: white;
}

.tech-icon {
  margin-bottom: 1.5rem;
}

.tech-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.tech-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.tech-card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}

.skills-grid {
  display: none;
}

/* ===========================
   CONTACT
   =========================== */

.contact {
  padding: 5rem 0;
  background: #f0fdf4;
}

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.contact-form {
  max-width: 500px;
  width: 100%;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #059669;
}

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

form .btn-enviar {
  margin-top: 20px;
  text-align: center;
}

form .btn-enviar input {
  width: 120px;
  height: 30px;
  background-color: #059669;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 10px;
}

button:hover,
form .btn-enviar input:hover {
  box-shadow: 0px 0px 20px #059669;
  transform: scale(1.05);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: #1e293b;
  color: white;
  padding: 2.5rem 0 1.5rem;
  font-family: "Inter", sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Alinha as colunas no topo */
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 400px;
}

/* Esquerda: nome e sobre mim */
.footer-about {
  flex: 1 1 300px;
}

.footer-brand {
  color: #059669;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
}

.footer-about p {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

/* Centro: contato */
.footer-contact {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
  color: #cbd5e1;
  min-width: 220px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.contact-info a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #818cf8;
}

/* Direita: redes sociais */
.footer-social {
  flex: 1 1 200px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
}


.footer-social .footer-title {
  text-align: center;
  align-self: center;
  width: 100%;
}


.btn-social {
  display: flex;
  gap: 0.75rem;
}

.btn-social a button {
  background: #059669;
  border: none;
  color: white;
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-social a button:hover {
  background: #047857;
  transform: scale(1.1);
}

.btn-social a button:focus {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

/* Copyright */
.copyright {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 1.5rem;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-about,
  .footer-contact,
  .footer-social {
    flex: none;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .footer-contact {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
    align-items: center;
  }

  .footer-social .footer-title {
    align-self: center;
  }

  .footer-title {
    text-align: center;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-section {
    padding: 1.5rem;
  }

  .social-links-about {
    gap: 0.75rem;
  }

  .social-link {
    padding: 0.75rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px; /* Ajuste para o novo tamanho do header */
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .social-section {
    padding: 1rem;
  }

  .social-links-about {
    gap: 0.5rem;
  }

  .social-link {
    padding: 0.75rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}