/* ============================================================
   Haider Ali · TikTok Shop Expert · light, minimal portfolio
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #14151a;
  --ink-soft: #565a66;
  --line: #dcdfe6;
  --accent: #ff2d55;          /* TikTok-ish red, used sparingly */
  --accent-soft: #ffe9ee;
  --radius: 16px;
  --wrap: 1080px;
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.hl { color: var(--accent); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform 0.15s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(255,45,85,0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(255,45,85,0.65); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 14px; background: var(--ink); color: #fff; }
.btn--sm:hover { transform: translateY(-1px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav__brand { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: clamp(32px, 6vw, 72px);
}
.hero__photo { align-self: center; display: flex; justify-content: flex-end; }
.hero__photo img { max-width: 360px; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero__title { font-size: clamp(40px, 7vw, 68px); font-weight: 800; }
.hero__lead { color: var(--ink-soft); font-size: clamp(17px, 2vw, 20px); margin: 22px 0 30px; max-width: 30ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo img {
  width: 100%; height: auto; border-radius: 24px;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  background: var(--bg-alt);
  box-shadow: 0 30px 60px -30px rgba(20,21,26,0.35);
}

/* ---------- Stats ---------- */
.stats { padding: clamp(36px, 5vw, 56px) 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(20,21,26,0.3); border-color: #d9dce3; }
.stat__ico {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; color: var(--accent);
  background: var(--accent-soft);
}
.stat__ico svg { width: 22px; height: 22px; }
.stat__num { display: block; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__label { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
/* narrow text but keep the same container width/left edge as every other section */
.section--narrow > * { max-width: 720px; }
.section__title { font-size: clamp(26px, 4vw, 36px); margin-bottom: 28px; }

/* ---------- About ---------- */
.about__text { font-size: clamp(19px, 2.3vw, 24px); color: var(--ink); line-height: 1.5; max-width: 40ch; }
.about__text strong { color: var(--accent); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.section--alt .service { background: #fff; }
.service:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(20,21,26,0.25); border-color: #d9dce3; }
.service__ico { font-size: 26px; display: block; margin-bottom: 12px; }
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* ---------- Work ---------- */
.work {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.work__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff;
  /* visible border tinted to the card's own brand color */
  border: 2px solid color-mix(in srgb, var(--c1, var(--accent)) 45%, var(--line));
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.work__card::before {
  /* faint color wash at top so the card clearly belongs to its color */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1, var(--accent)) 7%, transparent), transparent 38%);
}
.work__card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent)));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.work__card:hover {
  transform: translateY(-6px);
  border-color: var(--c1, var(--accent));
  box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--c1, var(--accent)) 55%, transparent);
}
.work__card:hover::after { transform: scaleX(1); }
.work__card > * { position: relative; z-index: 1; }
.work__avatar {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent)));
  box-shadow: 0 8px 18px -8px var(--c1, var(--accent));
}
.work__res {
  font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink);
}
.work__res small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-top: 3px; letter-spacing: 0; }
.work__name { font-weight: 600; font-size: 16px; margin-top: 16px; }
.work__tag {
  align-self: flex-start; margin-top: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 999px;
}
.work__foot { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Experience ---------- */
.exp { max-width: 760px; }
.exp__item {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 8px 16px; padding: 18px 4px; border-top: 1px solid var(--line);
  transition: padding-left 0.2s var(--ease);
}
.exp__item:first-child { border-top: 0; }
.exp__item:hover { padding-left: 10px; }
.exp__role { font-weight: 600; font-size: 17px; }
.exp__co { color: var(--accent); font-weight: 600; font-size: 15px; grid-row: 2; }
.exp__when {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact__head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.contact__head .section__title { margin-bottom: 12px; }
.contact__lead { color: var(--ink-soft); font-size: 18px; }
.contact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact__card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.contact__card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(20,21,26,0.3); border-color: #d9dce3; }
.contact__ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--accent); background: var(--accent-soft);
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact__meta strong { font-size: 16px; font-weight: 600; }
.contact__meta small { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.contact__arrow {
  margin-left: auto; color: var(--ink-soft); font-size: 18px;
  transition: transform 0.2s var(--ease), color 0.2s;
}
.contact__card:hover .contact__arrow { transform: translateX(4px); color: var(--accent); }
.contact__cta { display: flex; margin: 34px auto 0; width: max-content; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 14px; }
.footer__top { font-weight: 600; transition: color 0.15s; }
.footer__top:hover { color: var(--ink); }

/* ---------- Reveal (simple fade-up) ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal-on .reveal.in-view { opacity: 1; transform: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,45,85,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(255,45,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 320px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); }
  .contact__cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav__links { display: none; }
  .services { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; }
  .contact__card { padding: 16px; gap: 12px; }
  .wrap { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .status__dot { animation: none; }
  * { transition-duration: 0.001ms !important; }
}
