/* ===== Reset básico ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
  color: #e5e7eb;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
}

/* ===== Layout geral ===== */
body {
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
}

.page-wrapper {
  max-width: 960px;
  width: 100%;
  margin: 24px auto;
  padding: 0 16px;
}

/* ===== Links ===== */
a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #0ea5e9;
  opacity: 0.9;
}

/* ===== Hero / Header ===== */
#hero {
  text-align: center;
  padding: 48px 24px 32px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.5);
}

#hero h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#hero h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 12px;
}

#hero p {
  color: #9ca3af;
  margin-bottom: 6px;
}

.hero-tags {
  margin: 16px 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.18),
    rgba(15, 23, 42, 0.8)
  );
}

/* Botões/links principais */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  border-color: transparent;
  color: #020617;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.45);
}

/* ===== Seções ===== */
section {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.4);
}

section:first-of-type {
  margin-top: 32px;
}

section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5f5;
}

section p {
  color: #d1d5db;
  margin-bottom: 10px;
}

/* ===== Experiência ===== */
#experience article + article {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
}

#experience h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

#experience p {
  font-size: 0.9rem;
  color: #9ca3af;
}

#experience ul {
  margin-top: 8px;
  padding-left: 18px;
  list-style: none;
}

#experience li {
  position: relative;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

#experience li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

/* ===== Skills ===== */
#skills ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  list-style: none;
}

#skills li {
  font-size: 0.92rem;
  color: #e5e7eb;
}

/* ===== Projetos ===== */
#projects article + article {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(55, 65, 81, 0.8);
}

#projects h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

#projects p {
  font-size: 0.92rem;
}

/* ===== Contato ===== */
#contact p {
  font-size: 0.95rem;
}

/* ===== Navbar fixa (opcional) ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.85),
    transparent
  );
  margin-bottom: 18px;
  padding: 10px 4px;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ca3af;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

/* ===== Responsivo ===== */
@media (max-width: 640px) {
  .page-wrapper {
    margin: 24px 12px 48px;
  }

  section {
    padding: 22px 18px;
  }

  #hero {
    padding: 32px 18px 24px;
  }
}
