/* ============================================================
   Sajjad Ahmed — Portfolio
   Design tokens pulled directly from Figma
   ============================================================ */

:root {
  /* Greys */
  --c-950: #030712;
  --c-900: #111827;
  --c-800: #1f2937;
  --c-700: #374151;
  --c-600: #4b5563;
  --c-500: #6b7280;
  --c-100: #f3f4f6;
  --c-50:  #f9fafb;

  /* Card tints */
  --card-blue: #f3f8ff;
  --card-sand: #eeece6;
  --card-grey: #f6f7f9;

  --white: #ffffff;
  --line: #e5e7eb;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1166px;
  --radius-card: 16px;
  --radius-pill: 9999px;

  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / Nav ---------- */
.site-header { padding-top: 64px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.brand__avatar svg,
.brand__avatar img { width: 100%; height: 100%; object-fit: cover; }

.brand__name {
  font-size: 22px; font-weight: 700; color: var(--c-900);
  letter-spacing: -0.5px; line-height: 1.2;
}

.nav__links { display: flex; gap: 24px; }
.nav__links a {
  font-size: 20px; color: var(--c-600); letter-spacing: -0.27px;
  transition: color .15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--c-900); }

.rule {
  height: 1px; background: var(--line); border: 0;
  margin: 0; width: 100%;
}
.rule--nav { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 0; }
.hero__text {
  font-size: 24px; line-height: 1.45; color: var(--c-600);
  letter-spacing: -0.27px; max-width: 620px;
}
.hero__text strong { color: var(--c-800); font-weight: 700; }

.contact-chips { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 39px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--c-100); color: var(--c-950);
  font-size: 14px; font-weight: 600; letter-spacing: 0.14px;
  transition: background .15s ease, transform .15s ease;
  border: 0; cursor: pointer; font-family: var(--font);
}
.chip:hover { background: #e8eaed; }
.chip svg { width: 16px; height: 16px; }
.chip.is-copied { background: #dcfce7; color: #166534; }
.chip.is-copied svg path { fill: #166534; }

/* Trust row */
.trust { display: flex; align-items: center; gap: 22px; margin-top: 66px; }
.trust__logos { display: flex; }
.trust__logos span {
  width: 25px; height: 25px; border-radius: 50%; overflow: hidden;
  margin-left: -6px; background: var(--white);
}
.trust__logos span:first-child { margin-left: 0; }
.trust__logos span svg,
.trust__logos span img { width: 100%; height: 100%; }
.trust__text {
  font-size: 16px; font-weight: 500; color: var(--c-800);
  letter-spacing: -0.27px;
}

/* ---------- Section dividers ---------- */
.divider { margin: 44px 0; }

/* ---------- Featured case studies ---------- */
.cases { padding-top: 44px; }

.case {
  display: grid;
  grid-template-columns: 773fr 354fr;
  gap: 53px;
  align-items: center;
  margin-bottom: 44px;
}

.case__visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 773 / 445;
  display: flex; align-items: center; justify-content: center;
}
.case__visual img { width: 100%; height: 100%; object-fit: cover; }
.case--blue .case__visual { background: var(--card-blue); }
.case--sand .case__visual { background: var(--card-sand); }

.case__body { max-width: 354px; }
.case__title {
  font-size: 24px; font-weight: 600; color: var(--c-950);
  line-height: 1.5;
}
.case__meta {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 14px; color: var(--c-500);
}
.case__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--c-500); }
.case__tag {
  display: inline-flex; align-items: center; height: 16px; padding: 0 6px;
  background: var(--c-100); border-radius: 4px;
  font-size: 12px; font-weight: 500; color: var(--c-600); letter-spacing: -0.07px;
}
.case__desc {
  margin-top: 24px; font-size: 16px; color: var(--c-600); line-height: 1.5;
}
.case__desc p + p { margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 16px; min-width: 180px;
  background: var(--c-950); color: var(--white);
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0.14px;
  cursor: pointer; margin-top: 34px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn svg path { fill: #fff; }

/* ---------- Other projects grid ---------- */
.section-title {
  font-size: 24px; font-weight: 600; color: var(--c-900); line-height: 1.5;
}
.other { padding-top: 8px; }
.other__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 40px;
}
.other__card {
  background: var(--c-50); border-radius: var(--radius-card);
  overflow: hidden; aspect-ratio: 375 / 253;
}
.other__card img { width: 100%; height: 100%; object-fit: cover; }
.other__info { margin-top: 24px; }
.other__title { font-size: 24px; font-weight: 600; color: var(--c-950); }

/* ---------- Contact block ---------- */
.contact { padding: 44px 0; }
.contact__eyebrow {
  font-size: 20px; font-weight: 600; color: var(--c-950); letter-spacing: -0.76px;
}
.contact__text {
  margin-top: 24px; font-size: 24px; color: var(--c-700);
  line-height: 1.45; letter-spacing: -0.27px; max-width: 741px;
}

/* ---------- Footer ---------- */
.footer { padding: 34px 0; }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer__name {
  font-size: 20px; font-weight: 600; color: var(--c-900);
  letter-spacing: -0.5px;
}
.footer__socials { display: flex; gap: 12px; align-items: center; }
.footer__socials a {
  width: 26px; height: 26px; display: inline-flex;
  transition: transform .15s ease, opacity .15s ease;
}
.footer__socials a:hover { transform: translateY(-2px); opacity: .8; }
.footer__socials svg,
.footer__socials img { width: 100%; height: 100%; }

/* ============================================================
   About page
   ============================================================ */
.about { padding-top: 44px; }
.about__top {
  display: grid; grid-template-columns: 645fr 428fr; gap: 72px;
  align-items: start;
}
.about__intro {
  font-size: 20px; line-height: 1.6; color: var(--c-600); letter-spacing: -0.27px;
  text-align: justify;
}
.about__intro strong { color: var(--c-800); font-weight: 700; }
.about__intro p + p { margin-top: 20px; }
.about__photo {
  border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1;
  position: sticky; top: 40px;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Socials marquee */
.socials { padding: 8px 0 0; }
.socials__eyebrow {
  font-size: 14px; color: var(--c-600); line-height: 1.4;
}
.socials__title {
  font-size: 24px; font-weight: 600; color: var(--c-800); line-height: 1.5;
  margin-top: 4px;
}

.marquee {
  margin-top: 44px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex; gap: 8px; width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  width: 187px; height: 187px; border-radius: var(--radius-card);
  overflow: hidden; flex-shrink: 0; position: relative;
  display: block;
}
.marquee__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.marquee__item:hover img { transform: scale(1.05); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none; mask-image: none;
  }
}

/* ---------- Work testimonials (static grid, About page) ---------- */
.worktest { padding: 8px 0 0; }
.worktest__eyebrow {
  font-size: 16px; color: var(--c-500); letter-spacing: -0.27px;
}
.worktest__title {
  margin-top: 6px; font-size: 24px; font-weight: 600; color: var(--c-900);
  line-height: 1.5;
}
.worktest__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: 40px; row-gap: 64px;
  margin-top: 44px;
  align-items: start;
}
.wt {
  display: flex; flex-direction: column;
}
.wt__avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  margin-bottom: 24px;
}
.wt__avatar img { width: 100%; height: 100%; object-fit: cover; }
.wt__quote {
  font-size: 15px; color: var(--c-500); line-height: 1.65;
}
.wt__quote strong { color: var(--c-900); font-weight: 600; }
.wt__person {
  margin-top: 20px;
  font-size: 14px; color: var(--c-900); font-weight: 600;
  flex: 0 0 auto;
}
.wt__role { color: var(--c-500); font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .rmarquee__track { animation: none; }
  .rmarquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   Mentorship page
   ============================================================ */
.mentor-hero { padding: 44px 0 0; }
.mentor-hero__eyebrow {
  font-size: 20px; color: var(--c-500); letter-spacing: -0.27px;
}
.mentor-hero__title {
  margin-top: 16px; font-size: 44px; font-weight: 700; color: var(--c-950);
  line-height: 1.15; letter-spacing: -1.5px; max-width: 900px;
}

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
.plan {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card-grey);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.plan__icon { width: 55px; height: 55px; margin-bottom: 24px; }
.plan__icon img { width: 100%; height: 100%; }
.plan__title {
  font-size: 22px; font-weight: 600; color: var(--c-950); line-height: 1.3;
}
.plan__desc {
  margin-top: 16px; font-size: 15px; color: var(--c-600); line-height: 1.55;
  min-height: 70px;
}
.plan__badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
  min-height: 64px; align-content: flex-start;
}
.plan__badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
  background: var(--white); border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 500; color: var(--c-700); white-space: nowrap;
}
.plan__meta {
  margin-top: 24px; font-size: 14px; color: var(--c-500);
}
.plan__spacer { flex: 1 1 auto; }
.plan__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; margin-top: 16px; align-self: flex-start;
  background: var(--c-950); color: #fff; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: .14px;
  transition: transform .15s ease, opacity .15s ease;
}
.plan__cta:hover { opacity: .9; transform: translateY(-1px); }
.plan__cta svg { width: 16px; height: 16px; }
.plan__cta svg path { fill: #fff; }

/* Testimonials marquee */
.reviews { padding: 44px 0 0; }
.reviews__title {
  font-size: 24px; font-weight: 600; color: var(--c-900); line-height: 1.5;
}
.rmarquee {
  margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.rmarquee__track {
  display: flex; gap: 32px; width: max-content;
  align-items: stretch;
  animation: marquee 90s linear infinite;
}
.rmarquee:hover .rmarquee__track { animation-play-state: paused; }
.review {
  width: 360px; flex-shrink: 0; height: 260px;
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--white);
}
.review__quote {
  font-size: 15px; color: var(--c-600); line-height: 1.55;
  overflow: hidden;
}
.review__person {
  margin-top: auto; padding-top: 16px;
  font-size: 14px; color: var(--c-900); font-weight: 600;
}
.review__role { color: var(--c-500); font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .rmarquee__track { animation: none; }
  .rmarquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Awards & Recognition ---------- */
.awards { padding: 8px 0 0; }
.awards__eyebrow {
  font-size: 16px; color: var(--c-500); letter-spacing: -0.27px;
}
.awards__title {
  margin-top: 6px; font-size: 24px; font-weight: 600; color: var(--c-900);
  line-height: 1.5;
}
.awards__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  column-gap: 40px; row-gap: 40px;
  margin-top: 44px;
}
.award {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  align-items: start;
}
.award__thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: var(--c-50); display: block;
}
.award__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.award__thumb:hover img { transform: scale(1.05); }
.award__body { min-width: 0; }
.award__name {
  font-size: 15px; font-weight: 600; color: var(--c-950); line-height: 1.35;
}
.award__name a { transition: opacity .15s ease; }
.award__name a:hover { opacity: .6; }
.award__org {
  margin-top: 8px; font-size: 13px; color: var(--c-500); line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .award__thumb:hover img { transform: none; }
}

