/* CONFIGURAÇÕES GERAIS E VARIÁVEIS */
:root {
  --primary: #2563eb;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --header-grad: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Ajustado para 4 itens */
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem; /* Um pouco menor para caber melhor na linha */
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-desc {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

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

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* HERO SECTION */
.hero {
  position: relative;
  background: var(--header-grad);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.hero h2 { font-size: 1.5rem; font-weight: 300; color: #94a3b8; margin-bottom: 2rem; }
.hero p { max-width: 700px; margin: 0 auto 2rem; font-size: 1.15rem; opacity: 0.9; }

/* REDES SOCIAIS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* LANGUAGE SWITCH - Versão Final e Limpa */
.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.language-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 45px;
  height: 45px;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.flag-img {
  width: 24px; /* Tamanho da bandeira dentro do botão */
  height: auto;
  border-radius: 2px;
  pointer-events: none;
}

.language-switch button.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  transform: scale(1.1);
}

.language-switch button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.social-links a.cv-download {
  color: #e74c3c; /* Uma cor avermelhada para lembrar o PDF, ou mantenha a cor padrão */
  font-weight: bold;
}

.social-links a:hover {
  transform: translateY(-3px); /* Mantém o efeito de flutuar que os outros ícones devem ter */
}

.language-switch button span {
  font-size: 1.2rem; /* Aumenta um pouco a bandeira */
}

.language-switch button:hover { background: var(--accent); color: #000; }

/* BOTÕES */
.btn {
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.btn.primary { background: var(--accent); color: #000; border: none; }
.btn.outline { border: 1px solid var(--primary); color: var(--primary); margin-top: 1rem; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* SECTIONS GERAIS */
.section { padding: 80px 0; }
.section h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.section.alt { background: #fff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }

/* PROJECT CARDS */
.project-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  margin-bottom: 4rem;
  border: 1px solid #e2e8f0;
}

.project-card h4 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-main); }
.tech-text { font-style: italic; color: var(--text-muted); margin: 1rem 0; font-size: 0.95rem; }

/* SCREENSHOTS */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.screenshots img { width: 100%; border-radius: 8px; border: 1px solid #eee; }
.screenshots figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* CURSO UDEMY CARD */
.course-card {
  border-left: 5px solid #a435f0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.course-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.course-icon { font-size: 2.5rem; color: #a435f0; }

.badge {
  background: #a435f0;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
}

/* RECOMENDAÇÕES (TESTIMONIALS) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.test-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  opacity: 0.3;
}

.test-text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 15px;
  flex-grow: 1;
}

.test-author strong { display: block; color: var(--primary); font-size: 1rem; }
.test-author span { font-size: 0.85rem; color: var(--text-muted); }

/* SKILLS / TECHS */
.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.skills li {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Adicione ao final do seu style.css */

.project-card.highlight {
  border-left: 5px solid var(--accent);
  background: linear-gradient(to right, #ffffff, #fdfdfd);
}

.badge-impact {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 15px;
  text-transform: uppercase;
}

.focus { margin-top: 20px; font-style: italic; color: var(--text-muted); }

/* FOOTER */
footer { background: #0f172a; color: #94a3b8; padding: 40px 0; text-align: center; font-size: 0.9rem; margin-top: 40px; }
footer a { color: #fff; text-decoration: none; }

/* RESPONSIVIDADE */
@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
  .course-header { flex-direction: column; align-items: flex-start; }
}