/* =========================================
   1. VARIÁVEIS E TEMAS
   ========================================= */
:root {
  --bg-color: #FAFAFA;
  --card-bg: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border-subtle: #E5E7EB; 
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --accent-color: #6B9080; /* Verde Sálvia */
  --accent-glow: rgba(107, 144, 128, 0.15);
}

body.dark-mode {
  --bg-color: #0f172a;
  --card-bg: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-subtle: #334155;
  --accent-glow: rgba(107, 144, 128, 0.25);
}

/* =========================================
   2. CONFIGURAÇÕES GERAIS
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-color);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm54 0c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236B9080' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* =========================================
   3. HERO & NAVEGAÇÃO
   ========================================= */
.hero { text-align: center; margin-bottom: 2rem; padding-top: 1.5rem; }

.minimal-name { font-size: 2.2rem; font-weight: 300; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 0.2rem; }
.hero-job { font-size: 0.85rem; font-weight: 600; color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.5rem; }

.subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto 1.5rem auto; font-size: 1.05rem; }

.nav-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-nav {
  background: var(--card-bg);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-nav:hover { color: var(--accent-color); border-color: var(--accent-color); transform: translateY(-2px); }

/* =========================================
   4. EXPERTISE (Grade 2x2 Forçada)
   ========================================= */
.expertise-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem 3rem !important;
  margin: 4rem auto !important;
  max-width: 850px !important;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  transition: 0.3s ease;
}

.expertise-item:hover {
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.expertise-icon {
  background: var(--accent-glow);
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.expertise-text h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; letter-spacing: 0.5px; text-transform: uppercase; }
.expertise-text p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* =========================================
   5. SOBRE MIM & DIAGRAMA DE VENN
   ========================================= */
.about-section { margin: 2rem auto 4rem auto; max-width: 900px; padding: 2.5rem; text-align: left; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }

/* Novos estilos para a foto minimalista na seção Sobre Mim */
.about-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.about-photo-mini { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
.about-title-wrap { display: flex; align-items: center; gap: 8px; color: var(--accent-color); }
.about-title-wrap h2 { font-size: 1.3rem; font-weight: 600; }

.about-text p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.8; }

.crossover-container {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-color); padding: 1.5rem; border-radius: 20px; border: 1px solid var(--border-subtle);
}
.venn-diagram { position: relative; width: 160px; height: 120px; margin-bottom: 1rem; display: flex; justify-content: center; align-items: center; }
.circle { position: absolute; width: 85px; height: 85px; border-radius: 50%; border: 2px solid; mix-blend-mode: multiply; }
.circle-health { background: var(--accent-glow); border-color: var(--accent-color); left: 10px; }
.circle-data { background: rgba(31, 41, 55, 0.08); border-color: var(--text-primary); right: 10px; }

body.dark-mode .circle { mix-blend-mode: screen; }
body.dark-mode .circle-health { background: rgba(107, 144, 128, 0.4); }
body.dark-mode .circle-data { background: rgba(255, 255, 255, 0.15); }

.venn-intersection { position: absolute; color: var(--accent-color); font-size: 1.2rem; z-index: 5; }
.venn-label { position: absolute; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-primary); z-index: 10; }
.label-health { top: 0; left: 25px; }
.label-data { bottom: 0; right: 25px; }
.crossover-label { font-size: 0.75rem; font-style: italic; color: var(--text-secondary); text-align: center; line-height: 1.3; }

/* =========================================
   6. GRIDS & CARDS
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; justify-content: center; }
.card-base { background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow-sm); }

/* =========================================
   7. BOTÕES & TAGS
   ========================================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text-primary) !important;
  padding: 10px 20px; border-radius: 8px; text-decoration: none;
  font-size: 0.85rem; font-weight: 600; border: 1px solid var(--accent-color);
  transition: 0.3s;
}
.btn-primary:hover { background: var(--accent-color); color: #ffffff !important; transform: translateY(-2px); }

.card-action { 
  margin-top: 1.5rem; 
  padding-top: 1rem; 
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: flex-start;
}

.status-badge { 
  font-size: 0.7rem; color: var(--text-secondary); padding: 4px 10px; 
  border: 1px solid var(--border-subtle); border-radius: 6px; 
  background: var(--bg-color); display: inline-block; font-weight: 500;
}

/* =========================================
   8. RODAPÉ & PRELOADER
   ========================================= */
footer { width: 100%; text-align: center; padding: 2.5rem 0; border-top: 1px solid var(--border-subtle); margin-top: 4rem; }
footer p { color: var(--text-secondary); font-size: 0.8rem; }

.theme-toggle { position: fixed; bottom: 20px; right: 20px; background: var(--card-bg); border: 1px solid var(--border-subtle); color: var(--accent-color); width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 9999; box-shadow: var(--shadow-md); }

#preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--bg-color); display: flex; justify-content: center; align-items: center;
  z-index: 10000; transition: opacity 0.5s ease, visibility 0.5s;
}
.loader-circle {
  width: 50px; height: 50px; border: 3px solid var(--accent-glow);
  border-top: 3px solid var(--accent-color); border-radius: 50%;
  margin: 0 auto 15px; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.preloader-hidden { opacity: 0; visibility: hidden; }

/* =========================================
   9. ANIMAÇÕES & RESPONSIVIDADE
   ========================================= */
[data-animate] { opacity: 0; transform: translateY(15px); transition: 0.6s ease-out; }
[data-animate].show { opacity: 1; transform: translateY(0); }

@media (max-width: 850px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-header { justify-content: center; }
  .crossover-container { order: -1; }
}

@media (max-width: 768px) {
  .expertise-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
}