/* ===============================
   VARIÁVEIS E RESET
   =============================== */
:root {
  /* Fundos */
  --bg: #111827;
  --surface: #1F2937;
  
  /* Textos */
  --text: #E5E7EB;
  --text-2: #CBD5E1;
  --muted: #94A3B8;
  
  /* Destaques */
  --accent: #F28C28;
  --success: #1B7F5C;
  --accent-soft: #F7BA7E;
  --success-soft: #8DBFAE;
  
  /* Layout */
  --radius: 16px;
  --border: rgba(148, 163, 184, .22);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Containers */
  --container-max: 1800px;
  --nav-max: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip navigation (acessibilidade) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ===============================
   TIPOGRAFIA RESPONSIVA
   =============================== */
h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0.75rem 0 0.625rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.75rem 0 0.625rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.lead {
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1rem);
}

/* ===============================
   CONTAINER
   =============================== */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 1.75rem;
  padding-left: 1.125rem;
  padding-right: 2.25rem; 
}

/* ===============================
   TOPBAR
   =============================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(17, 24, 39, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav {
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 1.125rem;
}

.brand b {
  color: var(--accent);
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.avatar:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.menu a {
  color: var(--text-2);
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  transition: var(--transition);
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.menu a.active {
  background: rgba(242, 140, 40, 0.1);
  color: var(--accent);
  border: 1px solid rgba(242, 140, 40, 0.3);
}

/* ===============================
   HERO SECTION
   =============================== */
.hero {
  position: relative;
  background-image: url("../img/avatares/fundo_hero_avatar.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  width: 100%;
  aspect-ratio: 1536 / 730;

  padding-left: 24px;
  padding-right: 24px;

  border-radius: 0;
  overflow: hidden;
}

.hero-canvas {
  width: 1536px;
  height: 730px;

  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--hero-scale, 1));

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 2rem;

  padding: 2rem 1.5rem 3rem;
}


