/* RESET & VARIÁVEIS */
:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary: #38bdf8; /* Azul claro */
  --secondary: #0ea5e9; /* Azul médio */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --glow: rgba(56, 189, 248, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: radial-gradient(circle at top right, #1e293b 0%, transparent 40%),
                    radial-gradient(circle at bottom left, #1e293b 0%, transparent 40%);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* LAYOUT GERAL */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 15px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.btn-nav {
  border: 1px solid var(--primary);
  padding: 6px 18px;
  border-radius: 20px;
  color: var(--primary) !important;
}

.btn-nav:hover {
  background: var(--primary);
  color: var(--bg-dark) !important;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-img-box {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.hero img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
  box-shadow: 0 0 30px var(--glow);
  transition: transform 0.3s;
}

.hero img:hover { transform: scale(1.05); }

.status-badge {
  position: absolute;
  bottom: 5px;
  right: -10px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.headline {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

/* BOTÕES */
.btn-primario {
  background: var(--primary);
  color: var(--bg-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.btn-primario:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
}

.btn-icon {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: 0.3s;
}

.btn-icon:hover { color: var(--primary); transform: translateY(-2px); }

/* SEÇÕES GERAIS */
section { margin-bottom: 80px; scroll-margin-top: 100px; }

.section-header {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.section-header h2 {
  font-size: 1.8rem;
  position: relative;
  padding-left: 15px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* GRID DE PROJETOS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon {
  font-size: 2rem;
  color: var(--primary);
}

.card-links a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: 0.2s;
}

.card-links a:hover { color: var(--primary); }

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tech-stack {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
}

.tech-stack span {
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

/* TAGS SKILLS */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.tag-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.tag-box i { color: var(--primary); }

.tag-box:hover {
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* CONTATO E FOOTER */
.cta-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0));
  text-align: center;
  padding: 50px 20px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.cta-box h2 { margin-bottom: 10px; }
.cta-box p { color: var(--text-muted); margin-bottom: 25px; }

footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contador-badge {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255,255,255,0.05);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .nav-links { display: none; } /* Poderia adicionar menu hamburguer aqui */
  .hero h1 { font-size: 2.2rem; }
  .grid { grid-template-columns: 1fr; }
}

.email-texto {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.email-texto strong {
  color: #38bdf8; /* Cor azul neon */
  user-select: all; /* Facilita copiar com um clique */
  cursor: pointer;
}

.contato-opcoes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}