/* ============================================
   saadbinshafiq.com — Style Sheet
   Dark, modern, minimal aesthetic
   Mobile-first responsive design
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  background-color: #0a0a0a;
  color: #f5f5f5;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3 {
  color: #f5f5f5;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

p {
  color: #ccc;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #60a5fa;
}

ul, ol {
  list-style: none;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

/* --- Skip Nav (Accessibility) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #3b82f6;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-nav:focus {
  top: 0;
  color: #fff;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
  padding: 1rem 0;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: #f5f5f5;
  text-decoration: none;
}

.nav__logo:hover {
  color: #f5f5f5;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav__links a {
  color: #999;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: #f5f5f5;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* --- Hero --- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero__name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: 1.125rem;
  color: #3b82f6;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: 1.05rem;
  color: #999;
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero__links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero__links a {
  color: #888;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.hero__links a:hover {
  color: #f5f5f5;
}

.hero__links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #2563eb;
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid #333;
  color: #f5f5f5;
}

.btn--outline:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  color: #f5f5f5;
}

/* --- Section Headers --- */
.section__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section__title {
  margin-bottom: 1rem;
}

.section__desc {
  color: #999;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --- Cards --- */
.card {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
  display: block;
}

.card:hover {
  border-color: #333;
}

a.card {
  color: inherit;
}

a.card:hover {
  color: inherit;
}

.card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.05rem;
  color: #f5f5f5;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card__meta {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 0;
}

.card__text {
  font-size: 0.9375rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 1.25rem;
}

/* --- Stats Row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
}

.stat__number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f5f5f5;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #1e1e1e;
}

.timeline__item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid #3b82f6;
  z-index: 1;
  transform: translateX(1px);
}

.timeline__year {
  font-size: 0.8125rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

.timeline__text {
  font-size: 0.9375rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Testimonials --- */
.testimonial {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-left: 3px solid #3b82f6;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
}

.testimonial__quote {
  font-size: 1rem;
  color: #ccc;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial__quote::before {
  content: '\201C';
  color: #3b82f6;
  font-size: 1.5rem;
  font-style: normal;
  margin-right: 0.125rem;
}

.testimonial__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 0.125rem;
}

.testimonial__role {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 0;
}

/* --- Research List --- */
.research-areas {
  margin-top: 1.5rem;
}

.research-areas li {
  padding: 0.625rem 0;
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
  font-size: 0.9375rem;
}

.research-areas li:last-child {
  border-bottom: none;
}

.profile-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #ccc;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.profile-links a:hover {
  border-color: #3b82f6;
  color: #f5f5f5;
}

/* --- Podcast / Media Cards --- */
.media-card {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 1.5rem;
}

.media-card__title {
  font-size: 1.05rem;
  color: #f5f5f5;
  margin-bottom: 0.5rem;
}

.media-card__desc {
  font-size: 0.9375rem;
  color: #999;
  margin-bottom: 1rem;
}

.media-card__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.media-card__links a {
  font-size: 0.8125rem;
  color: #3b82f6;
  padding: 0.375rem 0.75rem;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.media-card__links a:hover {
  border-color: #3b82f6;
}

/* --- Contact Section --- */
.contact__grid {
  display: grid;
  gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  color: #ccc;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

.contact__item:hover {
  border-color: #333;
  color: #f5f5f5;
}

.contact__item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  color: #3b82f6;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid #1a1a1a;
  padding: 3rem 0;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: #666;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #f5f5f5;
}

.footer__copy {
  font-size: 0.8125rem;
  color: #444;
  margin-bottom: 0;
}

/* --- About Page --- */
.about-hero {
  padding: 120px 0 40px;
}

.about__header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.about__headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #1e1e1e;
  flex-shrink: 0;
  overflow: hidden;
}

.about__headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__intro {
  flex: 1;
  min-width: 280px;
}

.about__bio {
  max-width: 720px;
}

.about__bio p {
  margin-bottom: 1.25rem;
}

.about__section {
  padding: 40px 0;
  border-top: 1px solid #1a1a1a;
}

.about__links-list {
  margin-top: 1rem;
}

.about__links-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #141414;
}

.about__links-list li:last-child {
  border-bottom: none;
}

.about__links-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  font-size: 0.9375rem;
}

.about__links-list a:hover {
  color: #3b82f6;
}

.about__links-list span {
  color: #666;
  font-size: 0.8125rem;
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-accent { color: #3b82f6; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* --- Responsive --- */
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .section {
    padding: 120px 0;
  }

  h1, .hero__name {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 160px 0 120px;
  }

  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(5, 1fr);
  }

  .stat__number {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
  }

  .nav__links.open {
    display: flex;
  }

  .hero__links {
    gap: 0.75rem;
  }

  .about__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
