:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #102033;
  --muted: #667085;
  --primary: #155eef;
  --primary-dark: #0f43b6;
  --accent: #13b5a6;
  --border: #e4e7ec;
  --soft: #eef4ff;
  --shadow: 0 20px 45px rgba(16, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { padding-left: 1.1rem; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.soft-bg { background: #f1f6ff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}
.logo span { color: var(--primary); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; font-weight: 600; color: #344054; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; }

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 25%, rgba(21,94,239,0.15), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(19,181,166,0.14), transparent 28%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.14em; }
h1, h2, h3 { line-height: 1.14; margin-top: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); letter-spacing: -0.075em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.055em; margin-bottom: 18px; }
h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.hero-text { font-size: 1.16rem; color: #475467; max-width: 760px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; transition: 0.2s ease; }
.btn.primary { background: var(--primary); color: white; box-shadow: 0 12px 24px rgba(21,94,239,0.22); }
.btn.primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn.secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.quick-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 700px; }
.quick-stats div { background: rgba(255,255,255,0.75); border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.quick-stats strong { display: block; font-size: 1.25rem; }
.quick-stats span { color: var(--muted); font-size: 0.88rem; }

.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.profile-avatar { width: 88px; height: 88px; border-radius: 24px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin-bottom: 18px; }
.profile-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.profile-card p { color: var(--muted); margin-bottom: 22px; }
.profile-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.profile-card li { border-top: 1px solid var(--border); padding-top: 14px; color: var(--text); word-break: break-word; }
.profile-card li span { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.profile-card a { color: var(--primary); font-weight: 700; }

.two-column { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; }
.content-text { font-size: 1.06rem; color: #475467; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card, .project-card, .timeline-item, .contact-card, .cta-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 12px 30px rgba(16,32,51,0.05); }
.card { padding: 24px; }
.card p, .project-card p, .timeline-item li { color: var(--muted); }
.card h3 { margin-bottom: 10px; }

.skills-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.skills-list span { padding: 10px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 700; color: #344054; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { padding: 26px; }
.project-tag { display: inline-block; padding: 7px 10px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: 0.78rem; font-weight: 800; margin-bottom: 14px; }
.project-card ul { margin-bottom: 0; }
.highlight-card { background: linear-gradient(135deg, #102033, #155eef); color: white; }
.highlight-card p, .highlight-card li { color: rgba(255,255,255,0.78); }
.highlight-card .project-tag { background: rgba(255,255,255,0.14); color: white; }
.highlight-card a { display: inline-block; margin-top: 10px; color: white; font-weight: 800; }

.timeline { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
.timeline-item { padding: 28px; position: relative; }
.timeline-item .date { display: inline-block; margin-bottom: 10px; color: var(--primary); font-weight: 800; }
.timeline-item .company { margin-top: -8px; color: #475467; font-weight: 700; }
.timeline-item ul { margin-bottom: 0; }

.cta-section { padding-top: 36px; }
.cta-card { padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #ffffff, #eef4ff); }
.cta-card h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grid p { color: var(--muted); font-size: 1.05rem; }
.contact-card { padding: 26px; display: grid; gap: 12px; }
.contact-card a { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; color: var(--primary); font-weight: 800; background: #fff; }
.note { font-size: 0.9rem !important; margin: 6px 0 0; }
.footer { border-top: 1px solid var(--border); background: #fff; padding: 22px 0; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 0.95rem; }
.footer a { color: var(--primary); font-weight: 800; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: 72px; display: none; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero-grid, .two-column, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .card-grid, .project-grid { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}