.hero-left {
  max-width: 750px;
  padding: 2rem 2.25rem;
  
  background: rgba(27, 127, 92, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  border: 1px solid rgba(242, 140, 40, 0.2);
  border-radius: 1.25rem;
  
  box-shadow: 
    0 10px 40px rgba(242, 140, 40, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  transition: var(--transition);
}

.hero-left:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 60px rgba(242, 140, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-role {
  font-size: clamp(1.25rem, 3vw + 0.5rem, 1.875rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0.75rem 0 0.5rem;
  line-height: 1.3;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: flex-start;
}

.hero-highlights span {
  font-size: 0.8125rem;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  background: rgba(27, 127, 92, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(242, 140, 40, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: var(--transition);
  white-space: nowrap;
}

.hero-highlights span:hover {
  background: rgba(27, 127, 92, 0.3);
  border-color: rgba(242, 140, 40, 0.4);
  transform: translateX(4px);
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-right: 1rem;
}

.hero-card {
  max-width: 280px;
  width: 100%;
  padding: 1.25rem 1.375rem;
  border-radius: 1rem;
  margin-top: 1.75rem;
  
  background: rgba(27, 127, 92, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  box-shadow: 
    0 10px 40px rgba(242, 140, 40, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 60px rgba(242, 140, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-card-title {
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.625rem;
}

.hero-card-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* ===============================
   SECTIONS
   =============================== */

/* ===============================
   TIMELINE (Sobre mim)
   =============================== */
.timeline{
  position: relative;
  margin-top: 1.25rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline.expanded {
  max-height: 5000px;
}

/* linha vertical no centro */
.timeline::before{
  content:"";
  position:absolute;
  left: 50%;                       /* agora é no meio */
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  transform: translateX(-1px);     /* centraliza a linha certinho */
  background: rgba(242, 140, 40, 0.22);
  border-radius: 2px;
}

/* cada item */
.t-item{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1rem 1fr; /* esquerda | bolinha | direita */
  gap: 1rem;
  align-items: start;
}


/* bolinha */
.t-dot{
  grid-row: 1;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  margin-top: 0;
  align-self: start;
  background: rgba(27, 127, 92, 0.35); /* success suave */
  border: 2px solid rgba(242, 140, 40, 0.5);
  box-shadow: 0 0 0 6px rgba(242, 140, 40, 0.08);
  grid-column: 2;
  justify-self: center;
}

/* card da fase */
.t-card{
  grid-row: 1;
  background: rgba(27, 127, 92, 0.25); /* surface com transparência */
  border: 1px solid rgba(242, 140, 40, 0.22); /* --border */
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.t-card:hover{
  border-color: rgba(242, 140, 40, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* por padrão, card vai pra esquerda */
.t-item.left .t-card{
  grid-column: 1;
  justify-self: end;
}

/* itens "right" jogam o card pra direita */
.t-item.right .t-card{
  grid-column: 3;
  justify-self: start;
}

/* Imagem da timeline */
.t-image {
  grid-row: 1;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
}

/* Posicionamento das imagens */
.t-item.left .t-image {
  grid-column: 3;
  justify-self: start;
}

.t-item.right .t-image {
  grid-column: 1;
  justify-self: end;
}

.t-meta{
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(242, 140, 40, 0.95);
  background: rgba(242, 140, 40, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.t-title{
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
}

.t-text{
  margin: 0;
  color: rgba(203, 213, 225, 0.9); /* --text-2 */
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 900px){

  .timeline{
    padding-left: 1.5rem;
  }

  .timeline::before{
    left: 0.5rem;
    transform: none;
  }

  /* ITEM: dot + uma única coluna de conteúdo */
  .t-item{
    grid-template-columns: 1.1rem 1fr; /* dot | conteúdo */
    gap: 0.875rem;
    align-items: start;
  }

  .t-dot{
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  /* CARD: sempre na coluna do conteúdo (col 2) */
  .t-card{
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;  /* mata o "meio card" */
    width: 100%;
    padding: 1rem;
  }

  /* IMAGEM: sempre abaixo do card, mesma coluna */
  .t-image{
    display: block;         /* volta a aparecer */
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    max-height: 220px;      /* ajuste fino depois */
    margin-top: 0.75rem;

    object-fit: contain;    /* não corta o desenho */
    object-position: center;
  }

  /* ZERA as regras de desktop de left/right no mobile */
  .t-item.left .t-card,
  .t-item.right .t-card,
  .t-item.left .t-image,
  .t-item.right .t-image{
    grid-column: 2;
    justify-self: stretch;
  }
}

/* ===============================
   TIMELINE TOGGLE MINIMALISTA
   Substitua o CSS do timeline-toggle existente
   =============================== */

.timeline-toggle {
  position: relative;
  z-index: 10;
  margin-top: 2rem;
}

/* Gradiente de fade */
.timeline-toggle::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.timeline.expanded + .timeline-toggle::before {
  opacity: 0;
}

/* Linha horizontal sutil */
.timeline-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--muted);
  opacity: 0.3;
  transform: translateY(-50%);
  z-index: -1;
}

/* Container do toggle */
#toggleTimeline {
  background: var(--bg);
  border: none;
  padding: 0 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto;
  color: var(--text-2);
  transition: var(--transition);
  position: relative;
}

#toggleTimeline:hover {
  color: var(--text);
}

#toggleTimeline:focus {
  outline: none;
}

#toggleTimeline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 8px;
}

/* Texto "Ver mais" / "Ver menos" */
.toggle-text {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: inherit;
  transition: var(--transition);
}

/* ✅ Corrige o texto quando expandido */
#toggleTimeline[aria-expanded="true"] .toggle-text {
  display: block;
}

#toggleTimeline[aria-expanded="true"] .toggle-text::after {
  content: '';
  display: none;
}

/* Container dos chevrons */
.toggle-chevrons {
  display: flex;
  flex-direction: column;
  gap: -4px;
  transition: var(--transition);
}

/* Cada chevron (V) */
.toggle-chevron {
  width: 24px;
  height: 12px;
  position: relative;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.toggle-chevron::before,
.toggle-chevron::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  top: 0;
}

.toggle-chevron::before {
  left: 0;
  transform: rotate(45deg);
  transform-origin: left center;
}

.toggle-chevron::after {
  right: 0;
  transform: rotate(-45deg);
  transform-origin: right center;
}

/* Segundo chevron mais opaco */
.toggle-chevron:nth-child(2) {
  opacity: 0.4;
  margin-top: -6px;
}

/* Hover nos chevrons */
#toggleTimeline:hover .toggle-chevron {
  opacity: 1;
}

#toggleTimeline:hover .toggle-chevron:nth-child(2) {
  opacity: 0.7;
}

/* Hover na linha também */
#toggleTimeline:hover ~ .timeline-toggle::after,
.timeline-toggle:hover::after {
  opacity: 0.5;
  background: var(--text-2);
}

/* Animação ao hover */
@keyframes chevronBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

#toggleTimeline:hover .toggle-chevrons {
  animation: chevronBounce 1s ease-in-out infinite;
}

/* Estado expandido - rotaciona 180° */
#toggleTimeline[aria-expanded="true"] .toggle-chevrons {
  transform: rotate(180deg);
  animation: none;
}

/* ===============================
   RESPONSIVO
   =============================== */

@media (max-width: 640px) {
  .timeline-toggle::before {
    height: 100px;
  }
  
  .toggle-text {
    font-size: 0.75rem;
  }
  
  .toggle-chevron {
    width: 20px;
    height: 10px;
  }
  
  .toggle-chevron::before,
  .toggle-chevron::after {
    width: 12px;
  }
  
  #toggleTimeline {
    padding: 0 1rem;
  }
}

/* ===============================
   ABOUT PANEL (Fase 8 e 9)
   =============================== */

.about-panel{
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

/* Colunas */
.about-values,
.about-life{
  background: rgba(27, 127, 92, 0.18);
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

.about-values:hover,
.about-life:hover{
  border-color: rgba(242, 140, 40, 0.35);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transform: translateY(-2px);
}

/* Títulos */
.about-h3{
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
}

.about-lead{
  margin: 0 0 1rem;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Blocos internos (valores/metas) */
.about-block{
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.about-kicker{
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(242, 140, 40, 0.95);
  background: rgba(242, 140, 40, 0.10);
  border: 1px solid rgba(242, 140, 40, 0.22);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.about-text{
  margin: 0;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.93rem;
  line-height: 1.65;
}

.about-list{
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.93rem;
  line-height: 1.65;
}

.about-list li{
  margin: 0.35rem 0;
}

/* Cards “vida pessoal” */
.life-grid{
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.life-card{
  background: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 0.95rem 0.95rem;
  transition: var(--transition);
}

.life-card:hover{
  border-color: rgba(242, 140, 40, 0.30);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.life-title{
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.life-list{
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
}

.life-list li{
  margin: 0.25rem 0;
}

/* Responsivo */
@media (max-width: 900px){
  .about-panel{
    grid-template-columns: 1fr;
  }
  .life-grid{
    grid-template-columns: 1fr;
  }
}

.section {
  margin-top: 3.5rem;
}

.pagehead {
  margin-bottom: 1.5rem;
}

.pagehead h1 {
  margin: 0.5rem 0 0.375rem;
}

.pagehead h2 {
  margin: 0.5rem 0 0.375rem;
}

/* ===============================
   CARDS
   =============================== */

.card {
  background: rgba(27, 127, 92, 0.40);
  border: 1px solid rgba(242, 140, 40, 0.5);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
  box-shadow: 
    0 10px 40px rgba(242, 140, 40, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card:hover {
  border-color: rgba(242, 140, 40, 0.4);
  transform: translateY(-2px);
  box-shadow: 
    0 20px 60px rgba(242, 140, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-sub {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.5rem 0;
}

.muted {
  color: var(--muted);
}

/* ===============================
   PROJECT CARDS
   =============================== */
.projects-preview,
.certs-preview,
.about-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pcard {
  background: rgba(27, 127, 92, 0.25);
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-radius: var(--radius);
  padding: 1.125rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
  transition: var(--transition);
  box-shadow:
    0 10px 40px rgba(242, 140, 40, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pcard:hover {
  border-color: rgba(242, 140, 40, 0.4);
  transform: translateY(-2px);
  box-shadow:
    0 20px 60px rgba(242, 140, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.p-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.p-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.p-type {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid rgba(242, 140, 40, 0.22);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  flex-shrink: 0;
}

.p-desc {
  margin: 0;
  color: var(--text-2);
  line-height: 1.5;
  font-size: 0.875rem;
  flex-grow: 1;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}

.tag:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(242, 140, 40, 0.3);
}

.p-actions {
  margin-top: auto;
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

/* ===============================
   BUTTONS
   =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #111827;
}

.btn.primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 6px 20px rgba(242, 140, 40, 0.4);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn.small {
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
}

.section-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===============================
   FILTERS (projetos.html)
   =============================== */
.filters {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.chip {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: var(--transition);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-2px);
}

.chip.active {
  background: rgba(242, 140, 40, 0.2);
  border-color: rgba(242, 140, 40, 0.5);
  color: var(--text);
}

/* ===============================
   FEATURED PROJECTS (Index)
   =============================== */
.featured-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.featured-card {
  background: rgba(27, 127, 92, 0.15);
  border: 1px solid rgba(242, 140, 40, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 10px 40px rgba(242, 140, 40, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 140, 40, 0.45);
  box-shadow: 
    0 20px 60px rgba(242, 140, 40, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.featured-thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(27, 127, 92, 0.2), rgba(242, 140, 40, 0.2));
  border-bottom: 1px solid rgba(242, 140, 40, 0.2);
}

.featured-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.featured-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.featured-type {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(242, 140, 40, 0.15);
  border: 1px solid rgba(242, 140, 40, 0.3);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.featured-desc {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.featured-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.featured-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.featured-tags .tag {
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
}

.featured-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.featured-link:hover {
  gap: 0.625rem;
  color: var(--accent-soft);
}

/* ===============================
   PROJECT CARD COM THUMBNAIL
   =============================== */
.pcard-with-thumb {
  background: rgba(27, 127, 92, 0.15);
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 8px 32px rgba(242, 140, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pcard-with-thumb:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 140, 40, 0.4);
  box-shadow: 
    0 16px 48px rgba(242, 140, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pcard-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(27, 127, 92, 0.2), rgba(242, 140, 40, 0.2));
  border-bottom: 1px solid rgba(242, 140, 40, 0.2);
}

.pcard-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

/* ===============================
   MODAL DE DETALHES
   =============================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--surface);
  border: 1px solid rgba(242, 140, 40, 0.3);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(242, 140, 40, 0.2);
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1002;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(242, 140, 40, 0.3);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(242, 140, 40, 0.2);
  border-color: rgba(242, 140, 40, 0.5);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.modal-type {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(242, 140, 40, 0.15);
  border: 1px solid rgba(242, 140, 40, 0.3);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
}

.modal-status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(27, 127, 92, 0.15);
  border: 1px solid rgba(27, 127, 92, 0.3);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.2;
}

.modal-desc {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.modal-screenshots {
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}

.modal-screenshot {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(242, 140, 40, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: zoom-in;
  transition: var(--transition);
}

.modal-screenshot:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(242, 140, 40, 0.3);
}

.modal-section {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.modal-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.modal-section p {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

.modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-tags .tag {
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  background: rgba(27, 127, 92, 0.15);
  border-color: rgba(27, 127, 92, 0.3);
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-2);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.modal-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.modal-list-success li::before {
  content: '✓';
  color: var(--success);
}

.modal-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 180px;
}

/* Scrollbar customizada para o modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(242, 140, 40, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(242, 140, 40, 0.5);
}

/* ===============================
   RESPONSIVO - MODAL
   =============================== */
@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 95vh;
    border-radius: var(--radius) var(--radius) 0 0;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes modalSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .modal-body {
    padding: 1.5rem 1rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-desc {
    font-size: 1rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

/* ===============================
   UTILITÁRIOS
   =============================== */
body.modal-open {
  overflow: hidden;
}

/* ===============================
   GRID (projetos/certificados)
   =============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
}

/* ===============================
   FOOTER
   =============================== */
.footer {
  max-width: var(--nav-max);
  margin: 3rem auto 0;
  padding: 1.5rem 1.125rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-2);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

/* ===============================
   HERO SECTION - RESPONSIVO MOBILE
   =============================== */

/* Base Hero (mantém o mesmo) */
.hero {
  position: relative;
  background-image: url("../img/avatares/fundo_hero_avatar.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  width: 100%;
  aspect-ratio: 1536 / 730;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 0;
  overflow: hidden;
}

.hero-canvas {
  width: 1536px;
  height: 730px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--hero-scale, 1));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 2rem;
  padding: 2rem 1.5rem 3rem;
}

/* ===============================
   MOBILE: 900px e abaixo
   =============================== */
@media (max-width: 900px) {
  .hero {
    aspect-ratio: unset;
    min-height: auto;

    background-image: url("../img/avatares/fundo_hero_avatar_mobile.webp");
    background-size: cover;
    background-position: center bottom;
    background-position: center calc(100% + 180px);

    padding: 2rem 1.5rem;
  }

  .hero-canvas {
    position: relative;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
    transform: none;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
  }

  .hero-canvas > div:first-child {
    display: grid;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-left {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
    width: 100%;
    margin-top: 2rem;

    background: rgba(27, 127, 92, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(242, 140, 40, 0.2);
    border-radius: 1.25rem;
    
    box-shadow: 
      0 10px 40px rgba(242, 140, 40, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    transition: var(--transition);
  }

  .hero-left h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-role {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }

  .hero-left .lead {
    font-size: 0.9375rem;
  }

  .hero-highlights {
    flex-direction: row;
    flex-wrap: wrap;        /* <- em vez de scroll horizontal */
    overflow: hidden;       /* <- mata o corte na direita */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.625rem;
    margin-top: 20rem;
    padding-bottom: 0.5rem;
  }

  .hero-highlights::-webkit-scrollbar {
    display: none;
  }

  .hero-highlights span {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-right {
    justify-content: flex-start;
    padding-right: 0;
    width: 100%;
  }

  .hero-card {
    max-width: 100%;
    width: 100%;
    margin-top: 0rem;
    padding: 1.125rem 1.25rem;

    background: rgba(27, 127, 92, 0.12);
    border: 1px solid rgba(242, 140, 40, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    box-shadow: 
      0 10px 40px rgba(242, 140, 40, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    transition: var(--transition);
  }

  .hero-card-title {
    font-size: 1.25rem;
  }

  .hero-card-lines {
    font-size: 0.9375rem;
  }
}

/* ===============================
   MOBILE SMALL: 640px e abaixo
   =============================== */
@media (max-width: 640px) {
  .hero {
    padding: 1.5rem 1rem 3rem;

    padding-bottom: 40%;
    position: relative;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(17, 24, 39, 0.85) 0%,
      rgba(17, 24, 39, 0.7) 40%,
      rgba(17, 24, 39, 0.3) 70%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  .hero-canvas {
    position: relative;
    z-index: 2;
  }

  .hero-canvas {
    gap: 1.25rem;
  }

  .hero-left {
    padding: 1.25rem 1rem;
  }

  .hero-left h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-role {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    margin: 0.5rem 0 0.375rem;
  }

  .hero-left .lead {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .hero-highlights {
    gap: 0.5rem;
  }

  .hero-highlights span {
    font-size: 0.6875rem;
    padding: 0.4375rem 0.625rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-card-title {
    font-size: 1.125rem;
  }

  .hero-card-lines {
    font-size: 0.875rem;
    gap: 0.375rem;
  }
}

/* ===============================
   MOBILE EXTRA SMALL: 375px e abaixo
   =============================== */
@media (max-width: 375px) {
  .hero {
    padding: 1.25rem 0.875rem;
  }

  .hero-left {
    padding: 1rem 0.875rem;
  }

  .hero-left h1 {
    font-size: 1.5rem;
  }

  .hero-role {
    font-size: 1rem;
  }

  .hero-left .lead {
    font-size: 0.8125rem;
  }

  .hero-highlights span {
    font-size: 0.625rem;
    padding: 0.375rem 0.5rem;
  }

  .hero-card {
    padding: 0.875rem 1rem;
  }

  .hero-card-title {
    font-size: 1rem;
  }

  .hero-card-lines {
    font-size: 0.8125rem;
  }
}

/* ===============================
   RESPONSIVO: MOBILE (720px)
   =============================== */
@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .menu {
    width: 100%;
    justify-content: flex-start;
  }
  
  .menu a {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.625rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* ===============================
   RESPONSIVO: MOBILE SMALL (640px)
   =============================== */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem 1.5rem;
  }
  
  .hero-left {
    padding: 1.25rem 1rem;
  }
  
  .hero-highlights {
    gap: 0.5rem;
  }
  
  .hero-highlights span {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .card,
  .pcard {
    padding: 1rem;
  }
  
  .lead {
    font-size: 0.875rem;
  }
  
  .section {
    margin-top: 2.5rem;
  }
  
  .p-actions {
    flex-direction: column;
  }
  
  .p-actions .btn {
    width: 100%;
  }
  
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ===============================
   DESKTOP: HERO OPTIMIZAÇÃO
   =============================== */
@media (min-width: 901px) {  
  .container {
    padding-top: 0;
  }
}

/* ===============================
   ACESSIBILIDADE
   =============================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===============================
   UTILITIES
   =============================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===============================
   FEATURED CERTIFICATES (Index)
   =============================== */
.featured-certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.featured-cert-card {
  background: rgba(27, 127, 92, 0.15);
  border: 1px solid rgba(27, 127, 92, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(27, 127, 92, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 127, 92, 0.5);
  box-shadow: 
    0 20px 60px rgba(27, 127, 92, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Badge de destaque */
.cert-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(27, 127, 92, 0.9);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.featured-cert-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(27, 127, 92, 0.2), rgba(27, 127, 92, 0.4));
  border-bottom: 1px solid rgba(27, 127, 92, 0.2);
}

.featured-cert-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex-grow: 1;
}

.featured-cert-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-cert-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.cert-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.cert-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.featured-cert-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.featured-cert-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.featured-cert-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(27, 127, 92, 0.15);
  border: 1px solid rgba(27, 127, 92, 0.3);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.featured-cert-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.featured-cert-link:hover {
  gap: 0.625rem;
  color: var(--success-soft);
}

/* ===============================
   CERTIFICATE CARD COM THUMBNAIL
   =============================== */
.cert-card-with-thumb {
  background: rgba(27, 127, 92, 0.12);
  border: 1px solid rgba(27, 127, 92, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(27, 127, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cert-card-with-thumb:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 127, 92, 0.45);
  box-shadow: 
    0 16px 48px rgba(27, 127, 92, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cert-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(27, 127, 92, 0.2), rgba(27, 127, 92, 0.4));
  border-bottom: 1px solid rgba(27, 127, 92, 0.2);
}

.cert-card-body {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

/* ===============================
   MODAL DE CERTIFICADO
   =============================== */
.cert-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 0.75rem;
  padding: 1rem;
  background: rgba(27, 127, 92, 0.08);
  border: 1px solid rgba(27, 127, 92, 0.2);
  border-radius: 0.75rem;
}

.cert-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.cert-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.cert-status {
  background: rgba(27, 127, 92, 0.2);
  border-color: rgba(27, 127, 92, 0.4);
  color: var(--success);
}

.cert-preview {
  margin: 2rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(27, 127, 92, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cert-preview img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: var(--transition);
}

.cert-preview img:hover {
  transform: scale(1.02);
}

.cert-competencias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.625rem;
}

.cert-competencias .tag {
  background: rgba(27, 127, 92, 0.15);
  border-color: rgba(27, 127, 92, 0.3);
  color: var(--success);
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  text-align: center;
  transition: var(--transition);
}

.cert-competencias .tag:hover {
  background: rgba(27, 127, 92, 0.25);
  border-color: rgba(27, 127, 92, 0.5);
  transform: translateY(-2px);
}

/* ===============================
   CATEGORIAS ESPECIAIS
   =============================== */

/* Diplomas - Ouro */
.cert-card-diploma {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.cert-card-diploma:hover {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 
    0 16px 48px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cert-card-diploma .cert-thumb {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.4));
  border-bottom-color: rgba(251, 191, 36, 0.2);
}

.cert-card-diploma .featured-cert-category {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #FBBF24;
}

/* Repositórios - Azul */
.cert-card-repo {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
}

.cert-card-repo:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 
    0 16px 48px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cert-card-repo .cert-thumb {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.4));
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

.cert-card-repo .featured-cert-category {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3B82F6;
}

/* ===============================
   CERTIFICADO - ÍCONE DE SELO
   =============================== */
.cert-seal {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 127, 92, 0.2);
  border: 2px solid rgba(27, 127, 92, 0.5);
  border-radius: 50%;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cert-seal svg {
  width: 32px;
  height: 32px;
  color: var(--success);
}

/* ===============================
   ANIMAÇÕES ESPECIAIS
   =============================== */
@keyframes certShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.featured-cert-card.highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(27, 127, 92, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: certShine 3s ease-in-out infinite;
  pointer-events: none;
}

/* ===============================
   RESPONSIVO - CERTIFICADOS
   =============================== */
@media (max-width: 640px) {
  .cert-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cert-competencias {
    grid-template-columns: 1fr;
  }

  .featured-cert-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===============================
   FEATURED CERTIFICATES (Index)
   =============================== */
.featured-certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.featured-cert-card {
  background: rgba(27, 127, 92, 0.15);
  border: 1px solid rgba(27, 127, 92, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(27, 127, 92, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 127, 92, 0.5);
  box-shadow: 
    0 20px 60px rgba(27, 127, 92, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Badge de destaque */
.cert-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(27, 127, 92, 0.9);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.featured-cert-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: 50% 12%;;
  background: linear-gradient(135deg, rgba(27, 127, 92, 0.2), rgba(27, 127, 92, 0.4));
  border-bottom: 1px solid rgba(27, 127, 92, 0.2);
}

.featured-cert-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex-grow: 1;
}

.featured-cert-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-cert-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.cert-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.cert-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.featured-cert-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.featured-cert-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.featured-cert-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(27, 127, 92, 0.15);
  border: 1px solid rgba(27, 127, 92, 0.3);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.featured-cert-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--success);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.featured-cert-link:hover {
  gap: 0.625rem;
  color: var(--success-soft);
}

/* ===============================
   CERTIFICATE CARD COM THUMBNAIL
   =============================== */
.cert-card-with-thumb {
  background: rgba(27, 127, 92, 0.12);
  border: 1px solid rgba(27, 127, 92, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(27, 127, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cert-card-with-thumb:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 127, 92, 0.45);
  box-shadow: 
    0 16px 48px rgba(27, 127, 92, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cert-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: 50% 12%;
  background: linear-gradient(135deg, rgba(27, 127, 92, 0.2), rgba(27, 127, 92, 0.4));
  border-bottom: 1px solid rgba(27, 127, 92, 0.2);
}

.cert-card-body {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

/* ===============================
   MODAL DE CERTIFICADO
   =============================== */
.cert-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 0.75rem;
  padding: 1rem;
  background: rgba(27, 127, 92, 0.08);
  border: 1px solid rgba(27, 127, 92, 0.2);
  border-radius: 0.75rem;
}

.cert-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.cert-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

.cert-status {
  background: rgba(27, 127, 92, 0.2);
  border-color: rgba(27, 127, 92, 0.4);
  color: var(--success);
}

.cert-preview {
  margin: 2rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(27, 127, 92, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cert-preview img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: var(--transition);
}

.cert-preview img:hover {
  transform: scale(1.02);
}

.cert-competencias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.625rem;
}

.cert-competencias .tag {
  background: rgba(27, 127, 92, 0.15);
  border-color: rgba(27, 127, 92, 0.3);
  color: var(--success);
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  text-align: center;
  transition: var(--transition);
}

.cert-competencias .tag:hover {
  background: rgba(27, 127, 92, 0.25);
  border-color: rgba(27, 127, 92, 0.5);
  transform: translateY(-2px);
}

/* ===============================
   CATEGORIAS ESPECIAIS
   =============================== */

/* Diplomas - Ouro */
.cert-card-diploma {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.cert-card-diploma:hover {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 
    0 16px 48px rgba(251, 191, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cert-card-diploma .cert-thumb {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.4));
  border-bottom-color: rgba(251, 191, 36, 0.2);
}

.cert-card-diploma .featured-cert-category {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: #FBBF24;
}

/* Repositórios - Azul */
.cert-card-repo {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.06);
}

.cert-card-repo:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 
    0 16px 48px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cert-card-repo .cert-thumb {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.4));
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

.cert-card-repo .featured-cert-category {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3B82F6;
}

/* ===============================
   CERTIFICADO - ÍCONE DE SELO
   =============================== */
.cert-seal {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 127, 92, 0.2);
  border: 2px solid rgba(27, 127, 92, 0.5);
  border-radius: 50%;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cert-seal svg {
  width: 32px;
  height: 32px;
  color: var(--success);
}

/* ===============================
   ANIMAÇÕES ESPECIAIS
   =============================== */
@keyframes certShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.featured-cert-card.highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(27, 127, 92, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: certShine 3s ease-in-out infinite;
  pointer-events: none;
}

/* ===============================
   GALERIA DE CERTIFICADOS NO MODAL
   =============================== */
.cert-gallery-header {
  margin-bottom: 1.5rem;
}

.cert-gallery-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.cert-gallery-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  margin: 0;
}

.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.cert-gallery-item {
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0.75rem;
  overflow: hidden;
}

.cert-gallery-item:hover {
  transform: translateY(-4px);
}

.cert-gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(27, 127, 92, 0.1), rgba(27, 127, 92, 0.2));
  border: 1px solid rgba(27, 127, 92, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.cert-gallery-item:hover .cert-gallery-thumb {
  border-color: rgba(27, 127, 92, 0.5);
  box-shadow: 0 8px 24px rgba(27, 127, 92, 0.3);
}

.cert-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.cert-gallery-item:hover .cert-gallery-thumb img {
  transform: scale(1.05);
}

.cert-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cert-gallery-item:hover .cert-gallery-overlay {
  opacity: 1;
}

.cert-gallery-name {
  padding: 0.75rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-gallery-item:hover .cert-gallery-name {
  color: var(--success);
}

/* Badge de contagem de certificados */
.cert-count-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(27, 127, 92, 0.9);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* ===============================
   RESPONSIVO - GALERIA
   =============================== */
@media (max-width: 640px) {
  .cert-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
  
  .cert-gallery-name {
    font-size: 0.6875rem;
    padding: 0.5rem 0.375rem;
  }
}

.menu .back-home {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(242, 140, 40, 0.55);
  color: #F28C28;
  font-weight: 600;
  transition: all .25s ease;
}

.menu .back-home:hover {
  background: rgba(242, 140, 40, 0.15);
  transform: translateX(-3px);
}

/* ===============================
   BUSCA DE CERTIFICADOS
   =============================== */

.cert-search-section {
  margin: 1.5rem 0;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(27, 127, 92, 0.08);
  color: var(--text);
  font-size: 0.9375rem;
  transition: var(--transition);
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--success);
  background: rgba(27, 127, 92, 0.12);
  box-shadow: 
    0 0 0 3px rgba(27, 127, 92, 0.15),
    0 8px 24px rgba(27, 127, 92, 0.2);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-icon {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  transition: var(--transition);
}

.search-input:focus ~ .search-icon {
  color: var(--success);
}

.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  transform: translateY(-50%) scale(1.1);
}

.search-clear:active {
  transform: translateY(-50%) scale(0.95);
}

/* Animação do ícone de busca */
@keyframes searchPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.search-input:focus ~ .search-icon {
  animation: searchPulse 2s ease-in-out infinite;
}

/* ===============================
   MELHORIAS NOS FILTROS
   =============================== */

.filters {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.25rem;
  justify-content: center;
}

.chip {
  padding: 0.625rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(27, 127, 92, 0.08);
  color: var(--text-2);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Efeito de brilho ao hover */
.chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(27, 127, 92, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.chip:hover::before {
  width: 300px;
  height: 300px;
}

.chip:hover {
  background: rgba(27, 127, 92, 0.15);
  border-color: rgba(27, 127, 92, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 127, 92, 0.2);
}

.chip.active {
  background: rgba(27, 127, 92, 0.25);
  border-color: rgba(27, 127, 92, 0.5);
  color: var(--success);
  box-shadow: 
    0 4px 12px rgba(27, 127, 92, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chip.active::after {
  content: '✓';
  margin-left: 0.5rem;
  font-weight: 700;
}

/* ===============================
   ESTATÍSTICAS (OPCIONAL)
   =============================== */

.cert-stats {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(27, 127, 92, 0.08);
  border: 1px solid rgba(27, 127, 92, 0.2);
  border-radius: var(--radius);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 127, 92, 0.4);
  box-shadow: 0 8px 24px rgba(27, 127, 92, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 600;
}

/* ===============================
   HIGHLIGHT DE BUSCA
   =============================== */

mark {
  background: rgba(242, 140, 40, 0.3);
  color: var(--accent);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* ===============================
   LOADING STATE MELHORADO
   =============================== */

.cert-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
}

.cert-loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(27, 127, 92, 0.2);
  border-top-color: var(--success);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cert-loading-text {
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 600;
}

/* ===============================
   EMPTY STATE MELHORADO
   =============================== */

.cert-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(27, 127, 92, 0.08);
  border: 1px solid rgba(27, 127, 92, 0.2);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cert-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.cert-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.cert-empty-desc {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

/* ===============================
   RESPONSIVO - BUSCA E FILTROS
   =============================== */

@media (max-width: 768px) {
  .search-wrapper {
    max-width: 100%;
  }

  .search-input {
    padding: 0.875rem 2.75rem 0.875rem 2.75rem;
    font-size: 0.875rem;
  }

  .search-icon {
    left: 1rem;
    width: 18px;
    height: 18px;
  }

  .search-clear {
    right: 0.875rem;
    width: 1.75rem;
    height: 1.75rem;
  }

  .filters {
    justify-content: flex-start;
  }

  .chip {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .cert-search-section {
    margin: 1rem 0;
  }

  .search-input {
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    font-size: 0.8125rem;
  }

  .filters {
    gap: 0.5rem;
  }

  .chip {
    font-size: 0.6875rem;
    padding: 0.4375rem 0.75rem;
  }

  .chip.active::after {
    margin-left: 0.375rem;
  }
}

/* ===============================
   ACESSIBILIDADE - FOCUS STATES
   =============================== */

.search-input:focus-visible {
  outline: 3px solid var(--success);
  outline-offset: 2px;
}

.search-clear:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
}

.chip:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
}

/* ===============================
   ANIMAÇÕES DE ENTRADA
   =============================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cert-search-section,
.filters {
  animation: fadeInUp 0.4s ease-out;
}

.cert-search-section {
  animation-delay: 0.1s;
}

.filters {
  animation-delay: 0.2s;
}

/* Previne flash de conteúdo não estilizado */
.cert-search-section,
.filters {
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ===============================
   MODO ESCURO INTENSO (OPCIONAL)
   =============================== */

@media (prefers-color-scheme: dark) {
  .search-input {
    background: rgba(27, 127, 92, 0.12);
  }

  .search-input:focus {
    background: rgba(27, 127, 92, 0.18);
  }

  .chip {
    background: rgba(27, 127, 92, 0.12);
  }

  .chip:hover {
    background: rgba(27, 127, 92, 0.2);
  }

  .chip.active {
    background: rgba(27, 127, 92, 0.3);
  }
}

/* ===============================
   DIPLOMAS - ESTILOS COMPLETOS
   Adicione este código ao final do seu styles.css
   =============================== */

/* ===============================
   DIPLOMAS - CORES TEMÁTICAS
   =============================== */

:root {
  --diploma-gold: #D4AF37;
  --diploma-gold-soft: #E8D090;
  --diploma-gold-bg: rgba(212, 175, 55, 0.1);
  --diploma-gold-border: rgba(212, 175, 55, 0.3);
  
  --diploma-silver: #C0C0C0;
  --diploma-silver-soft: #E0E0E0;
  --diploma-silver-bg: rgba(192, 192, 192, 0.1);
  --diploma-silver-border: rgba(192, 192, 192, 0.3);
  
  --diploma-bronze: #CD7F32;
  --diploma-bronze-soft: #E6A35C;
  --diploma-bronze-bg: rgba(205, 127, 50, 0.1);
  --diploma-bronze-border: rgba(205, 127, 50, 0.3);
}

/* ===============================
   FEATURED DIPLOMAS (Index)
   =============================== */

.featured-diplomas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.featured-diploma-card {
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-diploma-card:hover {
  transform: translateY(-6px);
  border-color: var(--diploma-gold);
  box-shadow: 
    0 20px 60px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Selo de diploma */
.diploma-seal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--diploma-gold) 0%, var(--diploma-gold-soft) 100%);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: sealPulse 3s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.3),
      inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 6px 20px rgba(212, 175, 55, 0.5),
      inset 0 2px 4px rgba(255, 255, 255, 0.4);
  }
}

.diploma-seal svg {
  width: 32px;
  height: 32px;
  color: #1F2937;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.featured-diploma-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: 50% 20%;
  background: linear-gradient(135deg, var(--diploma-gold-bg), rgba(212, 175, 55, 0.2));
  border-bottom: 1px solid var(--diploma-gold-border);
}

.featured-diploma-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex-grow: 1;
}

.featured-diploma-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-diploma-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.featured-diploma-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--diploma-gold);
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  align-self: flex-start;
}

.diploma-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.diploma-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.diploma-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  color: var(--diploma-gold);
}

.featured-diploma-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.featured-diploma-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.featured-diploma-nivel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--diploma-gold);
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.featured-diploma-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--diploma-gold);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.featured-diploma-link:hover {
  gap: 0.625rem;
  color: var(--diploma-gold-soft);
}

/* ===============================
   VARIAÇÕES DE COR POR TIPO
   =============================== */

/* MBA - Ouro */
.featured-diploma-card.diploma-mba,
.diploma-card-with-thumb.diploma-card-mba {
  border-color: var(--diploma-gold-border);
  background: var(--diploma-gold-bg);
}

.featured-diploma-card.diploma-mba:hover,
.diploma-card-with-thumb.diploma-card-mba:hover {
  border-color: var(--diploma-gold);
  box-shadow: 
    0 20px 60px rgba(212, 175, 55, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.diploma-mba .diploma-seal {
  background: radial-gradient(circle, var(--diploma-gold) 0%, var(--diploma-gold-soft) 100%);
}

/* Especialização - Prata */
.featured-diploma-card.diploma-especializacao,
.diploma-card-with-thumb.diploma-card-especializacao {
  border-color: var(--diploma-silver-border);
  background: var(--diploma-silver-bg);
}

.featured-diploma-card.diploma-especializacao:hover,
.diploma-card-with-thumb.diploma-card-especializacao:hover {
  border-color: var(--diploma-silver);
  box-shadow: 
    0 20px 60px rgba(192, 192, 192, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.diploma-especializacao .diploma-seal {
  background: radial-gradient(circle, var(--diploma-silver) 0%, var(--diploma-silver-soft) 100%);
}

.diploma-especializacao .featured-diploma-type,
.diploma-especializacao .featured-diploma-nivel,
.diploma-especializacao .featured-diploma-link,
.diploma-especializacao .diploma-meta-item svg {
  color: var(--diploma-silver);
}

/* Graduação - Bronze */
.featured-diploma-card.diploma-graduacao,
.diploma-card-with-thumb.diploma-card-graduacao {
  border-color: var(--diploma-bronze-border);
  background: var(--diploma-bronze-bg);
}

.featured-diploma-card.diploma-graduacao:hover,
.diploma-card-with-thumb.diploma-card-graduacao:hover {
  border-color: var(--diploma-bronze);
  box-shadow: 
    0 20px 60px rgba(205, 127, 50, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.diploma-graduacao .diploma-seal {
  background: radial-gradient(circle, var(--diploma-bronze) 0%, var(--diploma-bronze-soft) 100%);
}

.diploma-graduacao .featured-diploma-type,
.diploma-graduacao .featured-diploma-nivel,
.diploma-graduacao .featured-diploma-link,
.diploma-graduacao .diploma-meta-item svg {
  color: var(--diploma-bronze);
}

/* ===============================
   DIPLOMA CARD COM THUMBNAIL (diplomas.html)
   =============================== */

.diplomas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.diploma-card-with-thumb {
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.diploma-card-with-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--diploma-gold);
  box-shadow: 
    0 16px 48px rgba(212, 175, 55, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.diploma-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: radial-gradient(circle, var(--diploma-gold) 0%, var(--diploma-gold-soft) 100%);
  color: #1F2937;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.diploma-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: 50% 20%;
  background: linear-gradient(135deg, var(--diploma-gold-bg), rgba(212, 175, 55, 0.2));
  border-bottom: 1px solid var(--diploma-gold-border);
}

.diploma-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

/* ===============================
   TIMELINE DE DIPLOMAS (diplomas.html)
   =============================== */

.diploma-timeline {
  margin: 2rem 0 3rem;
}

.timeline-header {
  text-align: center;
  margin-bottom: 2rem;
}

.timeline-header h2 {
  margin-bottom: 0.5rem;
}

.timeline-content {
  position: relative;
  margin-top: 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Linha vertical central */
.timeline-content::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-1.5px);
  background: linear-gradient(
    to bottom,
    var(--diploma-gold) 0%,
    var(--diploma-silver) 50%,
    var(--diploma-bronze) 100%
  );
  border-radius: 2px;
}

.diploma-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-dot {
  grid-column: 2;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--diploma-gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--diploma-gold-border);
  justify-self: center;
  z-index: 2;
  transition: var(--transition);
}

.diploma-timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px var(--diploma-gold-border);
}

.timeline-card {
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--diploma-gold);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.25);
}

/* Posicionamento alternado */
.diploma-timeline-item.left .timeline-card {
  grid-column: 1;
  justify-self: end;
}

.diploma-timeline-item.right .timeline-card {
  grid-column: 3;
  justify-self: start;
}

.timeline-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--diploma-gold);
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  line-height: 1.3;
}

.timeline-institution {
  font-size: 0.875rem;
  color: var(--text-2);
  margin: 0 0 0.75rem;
}

.timeline-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--diploma-gold);
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

/* ===============================
   MODAL DE DIPLOMA
   =============================== */

.diploma-type {
  background: var(--diploma-gold-bg);
  border-color: var(--diploma-gold-border);
  color: var(--diploma-gold);
}

.diploma-status {
  background: rgba(27, 127, 92, 0.2);
  border-color: rgba(27, 127, 92, 0.4);
  color: var(--success);
}

.diploma-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1rem 0 0.75rem;
  padding: 1.25rem;
  background: var(--diploma-gold-bg);
  border: 1px solid var(--diploma-gold-border);
  border-radius: 0.75rem;
}

.diploma-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.diploma-info-item svg {
  width: 16px;
  height: 16px;
  color: var(--diploma-gold);
  flex-shrink: 0;
}

.diploma-preview {
  margin: 2rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--diploma-gold-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.diploma-preview img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: var(--transition);
}

.diploma-preview img:hover {
  transform: scale(1.02);
}

/* Preview para PDFs */
.diploma-pdf-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--diploma-gold-bg);
  border: 2px dashed var(--diploma-gold-border);
  border-radius: 0.75rem;
  gap: 1.5rem;
}

.diploma-pdf-preview svg {
  width: 64px;
  height: 64px;
  color: var(--diploma-gold);
  opacity: 0.8;
}

.diploma-pdf-preview p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  margin: 0;
}

.diploma-competencias {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.625rem;
}

.diploma-competencias .tag {
  background: var(--diploma-gold-bg);
  border-color: var(--diploma-gold-border);
  color: var(--diploma-gold);
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  text-align: center;
  transition: var(--transition);
}

.diploma-competencias .tag:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--diploma-gold);
  transform: translateY(-2px);
}

/* ===============================
   RESPONSIVO - DIPLOMAS
   =============================== */

@media (max-width: 900px) {
  .timeline-content::before {
    left: 1rem;
    transform: none;
  }

  .diploma-timeline-item {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .diploma-timeline-item.left .timeline-card,
  .diploma-timeline-item.right .timeline-card {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .featured-diplomas {
    gap: 1.25rem;
  }

  .featured-diploma-thumb,
  .diploma-thumb {
    height: 180px;
  }

  .diploma-seal {
    width: 50px;
    height: 50px;
    top: 0.75rem;
    right: 0.75rem;
  }

  .diploma-seal svg {
    width: 26px;
    height: 26px;
  }

  .diploma-info {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .diploma-competencias {
    grid-template-columns: 1fr;
  }

  .diploma-timeline-item {
    gap: 0.75rem;
  }

  .timeline-card {
    padding: 1.125rem;
  }
}

/* ===============================
   ANIMAÇÕES ESPECIAIS
   =============================== */

@keyframes diplomaShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.featured-diploma-card.highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.2),
    transparent
  );
  background-size: 200% 100%;
  animation: diplomaShine 3s ease-in-out infinite;
  pointer-events: none;
}

/* ===============================
   LIVROS - ESTILOS COMPLETOS
   Adicione este código ao final do styles.css
   =============================== */

/* ===============================
   CORES TEMÁTICAS DE LIVROS
   =============================== */

:root {
  --book-primary: #8B5CF6;
  --book-primary-soft: #A78BFA;
  --book-primary-bg: rgba(139, 92, 246, 0.1);
  --book-primary-border: rgba(139, 92, 246, 0.3);
  
  --book-secondary: #EC4899;
  --book-secondary-soft: #F472B6;
  --book-secondary-bg: rgba(236, 72, 153, 0.1);
  --book-secondary-border: rgba(236, 72, 153, 0.3);
}

/* ===============================
   FEATURED STUDIES (Index)
   =============================== */

.featured-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.featured-study-card {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    0 10px 40px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-study-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    0 20px 60px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.study-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(59, 130, 246, 0.9);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.featured-study-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.4));
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.featured-study-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex-grow: 1;
}

.featured-study-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-study-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.study-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.study-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.featured-study-desc {
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-study-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.study-tech-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(59, 130, 246, 1);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.featured-study-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.featured-study-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(59, 130, 246, 1);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.featured-study-link:hover {
  gap: 0.625rem;
  color: rgba(96, 165, 250, 1);
}

/* ===============================
   FEATURED BOOKS (Index)
   =============================== */

.featured-books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.featured-book-card {
  background: var(--book-primary-bg);
  border: 1px solid var(--book-primary-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 10px 40px rgba(139, 92, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-book-card:hover {
  transform: translateY(-8px);
  border-color: var(--book-primary);
  box-shadow: 
    0 20px 60px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Badge de destaque */
.book-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(139, 92, 246, 0.95);
  color: white;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.featured-book-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, var(--book-primary-bg), rgba(139, 92, 246, 0.2));
  border-bottom: 1px solid var(--book-primary-border);
}

.featured-book-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-grow: 1;
}

.featured-book-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-book-author {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.featured-book-author svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

.featured-book-rating {
  display: flex;
  gap: 0.25rem;
  margin: 0.25rem 0;
}

.star {
  width: 14px;
  height: 14px;
  color: #FBBF24;
}

.star.empty {
  opacity: 0.3;
}

.featured-book-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.book-year {
  color: var(--text-2);
  font-weight: 600;
}

.book-pages {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===============================
   BOOK CARD (livros.html)
   =============================== */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.book-card {
  background: var(--book-primary-bg);
  border: 1px solid var(--book-primary-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--book-primary);
  box-shadow: 
    0 16px 48px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.book-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, var(--book-primary-bg), rgba(139, 92, 246, 0.2));
  border-bottom: 1px solid var(--book-primary-border);
}

.book-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex-grow: 1;
}

.book-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 500;
}

.book-collection-badge {
  font-size: 0.6875rem;
  color: var(--book-secondary);
  background: var(--book-secondary-bg);
  border: 1px solid var(--book-secondary-border);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ===============================
   MODAL DE LIVRO
   =============================== */

.modal-book {
  max-width: 1000px;
}

.modal-book-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.book-cover-container {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.book-modal-cover {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.2);
  transition: var(--transition);
}

.book-modal-cover:hover {
  transform: scale(1.02);
  box-shadow: 
    0 24px 70px rgba(139, 92, 246, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.4);
}

.book-rating {
  display: flex;
  gap: 0.375rem;
  margin-top: 1rem;
  justify-content: center;
}

.book-rating .star {
  width: 20px;
  height: 20px;
}

.book-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.book-genre {
  background: var(--book-primary-bg);
  border-color: var(--book-primary-border);
  color: var(--book-primary);
}

.book-collection {
  background: var(--book-secondary-bg);
  border-color: var(--book-secondary-border);
  color: var(--book-secondary);
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--book-secondary-border);
  font-weight: 700;
}

.book-original-title {
  font-size: 0.9375rem;
  color: var(--muted);
  font-style: italic;
  margin: -0.5rem 0 0;
}

.book-meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem;
  background: var(--book-primary-bg);
  border: 1px solid var(--book-primary-border);
  border-radius: 0.75rem;
  margin-top: 0.5rem;
}

.book-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.book-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--book-primary);
  flex-shrink: 0;
}

.book-meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.book-quote-section {
  background: var(--book-primary-bg);
  border: 1px solid var(--book-primary-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.book-quote {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--book-primary);
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
  position: relative;
}

.book-quote::before {
  content: '"';
  position: absolute;
  left: -1rem;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--book-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.book-tags .tag {
  background: var(--book-primary-bg);
  border-color: var(--book-primary-border);
  color: var(--book-primary);
}

/* ===============================
   BUSCA E FILTROS
   =============================== */

.book-search-section {
  margin: 1.5rem 0;
}

/* ===============================
   ESTATÍSTICAS DE LIVROS
   =============================== */

.book-stats {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--book-primary-bg);
  border: 1px solid var(--book-primary-border);
  border-radius: var(--radius);
}

.book-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.book-stat-card {
  text-align: center;
  padding: 1rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  transition: var(--transition);
}

.book-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--book-primary-border);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.book-stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--book-primary);
}

.book-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--book-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.book-stat-label {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 600;
}

/* ===============================
   VARIAÇÕES POR GÊNERO
   =============================== */

/* Fantasia - Roxo (padrão) */
.book-card.genre-fantasia,
.featured-book-card.genre-fantasia {
  border-color: var(--book-primary-border);
  background: var(--book-primary-bg);
}

/* Técnico - Azul */
.book-card.genre-tecnico,
.featured-book-card.genre-tecnico {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.08);
}

.genre-tecnico .book-genre,
.genre-tecnico .book-meta-item svg {
  color: #3B82F6;
}

/* Desenvolvimento Pessoal - Verde */
.book-card.genre-desenvolvimento,
.featured-book-card.genre-desenvolvimento {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.genre-desenvolvimento .book-genre,
.genre-desenvolvimento .book-meta-item svg {
  color: #10B981;
}

/* Ficção - Rosa */
.book-card.genre-ficcao,
.featured-book-card.genre-ficcao {
  border-color: var(--book-secondary-border);
  background: var(--book-secondary-bg);
}

.genre-ficcao .book-genre,
.genre-ficcao .book-meta-item svg {
  color: var(--book-secondary);
}

/* ===============================
   ANIMAÇÕES
   =============================== */

@keyframes bookShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.featured-book-card.highlight::after,
.book-card.highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.15),
    transparent
  );
  background-size: 200% 100%;
  animation: bookShine 3s ease-in-out infinite;
  pointer-events: none;
}

/* ===============================
   RESPONSIVO - LIVROS
   =============================== */

@media (max-width: 900px) {
  .modal-book-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .book-cover-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .featured-books {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 1rem;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 1rem;
  }

  .featured-book-cover,
  .book-cover {
    height: 240px;
  }

  .book-cover-container {
    max-width: 240px;
  }

  .book-meta-info {
    padding: 0.875rem;
  }

  .book-quote {
    font-size: 0.9375rem;
    padding-left: 1rem;
  }

  .book-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .book-stat-number {
    font-size: 1.5rem;
  }

  .book-stat-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .featured-books,
  .books-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  }

  .featured-book-cover,
  .book-cover {
    height: 200px;
  }

  .book-cover-container {
    max-width: 200px;
  }
}

/* ===============================
   ACESSIBILIDADE
   =============================== */

.book-card:focus-visible,
.featured-book-card:focus-visible {
  outline: 2px solid var(--book-primary);
  outline-offset: 2px;
}

/* ===============================
   LOADING STATE
   =============================== */

.books-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
}

.books-loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--book-primary-bg);
  border-top-color: var(--book-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===============================
   EMPTY STATE
   =============================== */

.books-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--book-primary-bg);
  border: 1px solid var(--book-primary-border);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.books-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: var(--book-primary);
  opacity: 0.5;
}

/* ===============================
   COMO TRABALHO (escopado)
   =============================== */

#como-trabalho .work-process {
  display: grid;
  gap: 2.5rem;
}

/* Bloco Mentalidade */
#como-trabalho .work-mindset {
  background: rgba(27, 127, 92, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-radius: var(--radius);
  padding: 2.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#como-trabalho .work-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

#como-trabalho .work-text {
  color: var(--text-2);
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

#como-trabalho .work-mindset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

#como-trabalho .work-mindset-card {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(242, 140, 40, 0.25);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#como-trabalho .work-mindset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 140, 40, 0.5);
  box-shadow: 0 12px 32px rgba(242, 140, 40, 0.18);
}

#como-trabalho .work-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

#como-trabalho .work-mindset-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

#como-trabalho .work-mindset-card p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Pipeline */
#como-trabalho .work-pipeline-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

#como-trabalho .work-pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

#como-trabalho .work-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  align-items: start;
}

#como-trabalho .work-step-number {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #111827;
  box-shadow: 0 8px 24px rgba(242, 140, 40, 0.28);
  position: relative;
}

#como-trabalho .work-step-number::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 1.25rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

#como-trabalho .work-step:last-child .work-step-number::after {
  display: none;
}

#como-trabalho .work-step-content {
  background: rgba(27, 127, 92, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}

#como-trabalho .work-step-content:hover {
  border-color: rgba(242, 140, 40, 0.4);
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(242, 140, 40, 0.18);
}

#como-trabalho .work-step-content:focus-visible {
  box-shadow:
    0 0 0 3px rgba(242, 140, 40, 0.22),
    0 12px 32px rgba(242, 140, 40, 0.18);
}

#como-trabalho .work-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

#como-trabalho .work-step-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  margin: 0;
}

#como-trabalho .work-step-badge {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--accent);
  background: rgba(242, 140, 40, 0.15);
  border: 1px solid rgba(242, 140, 40, 0.3);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

#como-trabalho .work-step-desc {
  color: var(--text-2);
  margin: 0 0 1rem;
  line-height: 1.7;
}

#como-trabalho .work-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#como-trabalho .work-tool {
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  background: rgba(27, 127, 92, 0.2);
  border: 1px solid rgba(27, 127, 92, 0.35);
  border-radius: 999px;
  color: var(--success-soft);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#como-trabalho .work-tool:hover {
  background: rgba(27, 127, 92, 0.28);
  transform: translateY(-2px);
}

/* Details */
#como-trabalho .work-step-details {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 1.25rem;
}

