/* Estilos específicos da página sobre/currículo. Globals em global.css e hero.css */

/* ── SECTION TITLE (override: margem menor que o padrão global) ── */
.section-title { margin-bottom: 24px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: rgba(19,10,4,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  position: relative;
}
.modal h2 {
  margin-bottom: 10px;
  font-family: var(--oswald);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.modal p {
  margin-bottom: 22px;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.65;
}

/* ── FORM ── */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}
.form-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font: inherit;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-actions button {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font: inherit;
}
.form-actions .primary { background: var(--amber); color: #130A04; }
.form-actions .secondary { background: rgba(255,255,255,0.08); color: var(--text); }

.form-feedback-success,
.form-feedback-error {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.form-feedback-success {
  background: rgba(78,177,69,0.18);
  color: #d5f7b7;
  border: 1px solid rgba(78,177,69,0.22);
}
.form-feedback-error {
  background: rgba(200,80,40,0.16);
  color: #ffd0c0;
  border: 1px solid rgba(200,80,40,0.26);
}

/* ── MAIN GRID ── */
.main {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--line);
  padding: 60px 36px;
}
.content { padding: 60px 48px; }

/* ── SECTION ── */
.section { margin-bottom: 52px; }

/* ── SKILLS ── */
.skill-item { margin-bottom: 16px; }
.skill-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.skill-bar {
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.skill-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber3));
  border-radius: 2px;
  animation: bar-in 1.4s cubic-bezier(.4,0,.2,1) both;
  animation-delay: var(--d, 0s);
}
@keyframes bar-in { from { width: 0 !important; } }

/* ── TECH TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  border: 1px solid var(--amber);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--amber3);
  font-family: var(--oswald);
  font-weight: 400;
  background: var(--amber-glow);
  transition: background 0.2s;
}
.tag:hover { background: rgba(200,98,28,0.3); }

/* ── IDIOMAS / HOBBIES ── */
.hobbies { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hobby { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted); }
.hobby-icon {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--amber), transparent);
}
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -34px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  border: 2px solid var(--bg);
}
.tl-period {
  font-family: var(--oswald);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tl-role {
  font-family: var(--oswald);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.tl-company { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; font-style: italic; }
.tl-desc { font-size: 0.9rem; line-height: 1.75; color: var(--text); opacity: 0.75; font-weight: 300; }

/* ── EDUCATION ── */
.edu-item { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.edu-item:last-child { border-bottom: none; margin-bottom: 0; }
.edu-degree { font-family: var(--oswald); font-size: 1rem; font-weight: 600; color: var(--text); }
.edu-school { font-size: 0.82rem; color: var(--amber3); font-style: italic; margin-top: 2px; }

/* ── ENDORSEMENTS ── */
.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.endorsement-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.endorsement-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 24px rgba(200,98,28,0.08);
}
.endorsement-quote-wrap {
  flex: 1;
  padding-left: 14px;
  border-left: 2px solid var(--amber);
}
.endorsement-quote {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.8;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.endorsement-quote.expanded { display: block; overflow: visible; }
.endorsement-read-more {
  background: none;
  border: none;
  padding: 6px 0 0;
  font-size: 0.78rem;
  font-family: var(--oswald);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  display: none;
}
.endorsement-read-more.visible { display: inline-block; }
.endorsement-read-more:hover { opacity: 1; }
.endorsement-person {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.endorsement-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--amber);
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--oswald);
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber);
}
.endorsement-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.endorsement-info { display: flex; flex-direction: column; gap: 2px; }
.endorsement-name {
  font-family: var(--oswald);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.endorsement-role { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.endorsement-person:hover .endorsement-name { color: var(--amber); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--line); }
  .endorsements-grid { grid-template-columns: 1fr; }
}
