:root {
  --bg-1: #eef1f5;
  --bg-2: #dfe6ee;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-soft: #6b7280;
  --accent: #34495e;
  --ring: #cbd5e1;
}

* { box-sizing: border-box; }

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(16px);
  animation: card-in 0.6s ease-out forwards;
}

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

.avatar-wrap {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--ring));
  opacity: 0;
  transform: scale(0.85);
  animation: pop-in 0.5s 0.15s ease-out forwards;
}

@keyframes pop-in {
  to { opacity: 1; transform: scale(1); }
}

.avatar,
.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--card-bg);
}

.avatar-fallback {
  background: linear-gradient(135deg, #34495e, #5d7a99);
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  opacity: 0;
  animation: fade-up 0.5s 0.25s ease-out forwards;
}

.tagline {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 28px;
  opacity: 0;
  animation: fade-up 0.5s 0.32s ease-out forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef1f5;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.5s ease-out forwards;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.link:nth-child(1) { animation-delay: 0.4s; }
.link:nth-child(2) { animation-delay: 0.48s; }
.link:nth-child(3) { animation-delay: 0.56s; }
.link:nth-child(4) { animation-delay: 0.64s; }

.link:hover, .link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.25);
  border-color: var(--ring);
  background: #ffffff;
}

.link:active {
  transform: translateY(0);
}

.link svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.link .arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  opacity: 0.35;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.link:hover .arrow {
  transform: translateX(3px);
  opacity: 0.7;
}

.link.linkedin svg { color: #0a66c2; }
.link.github svg { color: #111827; }
.link.cv svg { color: #2b579a; }
.link.calendly svg { color: #14335e; }

footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0;
  animation: fade-up 0.5s 0.72s ease-out forwards;
}

@media (max-width: 400px) {
  .card { padding: 32px 24px 26px; border-radius: 20px; }
  .avatar-wrap { width: 108px; height: 108px; }
}
