@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Text:wght@400;600&display=swap');

body {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 60px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

header {
  display: flex;
  align-items: center;
  padding: 40px 0 30px;
  border-bottom: 1px solid #d2d2d7;
  gap: 25px;
}

header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.dados-header h1 {
  font-weight: 600;
  font-size: 2rem;
  margin: 0;
  line-height: 1.1;
}

.dados-header h2 {
  font-weight: 400;
  font-size: 1rem;
  color: #6e6e73;
  margin-top: 4px;
  letter-spacing: 0.03em;
}

section {
  padding: 30px 0;
  border-bottom: 1px solid #d2d2d7;
}

section:last-of-type {
  border-bottom: none;
}

h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1d1d1f;
  border-left: 4px solid #0071e3;
  padding-left: 10px;
}

p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #3c3c4399;
  margin: 0;
}

/* Grade de projetos */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

.project-card {
  background: #f9f9fb;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-content {
  padding: 15px 20px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h4 {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 1.2rem;
  color: #1d1d1f;
}

.card-content p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #3c3c4399;
  margin-bottom: 15px;
}

.btn-project {
  align-self: flex-start;
  background-color: #0071e3;
  color: white;
  padding: 8px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-project:hover {
  background-color: #005bb5;
}

#mais-projetos {
  margin-top: 18px;
  font-weight: 600;
  font-size: 1rem;
  color: #0071e3;
  cursor: pointer;
  user-select: none;
}

/* Skills */
.skills-card {
  background: #f9f9fb;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin: 15px 0 8px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1d1d1f;
  user-select: none;
  transition: background-color 0.15s ease;
}

.skills-card:hover {
  background-color: #e6f0ff;
}

.skills-card img {
  transition: transform 0.3s ease;
}

.skills-card[data-estado="1"] img {
  transform: rotate(180deg);
}

ul.skills {
  list-style: none;
  padding-left: 20px;
  margin: 0 0 30px 0;
  display: none;
  flex-wrap: wrap;
  gap: 16px;
  color: #3c3c4399;
}

ul.skills li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 1rem;
  background: #f0f0f5;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.03);
  cursor: default;
  user-select: none;
  width: max-content;
}

ul.skills li img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
  margin: 0;
}

ul.skills.programacao,
ul.skills.hardware,
ul.skills.stacks,
ul.skills.tecnologias,
ul.skills.soft-skills {
  display: flex;
}

.skills li:hover {
  transform: scale(1.06);
  cursor: pointer;
}

#academicos h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #222;
  padding-bottom: 0.3rem;
}

#academicos a {
  display: block;
  color: #007aff;
  text-decoration: none;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  transition: color 0.25s ease;
  font-weight: 500;
}

#academicos a:hover,
#academicos a:focus {
  color: #0051a8;
  text-decoration: underline;
}