/* ============================================================
   Writing page
   ============================================================ */
.writing-hero { padding: 44px 0 0; }
.writing-hero__eyebrow {
  font-size: 20px; color: var(--c-500); letter-spacing: -0.27px;
}
.writing-hero__title {
  margin-top: 16px; font-size: 40px; font-weight: 700; color: var(--c-950);
  line-height: 1.18; letter-spacing: -1.4px; max-width: 900px;
}

.articles { padding-top: 44px; }
.article {
  display: grid; grid-template-columns: 476fr 611fr; gap: 55px;
  align-items: start;
  padding: 44px 0;
}
.article + .article { border-top: 1px solid var(--line); }
.article:first-child { padding-top: 0; }

.article__thumb {
  display: block; overflow: hidden; border-radius: 8px;
  aspect-ratio: 956 / 354; background: var(--c-50);
}
.article__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.article__thumb:hover img { transform: scale(1.03); }

.article__body { padding-top: 4px; }
.article__meta {
  font-size: 14px; color: var(--c-500); letter-spacing: -0.07px;
}
.article__title {
  margin-top: 12px; font-size: 30px; font-weight: 700; color: var(--c-950);
  line-height: 1.25; letter-spacing: -0.8px;
}
.article__title a { transition: opacity .15s ease; }
.article__title a:hover { opacity: .7; }
.article__desc {
  margin-top: 20px; font-size: 18px; color: var(--c-600); line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .article__thumb:hover img { transform: none; }
}

