/* ============================================
   SOY KAROLINA REAL — TEMA PRETO
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --card: #151515;
  --border: #2c2c2c;
  --text: #ffffff;
  --muted: #9aa0a6;
  --accent: #2f80d0;
  --accent-2: #1e5fa8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 15%, rgba(47, 128, 208, 0.08), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(30, 95, 168, 0.07), transparent 50%);
  filter: blur(28px);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

::selection { background: var(--accent); color: #fff; }

/* ============================================
   INDEX (loader + modal)
   ============================================ */

.page-index { display: flex; align-items: center; justify-content: center; padding: 20px; }
.center-wrap { text-align: center; }

.spinner {
  width: 74px; height: 74px; margin: 0 auto 22px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loader-title { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: 0.3px; animation: fadeInDown 0.7s ease-out both; }
.loader-sub { margin-top: 6px; font-size: 0.92rem; color: var(--muted); opacity: 0.85; animation: fadeInDown 0.7s ease-out 0.15s both; }
.hidden { display: none !important; }

/* ---------- Modal ---------- */

.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.modal.show { opacity: 1; pointer-events: auto; }

.modal-card {
  width: 100%; max-width: 380px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.modal.show .modal-card { animation: modalPop 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes modalPop {
  0% { transform: translateY(30px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-title { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.modal-desc { font-size: 0.95rem; line-height: 1.55; color: var(--muted); margin-bottom: 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }

.btn {
  border: none; border-radius: 999px;
  padding: 13px 20px; font-size: 1rem; font-weight: 700;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px rgba(47, 128, 208, 0.3); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #ccc; border: 1.5px solid #444; }
.btn-ghost:hover { border-color: var(--accent); }

/* ============================================
   LINKS (página principal — fundo preto)
   ============================================ */

.container { max-width: 560px; margin: 0 auto; padding: 52px 20px 0; text-align: center; }

.profile-wrap { width: 116px; margin: 0 auto; opacity: 0; transform: scale(0.8) translateY(20px); animation: fadeInScale 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s forwards; }
.profile-img {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover; display: block;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.12);
  animation: float 5s ease-in-out infinite;
  background: #1a1a1a;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes fadeInScale { 0% { opacity: 0; transform: scale(0.8) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

.name { margin-top: 18px; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.3px; color: #fff; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s forwards; }

.social-row { margin: 10px 0 28px; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.4s forwards; }
.icon-btn { display: inline-flex; padding: 10px; border-radius: 50%; color: #fff; background: transparent; transition: transform 0.2s ease, color 0.2s ease; position: relative; overflow: hidden; }
.icon-btn:hover { transform: scale(1.15) rotate(6deg); color: var(--accent); }

/* ---------- Botões ---------- */

.links { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }

.link-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: #fff; font-weight: 600; text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.link-btn:nth-child(odd)  { animation-name: slideInLeft;  animation-duration: 0.65s; animation-fill-mode: forwards; }
.link-btn:nth-child(even) { animation-name: slideInRight; animation-duration: 0.65s; animation-fill-mode: forwards; }
.link-btn:nth-child(1) { animation-delay: 0.30s; }
.link-btn:nth-child(2) { animation-delay: 0.42s; }
.link-btn:nth-child(3) { animation-delay: 0.54s; }
.link-btn:nth-child(4) { animation-delay: 0.66s; }

@keyframes slideInLeft { 0% { opacity: 0; transform: translateX(-100px) scale(0.95); } 70% { opacity: 1; transform: translateX(8px) scale(1.01); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes slideInRight { 0% { opacity: 0; transform: translateX(100px) scale(0.95); } 70% { opacity: 1; transform: translateX(-8px) scale(1.01); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }

.link-btn:hover { transform: translateY(-3px) scale(1.02); border-color: var(--accent); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); }
.link-btn:active { transform: scale(0.97); }

.link-btn::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg); transition: left 0.7s ease; pointer-events: none;
}
.link-btn:hover::after { left: 120%; }

/* Ícone agora é FOTO */
.link-icon { width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transition: transform 0.2s ease; background: #222; }
.link-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.link-btn:hover .link-icon { transform: scale(1.08) rotate(3deg); }

.link-label { flex: 1; font-size: 1rem; }
.link-chevron { color: #555; transition: transform 0.18s ease, color 0.18s ease; }
.link-btn:hover .link-chevron { transform: translateX(4px); color: var(--accent); }

.ripple { position: absolute; border-radius: 50%; background: rgba(47, 128, 208, 0.25); transform: scale(0); animation: ripple 0.6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(3); opacity: 0; } }

.loading, .error { text-align: center; padding: 40px 0; font-size: 0.95rem; color: var(--muted); }
.error { color: #ff6b6b; }
.error .btn { margin-left: 8px; padding: 8px 16px; font-size: 0.85rem; }

.footer { margin: 26px 0 34px; font-size: 0.78rem; letter-spacing: 0.4px; color: #666; opacity: 0; transform: translateY(10px); animation: fadeInUp 0.6s ease-out 0.8s forwards; text-align: center; }

.turnstile-hidden { position: absolute; left: -99999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ============================================
   RESPONSIVO / ACESSIBILIDADE
   ============================================ */

@media (max-width: 420px) {
  .container { padding-top: 40px; }
  .profile-img { width: 100px; height: 100px; }
  .profile-wrap { width: 100px; }
  .name { font-size: 1.4rem; }
  .link-label { font-size: 0.95rem; }
  .link-icon { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .link-btn, .profile-wrap, .name, .social-row, .footer { opacity: 1; transform: none; }
}

.btn:focus-visible, .link-btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
