/* ============ VARIABLES ============ */
:root {
  --navy: #101B33;
  --navy-med: #1E2E52;
  --navy-light: #2C3E5C;
  --gold: #B08D57;
  --gold-light: #D4B483;
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --charcoal: #24262B;
  --muted: #6B7280;
  --line: #E4E1D6;
  --max-width: 1120px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(16, 27, 51, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.15rem;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light); color: var(--navy) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ============ HERO (blended photo background) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

/* Photo sits as a full-bleed background layer, anchored right */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  opacity: 0.9;
  filter: saturate(0.92) brightness(0.98);
}
/* Fade the photo into the navy background on the left side, so text has a readable backdrop */
.hero-fade-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--navy) 0%,
    var(--navy) 8%,
    rgba(16,27,51,0.94) 22%,
    rgba(16,27,51,0.65) 40%,
    rgba(16,27,51,0.18) 62%,
    rgba(16,27,51,0.02) 78%,
    transparent 100%);
}
/* Soft fade at the bottom so the photo blends into the next section transition */
.hero-fade-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent 0%, rgba(16,27,51,0.55) 65%, var(--navy) 100%);
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}
.hero-text { max-width: 600px; }
.hero-kicker {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.3rem;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 2.3rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  backdrop-filter: blur(4px);
  background: rgba(16,27,51,0.25);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-cue span {
  display: block;
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.scroll-cue span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 16px; }
}

/* ============ SECTIONS ============ */
.section { padding: 6.5rem 0; scroll-margin-top: 84px; }
#home { scroll-margin-top: 0; }
.section-alt { background: var(--cream); }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.eyebrow-light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--navy);
  margin-bottom: 1.4rem;
  max-width: 780px;
}
.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 2.8rem;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
.about-text p {
  color: var(--charcoal);
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ============ TIMELINE ============ */
.timeline {
  margin-top: 2.5rem;
  position: relative;
  padding-left: 2.2rem;
  border-left: 2px solid var(--line);
}
.tl-item { position: relative; margin-bottom: 2.6rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.35rem;
  width: 14px; height: 14px;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.tl-header h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
}
.tl-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  white-space: nowrap;
}
.tl-company {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0.25rem 0 0.8rem;
}
.tl-content ul { padding-left: 0; }
.tl-content li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
  font-size: 0.96rem;
  color: var(--charcoal);
}
.tl-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.education-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 3.2rem;
}
.edu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
}
.edu-degree { font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.edu-school { font-size: 0.92rem; color: var(--charcoal); margin-bottom: 0.2rem; }
.edu-date { font-size: 0.82rem; color: var(--muted); font-style: italic; }

/* ============ EXPERTISE ============ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.expertise-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.expertise-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16,27,51,0.08);
}
.expertise-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.7rem;
}
.expertise-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.expertise-card p {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.55;
}

/* ============ SKILLS ============ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2.5rem 0 2.5rem;
}
.skill-pill {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.15rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}
.languages-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.lang-item span:first-child { font-weight: 700; color: var(--navy); }
.lang-level { font-size: 0.85rem; color: var(--muted); }

.endorsements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.endorsement-card {
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 16px rgba(16,27,51,0.05);
}
.endorsement-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 0.7rem;
}
.endorsement-source {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============ CONTACT ============ */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-med) 100%);
  text-align: center;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-title { color: var(--white); }
.contact-lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.2rem;
}
.contact-location {
  margin-top: 1.6rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

/* ============ FOOTER ============ */
.footer {
  background: #0B1526;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1.6rem 2rem;
  font-size: 0.78rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
  .hero-bg-img {
    opacity: 0.35;
    object-position: top right;
  }
  .hero-fade-left {
    background: linear-gradient(90deg,
      var(--navy) 0%,
      rgba(16,27,51,0.85) 50%,
      rgba(16,27,51,0.55) 100%);
  }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .endorsements-grid { grid-template-columns: 1fr; }
  .education-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.3rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(176,141,87,0.25);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-bg-img { opacity: 0.22; }
  .section { padding: 4rem 0; }
  .timeline { padding-left: 1.6rem; }
  .tl-dot { left: -1.95rem; }
  .expertise-grid { grid-template-columns: 1fr; }
}
