:root {
  --bg: #070c18;
  --bg-2: #0d1526;
  --surface: #111b30;
  --surface-hover: #16223e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef3fb;
  --text-secondary: #93a3bd;
  --accent: #2e9bf0;
  --accent-2: #00e5c8;
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb958;
  --grid-line: rgba(46, 155, 240, 0.08);
  --shadow: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2f6fc;
  --bg-2: #e8eef7;
  --surface: #ffffff;
  --surface-hover: #f4f8fd;
  --border: rgba(13, 21, 38, 0.09);
  --text: #0d1526;
  --text-secondary: #52617a;
  --accent: #1c7ed6;
  --accent-2: #00b39a;
  --grid-line: rgba(28, 126, 214, 0.07);
  --shadow: rgba(20, 40, 70, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f6fc;
    --bg-2: #e8eef7;
    --surface: #ffffff;
    --surface-hover: #f4f8fd;
    --border: rgba(13, 21, 38, 0.09);
    --text: #0d1526;
    --text-secondary: #52617a;
    --accent: #1c7ed6;
    --accent-2: #00b39a;
    --grid-line: rgba(28, 126, 214, 0.07);
    --shadow: rgba(20, 40, 70, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color .35s ease, color .35s ease;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(46, 155, 240, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 229, 200, 0.10), transparent 45%),
    linear-gradient(var(--bg-2), var(--bg));
  pointer-events: none;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform .2s ease, background .3s ease;
}

.theme-toggle:hover { transform: scale(1.08); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 20px; height: 20px; }

.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 4px var(--bg), 0 0 24px rgba(46, 155, 240, 0.35);
  margin-bottom: 16px;
  animation: floatIn .6s ease;
}

.avatar-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.brand-name span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bio {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  max-width: 320px;
  line-height: 1.5;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform .18s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: floatIn .5s ease forwards;
}

.link-btn:nth-child(1) { animation-delay: .05s; }
.link-btn:nth-child(2) { animation-delay: .1s; }
.link-btn:nth-child(3) { animation-delay: .15s; }
.link-btn:nth-child(4) { animation-delay: .2s; }
.link-btn:nth-child(5) { animation-delay: .25s; }

.link-btn:hover {
  transform: translateY(-3px) scale(1.015);
  background: var(--surface-hover);
  border-color: rgba(46, 155, 240, 0.4);
  box-shadow: 0 10px 26px var(--shadow), 0 0 0 1px rgba(46, 155, 240, 0.15);
}

.link-btn:active { transform: translateY(-1px) scale(0.98); }

.link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46, 155, 240, 0.15), rgba(0, 229, 200, 0.15));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg { width: 20px; height: 20px; }

.link-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.link-text strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.link-text small {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 400;
}

.link-arrow {
  color: var(--text-secondary);
  font-size: 16px;
  transition: transform .2s ease;
}

.link-btn:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.link-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  border-color: transparent;
  color: #ffffff;
}

.link-whatsapp .link-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.link-whatsapp .link-text small { color: rgba(255, 255, 255, 0.85); }
.link-whatsapp .link-arrow { color: rgba(255, 255, 255, 0.85); }

.link-whatsapp:hover {
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  border-color: transparent;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer {
  margin-top: 40px;
  color: var(--text-secondary);
  font-size: 12.5px;
  text-align: center;
}

.footer p { margin: 0; }

@media (max-width: 360px) {
  .page { padding: 44px 14px 32px; }
  .brand-name { font-size: 23px; }
}
