*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0f1e;
  --bg-card:      #111827;
  --bg-elevated:  #1a2236;
  --border:       #1e293b;
  --border-hover: #334155;
  --accent:       #6366f1;
  --accent-light: #818cf8;
  --accent-bg:    rgba(99,102,241,0.1);
  --success:      #22c55e;
  --text:         #f1f5f9;
  --text-sub:     #94a3b8;
  --text-dim:     #475569;
  --radius:       12px;
  --radius-lg:    20px;
  --ease:         cubic-bezier(.4,0,.2,1);
  --shadow:       0 4px 24px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10,15,30,0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0 1.5rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--text-sub); transition: color .2s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 0.4rem 1rem; border-radius: 8px;
  font-size: 0.82rem !important; font-weight: 600 !important;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 1.5rem 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -40%; left: -20%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 900px; margin: 0 auto; width: 100%; }
.hero-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 1.5rem;
}
.hero-label::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem;
}
h1 .accent { color: var(--accent-light); }
.hero-sub { font-size: 1.05rem; color: var(--text-sub); max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  transition: all .2s var(--ease); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-sub); border: 1px solid var(--border-hover); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ── Social strip ── */
.social-strip { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-chip {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-sub);
  padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 999px;
  transition: all .2s;
}
.social-chip:hover { border-color: var(--accent); color: var(--accent-light); }
.social-chip svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Section ── */
section { padding: 5rem 1.5rem; }
section.alt { background: var(--bg-card); }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 2rem; line-height: 1.2; }
.section-sub { color: var(--text-sub); font-size: 0.95rem; max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.about-text { color: var(--text-sub); line-height: 1.8; font-size: 0.95rem; }
.about-text p { margin-bottom: 1rem; }
.about-text strong { color: var(--text); }
.stat-list { display: flex; flex-direction: column; gap: 0.75rem; }
.stat-item {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon { font-size: 1.3rem; }
.stat-label { font-size: 0.72rem; color: var(--text-dim); margin-bottom: 0.1rem; }
.stat-val { font-size: 0.88rem; font-weight: 600; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.tl-dot {
  position: absolute; left: -2.35rem; top: 0.4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.tl-content {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: border-color .2s;
}
.tl-content:hover { border-color: var(--border-hover); }
.tl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.tl-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.tl-company { font-size: 0.82rem; color: var(--accent-light); font-weight: 600; }
.tl-date { font-size: 0.75rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; white-space: nowrap; padding-top: 0.2rem; }
.tl-bullets { list-style: none; margin: 0.5rem 0 1rem; }
.tl-bullets li {
  font-size: 0.85rem; color: var(--text-sub); padding: 0.25rem 0;
  padding-left: 1rem; position: relative; line-height: 1.55;
}
.tl-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.75rem; top: 0.3rem; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-pill {
  font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.6rem;
  border-radius: 999px; background: var(--accent-bg); color: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
}

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.skill-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: border-color .2s;
}
.skill-card:hover { border-color: var(--accent); }
.skill-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem; }
.skill-list { font-size: 0.85rem; color: var(--text-sub); line-height: 1.8; }

/* ── Project cards ── */
.project-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; position: relative; overflow: hidden;
  transition: all .3s var(--ease);
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow); }
.project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.project-icon { font-size: 2rem; }
.project-links { display: flex; gap: 0.5rem; }
.project-link {
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.75rem;
  border-radius: 6px; border: 1px solid var(--border-hover); color: var(--text-sub); transition: all .2s;
}
.project-link:hover { border-color: var(--accent); color: var(--accent-light); }
.project-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.project-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-light); margin-bottom: 0.75rem;
}
.project-desc { font-size: 0.88rem; color: var(--text-sub); line-height: 1.65; margin-bottom: 1.25rem; }
.project-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.65rem;
  border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim);
}

/* ── Certifications ── */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cert-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: all .2s; display: flex; flex-direction: column; gap: 0.6rem;
}
.cert-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cert-logo {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; letter-spacing: -0.02em;
}
.cert-logo.ibm     { background: #0f62fe; color: #fff; }
.cert-logo.oreilly { background: #d3002d; color: #fff; }
.cert-logo.vmware  { background: #607078; color: #fff; }
.cert-name { font-size: 0.82rem; font-weight: 600; line-height: 1.4; }
.cert-meta { font-size: 0.72rem; color: var(--text-dim); }

/* ── Education ── */
.edu-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-item {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.edu-icon { font-size: 1.75rem; }
.edu-degree { font-size: 0.95rem; font-weight: 700; }
.edu-school { font-size: 0.85rem; color: var(--accent-light); margin: 0.2rem 0; }
.edu-years  { font-size: 0.75rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }

/* ── Recommendations ── */
.reco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.reco-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; position: relative;
}
.reco-quote { font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 0.75rem; opacity: 0.6; }
.reco-text { font-size: 0.85rem; color: var(--text-sub); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.reco-author { display: flex; align-items: center; gap: 0.75rem; }
.reco-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.reco-name { font-size: 0.85rem; font-weight: 700; }
.reco-role { font-size: 0.75rem; color: var(--text-dim); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); }
.footer-copy a { color: var(--accent); }
.footer-copy a:hover { color: var(--accent-light); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid   { grid-template-columns: 1fr 1fr; }
  .reco-grid   { grid-template-columns: 1fr; }
  .tl-header   { flex-direction: column; }
  .nav-links   { display: none; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid   { grid-template-columns: 1fr; }
}
