/* ================= GLOBAL ================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ================= ESPAÇAMENTO DAS SEÇÕES ================= */
:root {
  --section-space: 40px;   
  --section-space-lg: 64px; 
}

section {
  padding: var(--section-space) 0; 
}

.hero .container {
  padding: var(--section-space-lg) 20px var(--section-space);
}


.contact {
  padding: var(--section-space-lg) 0;
}


footer { 
  padding: 20px 0 28px; 
}

/* ================= TEMAS ================= */
/* Tema Escuro */
:root {
  --bg: #0f0f14;
  --surface: #1a1b25;
  --text: #ffffff;
  --muted: #9aa0b8;
  --card: #1e2233;
  --card-border: #2a2f45;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow: 0 4px 12px rgba(0,0,0,.25);

  --brand: #6c63ff;
  --brand-2: #5146d3;
  --primary-color: #6c63ff;

  /* Botões */
  --btn-primary-bg: linear-gradient(135deg, var(--brand), var(--brand-2));
  --btn-primary-text: #ffffff;
  --btn-outline-bg: transparent;
  --btn-outline-border: rgba(255,255,255,.14);
  --btn-outline-text: var(--text);

  /* Links e ícones */
  --link-color: #6c63ff;
  --link-hover: #5146d3;
  --icon-color: #ffffff;
  --icon-hover: #6c63ff;
  --hero-kicker: #6c63ff;
  --subtitle-color: #9aa0b8;
}

