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

/* ==========================================
   VARIÁVEIS DE TEMA (MARROM • CARAMELO • DOURADO)
   ========================================== */
:root {
  --bg-color: #130c07;
  --bg-card: rgba(26, 17, 11, 0.94);
  --text-primary: #fdf8f4;
  --text-secondary: #e0d0c2;
  --accent: #d9a762;
  --accent-soft: #a66b3d;
  --accent-strong: #f5c46b;
  --border-color: rgba(255, 240, 220, 0.25);
  --button-bg: rgba(34, 21, 14, 0.96);
  --button-bg-hover: #3a2416;
  --button-outline: rgba(250, 204, 168, 0.75);
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --social-bg: rgba(26, 17, 11, 0.95);
}

[data-theme="light"] {
  --bg-color: #f8f1e8;
  --bg-card: rgba(255, 252, 247, 0.96);
  --text-primary: #2b1a12;
  --text-secondary: #6b4b3a;
  --accent: #c27b32;
  --accent-soft: #e6b17a;
  --accent-strong: #b35a1c;
  --border-color: rgba(149, 90, 40, 0.22);
  --button-bg: rgba(255, 249, 241, 0.96);
  --button-bg-hover: rgba(237, 214, 189, 0.9);
  --button-outline: rgba(194, 123, 50, 0.85);
  --shadow-soft: 0 18px 40px rgba(57, 35, 16, 0.25);
  --social-bg: rgba(255, 252, 247, 0.98);
}

html,
body {
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
}

/* ==========================================
   LAYOUT PRINCIPAL
   ========================================== */
.portfolio-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
}

.gradient-bg {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(210, 140, 75, 0.9), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(130, 80, 50, 0.85), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(68, 40, 25, 0.95), transparent 60%),
    linear-gradient(145deg, #120a06, #2b1810);
  filter: blur(26px);
  opacity: 0.92;
  z-index: -2;
  animation: floatGradient 20s ease-in-out infinite alternate;
}

[data-theme="light"] .gradient-bg {
  background:
    radial-gradient(circle at 0% 0%, rgba(235, 202, 164, 0.95), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(227, 185, 144, 0.9), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(214, 167, 120, 0.9), transparent 60%),
    linear-gradient(145deg, #f7eee4, #f0ddc7);
  filter: blur(22px);
}

@keyframes floatGradient {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.05) translate3d(-10px, 6px, 0);
  }
  100% {
    transform: scale(1.02) translate3d(12px, -8px, 0);
  }
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-radius: 28px;
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-color);
}

/* ==========================================
   CABEÇALHO E FOTO
   ========================================== */
.profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 22px;
}

.avatar-wrapper {
  width: 122px;
  height: 122px;
  padding: 3px;
  border-radius: 999px;
  background: conic-gradient(
    from 200deg,
    var(--accent-strong),
    var(--accent-soft),
    var(--accent),
    var(--accent-strong)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .avatar-wrapper {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(24, 15, 10, 0.9);
}

.profile-text {
  margin-top: 4px;
}

.username {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-soft);
}

.name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.headline {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* ==========================================
   BOTÕES SUPERIORES (TEMA E IDIOMA)
   ========================================== */
.theme-toggle,
.lang-toggle {
  position: absolute;
  top: 6px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(18, 10, 6, 0.88);
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle {
  right: 6px;
}

.lang-toggle {
  right: 48px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-toggle {
  background: rgba(255, 252, 247, 0.96);
  color: var(--accent-strong);
}

.theme-toggle:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   BOTÕES PRINCIPAIS
   ========================================== */
.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: var(--button-bg);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

.btn.primary {
  border: 1px solid var(--button-outline);
  background:
    radial-gradient(circle at 0% 0%, rgba(217, 167, 98, 0.28), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(166, 107, 61, 0.3), transparent 60%),
    var(--button-bg);
}

[data-theme="light"] .btn.primary {
  background:
    radial-gradient(circle at 0% 0%, rgba(226, 191, 148, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(194, 123, 50, 0.18), transparent 60%),
    var(--button-bg);
}

.btn span {
  flex: 1;
  text-align: left;
}

.btn i {
  font-size: 1.1rem;
  opacity: 0.95;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(245, 196, 107, 0.18),
    rgba(194, 123, 50, 0.16)
  );
  transition: opacity 0.2s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px) translateZ(0);
  background: var(--button-bg-hover);
  box-shadow: 0 13px 25px rgba(0, 0, 0, 0.7);
}

.btn,
.social-icons a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   SEÇÃO SOCIAL
   ========================================== */
.social-section {
  text-align: center;
  margin-bottom: 14px;
}

.social-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--social-bg);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .social-icons a {
  box-shadow: 0 6px 14px rgba(149, 90, 40, 0.25);
}

.social-icons a:hover {
  color: var(--accent);
  border-color: var(--button-outline);
  transform: translateY(-1px);
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   RODAPÉ
   ========================================== */
.footer {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.footer-subtitle {
  margin-top: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heart {
  color: var(--accent-strong);
  font-size: 0.95rem;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (min-width: 768px) {
  .portfolio-container {
    padding: 40px 16px;
  }

  .card {
    padding: 26px 24px 22px;
    max-width: 440px;
  }

  .name {
    font-size: 1.45rem;
  }

  .headline {
    font-size: 0.9rem;
  }
}
