/* =============================================
   30-SOBRE — SEÇÃO "SOBRE MIM" + MÉTRICAS
   - Header com avatar + título/subtítulo
   - Texto com animação ao entrar
   - Cards de estatísticas com contador (JS)
============================================= */

/* -- Container interno do #sobre -- */
#sobre .container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* -- Header com imagem e texto -- */
.section-header {
  display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 4rem; text-align: left;
}
.section-header-text { max-width: 600px; }

/* -- Avatar com glow -- */
.section-header img,
.profile-photo {
  width: clamp(150px, 22vw, 220px);
  height: auto; border-radius: 50%;
  box-shadow: 0 0 25px rgba(0,180,255,.6);
  transition: transform .3s ease, box-shadow .3s ease;
}
.section-header img:hover,
.profile-photo:hover { transform: scale(1.05); box-shadow: 0 0 35px rgba(0,180,255,.9); }

/* -- Título e subtítulo da seção -- */
.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; color: #fff;
  text-transform: uppercase; letter-spacing: 2px; position: relative; padding-bottom: 1.2rem; text-align: center;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 3px; background: var(--primary-color); border-radius: 3px; box-shadow: 0 0 12px var(--primary-color);
}
.section-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--secondary-color); max-width: 650px; line-height: 1.6; text-align: center; }

/* -- Texto principal com reveal progressivo -- */
.about-text { min-width: 280px; line-height: 1.8; color: rgba(255,255,255,.85); }
.about-text p, .about-text h3 { opacity: 0; transform: translateY(20px); }
.about-text p {
  margin-bottom: 1.5em; font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8; color: rgba(255,255,255,.85); text-align: justify; word-break: break-word; hyphens: auto;
}
.about-text.visible p, .about-text.visible h3 { animation: fadeInUp .8s ease forwards; }
.about-text.visible p:nth-of-type(1){ animation-delay: .5s; }
.about-text.visible p:nth-of-type(2){ animation-delay: .7s; }
.about-text.visible p:nth-of-type(3){ animation-delay: .9s; }

/* -- Destaque de palavras -- */
.highlight { color: var(--primary-color); font-weight: 600; }

/* -- Grid de estatísticas (cards com contador) -- */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem; margin: 4rem 0; max-width: 1200px; width: 100%; margin-inline: auto;
}
.stat-card {
  background: rgba(255,255,255,.05); padding: 2rem 1.2rem; border-radius: var(--radius);
  text-align: center; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 0 15px rgba(0,180,255,.2); transition: transform .3s ease, box-shadow .3s ease; opacity: 0;
}
.stats-grid.visible .stat-card { animation: fadeInUp .6s ease forwards; }
.stat-card:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 22px rgba(0,180,255,.6); border-color: var(--primary-color); background: rgba(0,180,255,.08); }

.stat-number { font-size: clamp(2.3rem, 5vw, 3.2rem); font-weight: 700; color: var(--primary-color); margin-bottom: .4rem; }
.stat-label { color: var(--secondary-color); font-weight: 500; font-size: clamp(.85rem, 1.4vw, 1rem); text-transform: uppercase; letter-spacing: 1px; }

/* -- CTAs abaixo do sobre -- */
.about-cta-buttons { display: flex; gap: 1.5rem; margin-top: 3rem; justify-content: center; flex-wrap: wrap; }
.about-cta-buttons a {
  font-size: clamp(.9rem, 1.5vw, 1rem); padding: .9rem 2rem; border-radius: 50px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid var(--primary-color); color: #fff; background: rgba(0,180,255,.15); box-shadow: 0 0 10px rgba(0,180,255,.4);
  transition: all .3s ease;
}
.about-cta-buttons a:hover { background: var(--primary-color); color: #000; box-shadow: 0 0 18px rgba(0,180,255,.8); transform: translateY(-3px); }

/* -- Animação do reveal -- */
@keyframes fadeInUp { from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }

/* -- Responsividade do Sobre -- */
@media (max-width: 992px) {
  .section-header { flex-direction: column; text-align: center; gap: 1.5rem; }
  .section-header-text { max-width: 100%; }
}
