:root {
  --navy: #14233f;
  --navy-soft: #25375c;
  --accent: #1f5fbf;
  --accent-dark: #17468d;
  --ink: #1f2733;
  --muted: #5b6675;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --chip: #eef2f8;
  --chip-ink: #2c3e5d;
  --radius: 12px;
  --maxw: 1140px;
  --shadow: 0 1px 2px rgba(20, 35, 63, .06), 0 8px 24px rgba(20, 35, 63, .06);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.logo-mark {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(31, 95, 191, .3);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  letter-spacing: .2px;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--navy); }
.nav a.active { color: var(--accent); background: var(--chip); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 38px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (dark, modern) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(820px 460px at 84% -8%, rgba(56, 125, 233, .42), transparent 62%),
    radial-gradient(700px 520px at 6% 112%, rgba(111, 92, 255, .28), transparent 60%),
    linear-gradient(135deg, #0a1730 0%, #14233f 55%, #1a2c4e 100%);
  background-color: #11203b;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 78px 0 74px;
  color: #d7e2f4;
}
/* subtle dotted grid texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 75%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #cfe0ff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
  backdrop-filter: blur(4px);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #38d39f;
  box-shadow: 0 0 0 3px rgba(56, 211, 159, .25);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 10px;
  line-height: 1.08;
  background: linear-gradient(92deg, #ffffff 30%, #b9d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: #7fb0ff;
  font-weight: 600;
  margin: 0 0 14px;
}
.hero-lead {
  color: #aebed9;
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 24px;
}
.hero-contact {
  color: #8497b8;
  font-size: .9rem;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  margin: 20px 0 0;
}
.hero-contact a { color: #c4d6f5; }
.hero-contact a:hover { color: #fff; }
.hero-contact .dot { color: rgba(255, 255, 255, .22); }

/* hero buttons on dark */
.hero .btn {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero .btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero .btn-primary {
  background: linear-gradient(135deg, #2b7de9, #1f5fbf);
  border: none;
  color: #fff;
  box-shadow: 0 10px 26px rgba(31, 95, 191, .5);
}
.hero .btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, #2b7de9, #1f5fbf); }

/* hero photo */
.hero-media { display: flex; justify-content: center; }
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 330px;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -16px -16px 14px 16px;
  background: linear-gradient(145deg, #2b7de9, #6f5cff);
  border-radius: 26px;
  opacity: .55;
  filter: blur(2px);
  z-index: 0;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.photo-badge {
  position: absolute;
  z-index: 2;
  left: -16px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
}
.photo-badge-star { color: #f5a623; font-size: .9rem; line-height: 1; }
.avatar-lg {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: 2px;
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .94rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--navy); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

/* ---------- stats band ---------- */
.stats-band { background: var(--navy); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.stat { text-align: center; color: #cfdcf0; padding: 4px 6px; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .4px;
  color: #9fb3d4;
  margin-top: 3px;
}

/* ---------- sections ---------- */
.section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--bg-alt); }
.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
}
.section-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  color: var(--accent);
  background: linear-gradient(135deg, #eef3fb, #e3ecf9);
  border: 1px solid #d8e3f3;
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  letter-spacing: .5px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0;
}
#about p {
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: var(--navy-soft);
  max-width: 900px;
  margin: 0;
  font-weight: 450;
}

/* ---------- chips ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  background: var(--chip);
  color: var(--chip-ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
  border: 1px solid #e0e7f1;
}
.chips.small li { font-size: .8rem; padding: 4px 10px; }

/* ---------- skills infographic ---------- */
.skills-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20, 35, 63, .1);
  border-color: #cfdcf0;
}
.skill-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.skill-icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(31, 95, 191, .14), rgba(20, 35, 63, .1));
  color: var(--accent);
}
.skill-icon svg { width: 22px; height: 22px; }
.skill-card-head h3 {
  margin: 0; flex: 1;
  font-size: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
}
.skill-count {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--chip);
  border-radius: 999px;
  padding: 3px 9px;
}
.skill-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags li {
  font-size: .8rem;
  font-weight: 500;
  color: var(--chip-ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 7px;
}

/* ---------- experience timeline ---------- */
.timeline { position: relative; }
.job {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 2px solid var(--line);
}
.job:last-child { border-left-color: transparent; padding-bottom: 0; }
.job::before {
  content: "";
  position: absolute; left: -8px; top: 4px;
  width: 13px; height: 13px;
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 50%;
}
.job-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 8px;
}
.job-head h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
  font-family: var(--font-display);
}
.job-dates {
  font-size: .8rem;
  color: var(--muted);
  background: var(--chip);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.job-company { font-weight: 600; color: var(--accent-dark); margin: 3px 0 0; font-size: .96rem; }
.job-loc { font-weight: 500; color: var(--muted); }
.job-lead { color: var(--navy-soft); margin: 8px 0 6px; font-size: .95rem; }
.bullets {
  margin: 8px 0 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 34px;
}
.bullets li {
  position: relative;
  padding-left: 19px;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .92rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.bullets li::before {
  content: "";
  position: absolute; left: 3px; top: 10px;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- cards (projects / education) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 14px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(20,35,63,.1); }
.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
  font-family: var(--font-display);
}
.card p { margin: 0; color: var(--navy-soft); font-size: .92rem; }
.card.edu { display: flex; flex-direction: column; gap: 6px; }
.card.edu .job-dates { align-self: flex-start; }

/* ---------- certification badges ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.cert-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20, 35, 63, .12);
  border-color: #cfdcf0;
}
.cert-badge {
  position: relative;
  width: 58px; height: 64px;
  min-width: 58px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(20, 35, 63, .25));
}
.cert-badge.cert-ms { background: linear-gradient(155deg, #2b7de9, #14357a); }
.cert-badge.cert-aws { background: linear-gradient(155deg, #ffac4d, #e0700a); }
.cert-badge.cert-expert { background: linear-gradient(155deg, #38476f, #0c1730); }
.cert-badge::before {
  content: "";
  position: absolute;
  inset: 4px;
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  border: 1.5px solid rgba(255, 255, 255, .35);
}
.cert-seal {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .2px;
  text-align: center;
  padding: 0 4px;
  line-height: 1;
}
.cert-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cert-level {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
}
.cert-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .94rem;
  color: var(--navy);
  line-height: 1.25;
}
.cert-exam {
  font-size: .74rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- contact ---------- */
.contact-intro {
  color: var(--navy-soft);
  font-size: 1rem;
  max-width: 640px;
  margin: -6px 0 22px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 24px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fcfdff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 95, 191, .14);
  background: #fff;
}
.field textarea { resize: vertical; }
.contact-form .btn { width: 100%; cursor: pointer; margin-top: 4px; }
.contact-form .btn:disabled { opacity: .65; cursor: default; }
.form-status {
  margin: 12px 0 0;
  font-size: .9rem;
  font-weight: 500;
  min-height: 1.2em;
}
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
.contact-info {
  background: var(--navy);
  color: #d7e0ef;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.contact-info h3 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.contact-info li:last-child { border-bottom: none; }
.ci-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #8fa6cb;
}
.contact-info a { color: #aecbff; word-break: break-word; }
.contact-info a:hover { color: #fff; }

/* ---------- footer ---------- */
.footer {
  background: var(--navy);
  color: #c7d2e4;
  text-align: center;
  padding: 22px 0;
}
.footer p { margin: 4px 0; font-size: .9rem; }
.footer a { color: #9fc0ff; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-text { order: 2; }
  .hero-media { order: 1; }
  .hero-photo { max-width: 280px; }
  .photo-badge { left: 50%; transform: translateX(-50%); bottom: -14px; }
  .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .cta, .hero-contact { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: .95rem; }
}
@media (max-width: 720px) {
  .bullets { columns: 1; }
}
@media (max-width: 680px) {
  .hero { padding: 40px 0 36px; }
  .section { padding: 32px 0; }
  .brand-name { font-size: .95rem; }
}