#como-trabalho .work-detail {
  margin-bottom: 1.25rem;
}

#como-trabalho .work-detail h5 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#como-trabalho .work-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

#como-trabalho .work-detail li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-2);
  line-height: 1.6;
}

#como-trabalho .work-detail li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

/* Animação de entrada (sem mexer no resto do site) */
#como-trabalho .work-anim {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#como-trabalho .work-anim.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
  #como-trabalho .work-mindset {
    padding: 1.5rem;
  }

  #como-trabalho .work-step {
    grid-template-columns: 52px 1fr;
    gap: 1rem;
  }

  #como-trabalho .work-step-number {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  #como-trabalho .work-step-content {
    padding: 1.35rem;
  }

  #como-trabalho .work-step-title {
    font-size: 1.12rem;
  }
}

/* ===== Caixinhas dentro dos steps (substitui visual de lista crua) ===== */
#como-trabalho .work-detail ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
  margin: 0;
}

#como-trabalho .work-detail li {
  padding: 0.85rem 0.9rem 0.85rem 2.2rem;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.55);
  border: 1px solid rgba(242, 140, 40, 0.22);
  color: var(--text-2);
}

#como-trabalho .work-detail li::before {
  left: 0.9rem;
  top: 0.85rem;
  content: "→";
  color: var(--accent);
  font-weight: 900;
}

