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

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #1a1a1a;
  transition: background 0.3s, color 0.3s;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.07);
  z-index: 1000;
  transition: background 0.6s ease, transform 0.6s ease;
}

/* Menu */
header .menu {
  display: flex;
  justify-content: center;
  gap: 25px;
}

header .menu a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  padding: 0;
  transition: transform 0.35s ease, color 0.35s ease;
}

header .menu a:hover {
  transform: translateY(-2px);
}

header .menu a.active {
  transform: translateY(-2px);
  font-weight: 600;
  color: #000000;
}

/* Seções */
section {
  min-height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 80px 20px 60px 20px;
  scroll-margin-top: 100px;
  background: #ffffff;
}

/* Centralizar conteúdo */
section.centralizado .texto,
section.contato-final .texto {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 1100px;
}

section .texto {
  max-width: 600px;
  margin-left: 15%;
}

@media (max-width: 768px) {
  section .texto {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 90%;
  }
}

/* Início */
.inicio h1 {
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  text-transform: none;
  color: #000000;
  line-height: 1.1;
  letter-spacing: 2px;
}

@media (max-width: 768px) { .inicio h1 { font-size: 4.5rem; } }
@media (max-width: 480px) { .inicio h1 { font-size: 3.5rem; } }

/* Skills */
.skills-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
  align-items: center;
}

.skill-pill {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.65s cubic-bezier(.2,.9,.2,1), box-shadow 0.65s cubic-bezier(.2,.9,.2,1);
  justify-content: flex-start;
}

.skill-pill .pill-icon img {
  width: 38px;
  height: 38px;
}

.skill-pill span {
  font-weight: 500;
  font-size: 1.2rem;
}

.skill-pill:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

@media (max-width: 980px) { .skills-pills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills-pills { grid-template-columns: 1fr; } }

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}

.project-card {
  background: #f4f4f4;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.65s cubic-bezier(.2,.9,.2,1), box-shadow 0.65s cubic-bezier(.2,.9,.2,1);
  text-decoration: none;
  color: inherit;
}

.project-card .project-icon img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-card p {
  color: #333;
  line-height: 1.6;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

/* Responsividade projects */
@media (max-width: 1100px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

/* Social icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.social-icons a img:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* Animações unificadas */
.animate,
.animate-header,
.slide-left {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.2,.9,.2,1), transform 0.8s cubic-bezier(.2,.9,.2,1);
}

.slide-left {
  transform: translateX(-60px);
}

.animate.show,
.animate-header.show,
.slide-left.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Delays skills */
.skills-pills .skill-pill:nth-child(1) { transition-delay: 0.12s; }
.skills-pills .skill-pill:nth-child(2) { transition-delay: 0.24s; }
.skills-pills .skill-pill:nth-child(3) { transition-delay: 0.36s; }
.skills-pills .skill-pill:nth-child(4) { transition-delay: 0.48s; }
.skills-pills .skill-pill:nth-child(5) { transition-delay: 0.60s; }
.skills-pills .skill-pill:nth-child(6) { transition-delay: 0.72s; }

/* Delays projects */
.projects-grid .project-card:nth-child(1) { transition-delay: 0.12s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.24s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.36s; }
