/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  overflow-x: hidden;
}

/* BODY */
body {
  background: #f3f3f3;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* CARD */
.card {
  width: 100%;
  max-width: 420px;
  background: #f3f3f3;
  border-radius: 28px;
}

/* HEADER */
.header {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: visible; /* avatar pode sair */
}

/* IMAGEM DO HEADER */
.header-media {
  width: 100%;
  height: 100%;
  overflow: hidden; /* corta só a imagem */
  border-radius: 28px;
}

.header-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* AVATAR */
.avatar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -45px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  z-index: 5;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* CONTEÚDO */
.content {
  padding: 70px 24px 24px;
  text-align: center;
}

h1 {
  font-size: 28px;
  font-weight: 700;
}

.subtitle {
  letter-spacing: 2px;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 18px;
  line-height: 1.4;
}

/* SOCIAL ICONS */
.socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 24px;
  margin-bottom: 26px;
}

.socials a {
  color: #000;
}

/* LINKS */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.links a {
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 18px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* FOOTER */
.footer {
  margin-top: 32px;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 1px;
}

/* MOBILE FIX */
@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .header {
    height: 170px;
  }

  .avatar {
    width: 78px;
    height: 78px;
    bottom: -39px;
  }

  .content {
    padding-top: 62px;
  }

  h1 {
    font-size: 24px;
  }

  .subtitle {
    font-size: 13px;
  }
}