:root {
  --blue: #0b63f6;
  --blue-dark: #0647b5;
  --navy: #0d1b34;
  --text: #18243a;
  --muted: #5f6d82;
  --line: #dfe7f2;
  --soft: #f4f8ff;
  --white: #ffffff;
  --green: #0aa66d;
  --shadow: 0 12px 35px rgba(29, 61, 105, 0.08);
  --radius: 14px;
  --max: 1320px;
}

* { 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(--text);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.section-pad { padding-block: 58px; }

.justified {
  text-align: justify;
  text-justify: inter-word;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 320px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #11a8d9, #0878f5);
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: .98rem; color: var(--navy); }
.brand-copy small { font-size: .76rem; color: var(--muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy);
  padding: 10px 12px;
  border-radius: 9px;
  transition: .2s ease;
}

.site-nav a:hover {
  color: var(--blue);
  background: var(--soft);
}

.site-nav .resume-nav {
  background: var(--blue);
  color: #fff;
  padding-inline: 16px;
  margin-left: 8px;
  box-shadow: 0 8px 20px rgba(11,99,246,.18);
}

.site-nav .resume-nav:hover {
  background: var(--blue-dark);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
}

/* Hero */
.hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 52px;
  position: relative;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  font-size: .76rem;
}

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", sans-serif;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

h1 span { color: var(--blue); }

.blue-line {
  width: 58px;
  height: 3px;
  background: var(--blue);
  border-radius: 99px;
  margin: 28px 0 20px;
}

.hero-lead {
  max-width: 760px;
  color: #42506a;
  font-size: .96rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: .2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11,99,246,.18);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid #cfd9e8;
  color: var(--navy);
  background: #fff;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.icon-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  color: var(--navy);
  text-decoration: none;
  transition: .2s ease;
}
.icon-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.hero-visual {
  min-height: 430px;
  position: relative;
  display: grid;
  place-items: center;
}

.photo-wrap {
  width: min(390px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: #eef4fb;
  box-shadow: 0 20px 55px rgba(24,57,96,.12);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 4;
  min-width: 205px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.badge-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #edf4ff;
  font-size: 1.25rem;
}

.experience-badge strong {
  display: block;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
}

.experience-badge small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .75rem;
}

.dot-pattern {
  position: absolute;
  top: 8px;
  right: 0;
  width: 165px;
  height: 165px;
  opacity: .34;
  background-image: radial-gradient(#69a2ff 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding-bottom: 36px;
}

.metric-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(36,67,110,.04);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
}

.metric-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #eef4ff;
  font-size: 1.2rem;
}

.metric-card strong {
  display: block;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
}

.metric-card p {
  margin: 10px 0 0;
  font-size: .83rem;
  color: var(--muted);
}

/* Content */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .95fr);
  gap: 20px;
  align-items: start;
}

.left-column, .right-column {
  display: grid;
  gap: 20px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 54px;
  height: 2px;
  background: var(--blue);
}

.title-icon {
  color: var(--blue);
  font-size: 1.15rem;
}

.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.panel > p {
  margin: 0;
  color: #47566d;
  font-size: .92rem;
}

/* Experience */
.experience-card {
  position: relative;
  padding: 22px 22px 20px 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.experience-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: 20px;
  width: 2px;
  background: #dbe8fb;
}

.experience-card::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #edf4ff;
}

.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.experience-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
}

.experience-head h4 {
  margin: 5px 0 0;
  color: var(--blue);
  font-size: .87rem;
}

.current-pill {
  white-space: nowrap;
  background: #d9f8e9;
  color: var(--green);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: .72rem;
  font-weight: 700;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #6b788d;
  margin: 13px 0 16px;
  font-size: .78rem;
}

.experience-list {
  margin: 0;
  padding-left: 19px;
  color: #34435a;
}

.experience-list li {
  font-size: .87rem;
  line-height: 1.55;
}

.experience-list li + li { margin-top: 6px; }

