/* ==========================================================================
   VARIÁVEIS GLOBAIS
   ========================================================================== */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1840a7;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --glass: rgba(37, 99, 235, 0.16);
  --side-width: 330px;

  --text: #22223b;
  --text-muted: #444444;
  --subtext: #727994;
  --subtext-light: #adc6fa;
  --divider: #e3e6f0;

  --font-base: "Inter", Arial, sans-serif;
  --font-title: "Montserrat", "Inter", Arial, sans-serif;

  --radius-sm: 14px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 22px;
  --radius-pill: 28px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 3px #0001;
  --shadow-sm: 0 2px 8px #0002;
  --shadow-md: 0 4px 16px #0003;
  --shadow-lg: 0 10px 34px 0 #1e293b21;
  --shadow-card: 0 4px 24px #2563eb13, 0 1.5px 12px #2563eb07;
  --shadow-card-hover: 0 8px 32px #2563eb22, 0 4px 14px #3b82f622;

  --glass-blur: 12px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}


/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #b6c7e3 #f3f4f7;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  letter-spacing: 0.01em;
}

img {
  display: block;
  max-width: 100%;
}


/* ==========================================================================
  ESTRUTURA DO LAYOUT PRINCIPAL
   ========================================================================== */
.container {
  display: flex;
  max-width: 1100px;
  min-height: 98vh;
  margin: 30px auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition-medium);
}


/* ==========================================================================
   BARRA LATERAL (SIDEBAR)
   ========================================================================== */
.side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: var(--side-width);
  min-width: var(--side-width);
  max-width: var(--side-width);
  padding: 44px 26px 44px 32px;
  color: #fff;
  background: linear-gradient(140deg, var(--primary) 78%, var(--primary-light) 100%);
  box-shadow: 2px 0 28px 0 #1e293b13;
}

/* -------- Avatar e Foto de Perfil -------- */
.avatar-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -50px;
  padding: 8px;
  border-radius: 50%;
  background: var(--glass);
  box-shadow: 0 4px 18px #1e293b18, 0 1px 4px #fff4 inset;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

.avatar {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 4px solid #fff4;
  border-radius: 50%;
  box-shadow: 0 2px 15px #0003;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.11);
}

/* -------- Cabeçalho do Perfil -------- */
.name {
  margin-bottom: 0.11em;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.54rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 16px #0001;
}

.dob {
  margin-bottom: 14px;
  color: #bdd6f7;
  font-family: var(--font-base);
  font-size: 0.98rem;
  font-weight: 400;
  text-align: center;
}

/* -------- Elementos Gerais da Sidebar -------- */
.side .section-title {
  display: flex;
  justify-content: center;
  margin: 15px 0 8px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.95;
}

.side ul,
.side .info {
  margin: 0;
  padding: 0;
  font-size: 1.01rem;
  list-style: none;
}

.side ul li {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 13px;
  word-break: break-all;
}

.side .info a {
  color: #bae6fd;
  font-weight: 500;
  text-decoration: underline dotted;
  word-break: break-all;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.side .info a:hover {
  color: #fff;
  text-decoration: underline solid;
}

.side .info a:focus-visible,
.download-btn:focus-visible,
.skill-badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* -------- Interesses -------- */
.side .skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.side .skill-chip {
  margin-bottom: 1px;
  padding: 4.5px 15px;
  color: #e0eaff;
  background: #fff3;
  border-radius: 19px;
  box-shadow: var(--shadow-xs);
  font-size: 0.99rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.22s, color 0.21s;
}

.side .skill-chip:hover {
  color: var(--primary);
  background: #fff9;
}

/* -------- Idiomas -------- */
.side section[aria-label="Idiomas"] {
  width: 100%;
}

.side section[aria-label="Idiomas"] .info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.side section[aria-label="Idiomas"] .info li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side section[aria-label="Idiomas"] .info li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.side section[aria-label="Idiomas"] .info li strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.97rem;
  font-weight: 700;
}

.side section[aria-label="Idiomas"] .info li strong::before {
  content: "🌐";
  font-size: 0.95rem;
}

.side section[aria-label="Idiomas"] .info li span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #dbeafe;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* -------- Cursos e Certificados -------- */
.side section[aria-label="Cursos e Certificados"],
.side section[aria-label="Cursos"] {
  width: 100%;
}

.side section[aria-label="Cursos e Certificados"] .info,
.side section[aria-label="Cursos"] .info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.side section[aria-label="Cursos e Certificados"] .info li,
.side section[aria-label="Cursos"] .info li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  word-break: normal;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side section[aria-label="Cursos e Certificados"] .info li:hover,
.side section[aria-label="Cursos"] .info li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.side section[aria-label="Cursos e Certificados"] .info li strong,
.side section[aria-label="Cursos"] .info li strong {
  color: #ffffff;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
}

