:root {
  --navy: #071a2d;
  --navy-2: #0e2a47;
  --gold: #e9b54b;
  --gold-2: #f3c967;
  --ink: #182230;
  --muted: #637083;
  --line: #e7ebf0;
}

html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
section { scroll-margin-top: 78px; }

.nav-glass { background: rgba(7,26,45,.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.navbar-brand { letter-spacing: .2px; }
.brand-mark { color: var(--gold); margin-right: .4rem; }
.nav-link { color: rgba(255,255,255,.82) !important; }
.nav-link:hover { color: var(--gold-2) !important; }

.btn-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); border-color: var(--gold-2); }

.hero-section {
  background:
    radial-gradient(circle at 78% 20%, rgba(233,181,75,.16), transparent 26%),
    linear-gradient(125deg, #061626 0%, #0a223a 55%, #102f50 100%);
  color: white;
  overflow: hidden;
}
.hero-section .min-vh-100 { min-height: 650px !important; }
.hero-section h1 span { color: var(--gold); }
.eyebrow, .section-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.hero-tags { color: #d8e2ef; }
.hero-tags span { color: var(--gold); margin: 0 .25rem; }
.hero-copy { max-width: 720px; color: #d8e2ef; line-height: 1.55; }
.portrait-wrap { max-width: 205px; padding: 10px; border-radius: 28px; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: 0 30px 70px rgba(0,0,0,.32); }
.portrait-img { border-radius: 20px; display: block; width: 100%; }

.section-pad { padding: 48px 0; }
.section-kicker { color: #52718f; margin-bottom: .5rem; }
.section-title { font-weight: 800; color: var(--navy); }
.bg-navy { background: var(--navy); }
.text-gold { color: var(--gold) !important; }

.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metric-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; background: #fff; box-shadow: 0 10px 26px rgba(11,28,46,.06); }
.metric-card strong { display: block; color: var(--navy); font-size: 2rem; }
.metric-card span { color: var(--muted); font-size: .92rem; }

.expertise-card { height: 100%; min-height: 108px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: white; font-weight: 700; color: var(--navy); box-shadow: 0 8px 22px rgba(11,28,46,.05); }

.timeline { position: relative; margin-left: 10px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #d8e1ea; }
.timeline-item { position: relative; padding-left: 42px; margin-bottom: 38px; }
.timeline-dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.timeline-content { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(11,28,46,.05); }
.timeline-content h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0; }
.company { font-weight: 700; color: #45617d; margin: .4rem 0; }
.period { color: var(--muted); font-size: .92rem; }

.achievement-card { height: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px; background: rgba(255,255,255,.05); }
.achievement-card strong { display: block; font-size: 2.25rem; color: var(--gold); }
.achievement-card p { color: #dce5ef; margin: .5rem 0 0; }

.project-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; box-shadow: 0 10px 28px rgba(11,28,46,.06); }
.project-media { background: #f7f9fc; padding: 10px; border-bottom: 1px solid var(--line); }
.project-img { width: 100%; height: 340px; object-position: center top; border-radius: 12px; }
.project-img-fit { object-fit: contain; background: #ffffff; }
.project-card h3 { color: var(--navy); font-weight: 800; }
.project-badge { display: inline-block; background: #edf4fa; color: #244d75; border-radius: 999px; padding: 6px 10px; font-size: .78rem; font-weight: 700; }
.project-placeholder { margin-top: 24px; border: 1px dashed #b7c6d4; border-radius: 14px; padding: 28px; text-align: center; color: #718092; background: #f8fafc; }
@media (max-width: 767.98px) { .project-img { height: 230px; } }

.info-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; }
.info-card strong { display: block; color: var(--navy); }
.info-card span { display: block; color: var(--muted); margin-top: 4px; }

.contact-section { background: linear-gradient(120deg, #061626, #0e2c4a); }
.contact-list { display: grid; gap: 12px; }
.contact-list a { color: white; text-decoration: none; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.contact-list a:hover { border-color: var(--gold); color: var(--gold-2); }

@media (max-width: 991.98px) {
  .hero-section .min-vh-100 { min-height: auto !important; padding-top: 120px !important; padding-bottom: 70px !important; }
  .portrait-wrap { max-width: 205px; }
  .section-pad { padding: 44px 0; }
}

@media (max-width: 575.98px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .hero-section h1 { font-size: 3rem; }
  .section-pad { padding: 38px 0; }
}


/* Expanded professional experience */
.experience-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.experience-details summary { cursor: pointer; color: #244d75; font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.experience-details summary::-webkit-details-marker { display: none; }
.experience-details summary::after { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf4fa; color: #244d75; font-weight: 800; transition: transform .18s ease; }
.experience-details[open] summary::after { content: "–"; }
.experience-list { margin: 14px 0 0; padding-left: 1.15rem; color: var(--muted); }
.experience-list li { margin-bottom: 9px; line-height: 1.55; }
.experience-list li::marker { color: var(--gold); }

/* ===== V5 POLISHED LAYOUT ===== */

/* Global typography */
body,
button,
input,
textarea,
select,
.navbar,
.btn {
  font-family: Calibri, "Segoe UI", Arial, sans-serif !important;
}

body {
  font-size: 17px;
  line-height: 1.55;
}

.container {
  max-width: 1320px;
}

/* Navbar */
.navbar {
  min-height: 68px;
}
.navbar-brand {
  font-size: 1.35rem;
}
.nav-link {
  font-size: 1rem;
  font-weight: 500;
}

/* Hero: tighter, cleaner, more balanced */
.hero-section {
  padding-top: 68px;
}
.hero-section .min-vh-100 {
  min-height: 540px !important;
}
.hero-section .row {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}
.hero-section h1 {
  font-size: clamp(3.2rem, 5.2vw, 5.2rem);
  letter-spacing: -.035em;
}
.hero-section .eyebrow {
  font-size: .83rem;
  letter-spacing: .12em;
  margin-bottom: 12px !important;
}
.hero-tags {
  max-width: 780px;
  margin-bottom: 22px !important;
}
.hero-copy {
  max-width: 700px;
  font-size: 1.23rem;
  line-height: 1.48;
  margin-bottom: 18px !important;
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 760px;
}
.hero-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  border-radius: 999px;
  color: #dce6f0;
  font-size: .88rem;
}
.portrait-wrap {
  max-width: 235px;
  padding: 9px;
  border-radius: 28px;
}
.portrait-img {
  border-radius: 20px;
}
.hero-section .btn {
  min-width: 154px;
  padding: 10px 20px !important;
  font-weight: 700;
  border-radius: 9px;
}

/* Sections */
.section-pad {
  padding: 58px 0;
}
.section-kicker {
  margin-bottom: .35rem;
}
.section-title {
  letter-spacing: -.02em;
}
.section-intro,
.about-lead {
  color: var(--muted);
}
.about-lead {
  font-size: 1.13rem;
  font-weight: 600;
  max-width: 760px;
  margin: 10px 0 20px;
}

/* About section */
#about .row {
  align-items: center !important;
}
#about p:not(.section-kicker):not(.about-lead) {
  max-width: 800px;
}
.metrics-grid {
  gap: 12px;
}
.metric-card {
  min-height: 118px;
  padding: 20px 20px;
  border-radius: 15px;
}
.metric-card strong {
  font-size: 2.25rem;
}
.metric-card span {
  line-height: 1.25;
}

/* Expertise */
.expertise-card {
  min-height: 115px;
  border-radius: 16px;
  padding: 18px 14px;
  font-size: 1.03rem;
  line-height: 1.25;
}
.expertise-card:hover {
  transform: translateY(-3px);
  border-color: #d2dae4;
  box-shadow: 0 14px 30px rgba(11,28,46,.08);
}

/* Experience */
.timeline-content {
  border-radius: 16px;
  padding: 22px 24px;
}
.timeline-content h3 {
  margin-bottom: 0;
}
.timeline-content > p:not(.company) {
  color: #39485a;
}
.experience-details summary {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-weight: 700;
  color: #214c75;
  cursor: pointer;
}
.experience-details summary:hover {
  color: var(--navy);
}
.experience-list {
  margin-top: 14px;
  padding-left: 1.2rem;
}
.experience-list li {
  margin-bottom: 8px;
}

/* Projects */
.project-card {
  border-radius: 18px;
}
.project-media {
  background: #f7f9fc;
  padding: 10px;
}
.project-img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain !important;
  object-position: center top !important;
  background: #fff;
  border-radius: 11px;
}
.project-card h3 {
  font-size: 1.65rem;
}
.project-card p {
  color: #455467;
}

/* Buttons/cards */
.btn,
.metric-card,
.expertise-card,
.timeline-content,
.project-card,
.info-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.metric-card:hover,
.timeline-content:hover,
.project-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(11,28,46,.09);
}

/* Contact */
.contact-list a {
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section .min-vh-100 {
    min-height: auto !important;
  }
  .hero-section .row {
    padding-top: 28px !important;
    padding-bottom: 42px !important;
  }
  .hero-section .col-lg-7 {
    text-align: center;
  }
  .hero-tags,
  .hero-copy,
  .hero-highlights {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-highlights {
    justify-content: center;
  }
  .hero-section .d-flex {
    justify-content: center;
  }
  .portrait-wrap {
    max-width: 200px;
  }
  .section-pad {
    padding: 46px 0;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 16px;
  }
  .hero-section h1 {
    font-size: 3rem;
  }
  .hero-copy {
    font-size: 1.08rem;
  }
  .hero-highlights span {
    font-size: .82rem;
  }
  .hero-section .btn {
    width: 100%;
  }
  .portrait-wrap {
    max-width: 165px;
  }
  .project-img {
    height: 220px;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===== V6 DESKTOP SCALE TUNING =====
   Make 100% browser view visually close to the previous 80% zoom view,
   without forcing browser zoom or breaking mobile responsiveness. */
@media (min-width: 992px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  .container {
    max-width: 1060px;
  }

  .navbar {
    min-height: 56px;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
  .brand-mark {
    margin-right: 8px;
  }
  .nav-link {
    font-size: .88rem;
  }
  .navbar .btn {
    font-size: .86rem;
    padding: 7px 14px !important;
  }

  .hero-section {
    padding-top: 56px;
  }
  .hero-section .min-vh-100 {
    min-height: 455px !important;
  }
  .hero-section .row {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
  .hero-section h1 {
    font-size: clamp(2.7rem, 4.25vw, 4.25rem);
  }
  .hero-section .eyebrow {
    font-size: .72rem;
    margin-bottom: 9px !important;
  }
  .hero-section h2,
  .hero-section .h2 {
    font-size: 1.35rem;
  }
  .hero-tags {
    max-width: 650px;
    margin-bottom: 16px !important;
    font-size: .95rem;
  }
  .hero-copy {
    max-width: 590px;
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: 14px !important;
  }
  .hero-highlights {
    gap: 7px;
    max-width: 650px;
  }
  .hero-highlights span {
    padding: 5px 9px;
    font-size: .74rem;
  }
  .portrait-wrap {
    max-width: 190px;
    padding: 7px;
    border-radius: 22px;
  }
  .portrait-img {
    border-radius: 16px;
  }
  .hero-section .btn {
    min-width: 128px;
    padding: 8px 16px !important;
    font-size: .9rem;
  }
  .hero-section .d-flex {
    gap: 12px !important;
  }

  .section-pad {
    padding: 46px 0;
  }
  .section-kicker {
    font-size: .7rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-intro,
  .about-lead {
    font-size: .95rem;
  }
  .about-lead {
    max-width: 640px;
    margin: 7px 0 14px;
  }

  .metric-card {
    min-height: 96px;
    padding: 15px 16px;
  }
  .metric-card strong {
    font-size: 1.8rem;
  }
  .metric-card span {
    font-size: .84rem;
  }

  .expertise-card {
    min-height: 92px;
    padding: 14px 12px;
    font-size: .88rem;
  }

  .timeline-content {
    padding: 17px 19px;
  }
  .timeline-content h3 {
    font-size: 1.25rem;
  }
  .experience-list li {
    margin-bottom: 6px;
  }

  .project-img {
    height: 265px;
  }
  .project-card h3 {
    font-size: 1.35rem;
  }
  .project-card .p-4 {
    padding: 1.25rem !important;
  }

  .info-card {
    padding: 14px 16px;
  }
}