/* ===== Tools Showcase (escopado) ===== */
#como-trabalho .work-tools-showcase {
  margin-top: 1.5rem;
  background: rgba(27, 127, 92, 0.08);
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}

#como-trabalho .work-tools-showcase-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 900;
  margin: 0 0 2rem;
  color: var(--text);
}

#como-trabalho .work-tools-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

#como-trabalho .work-tool-category {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(242, 140, 40, 0.25);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition);
}

#como-trabalho .work-tool-category:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 140, 40, 0.5);
  box-shadow: 0 16px 48px rgba(242, 140, 40, 0.22);
}

#como-trabalho .work-tool-category-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

#como-trabalho .work-tool-category h4 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 1rem;
  color: var(--text);
}

#como-trabalho .work-tool-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#como-trabalho .work-tool-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(27, 127, 92, 0.1);
  border: 1px solid rgba(27, 127, 92, 0.22);
  border-radius: 10px;
  transition: var(--transition);
}

#como-trabalho .work-tool-item:hover {
  background: rgba(27, 127, 92, 0.18);
  border-color: rgba(27, 127, 92, 0.35);
  transform: translateX(6px);
}

#como-trabalho .work-tool-item-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 140, 40, 0.15);
  border-radius: 8px;
}

/* ===== Conceitos Fundamentais (escopado) ===== */
#como-trabalho .work-concepts {
  margin-top: 2.5rem;
}

