
:root {
  --navy: #07182f;
  --navy-2: #0f2c4c;
  --ink: #102033;
  --muted: #687385;
  --line: #dce4ef;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --blue: #2d7df0;
  --blue-dark: #115ec9;
  --cyan: #64d2ff;
  --gold: #f3b44b;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(7, 24, 47, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(45, 125, 240, .12), transparent 35rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 228, 239, .9);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(7, 24, 47, .08);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand.compact { margin-bottom: 12px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font-size: .9rem;
}
.brand-text { color: var(--navy); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 650;
}
.site-nav a:hover, .site-nav a.active { color: var(--navy); background: #eef5ff; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 999px; }

.hero {
  min-height: calc(100vh - 100px);
  padding: 84px 0 56px;
  display: grid;
  grid-template-columns: 1.06fr .74fr;
  gap: 56px;
  align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue-dark); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .13em; }
.eyebrow span { width: 32px; height: 2px; background: var(--blue); border-radius: 999px; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); letter-spacing: -0.06em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -0.045em; }
h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
p { line-height: 1.75; color: var(--muted); }
.hero-text { font-size: 1.15rem; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; box-shadow: 0 18px 35px rgba(45, 125, 240, .25); }
.btn.secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.metric-row article, .panel, .dashboard-strip article, .service-grid article, .project-card, .contact-card, .timeline article {
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(7, 24, 47, .06);
}
.metric-row article { padding: 18px; }
.metric-row strong { display: block; color: var(--navy); font-size: 1.6rem; }
.metric-row span { color: var(--muted); font-size: .88rem; }
.hero-card { position: relative; }
.image-frame { border: 1px solid var(--line); padding: 12px; border-radius: 34px; background: #fff; box-shadow: var(--shadow); transform: rotate(1deg); }
.image-frame img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }
.profile-badge { position: absolute; left: -24px; bottom: 40px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; min-width: 230px; }
.profile-badge span { display: block; color: var(--navy); font-weight: 900; }
.profile-badge small { color: var(--muted); }

.dashboard-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 70px; }
.dashboard-strip article { padding: 28px; }
.dashboard-strip i, .service-grid i { color: var(--blue); font-size: 1.45rem; margin-bottom: 18px; }

.page-main { padding: 78px 0 90px; }
.page-hero { margin-bottom: 44px; }
.page-hero.center { text-align: center; max-width: 820px; }
.page-hero.center .eyebrow { justify-content: center; }
.page-hero.split { display: grid; grid-template-columns: 1fr .72fr; gap: 40px; align-items: end; }
.content-grid { display: grid; gap: 20px; }
.content-grid.two { grid-template-columns: repeat(2, 1fr); }
.panel { padding: 30px; }
.large-panel { grid-column: span 1; }
.stat-panel { display: grid; place-items: center; text-align: center; }
.stat-number { font-size: clamp(4rem, 9vw, 7rem); font-weight: 900; color: var(--blue); letter-spacing: -0.09em; }
.timeline { display: grid; gap: 18px; margin-top: 24px; }
.timeline article { padding: 26px; position: relative; overflow: hidden; }
.timeline article::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--blue), var(--cyan)); }
.timeline span, .tag { color: var(--blue-dark); text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; font-weight: 850; }

.project-grid { display: grid; gap: 24px; }
.project-card { padding: 26px; display: grid; grid-template-columns: .85fr 1fr; gap: 30px; align-items: center; }
.project-card.reverse { grid-template-columns: 1fr .85fr; }
.project-card.reverse .project-visual { order: 2; }
.project-card strong { color: var(--navy); }
.project-visual { min-height: 260px; border-radius: 22px; background: linear-gradient(145deg, #07182f, #133d68); padding: 26px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.chart-visual { display: flex; align-items: end; gap: 14px; }
.chart-visual span { flex: 1; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.chart-visual span:nth-child(1){ height: 42%; } .chart-visual span:nth-child(2){ height: 68%; } .chart-visual span:nth-child(3){ height: 55%; } .chart-visual span:nth-child(4){ height: 82%; } .chart-visual span:nth-child(5){ height: 48%; }
.dashboard-visual { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.dashboard-visual div { border-radius: 16px; background: rgba(255,255,255,.16); }
.dashboard-visual div:first-child { grid-row: span 2; background: linear-gradient(135deg, rgba(100,210,255,.8), rgba(45,125,240,.9)); }
.cert-section, .education-section { margin-top: 46px; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pill-grid span, .skill-cloud span { display: inline-flex; padding: 11px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 750; font-size: .92rem; }
.skills-board { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-bottom: 24px; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.check-list { margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { padding: 10px 0 10px 30px; color: var(--muted); position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-grid article { padding: 26px; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.contact-card { padding: 30px; }
.contact-card a { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.contact-card a:hover { color: var(--blue-dark); }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; font: inherit; color: var(--ink); background: #f9fbff; }
input:focus, textarea:focus { outline: 3px solid rgba(45,125,240,.16); border-color: var(--blue); }
.site-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto 30px; padding: 28px; border-radius: var(--radius); background: var(--navy); color: #fff; display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.site-footer p { color: rgba(255,255,255,.68); margin: 8px 0 0; }
.site-footer .brand-text { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: #fff; padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  .site-header { border-radius: 24px; align-items: flex-start; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 70px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .hero, .page-hero.split, .skills-board, .contact-layout, .content-grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .dashboard-strip, .service-grid { grid-template-columns: 1fr 1fr; }
  .project-card, .project-card.reverse { grid-template-columns: 1fr; }
  .project-card.reverse .project-visual { order: 0; }
}

@media (max-width: 640px) {
  .shell, .site-header, .site-footer { width: min(100% - 28px, 1120px); }
  .metric-row, .dashboard-strip, .service-grid { grid-template-columns: 1fr; }
  .hero-actions, .site-footer { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .profile-badge { position: static; margin: -20px 16px 0; }
  .project-visual { min-height: 210px; }
}


.image-visual { padding: 0; overflow: hidden; }
.image-visual img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 22px; }
@media (max-width: 640px) { .image-visual img { min-height: 210px; } }

.section-intro {
  margin: 0 0 22px;
  max-width: 760px;
}
.section-intro .eyebrow {
  margin-bottom: 12px;
}
.section-intro p:last-child {
  max-width: 680px;
}
.projects-heading {
  margin-top: 10px;
}


.contact-layout.details-only {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.connect-details-card p {
  margin-top: 8px;
  margin-bottom: 18px;
}

.contact-layout.details-only {
  grid-template-columns: minmax(280px, 560px);
  justify-content: center;
  align-items: center;
}
.details-only .connect-details-card {
  text-align: center;
  margin-inline: auto;
  width: 100%;
}
.details-only .connect-details-card a {
  justify-content: center;
}
.details-only .connect-details-card h2 {
  text-align: center;
}
.details-only .connect-details-card p {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .contact-layout.details-only {
    grid-template-columns: 1fr;
  }
}


.connect-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.connect-hero {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.connect-stack {
  width: 100%;
  display: flex;
  justify-content: center;
}
.connect-stack .connect-details-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
}
.connect-stack .connect-details-card a {
  justify-content: center;
  text-align: center;
}
