/* ================= CORLOR THEME ================= */
:root {
  --color-primary: #174766;
  --color-primary-dark: #1F5C82;
  --color-secondary: #CBDDE9;
  --color-soft-accent: #F8FAFC;

  --color-text-main: #334155;
  --color-text-light: #ffffff;
  --color-text-muted: #64748B;

  --color-background: #ffffff;
  --color-border: #E2E8F0;
}

/* ================= GLOBAL RESET ================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.7;
}

/* Remove forced heading color inheritance */
h1, h2, h3 {
  margin: 0;
}

p, ul {
  margin: 0;
}

/* ================= GLOBAL CONTAINER ================= */

.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;  /* centers container horizontally */
  padding-left: 2rem;  /* horizontal padding */
  padding-right: 2rem;
}

.content-narrow {
  max-width: 820px;
  margin: 0 auto;
}

/* ================= PAGE CONTENT WIDTH ================= */

/* For research/publication pages */
.content-narrow {
  max-width: 820px;
  margin: 0 auto;
}

/* ================= NAV ================= */

.nav-bar {
  position: sticky;
  top: 0;
 background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1140px; /* ensure consistent with other containers */
  margin: 0 auto;     /* center horizontally */
  padding: 0 2rem;
}

/* -------- Logo -------- */

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0F172A;   /* deep slate instead of bright blue */
  letter-spacing: 0.3px;
}

/* -------- Links -------- */

.nav-links {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.nav-link {
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

/* Subtle underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #2563EB;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger styling */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 72px; /* nav-bar height */
    right: 0;
    background: #ffffff;
    width: 100%;
    flex-direction: column;
    display: none; /* hidden by default */
    text-align: center;
    border-top: 1px solid #e5e7eb;
  }

  .nav-links.show {
    display: flex; /* show when hamburger clicked */
  }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .hamburger {
    display: flex; /* show hamburger on mobile */
  }

  .nav-container {
    position: relative;
  }
}

/* ================= HERO SECTION ================= */

.hero {
  background-color: var(--color-soft-accent);
  padding: 0.5rem 0 1rem 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: nowrap;   /* prevents stacking by default */
  margin: 0 auto;
}

/* -------- TEXT -------- */

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: background-color: var(--color-soft-accent);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

/* -------- BUTTONS -------- */

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--color-soft-accent);
}

/* -------- IMAGE -------- */

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 5%; 
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* -------- RESPONSIVE -------- */

@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-image {
    margin-bottom: 2rem; /* spacing between image and text */
  }

  .hero-cta {
    justify-content: center;
  }
}

/* -------- HERO GREETINGS AND NAME -------- */
.hero-greeting {
  display: block;           /* forces it onto its own line */
  font-size: 2.5rem;        /* adjust size as needed */
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 0.2rem;    /* small spacing before name */
}

.hero-name {
  display: block;           /* ensures it’s on its own line */
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* ---------------- Trajectory ---------------- */
.trajectory { 
  padding: 1rem 1.5rem; 
  background-color: var(--color-soft-accent);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;     /* rounded corners for box */
  box-shadow: 0 8px 20px rgba(0,0,0,0.05); /* subtle shadow */
  max-width: 1140px;         /* same as container */
  margin: 4rem auto;         /* center the section on page */
}

.trajectory h2 { 
  text-align: center; 
  margin-bottom: 3rem; 
  font-size: 2.5rem; 
  color: var(--color-text-main);
}

/* Steps container (line + cards) */
.steps {
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  position: relative; 
  gap: 2rem; 
}

/* Center line behind cards */
.steps::before {
  content:""; 
  position:absolute; 
  top:50%; 
  left:0; 
  right:0; 
  height:4px; 
  background-color:var(--color-secondary);
  z-index:0; 
  transform:translateY(-50%);
}

/* Individual step cards */
.step-card {
  flex: 1 1 250px; 
  background: var(--color-background);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative; 
  z-index: 1;                /* above the line */
  margin: 1rem 0;
}

.step-card:hover { 
  transform: translateY(-10px); 
  box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.step-card .icon { 
  font-size: 2rem; 
  color: var(--color-primary);
  margin-bottom: 1rem; 
}

.step-card h3 { 
  margin-bottom: 0.5rem; 
  color: var(--color-text-main);
}

/* Responsive */
@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------------- Mission ---------------- */
.mission {
  background-color: var(--color-soft-accent);
  padding: 1rem 1rem;      /* spacing top/bottom */
  text-align: center;
  border-radius: 1.5rem;     /* subtle rounding for box feel */
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05); /* light shadow */
  max-width: 1140px;         /* same as global container */
  margin: 4rem auto;          /* center on page with spacing above/below */
}

.mission h2 {
  color: var(--color-primary);
  font-size: 2rem; 
  margin-bottom: 2rem;
  font-weight: 600;
}

.mission blockquote {
  font-size: 1.5rem; 
  font-style: italic; 
  color: var(--color-text-main);
  max-width: 800px; 
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  padding: 2rem 3rem;           /* padding inside box */
  background-color: var(--color-background);
  border-left: 6px solid var(--color-primary);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mission blockquote::before {
  content: "“";
  font-size: 3rem;
  color: var(--color-primary);
  position: absolute;
  top: -10px;
  left: 20px;
}

.mission blockquote::after {
  content: "”";
  font-size: 3rem;
  color: var(--color-primary);
  position: absolute;
  bottom: -20px;
  right: 20px;
}

@media (max-width: 768px) {
  .mission blockquote {
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
  }
}

/* ---------------- Research Highlight Timeline ---------------- */
.research-highlight {
  position: relative;
  background: var(--color-soft-accent);
  border-radius: 1.5rem;
  padding: 1rem 1rem;
  margin: 2rem auto;
  max-width: 1140px;
  border: 1px solid var(--color-border);
}

.research-highlight h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* Timeline container */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-secondary);
  border-radius: 2px;
}

/* Timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 3rem;
}

/* Timeline bullet */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-background);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Timeline content */
.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.timeline-item p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Optional tag */
.timeline-item .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.research-highlight .cta-button {
  display: inline-block;
  margin-top: 1rem;

  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.research-highlight .cta-button:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline {
    padding-left: 1rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -2px;
  }

  .timeline::before {
    left: 0;
  }
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #f8fafc;
  margin-top: 6rem;
  padding: 4rem 0 3rem;
  width: 100%;
  text-align: center;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center; /* ensure container content is centered */
}

.footer-container h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #0083cb;
}

.footer-tagline {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.social a {
  color: #0083cb;
  font-size: 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column; /* icon above label */
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social a i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem; /* space between icon and label */
}

.social a span {
  font-size: 0.875rem;
  color: #0f172a;
}

.social a:hover {
  transform: translateY(-2px);
  color: #005f94;
}

.site-footer,
.footer-container {
  text-align: center; /* center all text and icons */
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: #dbeafe;
  margin: 0 auto 1.5rem;
}

.footer-microtext {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ---------------- Main Page Content ---------------- */
.page-content {
  max-width: 900px; /* constrain content width */
  margin: 0 auto;   /* center the content */
  padding: 2rem 1.5rem; /* top-bottom 2rem, left-right 1.5rem */
  line-height: 1.7; /* more readable */
  font-size: 1rem;
  color: var(--color-text-main);     /* main body text */
}

/* Optional: style headings */
.page-content h1, 
.page-content h2, 
.page-content h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-primary); 
}

.page-content p {
  margin-bottom: 1rem;
}

/* Optional: style links inside content */
.page-content a {
  color: var(--color-primary);
  transition: color 0.3s;
}

.page-content a:hover {
  color: var(--color-primary-dark);
}

/* ---------------- Markdown Pages ---------------- */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

section > *:not(.container) {
  max-width: 100%;
}


/* ================= Markdown Content ================= */

.markdown-content {
  max-width: 780px;           
  margin: 0 auto;
  padding: 2.5rem 1.5rem;      
  font-family: 'Poppins', sans-serif;
  color: var(--color-text-main); 
  line-height: 1.7;
  font-size: 16px;
  text-decoration: none;         
  border-bottom: none;           
}

/* ---------------- Headings ---------------- */
.markdown-content h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.3px;
}

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-secondary);
}

.markdown-content h3 {
    font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.5rem;
}

/* ---------------- Paragraphs ---------------- */
.markdown-content p {
  font-size: 1rem;
  margin-bottom: 1.6rem;
  color: var(--color-text-main);
}

/* ---------------- Links ---------------- */
.markdown-content a {
  color: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.markdown-content a:hover {
  border-bottom: 1px solid var(--color-primary);
}

/* ---------------- Lists ---------------- */
.markdown-content ul,
.markdown-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

/* ---------------- Blockquotes ---------------- */
.markdown-content blockquote {
  font-style: italic;
  color: var(--color-text-main);
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  background: transparent;
  border-radius: 0.5rem;
}

/* ---------------- Code / Preformatted ---------------- */
.markdown-content code {
  font-family: 'Fira Code', monospace;
  background-color: #E6F0F6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.markdown-content pre {
  background-color: #E6F0F6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
}

/* ---------------- Tables ---------------- */
.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid var(--color-secondary);
  padding: 0.75rem;
  text-align: left;
}

.markdown-content th {
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.markdown-content td {
  color: var(--color-text-main);
}

/* ---------------- Images ---------------- */
.markdown-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* ---------------- Pull Quotes / Highlights ---------------- */
.markdown-content .pull-quote {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary); 
  margin: 2rem 0;
  text-align: center;
}

/* ---------------- Responsive Adjustments ---------------- */
@media (max-width: 768px) {
  .markdown-content {
    padding: 1.5rem 1rem;
  }

  .markdown-content h1 {
    font-size: 2rem;
  }

  .markdown-content h2 {
    font-size: 1.75rem;
  }

  .markdown-content h3 {
    font-size: 1.25rem;
  }

  .markdown-content img {
    width: 100%;
    max-width: 100%;
  }

  .markdown-content table {
    font-size: 0.9rem;
  }
}
