/* Importação e configuração de globais */
@import url('./fonts.css');
@import url('./variables.css');
@import url('./responsive.css');
@import url('./acessibility.css');

/* Importação de seções */
@import url('./about.css');
@import url('./project.css');
@import url('./contact.css');
@import url('./pix.css');

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--text);
  -webkit-font-smoothing: antialiased;

  /* alterar o layout para empilhar seções (header acima, projetos abaixo) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 0;
}

/* Garante que o hero fique no topo com espaçamento apropriado */
.hero {
  width: 100%;
  max-width: 980px;
  margin-top: 1rem;
}

/* Card layout: imagem à esquerda, título ao lado, descrição e botões embaixo */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.03));
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  /* mobile: empilha */
  align-items: center;
  text-align: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

/* Botão de alternância de tema: topo direito do card */
.theme-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  z-index: 5;
}

.theme-toggle i {
  font-size: 1.05rem;
}

/* Foco acessível */
.theme-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.08);
  outline-offset: 2px;
}


/* Wrapper do conteúdo textual */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

/* Avatar (ajustado para funcionar em row/column) */
.avatar {
  --c: 85;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--glass);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin: 0;
  flex: 0 0 auto;
  /* mantém recorte em "C" (já definido anteriormente) */
  -webkit-mask: radial-gradient(100% calc(var(--c) * 1%) at calc(100% + 100% * cos(asin(50 / var(--c)))),
      #0000 calc(100% - 1px),
      #000);
  mask: radial-gradient(100% calc(var(--c) * 1%) at calc(100% + 100% * cos(asin(50 / var(--c)))),
      #0000 calc(100% - 1px),
      #000);
  clip-path: ellipse(100% calc(var(--c) * 1%) at right);
}

/* Título e subtítulo */
.title {
  font-family: var(--font-heading);
  font-size: 3em;
  margin: 0;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Actions: por padrão centralizadas (mobile) */
.actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease;

  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.btn:hover {
  transform: translateY(-3px);

  background: linear-gradient(90deg, var(--accent));
  color: var(--text);
  border: none;

  /* evita borda que mostre fundo por baixo */
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 123, 89, 0.18);
  transition: transform .14s ease, box-shadow .14s ease;
  -webkit-background-clip: padding-box;
  /* evita que o gradiente pinte sob a borda */
  background-clip: padding-box;
  overflow: hidden;
  /* garante cantos limpos se usar pseudo-elements */
  position: relative;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), #ffb27f);
  color: var(--text);
  border: none;
  /* evita borda que mostre fundo por baixo */
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 123, 89, 0.18);
  transition: transform .14s ease, box-shadow .14s ease;
  -webkit-background-clip: padding-box;
  /* evita que o gradiente pinte sob a borda */
  background-clip: padding-box;
  overflow: hidden;
  /* garante cantos limpos se usar pseudo-elements */
  position: relative;
}

.btn::after {
  /* pequeno overlay para suavizar a transição e evitar "franjas" em alguns navegadores */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.06);
  outline-offset: 2px;
}

/* créditos da desenvolvedora */
.site-footer {
  background: var(--bg1);
  width: 100%;
  color: var(--text);
  text-align: center;
}