:root {
  --bg: #08111f;
  --bg-soft: #0f1d33;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --text: #102033;
  --muted: #617085;
  --line: #dbe4ef;
  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --accent: #f5b642;
  --accent-soft: #fff4d7;
  --success: #0f766e;
  --shadow: 0 18px 45px rgba(2, 8, 23, .16);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(
    180deg,
    #08111f 0%,
    #0d1728 760px,
    #eef4fb 760px,
    #f8fafc 100%
  );
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--accent); color: #111827; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { left: 12px; }

.hero { color: #fff; padding: 34px 0 74px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 66%);
  pointer-events: none;
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 54px; position: relative; z-index: 1; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .01em; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #0b1220; background: linear-gradient(135deg, #fcd34d, #f59e0b); box-shadow: 0 10px 28px rgba(245, 158, 11, .32); }
.nav-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.nav-links a { color: #dbeafe; font-weight: 700; font-size: .93rem; opacity: .9; }
.nav-links a:hover { color: #fff; opacity: 1; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 34px; align-items: center; position: relative; z-index: 1; }
.eyebrow, .section-kicker { display: inline-flex; width: fit-content; margin: 0 0 18px; font-weight: 900; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { color: #fef3c7; background: rgba(245, 182, 66, .14); border: 1px solid rgba(245, 182, 66, .28); padding: 7px 11px; border-radius: 999px; }
.section-kicker { color: var(--success); }
h1 { margin: 0; max-width: 830px; font-size: clamp(2.35rem, 6vw, 5.15rem); line-height: .98; letter-spacing: -.055em; }
.hero-lede {max-width: 770px; margin: 22px 0 0; color: #edf4ff; font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.7;}
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions { margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 15px; border-radius: 999px; font-weight: 800; font-size: .93rem; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #111827; box-shadow: 0 14px 30px rgba(245, 182, 66, .23); }

.btn.secondary {background: white; color: #1e3a8a; border: 2px solid white; font-weight: 700; cursor: pointer;}

.btn.secondary:hover {background: #f3f4f6; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,.25);}

.btn.card-primary { background: var(--brand); color: #fff; }
.btn.card-secondary { background: #fff; color: var(--brand-dark); border-color: #bfdbfe; }
.btn.card-secondary:hover { background: #eff6ff; }

.skills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; min-height: 31px; border-radius: 999px; padding: 6px 11px; color: #0f2d5c; background: #eaf2ff; border: 1px solid #cfe2ff; font-weight: 800; font-size: .82rem; }
.chip.gold { color: #784b00; background: var(--accent-soft); border-color: #f8d486; }

.snapshot {background: rgba(15, 28, 55, .92); border: 1px solid rgba(255,255,255,.18);
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: 0 20px 60px rgba(0,0,0,.35);
backdrop-filter: blur(14px);}

.snapshot h2 { margin: 0 0 16px; font-size: 1.05rem; color: #fff; }
.stat { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.stat:first-of-type { border-top: 0; padding-top: 0; }
.stat strong {display: block; font-size: 2.7rem; line-height: 1; color: #fff; letter-spacing: -.04em;}
.stat span {color: #ffffff; opacity: .95; font-size: 1rem; font-weight: 650;}

main {margin-top: -10px;}

.panel { background: rgba(255,255,255,.96); border: 1px solid rgba(219,228,239,.9); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); margin-bottom: 28px; }
.intro-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: center; }
.intro-panel h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -.04em; }
.intro-panel p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 720px; }

.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project-card { grid-column: span 6; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 24px rgba(15,23,42,.06); transform: translateY(8px); opacity: 0; transition: transform .45s ease, opacity .45s ease, box-shadow .18s ease; }
.project-card.is-visible { transform: translateY(0); opacity: 1; }
.project-card:hover { box-shadow: 0 18px 38px rgba(15,23,42,.12); }
.featured-card { grid-column: span 12; display: grid; grid-template-columns: .95fr 1.05fr; }
.project-visual { min-height: 245px; padding: 24px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.visual-blue { background: radial-gradient(circle at 18% 18%, rgba(245,182,66,.45), transparent 28%), radial-gradient(circle at 88% 10%, rgba(96,165,250,.42), transparent 26%), linear-gradient(135deg, #10233f, #1e3a8a 52%, #0f766e); }
.project-visual h3 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.3rem); line-height: 1.03; letter-spacing: -.04em; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-badge { color: #f8fafc; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 9px; font-size: .75rem; font-weight: 800; }
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-body h3 { margin: 0; font-size: 1.16rem; line-height: 1.2; letter-spacing: -.02em; }
.meta { margin: -4px 0 0; color: var(--muted); font-weight: 800; font-size: .85rem; }
.project-body p { margin: 0; color: #324256; }
.impact { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border-radius: 14px; color: #0f2d5c; background: #f1f7ff; border: 1px solid #dbeafe; font-size: .93rem; }
.impact strong { color: #0b3b7a; }
.actions { margin-top: auto; padding-top: 4px; }
.compact-card { grid-column: span 4; }
.category-label { width: fit-content; color: var(--success); background: #ecfdf5; border: 1px solid #bbf7d0; padding: 4px 9px; border-radius: 999px; font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-card { background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.about-card h3 { margin: 0 0 8px; }
.about-card p { margin: 0; color: var(--muted); }
footer { color: #64748b; padding: 26px 0 54px; text-align: center; font-size: .92rem; }

.project-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10233f;
  padding: 18px;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.card-image {
  height: 220px;
  padding: 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.compact-card .card-image {
  height: 190px;
}

@media (max-width: 880px) {
  .hero-grid, .featured-card, .about-grid, .intro-panel { grid-template-columns: 1fr; }
  .project-card, .compact-card { grid-column: span 12; }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .nav-links { gap: 10px 14px; }
  .section-head { display: block; }
}



@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .hero { padding-top: 22px; }
  .hero-actions .btn, .actions .btn { width: 100%; }
  .project-body { padding: 18px; }
}

/* trigger GitHub Pages rebuild */
