/* Aamir Raza portfolio - light, professional, fast. System fonts only, no external deps. */
:root {
  --bg: #faf8f4;
  --bg-alt: #f1ece4;
  --card: #ffffff;
  --ink: #1a1d21;
  --muted: #5b6068;
  --line: #e3ddd2;
  --accent: #0f766e;
  --accent-dark: #0b5e57;
  --accent-soft: #e6f2f0;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(26, 29, 33, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
h1 { font-size: 52px; line-height: 1.05; letter-spacing: -1px; font-weight: 500; }
h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.5px; margin: 6px 0 14px; font-weight: 500; }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; font-weight: 500; }
.eyebrow {
  color: var(--muted); font-weight: 500; font-size: 13px;
  letter-spacing: 0.01em; margin-bottom: 4px;
}
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color 150ms cubic-bezier(0.22, 1, 0.36, 1), border-color 150ms cubic-bezier(0.22, 1, 0.36, 1), color 150ms cubic-bezier(0.22, 1, 0.36, 1);
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 9px 16px; font-size: 14px; background: var(--accent); color: #fff; }
.btn-small:hover { background: var(--accent-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--ink); font-size: 15px; font-weight: 550; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; font-size: 20px; padding: 4px 10px; cursor: pointer; color: var(--ink);
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.role { font-size: 24px; color: var(--accent); font-weight: 500; margin: 8px 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-meta { font-size: 15px; color: var(--muted); }
.hero-photo { text-align: center; }
.photo-frame { position: relative; width: 280px; height: 280px; margin: 0 auto; }
.photo-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 4px solid #057642; box-shadow: var(--shadow);
}
/* LinkedIn-style Open to Work banner across the bottom of the photo. */
.photo-badge {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  background: #057642; color: #fff; text-align: center;
  padding: 6px 14px 7px; border-radius: 8px; max-width: 88%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); margin: 0;
}
.photo-badge b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.photo-badge span { display: block; font-size: 11px; line-height: 1.3; opacity: 0.92; white-space: nowrap; }
.photo-caption { margin-top: 14px; font-weight: 650; color: var(--muted); font-size: 15px; }

/* Stats */
.stats { padding: 0 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 24px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 28px; font-weight: 500; color: var(--ink); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }

/* Industries */
.section-intro { color: var(--muted); max-width: 56ch; margin-bottom: 24px; }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry-grid p { color: var(--muted); font-size: 15px; }

/* Skills */
.skill-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.skill-card h3 { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 6px; font-size: 14px; font-weight: 500;
}

/* Timeline */
.timeline-item { border-left: 3px solid var(--accent); padding-left: 22px; }
.timeline-date { color: var(--muted); font-weight: 500; font-size: 14px; }
.timeline-org { color: var(--muted); margin-bottom: 14px; }
.timeline-item ul, .project-card ul { padding-left: 20px; }
.timeline-item li, .project-card li { margin-bottom: 8px; color: #33373c; }

/* Projects */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.project-card.featured { grid-column: 1 / -1; border-top: 4px solid var(--accent); }
.project-tag {
  display: inline-block; background: var(--bg-alt); color: var(--muted);
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.tech { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 600; }
.sites-strip { margin-top: 26px; text-align: center; }
.sites-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.sites-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.sites-links a { color: var(--ink); font-weight: 600; font-size: 15px; }

/* Achievements */
.achieve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.achieve-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.achieve-card b { display: block; font-size: 34px; font-weight: 500; color: var(--ink); letter-spacing: -0.5px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.achieve-card p { font-size: 15px; color: var(--muted); }

/* Education */
.edu-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.lang { color: var(--muted); }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 28px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); color: var(--ink);
}
.contact-card:hover { border-color: var(--accent); text-decoration: none; }
.contact-card span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.contact-card b { font-size: 15px; overflow-wrap: break-word; }
.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 15px;
  background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14.5px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Scroll progress (GSAP scrub, scaleX only) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--accent); transform-origin: left center; transform: scaleX(0);
  will-change: transform;
}
html[data-motion="reduced"] .scroll-progress { display: none; }

/* Lenis smooth scroll (only active when motion is full) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; }
  .photo-frame { width: 200px; height: 200px; }
  .photo-badge { padding: 5px 10px 6px; bottom: 2px; }
  .photo-badge b { font-size: 12px; }
  .photo-badge span { font-size: 10px; white-space: normal; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(odd) { border-left: none; }
  .skill-groups, .project-grid, .industry-grid { grid-template-columns: 1fr; }
  .achieve-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 6px 20px 14px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-top: 1px solid var(--line); }
  .header-actions .btn-small { display: none; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 40px; }
}
