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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #101010 0, #050505 45%, #000 100%);
  color: #f5f5f5;
  min-height: 100vh;
  position: relative;
}

/* Glow de fundo */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(0, 255, 136, 0.1),
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(214, 179, 107, 0.15),
      transparent 55%
    ),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.9), #000);
  z-index: -2;
}

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.6),
    transparent
  );
  backdrop-filter: blur(10px);
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(214, 179, 107, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: #ffdf9e;
  box-shadow: 0 0 12px rgba(214, 179, 107, 0.5);
}

nav a {
  margin-left: 18px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #e0dfd7;
  position: relative;
  padding-bottom: 3px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ffdf9e, #00ff88);
  transition: width 0.25s ease-out;
}

nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  padding: 80px 6% 40px;
  display: flex;
  justify-content: center;
}
.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(214, 179, 107, 0.8);
  box-shadow: 0 0 18px rgba(214, 179, 107, 0.5);
  margin-bottom: 16px;
}
.hero-content {
  max-width: 720px;
  padding: 32px 28px;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffdf9e;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #ffdf9e, #d6b36b, #00ff88);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1rem;
  color: #d9d9d9;
  margin-bottom: 22px;
}

.hero-sub span {
  color: #ffdf9e;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Glassmorphism base */

.glass {
  background: linear-gradient(
    135deg,
    rgba(15, 15, 15, 0.88),
    rgba(15, 15, 15, 0.7)
  );
  border-radius: 20px;
  border: 1px solid rgba(214, 179, 107, 0.6);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.9), 0 0 26px rgba(214, 179, 107, 0.28);
  backdrop-filter: blur(14px);
}

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(214, 179, 107, 0.8);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #ffdf9e, #d6b36b);
  color: #121212;
  box-shadow: 0 0 15px rgba(214, 179, 107, 0.42);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(214, 179, 107, 0.55);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.2);
  color: #ffdf9e;
}

.btn-ghost:hover {
  background: rgba(214, 179, 107, 0.12);
  transform: translateY(-1px);
}

/* Seções */

.section {
  padding: 20px 6% 10px;
}

.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.section-title h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-right: 10px;
  color: #ffdf9e;
}

.section-accent {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    #ffdf9e,
    rgba(0, 255, 136, 0.4),
    transparent
  );
}

/* Sobre */

.card-text {
  padding: 20px 22px;
  font-size: 0.95rem;
  color: #e4e4e4;
}

.card-text p + p {
  margin-top: 12px;
}

/* Habilidades */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 16px 18px;
  font-size: 0.9rem;
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #ffdf9e;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  margin: 5px 0;
  color: #d3d3d3;
}

/* Projetos */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.project-card {
  padding: 18px 20px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 255, 136, 0.06),
    transparent 40%,
    rgba(255, 223, 158, 0.08)
  );
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  margin-bottom: 10px;
}

.project-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00ff88;
}

.project-card h3 {
  font-size: 1.05rem;
  margin-top: 4px;
  color: #ffdf9e;
}

.project-card p {
  color: #d8d8d8;
  margin-top: 6px;
}

.project-tech,
.project-role {
  font-size: 0.85rem;
}

/* Contato */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
}

.contact-card {
  padding: 18px 20px;
  font-size: 0.9rem;
}

.contact-card ul {
  list-style: none;
  margin-top: 10px;
}

.contact-card li {
  margin: 4px 0;
}

.contact-card a {
  color: #ffdf9e;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Rodapé */

footer {
  padding: 18px 6% 26px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* Responsividade */

@media (max-width: 768px) {
  .hero {
    padding-top: 70px;
  }

  .hero-content {
    padding: 22px 20px;
  }

  .topbar {
    padding-inline: 5%;
  }

  nav a {
    margin-left: 12px;
    font-size: 0.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
