/* Basic Reset and Theme */
:root {
  --brand: #3B6CA6;
  /* main */
  --brand-2: #98B1D0;
  /* secondary */
  --accent: #98B1D0;
  /* align accent with secondary */
  --bg: #ffffff;
  --text: #14202b;
  --muted: #6b7a85;
  --border: #e6edf2;
  --alt: #f7fbff;
  --year-col: 96px;  /* timeline year column width */
  --year-gap: 12px;  /* space between year and text */
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 20px;
}

img {
  max-width: 100%;
  display: block
}

a.img-rounded,
img.img-rounded {
  border-radius: 16px
}

a {
  color: var(--brand-2);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

/* Darker links in Home hero for visibility */
.hero .hero-copy a {
  color: var(--brand)
}

/* Layout */
.container {
  width: min(1200px, 92%);
  margin-inline: auto
}

.container--wide {
  width: min(1300px, 92%)
}

.section {
  padding: 64px 0
}

.section.alt {
  background: var(--alt)
}

.page-hero {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border)
}

.page-hero h1 {
  margin: 0 0 8px
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0
}

.logo {
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.2px
}

.logo img {
  height: 60px;
  display: block
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1, 1);
  white-space: nowrap;
  border: 0
}

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

.site-nav a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px
}

.site-nav a.active {
  color: #fff;
  background: var(--brand)
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 9px;
  border-radius: 10px
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  margin-top: 56px
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 600;
  color: var(--brand)
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #f5fbff, #ffffff)
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 56px 0
}

.hero-copy h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 12px
}

.hero-copy p {
  color: var(--muted)
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px
}

.hero-art .placeholder {
  height: 280px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #f1f7fb 0 10px, #ffffff 10px 20px)
}

.hero-art .media {
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #000
}

.hero-art .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.placeholder.tall {
  height: 320px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #f1f7fb 0 10px, #ffffff 10px 20px)
}

.ph-caption {
  font-size: 12px;
  color: var(--muted);
  padding: 10px
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  background: #fff
}

.card h3 {
  margin-top: 0
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px
}

.two-col.two-col-edu {
  grid-template-columns: 1.2fr 1.1fr
}

.note {
  border-left: 4px solid var(--accent);
  background: #f5fffd;
  padding: 14px 16px;
  color: #0b3d34;
  border-radius: 6px
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  background: #fff
}

.btn:hover {
  text-decoration: none;
  border-color: #ccd7df
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand)
}

.btn-primary:hover {
  filter: brightness(0.95)
}

.btn-inverse {
  background: #fff;
  color: var(--brand);
  border-color: #fff
}

/* Pills */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff
}

/* CTA */
.cta {
  background: var(--brand);
  color: #fff
}

.cta-inner {
  padding: 36px 0;
  text-align: center
}

.cta .btn-inverse {
  margin-top: 10px
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff
}

.video-card video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #000
}

.video-card figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  /* avoid tiny overflow when centering bullets on the line */
  margin-left: 6px;
}

.timeline li {
  position: relative;
  padding: 10px 10px 10px calc(34px + var(--year-col) + var(--year-gap));
  border-left: 2px solid var(--border)
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px; /* center the 10px dot over the 2px line */
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent)
}

.timeline .t-year {
  position: absolute;
  left: 34px;
  top: 10px;
  width: var(--year-col);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

/* Optional company line centered under role text area */
.timeline .t-co{
  display:block;
  font-size:0.9rem;
  color:var(--muted);
  margin-top:2px;
  margin-left: calc(34px + var(--year-col) + var(--year-gap));
  width:auto;                 /* align to text column */
  text-align:center;
}

/* Inline company label color */
.timeline .co{ color: var(--muted); }

/* About page: slightly smaller body text inside Experience & Education timelines */
.exp-edu .timeline { font-size: 0.95rem; }

/* Forms */
.contact-form {
  display: grid;
  gap: 12px
}

.contact-form label {
  display: grid;
  gap: 6px
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font: inherit
}

.contact-form button {
  justify-self: start
}

.form-note {
  font-size: 12px;
  color: var(--muted)
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0
}

.contact-list li {
  padding: 6px 0
}

/* Social link styling */
.social-link{display:inline-flex; align-items:center; gap:8px; color:var(--brand); font-weight:500}
.social-link:hover{text-decoration:underline}
.icon{width:18px; height:18px; display:inline-block}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr
  }

  .cards {
    grid-template-columns: 1fr 1fr
  }

  .two-col {
    grid-template-columns: 1fr
  }

  .video-grid {
    grid-template-columns: 1fr
  }
}

/* Stack Experience and Education earlier to avoid squish on phones */
@media (max-width: 1024px){
  .exp-edu .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr
  }

  .site-nav {
    position: absolute;
    right: 0;
    top: 60px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    width: min(320px, 92%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
  }

  .site-nav.open {
    display: flex
  }

  .nav-toggle {
    display: inline-block
  }
  /* Footer stacks neatly on small screens */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-nav { row-gap: 6px; }
}
