/* =========================
   Base + Layout
   ========================= */

:root {
  --bg: #f7f5f2;
  --card-bg: #ffffff;
  --accent: #2c5e91;
  --accent-soft: #e1ecf7;
  --accent-strong: #23496f;
  --text-main: #222222;
  --text-muted: #555555;
  --border-soft: rgba(0, 0, 0, 0.08);
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text-main);
  background: var(--bg);
}

body {
  line-height: 1.6;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* =========================
   Header + Navigation
   ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand text in nav */

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.8rem;
  opacity: 0.7;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-link:hover,
.brand-link:focus-visible {
  text-decoration: none;
  opacity: 0.9;
}


/* Nav links */

header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.4rem;
  align-items: center;
}

header nav a {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Insert the pipe before every link except the first */
header nav a + a::before {
  content: "|";
  margin-right: 0.4rem;
  color: rgba(0, 0, 0, 0.35);
}

header nav a.active,
header nav a[aria-current="page"] {
  color: var(--accent);
}

/* Nav hover override (no underline up top) */
header nav a:hover,
header nav a:focus-visible {
  text-decoration: none;
  color: var(--accent);
}

/* Responsive header layout */

@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  header nav {
    justify-content: center;
  }
}

/* =========================
   Hero
   ========================= */

/* Tighten the first hero under the sticky header */
section.hero:first-of-type {
  margin-top: 0; /* remove extra section margin */
}

.hero {
  padding-top: 0.9rem; /* was 1.5rem; nudge to taste */
}

/* Kill the default h1 top margin in the hero */
.hero > h1,
.hero .hero-title {
  margin-top: 0;
}

.hero {
  padding: 1.25rem 1.25rem 1.5rem;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.5fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.hero-main {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
}

.hero-title {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 0.35rem 0 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-tagline {
  margin: 0;
  font-size: 0.98rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.1rem;
}

.hero-meta strong {
  color: var(--text-main);
}

.hero-aside {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-aside p {
  margin: 0 0 0.5rem;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Content / Sections / Cards
   ========================= */

.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}

section {
  margin-top: 2.25rem;
}

section:first-of-type {
  margin-top: 1.25rem;
}

section > h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

.section-intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-logo {
  max-width: 80px;  /* tweak 140–200px to taste */
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.6rem;
  margin-top: 0.6rem;
}

.card + .card {
  margin-top: 1.2rem;
}

.contributions-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;             /* space between logos */
  align-items: center;
  margin: 0.25rem 0 0.75rem;
}

/* Tighter, smaller logos just in this strip */
.contributions-logos .section-logo {
  max-width: 80px;         /* bump to 100px if you want a bit bigger */
  max-height: 40px;
  height: auto;
  display: block;
  margin-bottom: 0;        /* override the general section-logo bottom margin */
}


/* =========================
   Experience Blocks
   ========================= */

.experience-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.experience-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.experience-summary {
  margin: 0 0 0.55rem;
  font-size: 0.94rem;
}

.experience-bullets {
  margin: 0.3rem 0 0.1rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.experience-bullets li {
  margin-bottom: 0.25rem;
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  /* removed justify-content: space-between; */
}

.org-logo {
  max-width: 140px;
  max-height: 80px;
  height: auto;
  flex-shrink: 0;
}

.experience-heading-text {
  flex: 1;
  min-width: 0; /* helps text behave nicely in tight widths */
}

/* Optional: stack vertically on small screens */
@media (max-width: 600px) {
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .org-logo {
    max-width: 160px;
  }
}

/* Multi-logo layout just for the “Earlier Professional Experience” card */
.experience-header-multi {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.experience-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Smaller logos in the multi-logo strip */
.experience-header-multi .org-logo {
  max-width: 100px;   /* tweak 80–110px to taste */
  height: auto;
  flex: 0 0 auto;
  opacity: 0.97;
}

/* =========================
   Education Block
   ========================= */

/* Education logos */

.edu-item .edu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.edu-logo {
  max-width: 90px;   /* you can bump to 100 if they feel too tiny */
  height: auto;
  flex-shrink: 0;
}



/* =========================
   Two-column layouts
   ========================= */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Pills / Tags
   ========================= */

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin: 0.15rem 0.15rem 0 0;
}

/* =========================
   Download Panel / Buttons
   ========================= */

.download-panel {
  margin-top: 0.8rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.download-panel h2 {
  margin-top: 0;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(44, 94, 145, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.download-btn:hover,
.download-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(44, 94, 145, 0.45);
  background: var(--accent-strong);
  text-decoration: none;
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(44, 94, 145, 0.3);
}

/* Secondary stays outlined but also gets a hover */
.download-btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: none;
}

.download-btn-secondary:hover,
.download-btn-secondary:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

/* =========================
   Philosophy Page tweaks
   ========================= */

.philosophy-page .hero-main {
  padding-bottom: 1.35rem;
}

.philosophy-page .hero-main p {
  margin-top: 0.6rem;
  font-size: 0.96rem;
}

.philosophy-page .content section h2 {
  font-size: 1.2rem;
}

.philosophy-page .content h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.02rem;
}

.philosophy-page .content p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 0.7rem 1.25rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(247, 245, 242, 0.98);
  margin-top: auto;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-left,
.footer-right {
  white-space: nowrap;
}

.footer-right {
  text-align: right;
  opacity: 0.8;
}

/* Stack nicely on small screens */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    white-space: normal;
  }
}


/* =========================
   Contact Section
   ========================= */

#contact {
  margin-top: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.contact-card p {
  margin: 0.4rem 0;
}

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  margin-top: 0.9rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent-strong);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.contact-linkedin:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  background: var(--accent-soft);
}

.contact-linkedin:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

/* Form inside right card */

.contact-form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.form-field {
  flex: 1 1 220px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.75rem;
  font: inherit;
  background: #ffffff;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Honeypot field (hidden from humans) */
.form-field.hp {
  display: none;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  background: var(--accent-strong);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-footnote {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive: stack cards on small screens */
@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
