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

:root {
  --bg: #030405;
  --card: #0c0e11;
  --border: rgba(255,255,255,0.08);
  --text: #f2f3f5;
  --text-dim: #8a8f98;
  --accent: #5eead4;
  --display: 'Syne', sans-serif;
  --body: 'Inter', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

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

main {
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.6s ease forwards;
}
.card:nth-of-type(1) { animation-delay: 0.05s; }
.card:nth-of-type(2) { animation-delay: 0.12s; }
.project-grid .card:nth-of-type(1) { animation-delay: 0.18s; }
.project-grid .card:nth-of-type(2) { animation-delay: 0.24s; }
.card-connect { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* profile card */
.card-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 0 24px rgba(94,234,212,0.25);
}

.name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.tagline span { color: var(--text-dim); margin: 0 2px; }

/* about card */
.card-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.about-text {
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.75;
}

.divider { height: 1px; background: var(--border); margin: 24px 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center; }
.about-col h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.about-col p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* project cards */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.project-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }

.project-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 6px;
}

.project-title { font-family: var(--display); font-size: 16px; font-weight: 700; }
.project-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; }

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 11px 0;
  background: var(--accent);
  color: #030405;
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #7ff2df; transform: translateY(-1px); }

/* connect card */
.connect-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--body);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.connect-link:hover { color: var(--text); border-color: var(--accent); }
.connect-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* mobile */
@media (max-width: 560px) {
  main { padding: 40px 16px 32px; gap: 12px; }
  .card { padding: 24px; border-radius: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .project-grid { grid-template-columns: 1fr; }
  .name { font-size: 24px; }
  .connect-row { flex-direction: column; }
  .connect-link { width: 100%; justify-content: center; }
}