:root {
  --primary: #4DA8E0;
  --primary-dark: #3B93CC;
  --accent-soft: #E4F2FB;
  --success: #46C196;
  --page-bg: #EAF4FB;
  --page-grad-top: #E6F2FC;
  --page-grad-bottom: #F6FBFE;
  --card-bg: #FFFFFF;
  --card-border: #E3EEF6;
  --text-primary: #18394B;
  --text-secondary: #4C6C7C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--page-grad-top) 0%, var(--page-grad-bottom) 60%);
  min-height: 100vh;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ── Hero / about ─────────────────────────────────────────── */

header.hero {
  text-align: center;
  padding: 64px 16px 32px;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 12px 28px rgba(77, 168, 224, 0.28);
}

h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 18px;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 18px rgba(77, 168, 224, 0.35);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(77, 168, 224, 0.45); }

.btn-outline {
  background: var(--card-bg);
  color: var(--primary-dark);
  border: 1.5px solid var(--card-border);
}

.btn-outline:hover { border-color: var(--primary); }

/* ── Section headings ─────────────────────────────────────── */

section { margin: 48px 0; }

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

/* ── Project (Weario) card ────────────────────────────────── */

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(24, 57, 75, 0.06);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.project-card .icon-tile {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(77, 168, 224, 0.3);
}

.project-card h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; }
.project-card p { margin: 0 0 14px; color: var(--text-secondary); line-height: 1.55; }

.project-card .badge-link img { height: 46px; }

/* ── Feature grid (reused for skills / experience) ───────────*/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(24, 57, 75, 0.05);
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ── Skill pills ──────────────────────────────────────────── */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--accent-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ── Experience timeline ──────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--card-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 26px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .role-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.timeline-item h4 { margin: 0; font-size: 1.02rem; font-weight: 800; }

.timeline-item .dates {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.timeline-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ── Footer / contact ─────────────────────────────────────── */

footer {
  text-align: center;
  padding: 32px 16px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-border);
  margin-top: 24px;
}

footer a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover { text-decoration: underline; }

footer .links {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .project-card { flex-direction: column; align-items: center; text-align: center; }
}
