@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #f7f8fc;
  --bg-tint: #eef1fb;
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --text: #1e2536;
  --heading: #0d1220;
  --muted: #5c6577;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0fe;
  --accent: #0ea5e9;
  --border: #e6e8f0;
  --border-strong: #d7dae6;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(30, 37, 90, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(30, 37, 90, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 248, 252, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-family: var(--font-head);
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #8b7bf5);
  color: #fff;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--heading);
  background: var(--surface-2);
}

.site-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--heading);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(124, 116, 240, 0.25), transparent 70%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #dcdcfb;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.1rem;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin: 0 0 1.1rem;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), #9333ea 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 0;
}

.highlight-card {
  background: linear-gradient(160deg, #ffffff, var(--bg-tint));
  box-shadow: var(--shadow-lg);
}

.highlight-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.highlight-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.highlight-card li {
  margin-bottom: 0.5rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 2.5rem 0 4rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.3rem 0 0;
}

.section-eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat .num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
}

.stat .label {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Page ---------- */
.page {
  padding: 3.25rem 0 4.5rem;
}

.page > h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.6rem;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 720px;
  margin: 0 0 2.25rem;
}

/* ---------- Project cards ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #cfd0f6;
  box-shadow: var(--shadow-lg);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.project-date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.project-card p {
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0;
}

.tag {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid #dcdcfb;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.project-link {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.project-link:hover {
  text-decoration: underline;
}

.badge-live {
  color: #047857;
  background: #dcfce7;
  border-color: #bbf7d0;
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border-strong);
  margin-left: 0.5rem;
  padding-left: 1.75rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}

.timeline-role {
  color: var(--primary);
  font-weight: 600;
}

.timeline-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.1rem 0 0.6rem;
}

.timeline-item ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.timeline-item li {
  margin-bottom: 0.35rem;
}

/* ---------- Skills ---------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.skill-group h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Education / lists ---------- */
.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.edu-item .date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.pill-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.pill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.contact-list a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 0;
  color: var(--muted);
}

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

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid,
  .cards,
  .cards-2,
  .skill-groups {
    grid-template-columns: 1fr;
  }

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

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }
}
