
/* ==========================================================
   Muhammad Imran Khan — Profile Website
   Replace bracketed [ ] placeholders throughout index.html
   with your own information.
   ========================================================== */
 
:root {
  --accent: #0a9fe4;
  --accent-light: #b4d45d;
  --ink: #9e6612;
  --ink-soft: #172202;
  --border: #1b5ad6;
  --sidebar-bg: #c2dbc2;
  --bg: #450cdf;
  --radius: 10px;
  --sidebar-w: 280px;
}
 
* { box-sizing: border-box; margin: 0; padding: 0; }
 
html { scroll-behavior: smooth; }
 
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background-color: rgb(177, 221, 166);
  line-height: 1.6;
}
 
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
 
/* ================= SIDEBAR ================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 32px;
  overflow-y: auto;
}
 
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7aa7ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
 
.name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
 
.role {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
 
.role span {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}
.nav ul li { margin-bottom: 5px; }
 
.nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
 
.nav-link:hover { color: var(--accent); }
 
.nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
}
 
.sidebar-bottom .copyright {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.5;
}
 
.socials {
  display: flex;
  gap: 14px;
}
 
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
  transition: all 0.2s;
}
 
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
 
/* ================= MAIN CONTENT ================= */
.content {
  margin-left: var(--sidebar-w);
  padding: 0 64px;
}
 
.section {
  min-height: 100vh;
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--border);
  max-width: 760px;
}
 
.section:last-of-type { border-bottom: none; }
 
/* ---- Hero / Home ---- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: 0;
}
 
.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
 
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
 
.hero-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
 
.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
 
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
}
 
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
 
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
 
.btn-link {
  color: var(--accent);
}
 
.btn-link:hover { text-decoration: underline; }
 
/* ---- Section headings ---- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
 
.section-title .num {
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
}
 
.section-lead {
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 620px;
}
 
.section-body p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}
 
/* ---- About grid ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-top: 32px;
  max-width: 480px;
}
 
.about-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
 
.about-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 600;
}
 
.about-value {
  font-size: 14px;
  color: var(--ink);
}
 
/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-bottom: 32px;
}
 
.skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
 
.bar {
  height: 6px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
 
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
 
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
 
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
}
 
/* ---- Timeline (Education / Employment) ---- */
.timeline-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--border);
  padding-bottom: 32px;
}
 
.timeline-item:last-child { padding-bottom: 0; }
 
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--accent-light);
}
 
.timeline-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}
 
.timeline-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0 4px;
}
 
.timeline-org {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-style: italic;
}
 
.timeline-item p,
.timeline-item ul {
  color: var(--ink-soft);
  font-size: 14px;
}
 
.timeline-item ul { padding-left: 18px; list-style: disc; }
.timeline-item li { margin-bottom: 4px; }
 
/* ---- Experience cards ---- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
 
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
 
.card:hover {
  box-shadow: 0 8px 24px rgba(20, 30, 60, 0.06);
  transform: translateY(-2px);
}
 
.card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
 
.card-meta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
 
.card p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 12px;
}
 
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
 
.card-link:hover { text-decoration: underline; }
 
/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
}
 
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all 0.2s;
}
 
a.contact-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}
 
.contact-item i {
  width: 20px;
  color: var(--accent);
  font-size: 16px;
}
 
/* ---- Footer ---- */
.footer {
  padding: 32px 0 60px;
  font-size: 12px;
  color: var(--ink-soft);
}
 
/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
  }
 
  .sidebar-top { display: flex; align-items: center; gap: 16px; }
  .avatar { width: 56px; height: 56px; font-size: 18px; margin-bottom: 0; }
  .name { font-size: 16px; margin-bottom: 2px; }
  .role { margin-bottom: 0; }
  .nav { display: none; }
  .sidebar-bottom { display: none; }
 
  .content { margin-left: 0; padding: 0 24px; }
  .hero-title { font-size: 40px; }
  .about-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
}