.links-card h3,
.interests-card h3 {
  font-size: 1.5em;
  font-weight: 600;
  text-align: left;
  margin-left: 0;
  margin-bottom: 12px;
  color: #fff;
}
/* Ajuste apenas para o h1 do cartão de perfil */
.profile-container > .info-card-b:first-child h1 {
  font-size: 2.7rem;
}
/* --- ÍCONE DOS LINKS --- */
.link-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  width: 1.35em;
  height: 1.35em;
}
.links-list a .link-icon path {
  fill: currentColor;
}
/* --- INTERESSES --- */
.interests-card {
  margin: 0 auto 3vw auto;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-start;
  margin-top: 10px;
}

.interest {
  background: #232323;
  color: #e0e0e0;
  border-radius: 7px;
  padding: 7px 16px;
  font-size: 1em;
  display: inline-block;
  margin-bottom: 4px;
  transition: background 0.2s, color 0.2s;
}
.interest:hover {
  background: #444;
  color: #b0d0ff;
}
.gallery-card {
  margin-bottom: 3vw;
  padding: 2vw 2vw;
  max-width: 700px;
  width: 80vw;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100%;
}
/* --- PERFIL GRAVATAR --- */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.bio {
  font-size: 1.35rem;
  color: #e0e0e0;
  margin-bottom: 18px;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s;
  max-height: 4.8em;
}

.bio.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  overflow: visible;
}

.bio-toggle {
  background: none;
  border: none;
  color: #888;
  font-size: 1em;
  cursor: pointer;
  margin-top: 8px;
  margin-left: 0;
  text-align: left;
  padding: 0;
  transition: color 0.2s;
  display: block;
  width: fit-content;
  margin-right: auto;
}
.bio-toggle:hover {
  color: #b0d0ff;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
  height: 100%;
}

.gallery img {
  flex: 1 1 0;
  min-width: 80px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.gallery img:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
/* --- ESTILOS GERAIS --- */
body {
  background-image: url(Jungle_Train.jpeg);
  background-size: cover;
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
  margin: 0%;
  display: flex;
  flex-direction: column;
}

/* --- CARDS (MAIN) --- */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2vw;
  margin: 40px auto;
  width: 80vw;
  max-width: 700px;
  min-width: 280px;
}

/* --- BLACK CARDS --- */
.info-card-b {
  /* largura controlável por variável -- mais fácil de ajustar */
  --card-b-width: 60vw;
  background: rgba(0,0,0,0.85);
  border-radius: 5px;
  padding: 28px 36px 20px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.45);
  text-align: center;
  color: white;
  margin-bottom: 1.2vw;
  max-width: 640px;
  width: var(--card-b-width);
  min-width: 240px;
  font-size: 1.12em;
  box-sizing: border-box;
}

/* Ajustes responsivos para os cartões pretos */
@media (min-width: 1200px) {
  .info-card-b {
    --card-b-width: 45vw; /* menos largura em telas grandes */
    max-width: 540px;
  }
}

@media (max-width: 480px) {
  .info-card-b {
    --card-b-width: 90vw; /* permitir mais largura em telas muito pequenas */
    padding: 20px 18px 16px;
    min-width: 200px;
  }
}

.info-card-b h1 {
  font-size: 2.2rem;
  margin: 0 0 12px 0;
}

.info-card-b h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 18px 0;
  color: #b0d0ff;
}

/* Botão dentro do card B */
.button-b {
  display: block;
  margin: 18px auto 0 auto;
  padding: 14px 0;
  border-radius: 5px;
  background: rgba(0,0,0,0.35);
  color: white;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border 0.3s;
  width: 100%;
  max-width: 420px;
  font-size: 1.18em;
  font-weight: 500;
  border: 2px solid #333a40;
  text-align: center;
  box-sizing: border-box;
}
.button-b:hover {
  background: rgba(60,60,60,0.95);
  color: #b0d0ff;
  border-color: #444b55;
}

/* --- GLASS CARDS --- */

.info-card-g {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.3vw;
  width: 40%;
  min-width: 200px;
  max-width: 200px;
  min-height: 120px;
  max-height: 140px;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card-g h3,
.info-card-g p {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

/* Efeito flutuante no hover */
.info-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Botão dentro do card G */
.button-g {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  border-radius: 8px;
  background-color: rgba(0, 123, 255, 0.8);
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-card:hover {
  background-color: rgba(0, 123, 255, 1);
}

/* --- BANDEIRAS / IDIOMAS --- */
.idiomas a {
  color: black;
  margin-left: 10px;
  font-size: 20px;
  text-decoration: none;
}

.flag-icon {
  width: 20px;
  height: 14px;
  margin-left: 10px;
  vertical-align: middle;
}

/* --- LINKS EXTERNOS --- */
.links-card {
  margin: 0 auto 3vw auto;
}

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  border-bottom: 1px solid #222;
  padding: 12px 0;
  display: flex;
  align-items: center;
}

.links-list li:last-child {
  border-bottom: none;
}

.links-list a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.links-list a:hover {
  color: #b0d0ff;
}

.links-list span {
  font-size: 1em;
  margin-left: 4px;
}

/* --- RODAPÉ --- */
footer {
  background: black;
  color: white;
  text-align: center;
  padding: 15px;
}

/* --- MAIN --- */
main {
  flex: 1;
}