.current-assignment {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #cfe1ff;
  background: #f2f7ff;
  color: #0755c8;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.current-assignment p {
  margin: 0;
  color: #0755c8;
  font-size: .82rem;
}

/* Projects */
.projects-intro { margin-bottom: 18px !important; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  background: #fff;
}

.project-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #eef4ff;
  margin-bottom: 13px;
}

.project-card h3 {
  min-height: 64px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: .84rem;
  line-height: 1.45;
}

.project-card p {
  margin: 0;
  color: #47566d;
  font-size: .79rem;
}

/* Skills */
.skill-group + .skill-group { margin-top: 22px; }

.skill-group h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: .86rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 11px;
  background: #f3f7fc;
  border: 1px solid #dce6f2;
  color: #264263;
  border-radius: 7px;
  font-size: .75rem;
  transition: .2s ease;
}

.chips span:hover {
  color: var(--blue);
  border-color: #b9d2fa;
  background: #edf4ff;
}

/* Contact */
.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #264263;
  font-size: .84rem;
  word-break: break-word;
}

.contact-list a:hover { color: var(--blue); }

.contact-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
}

.contact-icon.email { background: #1273e6; }
.contact-icon.phone { background: #17b968; }
.contact-icon.linkedin { background: #0a73b9; }
.contact-icon.location { background: #ff4e57; }

/* Footer */
footer {
  min-height: 88px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #667389;
  font-size: .82rem;
}

footer p { margin: 0; }

.back-top {
  position: absolute;
  right: 30px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11,99,246,.2);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .site-nav a { padding-inline: 8px; }
  .brand { min-width: auto; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section-pad { padding-block: 56px; }

  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav .resume-nav { margin: 6px 0 0; text-align: center; }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; min-height: 430px; }
  .photo-wrap { width: min(430px, 86vw); }

  .content-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .brand-copy small { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card h3 { min-height: auto; }
  .right-column { grid-template-columns: 1fr; }
  .experience-head { flex-direction: column; }
  .current-pill { align-self: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .brand-copy strong { font-size: .86rem; }

  .section-pad { padding-block: 44px; }
  .hero { padding-top: 42px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .icon-btn {
    flex: 1;
  }

  .hero-visual { min-height: 345px; }
  .photo-wrap { width: min(330px, 88vw); }

  .experience-badge {
    right: 0;
    bottom: 0;
    min-width: 170px;
    padding: 13px 16px;
  }

  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 100px; }

  .panel { padding: 18px; }
  .experience-card { padding: 18px 16px 18px 30px; }

  .contact-list a,
  .contact-list p { font-size: .78rem; }

  footer {
    padding: 26px 70px 26px 20px;
    text-align: center;
  }
  .back-top { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* Final professional refinements */
.hero-copy,
.panel,
.experience-card,
.project-card {
  text-align: left;
}

.hero-lead,
.panel .justified,
.experience-list .justified,
.project-card .justified,
.projects-intro {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.hero-visual {
  justify-items: center;
}

.photo-wrap {
  border: 7px solid #ffffff;
  box-shadow: 0 18px 46px rgba(31, 68, 116, 0.13);
}

.profile-photo {
  object-position: center 22%;
}

.metrics-grid {
  margin-top: 6px;
}

.panel {
  box-shadow: 0 8px 28px rgba(34, 67, 108, 0.055);
}

@media (min-width: 961px) {
  .hero {
    grid-template-columns: 1.08fr .92fr;
  }

  .hero-visual {
    min-height: 410px;
  }

  .photo-wrap {
    width: 370px;
  }

  .experience-badge {
    right: 8%;
    bottom: 3%;
  }
}

@media (max-width: 960px) {
  .photo-wrap {
    width: min(360px, 78vw);
  }
}

@media (max-width: 560px) {
  .photo-wrap {
    width: min(290px, 78vw);
  }

  .hero-lead,
  .panel .justified,
  .experience-list .justified,
  .project-card .justified,
  .projects-intro {
    text-align: left;
  }
}
