/* RESET BÁSICO */
* {
box-sizing: border-box;
}

/* FUNDO GERAL */
body {
background-color: #e5e7eb;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Helvetica, Arial, sans-serif;
color: #111827;
}

/* REMOVE HEADER DO TEMA */
header {
display: none;
}

/* CONTAINER DO CONTEÚDO (Jekyll usa .wrapper) */
.wrapper {
max-width: 1100px;
margin: 48px auto;
background-color: #f9fafb;
padding: 64px;
border-radius: 20px;
border: 1px solid #d1d5db;
box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* LINKS */
a {
color: #2563eb;
font-weight: 600;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

/* HERO */
.hero {
text-align: center;
margin-bottom: 72px;
}

.hero h1 {
font-size: 2.6rem;
margin-bottom: 8px;
}

.hero h2 {
font-size: 1.3rem;
font-weight: 500;
color: #2563eb;
}

.hero p {
max-width: 720px;
margin: 24px auto;
color: #374151;
line-height: 1.7;
}

/* BOTÕES */
.hero-actions {
display: flex;
  justify-content: center;
  align-items: center;
gap: 12px;
  margin-top: 28px;
flex-wrap: wrap;
  margin-top: 20px;
}

/* base para todos os botões */
.hero-actions a {
text-decoration: none;
padding: 10px 18px;
border-radius: 12px;
font-weight: 600;
font-size: 0.9rem;
transition: all 0.2s ease;
}

/* botão principal */
.cta-buttons {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin: 24px 0;
}

.btn {
padding: 10px 18px;
border-radius: 8px;
font-weight: 600;
text-decoration: none;
font-size: 0.95rem;
transition: all 0.2s ease-in-out;
}

.btn-primary {
background: #2563eb;
color: #ffffff;
}

.btn-primary:hover {
background: #1e40af;
}

.btn-secondary {
background: #e5e7eb;
color: #111827;
}

.btn-secondary:hover {
background: #d1d5db;
}

.btn-tertiary {
background: transparent;
color: #2563eb;
border: 1px solid #2563eb;
}

.btn-tertiary:hover {
background: #2563eb;
color: #ffffff;
}

/* TÍTULOS DE SEÇÃO */
.section-title {
font-size: 1.9rem;
margin-bottom: 32px;
}

/* CARDS */
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}

.card {
background: #f9f9f9;
border: 1px solid #e0e0e0;
border-radius: 16px;
padding: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card h3 {
margin-bottom: 12px;
}

.card p {
color: #4b5563;
}

.card img {
width: 100%;
border-radius: 12px;
margin-bottom: 14px;
border: 1px solid #ddd;
background: #f5f5f5;
}

.card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


/* TAGS */
.tags {
margin: 16px 0;
display: flex;
gap: 8px;
flex-wrap: wrap;
}

.tags span {
background: #eaeaea;
color: #333;
font-size: 0.75rem;
padding: 4px 10px;
border-radius: 20px;
}

/* LINKS DOS CARDS */
.card-links {
display: flex;
gap: 16px;
margin-top: 12px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
.wrapper {
padding: 40px 24px;
margin: 24px;
}

/* HEADER FIXO */
.language-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  text-align: center;
}

.language-header a {
  padding: 8px 16px;
  margin: 0 5px;
  background: #0d6efd;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

.language-header a:hover {
  opacity: 0.85;
}

/* CARDS */
.project-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
}

.project-links a {
  margin-right: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #0d6efd;
}

.project-links a:hover {
  text-decoration: underline;
}

/* BOTÃO VOLTAR */
.back-top {
  display: block;
  margin-top: 30px;
  text-align: right;
}

/* ========================= */
/* HEADER IDIOMA FIXO */
/* ========================= */
.top-language-bar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 6px 20px;
  text-align: right;
  z-index: 1000;
}

.top-language-bar a {
  font-size: 14px;
  text-decoration: none;
  margin-left: 15px;
  font-weight: 500;
  color: #2563eb;
}

.top-language-bar a:hover {
  text-decoration: underline;
}

/* ========================= */
/* GRID 3 COLUNAS */
/* ========================= */
.projects-grid {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.project-card {
  flex: 1 1 calc(33.333% - 20px);
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  transition: 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

/* IMAGEM CONTROLADA */
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* RESUMO */
.project-summary {
  font-size: 14px;
  margin: 12px 0;
  color: #555;
}

/* BADGES */
.tech-badges {
  margin-top: 10px;
}

.tech-badges span {
  display: inline-block;
  background: #f1f3f5;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin: 4px 5px 0 0;
}

/* LINKS */
.project-links {
  margin-top: 15px;
}

.project-links a {
  text-decoration: none;
  margin-right: 15px;
  font-weight: 500;
  color: #2563eb;
}

.project-links a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
  .project-card {
    flex: 1 1 100%;
  }
}
