:root {
  --bg-main: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --accent: #0d9488;
  --accent-hover: #0f766e;
}

body.dark-theme {
  --bg-main: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --border-color: #334155;
  --accent: #32bcad;
  --accent-hover: #38bdf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

#btn-tema {
  background-color: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
}

.badge {
  display: inline-block;
  background-color: var(--bg-alt);
  color: var(--accent);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.2s;
}

body.dark-theme .btn-primary {
  color: #0f172a;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* Seções */
.section {
  padding: 70px 0;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 45px;
}

/* Grids e Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projetos */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img {
  height: 240px; /* Um pouco mais alto para melhor leitura */
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Garante que a imagem apareça 100% inteira, sem cortes */
  border-radius: 6px;
}

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.link-projeto {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.link-projeto:hover {
  text-decoration: underline;
}

/* Diferenciais */
.diff-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: 8px;
}

.diff-item h4 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.1rem;
}

.diff-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Footer */
.footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 40px;
}

.footer-content p {
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 650px) {
  .hero h1 { font-size: 1.85rem; }
  .nav-links a { display: none; }
}
.livros-vitrine {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}

body.dark-theme .livros-vitrine {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.livros-vitrine img {
  width: auto;
  height: 100%;
  max-width: 31%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