/* Tema Claro */
body.light-theme {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --card: #ffffff;
  --card-border: #e0e3f0;
  --divider: #d8d9e3;

  --text: #1f1f2e;
  --muted: #7a7c92;

  --brand: #6c63ff;
  --brand-2: #5146d3;
  --primary-color: #6c63ff;

  --btn-primary-bg: linear-gradient(135deg, #6c63ff, #5246d3a0);
  --btn-primary-text: #ffffff;
  --btn-outline-bg: transparent;
  --btn-outline-border: #7a7c92;
  --btn-outline-text: #1f1f2e;

  --shadow: 0 4px 12px rgba(0,0,0,.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --link-color: #6c63ff;
  --link-hover: #5146d3;
  --icon-color: #1f1f2e;
  --icon-hover: #6c63ff;
  --hero-kicker: #6c63ff;
  --subtitle-color: #7a7c92;
}

/* ================= MODO LIGHT EXTRA ================= */
body.light-theme .card {
  background: var(--card);          
  border: 1px solid var(--card-border);
}
body.light-theme .card h3 { color: #6c63ff; }
body.light-theme .card p { color: #4a4a5c; }
body.light-theme .features { color: #627860; }
body.light-theme .btn-whatsapp { border: 1px solid var(--btn-outline-border);}
body.light-theme .section-sub { color: #231e15; margin-bottom: 26px; }
body.light-theme .subtitle { color: #231e15; margin-bottom: 26px; }
body.light-theme footer { color: #231e15;}
body.light-theme .kicker { color: rgb(95, 75, 180); }
body.light-theme #aboutText {color: #231e15;} 


/* ================= PILLS ================= */
/* Modo claro */
:root {
  --pill-bg: rgba(35,196,227,.15);
  --pill-text: #0077aa;
}
/* Modo escuro */
[data-theme="dark"] {
  --pill-bg: rgba(35,196,227,.15);
  --pill-text: #c9f2fb;
}
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--pill-bg);
  color: var(--pill-text);
}

/* ================= LINKS E ÍCONES ================= */
body a { color: var(--link-color); transition: color 0.3s; }
body a:hover { color: var(--link-hover); }
.social-icons a i, .hero-meta a i {
  color: var(--icon-color);
  transition: color 0.3s, transform 0.2s, filter 0.2s;
}
.social-icons a:hover i, .hero-meta a:hover i {
  color: var(--icon-hover);
  transform: scale(1.2);
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.15));
}

/* ================= LAYOUT E TIPOGRAFIA ================= */
section { padding: 64px 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 10px 0 14px; }
.section-title { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 8px; }
.section-sub { color: var(--muted); margin-bottom: 26px; }

/* ================= NAVBAR ================= */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(15,15,20,.6); backdrop-filter: blur(10px); border-bottom:1px solid rgba(255,255,255,.06); padding: 0 10px; }
.nav-inner { display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand { display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.3px; }
.brand-dot { width:10px; height:10px; border-radius:999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 12px rgba(108,99,255,.6); display:none; }
.brand .logo { height: 32px; width: auto; }
.nav { display:flex; gap:20px; }
.nav a { color: #7c66ec; text-decoration:none; font-weight:500; padding:8px 12px; border-radius:10px; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(108,99,255,.12); }
.theme-toggle { border:1px solid rgba(255,255,255,.12); background:transparent; color: #7c66ec; border-radius:12px; padding:8px 12px; cursor:pointer; }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; }
.hero::before { content:""; position:absolute; inset:-20% -10% auto -10%; height:70%; background: radial-gradient(600px 300px at 10% 40%, rgba(108,99,255,.25), transparent 60%), radial-gradient(500px 250px at 90% 30%, rgba(35,196,227,.18), transparent 60%); pointer-events:none; }
.hero .container { display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap: 40px; padding: 80px 20px 40px; }
.kicker { color: #7c66ec; font-weight:600; letter-spacing:.2px; }
.subtitle { color: var(--subtitle-color); font-size: clamp(14px, 2.5vw, 18px); max-width: 620px; }
.cta { margin-top: 22px; display:flex; gap:12px; flex-wrap: wrap; }

/* ================= BOTÕES ================= */
.btn,
.btn-whatsapp {
  appearance: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  display: inline-block;
  text-align: center;
}

/* Botão primário */
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 6px 20px rgba(108,99,255,.35);
}

/* Botão contorno */
.btn-outline {
  background: var(--btn-outline-bg);
  border: 1px solid var(--btn-outline-border);
  color: var(--btn-outline-text);
}

/* Botão ghost */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text);
}

/* Botão WhatsApp */
.btn-whatsapp {
  background: transparent;
  border: 1px solid var(--card-border);
  color: #25D366;
  font-weight: 600;
}

.btn:hover,
.btn-whatsapp:hover {
  transform: translateY(-2px);
}

/* Foco (acessibilidade) */
.btn:focus,
.btn-whatsapp:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ================= HERO CARD / PROFILE ================= */
.hero-card { display:flex; flex-direction:column; justify-content:center; text-align:center; align-items:center; gap: 2rem; background: var(--card); padding:2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow); transition: all 0.3s ease; }
.hero-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); }
.hero-text { max-width: 500px; }

/* ================= BADGES ================= */
.badges { display:flex; flex-wrap:wrap; gap:10px; }
.badge { border:1px solid var(--card-border); background: var(--surface); color: var(--text); padding:8px 12px; border-radius: 12px; font-weight:600; font-size:14px; }

/* ================= PROJETOS ================= */
.grid { display:grid; grid-template-columns: repeat(12, 1fr); gap: 18px;}
.card { grid-column: span 4; background: var(--card); border:1px solid var(--card-border); border-radius: var(--radius-lg); padding: 18px; transition: transform .2s ease;}
.card:hover { transform: translateY(-4px); }
.card h3 { margin:6px 0 6px; font-size:20px; }
.card p { color: var(--muted); font-size:14px; margin:0 0 8px; min-height: 42px; }
.features { margin: 10px 0 14px; padding-left:18px; color: var(--muted); font-size:14px; }
.card-actions { display:flex; gap:10px; flex-wrap:wrap; }
.card .btn { padding:10px 14px; border-radius:12px; font-size: 0.9rem; }

/* ================= ABOUT ================= */
.about { display: grid; grid-template-columns: 1fr minmax(300px, 1.2fr); gap: 26px; align-items: start; }
.about .panel { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px;}
 #aboutText {color: var(--muted); display: flex; justify-content: space-between; gap: 12px; border: 1px dashed var(--card-border); border-radius: 12px; padding: 10px 12px; }
.list { display: grid; gap: 10px; }
.kv { display: flex; justify-content: space-between; gap: 12px; border: 1px dashed var(--card-border); border-radius: 12px; padding: 10px 12px; }
.kv strong { font-weight: 600; }
.divider { border-color: var(--divider); margin: 16px 0; }

/* ================= TIMELINE ================= */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.tl-item { background-color: rgba(0,0,0,0.05); padding: 12px 16px; border-radius: 8px; display: flex; flex-direction: column; }
.tl-item h4 { margin: 0 0 4px; }
.tl-item small { color: var(--muted); }
.tl-list { margin-top: 8px; padding-left: 20px; color: var(--muted); }
.tl-list li { list-style-type: none; }

/* ================= CONTACT ================= */
.contact-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.card-cta { background: linear-gradient(135deg, rgba(108,99,255,.18), rgba(35,196,227,.16)); border:1px solid var(--card-border); border-radius: var(--radius-xl); padding: 20px; }
.stack { display:flex; gap:10px; flex-wrap:wrap; }
.input { width:100%; background: var(--surface); border:1px solid var(--card-border); color: var(--text); padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; }
textarea.input { min-height: 120px; resize: vertical; }

/* ================= Formulario ================= */
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-feedback { margin-top: 12px; font-size: 14px; color: var(--text); min-height: 18px; }

/* ================= FOOTER ================= */
footer { padding: 28px 0 36px; border-top: 1px solid var(--card-border); color: var(--muted); text-align:center; }

/* ================= RESPONSIVO ================= */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 96px; }
  .about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .card { grid-column: span 12; }
  .nav { display:none; }
}
@media (max-width: 480px) {
  .btn,
  .btn-whatsapp {
    font-size: 0.9rem;
    padding: 10px 14px;
    width: 100%;
    margin-bottom: 8px;
  }
  .card .btn {
    width: 100%;
    text-align: center;
  }
}
/* ================= ÍCONES DE LINGUAGENS NOS PROJETOS ================= */
.project-icons {
  display: flex;
  flex-wrap: wrap;      
  gap: 8px;             
  margin: 10px 0;       
  align-items: center;  
}

.project-icons i {
  font-size: 28px;      
  transition: transform 0.2s, filter 0.2s; 
}

.project-icons i:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.2));
}

@media (max-width: 640px) {
  .project-icons {
    justify-content: flex-start; 
  }
  
  .project-icons i {
    font-size: 24px; 
  }
}
