/* Muhammad Ibtsaam Qadir — single-page site
   All colour lives in the tokens below. Change --teal and the site follows. */

:root {
  --teal:       #0E7C86;
  --teal-dark:  #0A5058;
  --teal-deep:  #0B2B33;
  --teal-tint:  #EDF6F7;
  --teal-tint2: #F5FAFA;

  --text:   #16212B;
  --muted:  #61727F;
  --rule:   #E3E9ED;
  --white:  #ffffff;

  --maxw:    1080px;
  --measure: 70ch;
  --nav-h:   64px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.22; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }

section { padding: 72px 0; scroll-margin-top: var(--nav-h); }
.tinted { background: var(--teal-tint2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* section label: small uppercase, teal, with a short rule under it */
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 30px; }

/* ---------- nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.5) blur(8px);
  -webkit-backdrop-filter: saturate(1.5) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--nav-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { height: 30px; width: auto; border-radius: 8px; }

.site-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 14.5px; color: var(--muted); white-space: nowrap;
  padding: 7px 12px; border-radius: 4px; transition: background .18s, color .18s;
}
.site-nav a:hover { color: var(--text); background: var(--teal-tint); text-decoration: none; }
.site-nav a.active { color: var(--teal-dark); background: var(--teal-tint); font-weight: 500; }

@media (max-width: 720px) {
  .site-head .wrap { height: auto; padding-top: 12px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .brand span { font-size: 15px; }
  .site-nav { width: 100%; margin: 0 -4px; }
  .site-nav a { font-size: 13.5px; padding: 6px 10px; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 45%, var(--teal) 100%);
  color: #fff;
  padding: 76px 0 72px;
  scroll-margin-top: var(--nav-h);
}
.hero-grid { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 48px; align-items: center; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } }

.avatar {
  width: 210px; height: 210px; border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.28);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.5);
}
@media (max-width: 760px) { .avatar { margin: 0 auto; width: 170px; height: 170px; } }

.hero h1 { font-size: clamp(32px, 5vw, 46px); color: #fff; }
.hero .role { margin: 12px 0 18px; font-size: clamp(17px, 2.2vw, 20px); color: #BEE3E6; }
.hero p.bio { color: #DCEEF0; max-width: 60ch; }
@media (max-width: 760px) { .hero p.bio { margin-left: auto; margin-right: auto; } }

.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 760px) { .hero-links { justify-content: center; } }
.hero-links a {
  font-size: 14px; color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px; padding: 7px 14px;
  transition: background .18s, border-color .18s;
}
.hero-links a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); text-decoration: none; color: #fff; }
.hero-links a.primary { background: #fff; color: var(--teal-dark); border-color: #fff; font-weight: 500; }
.hero-links a.primary:hover { background: #DCEEF0; color: var(--teal-deep); }

/* ---------- education ---------- */
.edu { border-left: 2px solid var(--teal-tint); padding-left: 26px; max-width: var(--measure); }
.edu li { position: relative; padding-bottom: 26px; }
.edu li:last-child { padding-bottom: 0; }
.edu li::before {
  content: ""; position: absolute; left: -33px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--teal); border: 2px solid #fff;
}
.edu .when { font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.edu h4 { font-size: 18px; margin: 3px 0 2px; }
.edu .where { color: var(--muted); }

/* ---------- research cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: 5px;
  padding: 26px 26px 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 16px 34px -22px rgba(14,60,68,.45); transform: translateY(-2px); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tags span {
  font-size: 12px; letter-spacing: .04em;
  background: var(--teal-tint); color: var(--teal-dark);
  padding: 4px 10px; border-radius: 20px;
}

/* ---------- news ---------- */
.news li {
  display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.news li:first-child { border-top: 1px solid var(--rule); }
@media (max-width: 620px) { .news li { grid-template-columns: 1fr; gap: 6px; } }
.news .when { font-size: 13.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); padding-top: 3px; }
.news h4 { font-size: 18px; margin-bottom: 4px; }
.news p { color: var(--muted); font-size: 16px; }

/* ---------- publications ---------- */
.subhead {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 42px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.subhead:first-child { margin-top: 0; }

.pubs li { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); max-width: var(--measure); }
.pubs li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pubs .title { font-weight: 600; }
.pubs .authors { color: var(--muted); }
.pubs .authors b { color: var(--text); font-weight: 600; }
.pubs .venue { font-style: italic; }
.pubs .view { white-space: nowrap; font-size: 14.5px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- footer ---------- */
.site-foot { background: var(--teal-deep); color: #93AEB4; padding: 34px 0; font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-foot a { color: #BEE3E6; }