/* ============================================================
   Password modal
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3, 7, 18, .55);
  backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }
.modal__card {
  background: var(--white); border-radius: 20px;
  width: 100%; max-width: 400px; padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal__eyebrow { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--c-500); }
.modal__title { font-size: 22px; font-weight: 600; color: var(--c-950); margin-top: 6px; }
.modal__sub { font-size: 15px; color: var(--c-600); margin-top: 8px; line-height: 1.5; }

.modal__input {
  width: 100%; height: 50px; margin-top: 20px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font); font-size: 16px; color: var(--c-900);
  outline: none; transition: border-color .15s ease;
}
.modal__input:focus { border-color: var(--c-900); }
.modal__error { color: #dc2626; font-size: 14px; margin-top: 10px; min-height: 20px; }

.modal__actions { display: flex; gap: 12px; margin-top: 8px; }
.modal__btn {
  flex: 1; height: 50px; border-radius: var(--radius-pill);
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .14px;
  cursor: pointer; border: 0; transition: opacity .15s ease;
}
.modal__btn:hover { opacity: .9; }
.modal__btn--primary { background: var(--c-950); color: #fff; }
.modal__btn--ghost { background: var(--c-100); color: var(--c-900); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .site-header { padding-top: 40px; }
  .hero__text { font-size: 20px; }

  .case {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
  }
  .case__body { max-width: none; }
  .btn { width: 100%; }

  .about__top { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { position: static; max-width: 360px; }
  .about__intro { text-align: left; }

  .other__grid { grid-template-columns: 1fr; gap: 40px; }

  .contact__text { font-size: 20px; }

  .mentor-hero__title { font-size: 32px; letter-spacing: -1px; }
  .plans { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }

  .worktest__grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; row-gap: 48px; }
  .awards__grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; row-gap: 32px; }

  .writing-hero__title { font-size: 30px; letter-spacing: -1px; }
  .article {
    grid-template-columns: 1fr; gap: 20px;
    padding: 32px 0;
  }
  .article__title { font-size: 24px; }
  .article__desc { font-size: 16px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .site-header { padding-top: 28px; }

  .brand__avatar { width: 46px; height: 46px; }
  .brand__name { font-size: 19px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 17px; }

  .hero__text { font-size: 18px; }
  .contact-chips { gap: 10px; }

  .trust { gap: 14px; margin-top: 44px; flex-wrap: wrap; }
  .trust__text { font-size: 14px; }

  .case__title, .other__title, .section-title, .socials__title { font-size: 20px; }
  .contact__text { font-size: 18px; }

  .marquee__item { width: 150px; height: 150px; }

  .mentor-hero__title { font-size: 26px; letter-spacing: -0.6px; }
  .plans { grid-template-columns: 1fr; gap: 44px; }
  .review { width: 280px; }

  .worktest__grid { grid-template-columns: 1fr; row-gap: 44px; }
  .awards__grid { grid-template-columns: 1fr; row-gap: 24px; }

  .writing-hero__title { font-size: 25px; letter-spacing: -0.6px; }
  .article__title { font-size: 22px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
