/* Muhammed Aslam — personal site styles */

:root {
  --bg: oklch(0.15 0.02 250);
  --bg-alt: oklch(0.19 0.02 250);
  --text: oklch(0.95 0.01 250);
  --text-muted: oklch(0.68 0.015 250);
  --text-dim: oklch(0.55 0.015 250);
  --text-dimmer: oklch(0.62 0.015 250);
  --text-bright: oklch(0.85 0.01 250);
  --border: oklch(0.30 0.02 250);
  --accent: oklch(0.78 0.13 195);
  --accent-on: oklch(0.12 0.02 250);
  --max-width: 1160px;
  --gap-section: clamp(56px, 9vw, 96px);
  --pad-inline: clamp(20px, 6vw, 120px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-image:
    linear-gradient(oklch(0.24 0.02 250 / 0.4) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.24 0.02 250 / 0.4) 1px, transparent 1px);
  background-size: 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover, a:focus-visible {
  color: var(--accent);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono {
  font-family: 'Space Mono', 'Courier New', monospace;
}

img, svg {
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad-inline);
  padding-right: var(--pad-inline);
}

.section {
  padding-top: var(--gap-section);
  padding-bottom: var(--gap-section);
  border-top: 1px solid var(--border);
}
.section:first-of-type {
  border-top: none;
}

.eyebrow {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 48px;
  max-width: 640px;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-on);
  padding: 12px 20px;
  border-radius: 4px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
}

/* NAV */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-inline);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
}
.brand span {
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
}
.nav-link {
  color: var(--text-dim);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  padding: 16px 28px;
  border: none;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn-primary:hover, .btn-primary:focus-visible {
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px oklch(0.78 0.13 195 / 0.5);
  transform: translateY(-1px);
  color: var(--accent-on);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 400;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* HERO */
.hero {
  padding: clamp(72px, 12vw, 140px) var(--pad-inline) clamp(64px, 10vw, 120px);
}
.hero h1 {
  font-size: clamp(38px, 6.5vw, 78px);
  line-height: 1.08;
  max-width: 920px;
  margin-bottom: 32px;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 40px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-line {
  margin-top: 44px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ABOUT */
.about p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}

/* WHAT I SOLVE */
.solve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  transition: border-color .15s ease;
}
.card:hover {
  border-color: oklch(0.78 0.13 195 / 0.5);
}
.card .icon {
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dimmer);
  margin: 0;
}

/* PROOF OF WORK */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}
.work-card.flagship {
  border-color: oklch(0.78 0.13 195 / 0.5);
}
.work-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.work-card h3 {
  font-size: 22px;
  margin: 0 0 4px;
}
.work-link {
  font-size: 12px;
  color: var(--text-muted);
}
.tag {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid oklch(0.78 0.13 195 / 0.4);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.work-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 820px;
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.process-step .num {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}
.process-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dimmer);
  margin: 0;
}

/* SIDE PROJECT */
.side-project {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 28px 32px;
}
.side-project p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-bright);
  margin: 0;
}

/* HOW I WORK */
.era-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.era {
  background: var(--bg-alt);
  padding: 28px;
}
.era .years {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}
.era p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dimmer);
  margin: 0;
}

/* LANGUAGES & TOOLS */
.tool-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.tool-group-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.tool-tag .mono-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: oklch(0.78 0.13 195 / 0.15);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.faq-list .faq-item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 760px;
}

/* CTA / CONTACT */
.contact {
  text-align: center;
  padding-top: clamp(64px, 10vw, 120px);
  padding-bottom: 60px;
}
.contact h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  margin: 0 auto 18px;
  max-width: none;
}
.contact-sub {
  font-size: 17px;
  color: var(--text-dimmer);
  margin: 0 0 40px;
}
.contact .email-line {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 28px;
}

/* FOOTER */
.site-footer {
  padding: 28px var(--pad-inline);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .solve-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
  .era-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
}

@media (max-width: 640px) {
  .site-nav .nav-link {
    display: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .work-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