#como-trabalho .work-concepts-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 900;
  margin: 0 0 1.75rem;
  color: var(--text);
}

#como-trabalho .work-concepts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

#como-trabalho .work-concept-card {
  background: rgba(27, 127, 92, 0.12);
  border: 1px solid rgba(242, 140, 40, 0.22);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  cursor: default;
}

#como-trabalho .work-concept-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 140, 40, 0.4);
  box-shadow: 0 16px 48px rgba(242, 140, 40, 0.22);
}

#como-trabalho .work-concept-number {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 0.85rem;
}

#como-trabalho .work-concept-card h4 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-weight: 900;
}

#como-trabalho .work-concept-card p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===============================
   COMO TRABALHO - VER MAIS / VER MENOS
   =============================== */

.work-process-content{
  max-height: 980px;              /* ajuste fino: aumenta/diminui até ficar perfeito */
  overflow: hidden;
  position: relative;
  transition: max-height .55s ease;
}

/* gradiente pra dar pista visual de que tem mais coisa */
.work-process-content::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:120px;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(17,24,39,1));
  /* esse rgba(17,24,39,1) é o teu --bg (#111827) */
}

.work-process-content.expanded{
  max-height: 9999px;
}

.work-process-content.expanded::after{
  display:none;
}

.work-process-toggle{
  display:flex;
  justify-content:center;
  margin-top: 18px;
}

