/* ============================================================
   components.css — hero, buttons, cards, chips, timeline
   Refined / Apple-inspired: pills, soft shadows, calm spacing
   ============================================================ */

/* ---------- Buttons (pill-shaped) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 13px 24px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid transparent; transition: .3s var(--ease);
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,113,227,.28); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--bg-alt); transform: translateY(-1px); }
.btn--link { background: transparent; color: var(--accent); padding: 13px 4px; }
.btn--link:hover { text-decoration: underline; }
.btn--sm { padding: 8px 16px; font-size: .9rem; background: var(--bg-alt); color: var(--ink); }
.btn--sm:hover { background: #e8e8ed; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero (centered, typographic) ---------- */
.hero { padding: clamp(72px, 11vw, 144px) 0 clamp(50px, 7vw, 92px); text-align: center; }
.hero__inner { max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--bg-alt); padding: 7px 15px; border-radius: var(--radius-pill); margin-bottom: 32px;
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #34c759;
  box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: pulse 2.4s infinite;
}
.hero__role {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem); color: var(--ink-muted);
  letter-spacing: -0.03em; margin-top: 12px;
}
.hero__lead { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); max-width: 42ch; margin: 28px auto 0; letter-spacing: -0.015em; }
.hero__cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 38px; }
.hero__socials { display: flex; gap: 28px; justify-content: center; margin-top: 36px; }
.hero__socials a { color: var(--ink-muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.hero__socials a:hover { color: var(--ink); }

/* ---------- Stat strip (borderless, hairline dividers) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; }
.stat { padding: 12px 24px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; color: var(--ink); letter-spacing: -0.04em; }
.stat__label { font-size: .92rem; color: var(--ink-muted); margin-top: 4px; }

/* ---------- Cards (soft depth, no hard border on hover) ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: .4s var(--ease); height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card p { font-size: 1rem; line-height: 1.55; margin-top: 10px; }

/* Project cards */
.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.project__cover { aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project:hover .project__cover img { transform: scale(1.03); }
.project__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.project__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project__tag { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.project h3 { margin: 13px 0 8px; }
.project p { font-size: 1rem; line-height: 1.5; }
.project__stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.project__links { display: flex; gap: 20px; margin-top: auto; padding-top: 6px; }
.project__links a { font-size: .95rem; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.project__links a:hover { text-decoration: underline; }
.project__links a:hover .arrow { transform: translateX(3px); }

/* ---------- Chips (clean pills, no border) ---------- */
.chip {
  font-family: var(--font-sans); font-size: .85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--bg-alt); border: none; padding: 7px 14px; border-radius: var(--radius-pill);
  transition: .25s var(--ease);
}
.chip:hover { background: #e8e8ed; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- Skill groups ---------- */
.skillset { display: grid; gap: 18px; }
.skillgroup { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; background: #fff; transition: .4s var(--ease); }
.skillgroup:hover { box-shadow: var(--shadow-sm); }
.skillgroup h3 { font-size: .78rem; font-family: var(--font-sans); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 16px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.tl-item { position: relative; padding: 0 0 44px 36px; border-left: 2px solid var(--border); }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-item::before {
  content: ""; position: absolute; left: -7px; top: 5px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; border: 2.5px solid var(--border-strong);
}
.tl-item.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.tl-role { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.2rem; letter-spacing: -0.02em; }
.tl-org { color: var(--accent); font-weight: 600; }
.tl-date { font-size: .85rem; color: var(--ink-muted); white-space: nowrap; }
.tl-list { margin: 14px 0 18px; display: grid; gap: 10px; }
.tl-list li { position: relative; padding-left: 20px; font-size: 1rem; line-height: 1.5; }
.tl-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-muted); }

/* ---------- Profile / avatar (circular) ---------- */
.avatar {
  width: 128px; height: 128px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--bg-alt); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--ink-muted);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About layout ---------- */
.about__grid { display: grid; grid-template-columns: 128px 1fr; gap: 44px; align-items: start; }
.about__body p { font-size: 1.12rem; line-height: 1.6; }
.about__body p + p { margin-top: 18px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; }
.contact__detail { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact__detail .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-alt); color: var(--ink); display: grid; place-items: center; font-size: .9rem; font-weight: 600; }
.contact__detail a, .contact__detail span { color: var(--ink); font-weight: 500; }
.contact__detail a:hover { color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 14px 16px; transition: .2s var(--ease); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Skills spec sheet (Apple spec-list style) ---------- */
.specs { border-top: 1px solid var(--border); }
.spec-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 36px;
  padding: 26px 4px; border-bottom: 1px solid var(--border); align-items: baseline;
}
.spec-row__label { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.spec-row__items { font-size: 1.12rem; color: var(--ink); line-height: 1.55; letter-spacing: -0.015em; }

/* ---------- Contact icon badges ---------- */
.contact__detail .ic svg { width: 20px; height: 20px; }

/* ---------- Rising arrow (hover reveal, bottom → top) ---------- */
.arrow-rise { display: inline-block; position: relative; width: 1em; height: 1em; overflow: hidden; vertical-align: -0.14em; margin-left: 4px; }
.arrow-rise i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; line-height: 1; transition: transform .42s var(--ease); }
.arrow-rise i:last-child { transform: translateY(120%); }
.btn:hover .arrow-rise i:first-child { transform: translateY(-120%); }
.btn:hover .arrow-rise i:last-child { transform: translateY(0); }

/* ---------- CV page ---------- */
.cv { max-width: 820px; margin-inline: auto; }
.cv__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; }
.cv h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.cv__role { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; margin-top: 6px; }
.cv__summary { margin-top: 14px; max-width: 54ch; font-size: 1.05rem; }
.cv-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
.cv-links a, .cv-links span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.cv-links a:hover { color: var(--accent); }
.cv-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.cv-download { flex-shrink: 0; }
.cv-section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.cv-section > .eyebrow { display: block; margin-bottom: 22px; }
.cv-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 36px; }
.cv-highlights li { position: relative; padding-left: 22px; font-size: 1.02rem; color: var(--ink); }
.cv-highlights li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (max-width: 860px) {
  .hero__lead { font-size: 1.12rem; }
  .spec-row { grid-template-columns: 1fr; gap: 7px; padding: 20px 4px; }
  .spec-row__items { font-size: 1.05rem; }
  .cv__header { flex-direction: column; gap: 22px; }
  .cv-highlights { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; max-width: 320px; }
  .stat { border-left: none; border-top: 1px solid var(--border); padding: 22px 24px; }
  .stat:first-child { border-top: none; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; justify-items: start; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Print (clean Cmd+P / Save-as-PDF for the CV) ---------- */
@media print {
  .nav, .footer, .cv-download { display: none !important; }
  .page { animation: none !important; }
  .section { padding: 0 !important; }
  .cv { max-width: 100%; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  body { font-size: 12px; color: #000; }
  .cv-section { margin-top: 22px; padding-top: 22px; border-color: #ccc; }
  a { color: #000; }
}
