:root {
  /* --- Breakpoints (Referência) --- */
  --sm: 640px;
  --md: 768px;
  --lg: 1024px;
  --xl: 1280px;

  /* --- Tipografia Fluida (Clamp) --- */
  /* Sintaxe: clamp(MINIMO, VALOR_IDEAL, MAXIMO) */

  /* Título (Nome): varia entre 1.5rem (mobile) e 2rem (desktop) */
  --font-title: clamp(1.5rem, 1.2rem + 1vw, 2rem);

  /* Subtítulo (Cargo): varia entre 0.9rem e 1rem */
  --font-subtitle: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);

  /* Texto (Bio): mantém leitura confortável sem ficar gigante */
  --font-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);

  /* --- Cores e Temas (Dark Mode - Padrão) --- */
  --text-color: #fdfdfd;

  /* Backgrounds */
  --bg-mobile: url(../imagens/bg-mobile.jpg);
  --bg-desktop: url(../imagens/bg-desktop.jpg);
  --bg-current: var(--bg-mobile);

  /* Componentes */
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-border: rgba(255, 255, 255, 0.15);
  --btn-bg-hover: rgba(255, 255, 255, 0.1);
  --btn-border-hover: rgba(255, 255, 255, 0.5);

  /* Switch */
  --switch-bg-url: url(../imagens/moon-stars.svg);
  --switch-track: rgba(255, 255, 255, 0.1);
  --switch-thumb: #be43d6e1;

  /* Footer */
  --footer-border: rgba(255, 255, 255, 0.1);
}

/* --- Tema Light --- */
.light {
  --text-color: #2e2e2e;

  /* Backgrounds Light */
  --bg-mobile: url(../imagens/bg-mobile-light.jpg);
  --bg-desktop: url(../imagens/bg-desktop-light.jpg);
  --bg-current: var(--bg-mobile);

  /* Componentes Light */
  --btn-bg: rgba(255, 255, 255, 0.25);
  --btn-border: rgba(0, 0, 0, 0.08);
  --btn-bg-hover: rgba(255, 255, 255, 0.5);
  --btn-border-hover: rgba(0, 0, 0, 0.2);

  /* Switch Light */
  --switch-bg-url: url(../imagens/sun.svg);
  --switch-track: rgba(0, 0, 0, 0.05);
  --switch-thumb: #f350f8e1;

  --footer-border: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ESTILOS GERAIS (BASE)
   ========================================================================== */
body {
  background: var(--bg-current) no-repeat top center/cover fixed;
  min-height: 100vh;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  font-family: "Inter", sans-serif; /* Define fonte base se não especificado */
}

/* --- Layout Principal --- */
#container {
  width: 100%;
  max-width: 580px; /* Levemente maior para acomodar desktop */
  margin: 0 auto;
  padding: 56px 24px;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   PERFIL
   ========================================================================== */
#profile {
  text-align: center;
  padding: 24px 24px 8px;
}

#profile img {
  width: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b0764, #d901a2);
  padding: 3px; /* Simula borda degradê */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.light #profile img {
  background: linear-gradient(135deg, #a663cc, #f3c4f0);
}

#profile img:hover {
  transform: scale(1.05);
}

/* Tipografia com Clamp */
#profile h1 {
  font-family: "Montserrat", sans-serif;
  font-size: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 24px;
  margin-bottom: 8px;
}

#profile h1 span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: var(--font-subtitle);
  font-weight: 300;
  margin-top: 4px;
  opacity: 0.9;
}

#profile p {
  font-family: "Inter", sans-serif;
  font-size: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 60ch; /* Limite de caracteres por linha para leitura */
  margin: 16px auto 0;
}

/* ==========================================================================
   SWITCH (BOTÃO DE TEMA)
   ========================================================================== */
#switch {
  position: relative;
  width: 64px;
  margin: 24px auto 32px;
  cursor: pointer;
}

#switch button {
  width: 32px;
  height: 32px;
  background: var(--switch-thumb) var(--switch-bg-url) no-repeat center;
  border: 0;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);

  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Efeito elástico */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.light #switch button {
  left: initial;
  right: 0;
}

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--switch-track);
  border: 1px solid var(--btn-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
}

/* ==========================================================================
   LINKS E BOTÕES
   ========================================================================== */
ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  width: 100%;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px 24px;

  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: 8px;

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  text-decoration: none;
  font-weight: 500;
  font-size: 1rem; /* */
  color: var(--text-color);

  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

ul li a:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   SOCIAL E RODAPÉ
   ========================================================================== */
#social-links {
  display: flex;
  justify-content: center;
  padding: 32px 0;
  gap: 16px;
  font-size: 24px;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  color: var(--text-color);
  transition:
    background 0.2s,
    transform 0.2s;
}

#social-links a:hover {
  background: var(--btn-border);
  transform: scale(1.1);
}

footer {
  margin-top: auto;
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
  border-top: 1px solid var(--footer-border);
}

footer a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}
