/* --- RESET & VARIÁVEIS --- */
:root {
  /* Paleta de Cores (Tema Dark Moderno - Estilo Engenharia) */
  --bg-body: #0f172a;       /* Azul muito escuro (quase preto) */
  --bg-card: #1e293b;       /* Azul acinzentado para cartões */
  --text-main: #f1f5f9;     /* Branco gelo para leitura */
  --text-muted: #94a3b8;    /* Cinza para textos secundários */
  --primary: #3b82f6;       /* Azul vibrante (Ação) */
  --primary-hover: #2563eb; /* Azul mais escuro (Hover) */
  --accent: #10b981;        /* Verde (Sucesso/Destaque) */
  
  /* Espaçamentos e Bordas */
  --container-width: 1100px;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- LAYOUT & CONTAINER --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid #1e293b;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  border-left: 4px solid var(--primary);
  padding-left: 16px;
}

/* --- TOPBAR (MENU) --- */
.topbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #1e293b;
  padding: 16px 0;
}

.topbar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand__dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.nav {
  display: flex;
  gap: 32px;
}

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

/* --- HERO SECTION --- */
.hero {
  padding-top: 140px; /* Compensar menu fixo */
  padding-bottom: 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero__text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* --- ESTATÍSTICAS (STATS) --- */
.hero__stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid #334155;
  padding-top: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__num {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- CARD DESTAQUE (HERO) --- */
.hero__card .card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid #334155;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 20px 0;
  background-color: #000;
  opacity: 0.6; /* Placeholder style */
}

.card__links a {
  display: block;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 600;
}

.card__footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- SKILLS (TAGS) --- */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.skill {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- PROJETOS (GRID) --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.project {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.project:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.project h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

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

.project__actions {
  margin-top: auto;
}

/* --- BOTÕES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

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

.btn--ghost {
  background-color: transparent;
  border: 1px solid #334155;
  color: var(--text-main);
}

.btn--ghost:hover {
  border-color: var(--text-main);
  background-color: rgba(255,255,255,0.05);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.icon img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  filter: invert(1); /* Deixa ícones brancos */
}

/* --- CONTATO --- */
.contact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  text-align: center;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- MOBILE (RESPONSIVO) --- */
.btn-mobile {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  width: 24px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__text h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    margin: 0 auto 32px auto;
  }

  .hero__actions, .hero__stats {
    justify-content: center;
  }

  .hero__card {
    display: none; /* Esconde card decorativo no mobile para limpar a tela */
  }

  /* Menu Mobile */
  .btn-mobile {
    display: block;
    z-index: 1100;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-body);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 1.5rem;
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .desktop-only {
    display: none;
  }
}