/* botão no mesmo estilo do toggle da timeline */
#toggleWorkProcess{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(31,41,55,.65);
  color: var(--text);
  cursor: pointer;
}

/* hover parecido */
#toggleWorkProcess:hover{
  background: rgba(31,41,55,.85);
}
#toggleWorkProcess:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ===============================
   PRINT STYLESHEET
   =============================== */
@media print {
  /* Reset cores para impressao */
  :root {
    --bg: #fff;
    --surface: #f5f5f5;
    --text: #111;
    --text-2: #333;
    --muted: #666;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Esconder elementos nao imprimiveis */
  .topbar,
  .skip-link,
  .scroll-spy,
  .timeline-toggle,
  .work-process-toggle,
  .filters,
  .cert-search-section,
  .book-search-section,
  .search-wrapper,
  footer,
  noscript,
  .hero-canvas::before,
  .hero-canvas::after {
    display: none !important;
  }

  /* Garantir que todo conteudo apareca */
  .timeline-items,
  .work-process-content {
    max-height: none !important;
    overflow: visible !important;
  }
  .timeline-items::after,
  .work-process-content::after {
    display: none !important;
  }

  /* Links visiveis com URL */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Cards sem sombra e com borda */
  .project-card,
  .cert-group,
  .diploma-card,
  .book-card,
  .featured-book-card,
  .t-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    background: #fff !important;
  }

  /* Imagens ajustadas */
  img {
    max-width: 100% !important;
    break-inside: avoid;
  }

  /* Sem animacoes */
  * {
    animation: none !important;
    transition: none !important;
  }

  /* Margens da pagina */
  @page {
    margin: 1.5cm;
  }
}
