/* ================= WRAPPER ================= */
.about-skills-wrapper {
  display: flex;
  flex-direction: column;
min-height: 100vh;
}

.about-skills-wrapper > section {
  display: flex;
  padding-bottom: 0;
}

/* Divisão proporcional */
.about {
  flex: 2; /* About ocupa 2/3 do height total */
}


.skills {
  flex: 1; /* Skills ocupa 1/3 do height total */
  flex-direction: column; /* permite os cards ocuparem altura */
  justify-content: flex-start; /* não centraliza verticalmente */
  padding-top: 20px; /* evita colar no About */
}

/* ================= ABOUT ================= */
.about .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  height: 100%; /* garante que o grid ocupe toda a altura da seção */
}

.about-text h2 {
  color: #93c5fd;
  margin-bottom: 15px;
}

.about-text p {
  color: #cbd5f5;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  margin: 0 auto;
}

/* ================= SKILLS ================= */
.skills .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%; /* container ocupa toda a altura da seção */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centraliza verticalmente os cards */
}

.skills h2 {
  color: #93c5fd;
  margin-bottom: 25px;
  text-align: center;
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, [col-start] 1fr);
  gap: 20px;
  height: 100%; /* garante que os cards cresçam */
  align-content: start; /* cards começam do topo da seção */
}

.skill-card {
  background: #0f172a;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.skill-card h3 {
  color: #60a5fa;
  margin-bottom: 10px;
  font-size: 1.2rem;
  text-align: center;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1; /* faz a lista ocupar o máximo da altura disponível do card */
}

.skill-card ul li {
  color: #cbd5f5;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ================= RESPONSIVO ================= */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    max-width: 300px;
    margin: 0 auto;
  }

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