@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Playfair+Display:wght@600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --navy:            #0f1f3d;
  --navy-mid:        #1a3260;
  --navy-light:      #253f7a;
  --gold:            #c9a84c;
  --gold-light:      #e8d08a;
  --gold-muted:      rgba(201, 168, 76, 0.18);
  --cream:           #f8f7f4;
  --cream-dark:      #f0ede4;
  --white:           #ffffff;
  --text-primary:    #0f1f3d;
  --text-secondary:  #4a4a5a;
  --text-muted:      #8a8a9a;
  --border:          #e4e1d8;
  --border-strong:   #c9a84c;
  --card-bg:         #ffffff;
  --sidebar-bg:      #0f1f3d;
  --header-bg:       #0a1628;
  --shadow-sm:       0 1px 4px rgba(15, 31, 61, 0.08);
  --shadow-md:       0 4px 16px rgba(15, 31, 61, 0.12);
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       14px;
  --transition:      0.3s ease;
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'DM Sans', Verdana, Geneva, sans-serif;
}

body.escuro {
  --cream:           #111827;
  --cream-dark:      #0d1520;
  --white:           #1e2d47;
  --text-primary:    #e8e4d8;
  --text-secondary:  #a8a4b8;
  --text-muted:      #6a6a7a;
  --border:          #1e2d47;
  --card-bg:         #1a2840;
  --sidebar-bg:      #0a1628;
  --header-bg:       #070e1a;
  --shadow-sm:       0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md:       0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  background-color: var(--cream);
  color: var(--text-primary);
  transition: background-color 0.5s, color 0.5s;
  min-height: 100vh;
}

/* ─── Header / Nav ──────────────────────────────────────── */
header {
  background-color: var(--header-bg);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.header-brand {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

nav#menu ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

nav#menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

nav#menu a:hover {
  color: var(--gold);
  background-color: rgba(201, 168, 76, 0.1);
}

nav#menu a i {
  font-size: 0.85rem;
}

#botao-tema {
  border: 1px solid rgba(201, 168, 76, 0.35) !important;
  color: var(--gold) !important;
  border-radius: 50% !important;
  width: 34px;
  height: 34px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  transition: background-color var(--transition), border-color var(--transition) !important;
}

#botao-tema:hover {
  background-color: rgba(201, 168, 76, 0.18) !important;
  border-color: var(--gold) !important;
}

/* ─── Main Layout ───────────────────────────────────────── */
main {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  gap: 1.5rem;
}

/* ─── Sidebar / Ficha ───────────────────────────────────── */
#ficha {
  background-color: var(--sidebar-bg);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  box-shadow: var(--shadow-md);
}

#ficha .foto {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  outline: none;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.15);
}

.ficha-role {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  text-align: center;
  margin-top: -0.25rem;
}

#ficha h1 {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: 1.4rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ficha-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

#ficha p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.7;
}

#social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

#social a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  transition: color var(--transition), transform var(--transition);
  line-height: 1;
}

#social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* ─── Details / Articles ────────────────────────────────── */
#detalhes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

article {
  background-color: var(--card-bg);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.5s, border-color 0.5s;
}

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

article h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

article h2 i {
  color: var(--gold);
  font-size: 1rem;
}

/* ─── Video ─────────────────────────────────────────────── */
#video .video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Skills ─────────────────────────────────────────────── */
#skill-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.skill-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background 0.5s;
}

.skill-item:hover {
  border-color: var(--gold);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.skill-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-name i {
  color: var(--gold);
  font-size: 0.75rem;
}

.skill-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.skill-track {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Formação ───────────────────────────────────────────── */
#formacao-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.curso {
  background: var(--cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  transition: background 0.5s, border-color var(--transition), padding-left var(--transition);
  cursor: default;
}

.curso:hover {
  border-left-width: 5px;
  padding-left: 1.5rem;
  background: var(--cream-dark);
}

.periodo {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.instituicao {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.titulacao {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ─── Projetos ───────────────────────────────────────────── */
#projeto-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projeto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.1rem;
  transition: border-color var(--transition), background 0.5s;
  cursor: default;
}

.projeto:hover {
  border-color: var(--gold);
  background: var(--cream-dark);
}

.projeto .foto {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.projeto-info .periodo {
  margin-bottom: 0.4rem;
}

.projeto-info .titulo {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.projeto-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.descricao {
  margin-top: 0.6rem;
}

.descricao summary {
  font-size: 0.78rem;
  color: var(--gold);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  list-style: none;
}

.descricao summary::before {
  content: '+ ';
}

.descricao[open] summary::before {
  content: '− ';
}

.descricao p {
  margin-top: 0.6rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.projeto-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.projeto-links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  border: 1px solid #333;
  color: #fff;
  background-color: #111;
}

.projeto-links a:hover {
  transform: translateY(-2px);
  background-color: #222;
}

/* ─── Projeto tags ───────────────────────────────────────── */
.projeto-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gold-muted);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background-color: var(--header-bg);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

footer a:hover {
  color: var(--gold-light);
}