/* ============================================================
   components.css — Buttons, cards, socials, forms, tags, stats
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(154, 85, 188, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(154, 85, 188, 0.85); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--accent-2); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-glow {
  position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  background: var(--grad); filter: blur(70px); opacity: 0.3; border-radius: 50%; pointer-events: none;
}

/* ---------- Socials ---------- */
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials-center { justify-content: center; }
.social {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); text-decoration: none;
  transition: transform 0.25s var(--ease), color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.social:hover {
  transform: translateY(-3px); color: #fff; border-color: transparent;
  background: var(--grad); box-shadow: 0 8px 22px -8px rgba(154, 85, 188, 0.7);
}

/* ---------- Tags ---------- */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
}

/* ---------- Stats ---------- */
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block;
}
.stat-plus { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--accent-2); }
.stat-label { color: var(--text-mute); font-size: 14px; margin-top: 6px; }

/* ---------- Skill bars ---------- */
.skill { display: flex; flex-direction: column; gap: 10px; }
.skill-row { display: flex; justify-content: space-between; }
.skill-name { font-weight: 600; font-size: 15px; color: var(--text); }
.skill-pct { color: var(--text-mute); font-size: 13px; font-weight: 600; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.2s var(--ease); }
.bar.fill i { width: var(--lvl); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(193, 224, 175, 0.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--text-mute); }
/* Success state — mint green #c1e0af (contact form) */
.form-success {
  display: none; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--success); border: 1px solid rgba(31, 58, 20, 0.25);
  color: var(--success-ink); font-size: 14px; font-weight: 500;
}
.form-success.show { display: block; }

/* ---------- Do-list ---------- */
.do-list { display: flex; flex-direction: column; gap: 16px; position: relative; }
.do-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); font-size: 15px;
}
.do-list li:last-child { border-bottom: none; padding-bottom: 0; }
.do-list li span:first-child { color: var(--text); font-weight: 600; }
.do-list li span:last-child { color: var(--text-mute); font-size: 13.5px; }

/* ---------- Service card ---------- */
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--text-soft); font-size: 14.5px; }
.service .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 18px; font-size: 24px;
}

/* ---------- Footer socials (official brand colors) ---------- */
.foot-left { display: flex; flex-direction: column; gap: 14px; }
.foot-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.fs {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  color: #fff; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.25s;
}
.fs:hover { transform: translateY(-3px); box-shadow: 0 8px 18px -6px rgba(0,0,0,0.5); }

/* ---------- Tech stack ---------- */
.tech-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech {
  font-family: var(--font-nav); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.tech:hover { transform: translateY(-2px); border-color: var(--accent-2); color: var(--text); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testimonial p { color: var(--text-soft); font-size: 15px; margin-bottom: 18px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.testimonial .who b { font-size: 14px; }
.testimonial .who span { display: block; color: var(--text-mute); font-size: 12.5px; }
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Featured work ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.featured { text-decoration: none; color: inherit; display: block; }
.featured .thumb { height: 170px; border-radius: var(--radius); display: grid; place-items: center; font-size: 48px; margin-bottom: 16px; }
.featured h3 { font-size: 18px; margin-bottom: 6px; }
.featured p { color: var(--text-soft); font-size: 14px; }
@media (max-width: 860px) { .featured-grid { grid-template-columns: 1fr; } }
