/* =========================================================
   SHADAB ALAM PORTFOLIO
   Edit colors, spacing and typography here.
   ========================================================= */

:root {
  --bg: #f7faff;
  --surface: #ffffff;
  --text: #102a56;
  --muted: #607391;
  --primary: #1769ff;
  --primary-soft: #eaf2ff;
  --border: #dce7f7;
  --shadow: 0 18px 55px rgba(26, 65, 120, 0.10);
  --radius: 24px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 42%, #fff 100%);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,231,247,.85);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  margin-right: auto;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -.04em;
}

.brand span { color: var(--primary); }

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: #4d6381;
  font-weight: 650;
  font-size: .94rem;
}

nav a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(24,72,140,.06);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hero { padding: 90px 0 75px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: .82rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.07em;
  margin: 18px 0;
}

h1 span { color: var(--primary); }

.hero > .container > div > p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.profile-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.profile-card > * { display: block; margin-bottom: 9px; }

.avatar {
  aspect-ratio: 1;
  max-width: 270px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, #d9e9ff, #f6f9ff);
  color: var(--primary);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -.08em;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card h2 { margin: 0; }
.profile-card p { color: var(--muted); margin: 0 0 14px; }

section { padding: 74px 0; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 2.35rem;
  letter-spacing: -.05em;
}

.section-heading p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 28px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stats > div {
  padding: 20px;
  border-radius: 18px;
  background: var(--primary-soft);
}

.stats strong {
  display: block;
  font-size: 1.6rem;
}

.stats span {
  color: var(--muted);
  font-size: .9rem;
}

.lead { font-size: 1.1rem; }

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  padding: 9px 13px;
  border: 1px solid #bdd4ff;
  background: #f7faff;
  border-radius: 999px;
  color: #28508f;
  font-weight: 700;
  font-size: .9rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.project-number {
  color: var(--primary);
  font-weight: 900;
  font-size: .82rem;
}

.project h3 {
  font-size: 1.45rem;
  margin: 10px 0 8px;
}

.project p {
  color: var(--muted);
  margin: 0 0 20px;
}

.tags { margin-bottom: 18px; }

.tag {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 9px;
  background: #f0f5ff;
  color: #41608f;
  font-size: .78rem;
  font-weight: 750;
  margin: 0 5px 5px 0;
}

.project-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.project-bottom a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.timeline {
  border-left: 2px solid #cfe0fb;
  margin-left: 8px;
  padding-left: 28px;
}

.role {
  position: relative;
  margin-bottom: 10px;
}

.role::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  left: -36px;
  top: 9px;
  box-shadow: 0 0 0 5px var(--primary-soft);
}

.role h3 { margin: 0 0 4px; }
.role .date { color: var(--primary); font-weight: 800; font-size: .9rem; }
.role p { color: var(--muted); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cert {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.cert h3 { margin: 0 0 7px; }
.cert p { color: var(--muted); margin: 0 0 14px; }

footer {
  padding: 50px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-grid p { color: var(--muted); margin: 4px 0 0; }

@media (max-width: 850px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    left: 4%;
    right: 4%;
    top: 68px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  nav.open { display: flex; }
  nav a { padding: 8px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .project-grid, .cert-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
}

@media (max-width: 520px) {
  h1 { font-size: 3.1rem; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { display: block; }
  .footer-grid .actions { margin-top: 18px; }
}