.side section[aria-label="Cursos e Certificados"] .info li span,
.side section[aria-label="Cursos"] .info li span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
}

.side section[aria-label="Cursos e Certificados"] .info li a,
.side section[aria-label="Cursos"] .info li a {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.side section[aria-label="Cursos e Certificados"] .info li a:hover,
.side section[aria-label="Cursos"] .info li a:hover {
  background: #ffffff;
  color: var(--primary);
  text-decoration: none;
}

/* -------- Botões de Ação / Download -------- */
.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0;
  text-align: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 26px 10px 18px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, box-shadow 0.19s, transform 0.19s;
}

.download-btn:hover {
  color: var(--primary-light);
  background: #e3edff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.download-ic {
  display: inline-block;
  vertical-align: middle;
}


/* ==========================================================================
   ÁREA DE CONTEÚDO PRINCIPAL (.MAIN)
   ========================================================================== */
.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 40px;
  background: var(--surface);
}

.section-divider {
  align-self: center;
  width: 90%;
  height: 1.5px;
  margin: 50px 0;
  border: none;
  background: var(--divider);
  opacity: 0.7;
}

.main .section-title {
  margin-bottom: 16px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.19rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.92;
}

/* -------- Sobre Mim -------- */
.main .about {
  margin-bottom: -20px;
  color: var(--text);
  font-size: 1.13rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* -------- Experiência & Educação (Timeline) -------- */
.main .exp,
.main .edu {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.main .exp-item,
.main .edu-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.main .exp-dot,
.main .edu-dot {
  min-width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 3px #2563eb82;
}

.main .exp-info,
.main .edu-info {
  flex: 1;
}

.main .exp-title,
.main .edu-title {
  margin-bottom: 3.5px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.main .exp-company,
.main .edu-org {
  margin-bottom: 2.5px;
  color: var(--subtext);
  font-size: 1.01rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main .exp-date,
.main .edu-date {
  margin-bottom: 3px;
  color: var(--subtext-light);
  font-size: 0.99rem;
}

/* -------- Detalhes da Experiência e Função "Ler mais" -------- */
.exp-description {
  margin-top: 8px;
}

.exp-description p {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.conteudo-extra {
  display: none;
}

.btn-ler-mais {
  padding: 0;
  margin-top: 10px;
  border: none;
  background: none;
  color: #2563eb;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline transparent;
  transition: text-decoration 0.2s ease;
}

.btn-ler-mais:hover {
  text-decoration: underline #2563eb;
}

.exp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 18px;
  color: #555;
  font-size: 0.84375rem;
  line-height: 1.5;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.exp-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

.exp-list li:hover {
  color: #111;
  transform: translateX(2px);
}


/* ==========================================================================
   CARROSSEL DE HABILIDADES
   ========================================================================== */
.skills-carousel {
  position: relative;
  width: 100%;
  padding: 0 38px;
}

.carousel-viewport {
  overflow-x: hidden;
  overflow-y: visible;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  width: 100%;
  min-width: 100%;
  flex-shrink: 0;
  padding: 6px 4px 10px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 22px 21px;
  background: var(--surface-soft);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.21s, transform 0.21s;
}

.card-title {
  display: flex;
  align-items: center;
  margin-bottom: 17px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* -------- Botões de Navegação do Carrossel -------- */
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.15), 0 1px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-50%);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: -14px;
}

.carousel-next {
  right: -14px;
}

/* -------- Indicadores do Carrossel (Dots) -------- */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  opacity: 0.4;
  transition: opacity 0.25s, background 0.25s, transform 0.25s, width 0.3s;
}

.carousel-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 1;
}

.carousel-dot:hover:not(.active) {
  opacity: 0.7;
  transform: scale(1.15);
}

/* -------- Badges de Habilidades -------- */
.skill-badge {
  margin-bottom: 4.5px;
  padding: 6px 16px;
  border: 1px solid #2563eb13;
  border-radius: var(--radius-sm);
  background: #2563eb14;
  color: var(--primary);
  box-shadow: 0 1px 4px #2563eb08;
  font-size: 1.01rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition: background 0.19s, color 0.18s, box-shadow 0.19s, transform 0.19s;
}

.skill-badge:hover {
  color: var(--primary-dark);
  background: #2563eb22;
  box-shadow: 0 3px 9px #2563eb21;
  transform: translateY(-1px);
}


/* ==========================================================================
   SCROLLBAR CUSTOMIZADA
   ========================================================================== */
::-webkit-scrollbar {
  width: 7px;
  background: #f3f4f7;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #b6c7e3;
}