/* ===== Base ===== */
html, body { margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #333; background: #fff; }
a { color: #0f4c81; }
h1, h2 { text-align: center; }

/* ===== Header (Hero): left photo, right text, mobile-first ===== */
:root{
  /* tune these if you want */
  --hero-height-desktop: 250px;
  --headshot-size: clamp(140px, 18vw, 225px);
}

.site-header {
  position: relative;
  background: url('composite_refined.png') center center / cover no-repeat;
  color: #fff;
  height: var(--hero-height-desktop);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;     /* text aligns left on desktop */
  padding: 0 1rem;
}

/* name + clearance on one line */
.name-line{
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;            /* wraps if it gets tight */
}

/* pill-style clearance badge */
.badge{
  font-size: clamp(.85rem, 2.2vw, 1rem);
  font-weight: 700;
  padding:.2rem .6rem;
  border-radius: 999px;
  color:#fff;
  background: rgba(0,0,0,.35);
  border:2px solid #fff;
  text-shadow:none;
  letter-spacing:.02em;
}

/* center the line on phones */
@media (max-width:700px){
  .name-line{ justify-content:center; }
}

.site-header .inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Left: headshot */
.hero-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.headshot {
  width: var(--headshot-size);
  height: auto;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 2px 2px 8px rgba(0,0,0,.6);
}

/* Right: text */
.hero-right {
  flex: 1 1 auto;
}

.site-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,.8);
  text-align: left;
}

.site-header p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin: .45rem 0 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,.8);
}

/* Mobile: stack, center text, auto height so it breathes */
@media (max-width: 700px) {
  .site-header {
    height: auto;
    padding: 1.75rem 1rem 2.25rem;
    text-align: center;
  }
  
  .site-header .inner {
    flex-direction: column;
  }
  
  .hero-right { width: 100%; }
}

/* NAVIGATION */

nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  background-color: #0f4c81;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

nav a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* MAIN CONTENT */

main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem 3rem 1rem;
}

h1, h2 {
  text-align: center;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f8;
  color: #333;
  margin: 0;
  padding: 0;
}

section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 20px;
}

/* QUICK LINKS */

.quick-links {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.8rem;
}

.quick-links a {
  text-decoration: none;
  color: #0f4c81;
}

.quick-links a:hover {
  text-decoration: underline;
  color: #094069;
}

/* ===== Buttons & Cards ===== */
.btn { display: inline-block; padding: .65rem 1rem; font-weight: 700; text-decoration: none; border-radius: 6px; border: 2px solid #0f4c81; }
.btn.primary { background: #0f4c81; color: #fff; }
.btn.secondary { background: #fff; color: #0f4c81; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: rgba(15, 76, 129, 0.08); border-radius: 8px; padding: 1rem; }
.card h3 { margin-top: 0; margin-bottom: .5rem; text-align: left; }
.muted { color: #555; font-size: .95rem; }

/* ===== Contact ===== */
.contact { max-width: 1000px; margin: 2rem auto 3rem; padding: 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.contact-card { background: rgba(15,76,129,.08); border-radius: 10px; padding: 1.25rem; display: flex; gap: .9rem; align-items: flex-start; }
.contact-card svg { flex: 0 0 28px; margin-top: .15rem; }
.contact-card h3 { margin: .1rem 0 .4rem; font-size: 1.15rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.note { text-align: center; color: #555; margin-top: 1rem; }

/* ===== Layout ===== */
main { max-width: 1000px; margin: 2rem auto; padding: 0 1rem 3rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) { .pb-pdf { height: 70vh; } }
@media (max-width: 640px) {
  .site-header h1 { font-size: 2.4rem; }
  .site-header p { font-size: 1.1rem; }
  .headshot { width: 150px; }
  .pb-embed { display: none; }
  .pb-note { display: block; }
  .pb-tabs label { font-size: .95rem; }
}

/* ===== Résumés Tabs (CSS-only) ===== */
.pb-resumes { max-width: 1000px; margin: 0 auto 2rem; font-family: inherit; }
.pb-resumes h2 { text-align: center; margin-top: 1rem; }

/* Radios must be siblings of .pb-tabs and .pb-panels */
.pb-resumes input[type="radio"] { position: absolute; left: -9999px; }

/* Tabs */
.pb-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center;
  margin: 1rem 0 1.5rem;
}
.pb-tabs label {
  display: inline-block; background: #0f4c81; color: #fff;
  padding: .6rem 1rem; border-radius: 6px; cursor: pointer; font-weight: 700;
  user-select: none; line-height: 1;
}

/* Panels */
.pb-panels { margin-top: .25rem; }
.pb-panel { display: none; }

/* Show selected panel */
#pb-tab-summary:checked ~ .pb-panels #pb-panel-summary { display: block; }
#pb-tab-cyber:checked   ~ .pb-panels #pb-panel-cyber   { display: block; }
#pb-tab-nqv:checked     ~ .pb-panels #pb-panel-nqv     { display: block; }

/* Active tab look */
#pb-tab-summary:checked ~ .pb-tabs label[for="pb-tab-summary"],
#pb-tab-cyber:checked   ~ .pb-tabs label[for="pb-tab-cyber"],
#pb-tab-nqv:checked     ~ .pb-tabs label[for="pb-tab-nqv"] { background: #094069; }

/* Actions + embeds */
.pb-pdf-actions { text-align: center; margin-bottom: .75rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.pb-btn { display: inline-block; padding: .65rem 1rem; font-weight: 700; text-decoration: none; border-radius: 6px; border: 2px solid #0f4c81; background: #0f4c81; color: #fff; }
.pb-btn.secondary { background: #fff; color: #0f4c81; }
.pb-embed { display: block; }
.pb-pdf { width: 100%; height: 900px; border: 1px solid rgba(0,0,0,.08); border-radius: 6px; background: #fff; }
.pb-note { display: none; text-align: center; color: #555; margin: .5rem 0 1rem; }

/* Mobile */
@media (max-width: 768px) { .pb-pdf { height: 70vh; } }
@media (max-width: 640px) { .pb-embed { display: none; } .pb-note { display: block; } .pb-tabs label { font-size: .95rem; } }

/* SKILLS CATEGORY BOXES */

.skills-category {
  background: rgba(15, 76, 129, 0.08);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.skills-category h3 {
  text-align: center;
}

/* SKILLS LISTS */

.skills-list {
  column-count: 2;
  column-gap: 2rem;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

/* ===== Skills (from earlier) ===== */
.quick-links { text-align: center; font-size: 1.2rem; margin-bottom: 1.5rem; line-height: 1.8rem; }
.quick-links a { text-decoration: none; color: #0f4c81; }
.quick-links a:hover { text-decoration: underline; color: #094069; }
.skills-category { background: rgba(15, 76, 129, 0.08); padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; }
.skills-category h3 { text-align: center; }
.skills-list { column-count: 2; column-gap: 2rem; list-style-type: none; padding: 0; margin: 0; }
.skills-list li { break-inside: avoid; margin-bottom: .5rem; }

/* TAB DISPLAY */
.tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}
.tab-button {
  background: #0f4c81;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
}
.tab-button.active {
  background: #094069;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.pdf-container {
  width: 100%;
  height: 1000px;
}