@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@700;900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
  background: #f8fafc;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #374151;
  font-size: 15px;
}

nav a:hover {
  color: #0f766e;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 70px 8%;
}

.eyebrow {
  color: #0f766e;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

h1 {
  font-size: 54px;
  line-height: 1.05;
  margin: 16px 0 24px;
  color: #111827;
}

.hero-text p {
  font-size: 19px;
  line-height: 1.7;
  max-width: 720px;
}

.buttons {
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  margin-right: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.primary {
  background: #0f766e;
  color: white;
}

.secondary {
  border: 1px solid #0f766e;
  color: #0f766e;
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

@media (max-width: 800px) {
  .site-header {
    display: block;
  }

  nav {
    margin-top: 16px;
  }

  nav a {
    display: inline-block;
    margin: 8px 14px 0 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 40px 6%;
  }

  h1 {
    font-size: 38px;
  }
}

/* =======================================
   PAGE HERO
======================================= */

.page-hero {
  padding: 90px 8%;
  background: #eef6f6;
}

.page-hero h1 {
  font-size: 50px;
  line-height: 1.1;
  max-width: 900px;
  margin: 16px 0 24px;
  color: #111827;
}

.page-hero p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 900px;
}

/* =======================================
   GENERAL CONTENT SECTIONS
======================================= */

.content-section {
  padding: 80px 8%;
  background: #ffffff;
}

.alt-section {
  background: #f8fafc;
}

.section-intro {
  max-width: 850px;
  margin-bottom: 40px;
}

.section-intro h2 {
  font-size: 38px;
  margin-bottom: 16px;
  color: #111827;
}

.section-intro p {
  font-size: 19px;
  line-height: 1.7;
}

/* =======================================
   RESEARCH THEMES
======================================= */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.theme-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 28px;
  border-radius: 14px;
}

.theme-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #0f766e;
}

.theme-card p {
  font-size: 16px;
  line-height: 1.7;
}

/* =======================================
   CURRENT RESEARCH
======================================= */

.research-list {
  display: grid;
  gap: 24px;
}

.research-item {
  background: #ffffff;
  border-left: 5px solid #0f766e;
  padding: 26px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.research-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.research-item p {
  font-size: 17px;
  line-height: 1.7;
}

/* =======================================
   METHODS
======================================= */

.methods-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.methods-grid span {
  background: #eef6f6;
  color: #0f766e;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
}

/* =======================================
   ACTIVE NAVIGATION
======================================= */

nav a.active {
  color: #0f766e;
  font-weight: 700;
}

/* =======================================
   RESPONSIVE RESEARCH PAGE
======================================= */

@media (max-width: 1000px) {
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 650px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 60px 6%;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .content-section {
    padding: 55px 6%;
  }
}

/* =======================================
   PROJECTS PAGE
======================================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.10);
}

.project-label {
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.project-card h3 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #111827;
}

.project-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
}

.project-details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.project-details h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #111827;
}

.project-details p {
  font-size: 15.5px;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-tags span {
  background: #eef6f6;
  color: #0f766e;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
}

/* =======================================
   RESPONSIVE PROJECTS PAGE
======================================= */

@media (max-width: 850px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: 26px;
  }

  .project-card h3 {
    font-size: 23px;
  }
}

/* =======================================
   PUBLICATIONS PAGE
======================================= */

.publication-list {
  display: grid;
  gap: 28px;
}

.publication-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.publication-year {
  color: #0f766e;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.publication-content h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #111827;
}

.publication-authors {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 8px;
}

.publication-journal {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 12px;
}

.publication-summary {
  font-size: 16.5px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 18px;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.publication-links a {
  display: inline-block;
  text-decoration: none;
  background: #eef6f6;
  color: #0f766e;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.publication-links a:hover {
  background: #0f766e;
  color: #ffffff;
}

/* =======================================
   RESPONSIVE PUBLICATIONS PAGE
======================================= */

@media (max-width: 750px) {
  .publication-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px;
  }

  .publication-content h3 {
    font-size: 21px;
  }
}

/* =======================================
   CV PAGE
======================================= */

.page-buttons {
  margin-top: 32px;
}

.cv-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.cv-sidebar {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  position: sticky;
  top: 30px;
}

.cv-sidebar h2 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #111827;
}

.cv-sidebar p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.cv-contact-box {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.cv-contact-box h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #111827;
}

.cv-contact-box a {
  display: block;
  text-decoration: none;
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 10px;
}

.cv-contact-box a:hover {
  text-decoration: underline;
}

.cv-main {
  display: grid;
  gap: 42px;
}

.cv-section {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 34px;
}

.cv-section h2 {
  font-size: 30px;
  margin-bottom: 24px;
  color: #111827;
}

.cv-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.cv-date {
  color: #0f766e;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cv-entry h3 {
  font-size: 21px;
  margin-bottom: 8px;
  color: #111827;
}

.cv-entry p,
.cv-section p {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-tags span {
  background: #eef6f6;
  color: #0f766e;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* =======================================
   RESPONSIVE CV PAGE
======================================= */

@media (max-width: 900px) {
  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-sidebar {
    position: static;
  }
}

@media (max-width: 650px) {
  .cv-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cv-section h2 {
    font-size: 26px;
  }
}

/* =======================================
   CONTACT PAGE
======================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.contact-main h2,
.contact-sidebar h2 {
  font-size: 32px;
  margin-bottom: 22px;
  color: #111827;
}

.contact-main > p {
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
  max-width: 800px;
  margin-bottom: 32px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #0f766e;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111827;
}

.contact-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
}

.contact-card a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-sidebar {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  position: sticky;
  top: 30px;
}

.contact-links {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.contact-links a {
  display: block;
  text-decoration: none;
  color: #0f766e;
  font-weight: 800;
  padding: 12px 14px;
  background: #eef6f6;
  border-radius: 10px;
}

.contact-links a:hover {
  background: #0f766e;
  color: #ffffff;
}

.contact-note {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
}

.contact-note h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #111827;
}

.contact-note p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #374151;
}

/* =======================================
   RESPONSIVE CONTACT PAGE
======================================= */

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    position: static;
  }
}

/* =======================================
   ABOUT PAGE
======================================= */

.about-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}

.about-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: #111827;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 22px;
}

.about-timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #0f766e;
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.timeline-date {
  color: #0f766e;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-content h3 {
  font-size: 23px;
  margin-bottom: 10px;
  color: #111827;
}

.timeline-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
}

/* =======================================
   RESPONSIVE ABOUT PAGE
======================================= */

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image img {
    max-width: 360px;
  }
}

@media (max-width: 650px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px;
  }

  .about-text h2 {
    font-size: 30px;
  }
}

/* =======================================
   TOOLS & DATA PAGE
======================================= */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.featured-tool {
  border-top: 6px solid #0f766e;
}

.tool-label {
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #111827;
}

.tool-card p {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
}

.tool-details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.tool-details h4 {
  font-size: 17px;
  margin-bottom: 12px;
  color: #111827;
}

.tool-details ul {
  margin: 0;
  padding-left: 20px;
}

.tool-details li {
  font-size: 15.5px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 6px;
}

/* =======================================
   WORKFLOW SECTION
======================================= */

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.workflow-step {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.workflow-number {
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.workflow-step h3 {
  font-size: 21px;
  margin-bottom: 12px;
  color: #111827;
}

.workflow-step p {
  font-size: 15.8px;
  line-height: 1.7;
  color: #374151;
}

/* =======================================
   RESPONSIVE TOOLS PAGE
======================================= */

@media (max-width: 1000px) {
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .workflow {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 26px;
  }

  .tool-card h3 {
    font-size: 23px;
  }
}

/* =======================================
   HOMEPAGE CLEANUP
======================================= */

.home-intro-section {
  border-top: 1px solid #e5e7eb;
}

.home-cta {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding: 70px 8%;
  background: #0f766e;
  color: #ffffff;
}

.home-cta h2 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.home-cta p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}

.home-cta .secondary {
  border: 1px solid #ffffff;
  color: #ffffff;
}

.home-cta .primary {
  background: #ffffff;
  color: #0f766e;
}

.home-cta-buttons {
  white-space: nowrap;
}

.site-footer {
  padding: 28px 8%;
  background: #111827;
  color: #d1d5db;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

/* =======================================
   RESPONSIVE HOMEPAGE
======================================= */

@media (max-width: 850px) {
  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-cta-buttons {
    white-space: normal;
  }
}
/* =======================================
   MOBILE-FRIENDLY HEADER
======================================= */

.logo {
  text-decoration: none;
  color: #111827;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #374151;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a.active {
  color: #0f766e;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 28px;
  background: #111827;
  margin: 6px auto;
  border-radius: 999px;
}

@media (max-width: 950px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    padding: 18px 6%;
  }

  .logo {
    font-size: 18px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    margin-left: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
  }
}

/* =======================================
   HOMEPAGE HERO MOBILE IMPROVEMENTS
======================================= */

@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 38px;
    padding: 52px 6% 64px;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-image img {
    max-width: 300px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.12;
  }

  .hero-text p {
    font-size: 18px;
    line-height: 1.65;
  }
}

@media (max-width: 650px) {
  .hero {
    padding: 40px 6% 54px;
    gap: 30px;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 1.5;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.12;
    margin: 14px 0 18px;
  }

  .hero-text p {
    font-size: 16.5px;
    line-height: 1.65;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin-right: 0;
    padding: 14px 18px;
  }

  .hero-image img {
    max-width: 245px;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-image img {
    max-width: 220px;
  }
}

/* =======================================
   SITE-WIDE POLISH: SPACING + TYPOGRAPHY
======================================= */

:root {
  --color-primary: #0f766e;
  --color-primary-light: #eef6f6;
  --color-dark: #111827;
  --color-text: #374151;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #f8fafc;
  --max-width: 1200px;
}

/* Better text rendering */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* Consistent headings */
h1,
h2,
h3,
h4 {
  color: var(--color-dark);
  line-height: 1.2;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

/* Consistent paragraph readability */
p {
  color: var(--color-text);
}

/* Make links feel consistent */
a {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* =======================================
   STANDARD PAGE HERO
======================================= */

.page-hero {
  padding: 86px 8%;
  background: linear-gradient(135deg, #eef6f6 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  max-width: 980px;
  margin-bottom: 24px;
  color: var(--color-dark);
}

.page-hero p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 920px;
  color: var(--color-text);
}

/* =======================================
   STANDARD CONTENT SECTIONS
======================================= */

.content-section {
  padding: 78px 8%;
  background: #ffffff;
}

.alt-section {
  background: var(--color-bg);
}

.section-intro {
  max-width: 860px;
  margin-bottom: 42px;
}

.section-intro h2 {
  font-size: clamp(30px, 3vw, 40px);
  margin-bottom: 14px;
  color: var(--color-dark);
}

.section-intro p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text);
}

/* Keep long text readable */
.about-text,
.contact-main,
.cv-main,
.publication-content,
.research-item,
.project-card,
.tool-card {
  max-width: 100%;
}

/* =======================================
   STANDARD CARDS
======================================= */

.theme-card,
.project-card,
.tool-card,
.publication-item,
.contact-card,
.workflow-step,
.timeline-item,
.cv-sidebar,
.contact-sidebar {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.theme-card,
.project-card,
.tool-card,
.workflow-step {
  background: #ffffff;
}

/* Card hover only for clickable/portfolio-like cards */
.project-card,
.tool-card,
.theme-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.tool-card:hover,
.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(0,0,0,0.09);
}

/* Standard card heading and body */
.theme-card h3,
.project-card h3,
.tool-card h3,
.workflow-step h3,
.research-item h3,
.contact-card h3,
.timeline-content h3,
.cv-entry h3 {
  color: var(--color-dark);
}

.theme-card p,
.project-card p,
.tool-card p,
.workflow-step p,
.research-item p,
.contact-card p,
.timeline-content p,
.cv-entry p,
.cv-section p {
  color: var(--color-text);
}

/* =======================================
   STANDARD TAGS / PILLS
======================================= */

.methods-grid span,
.project-tags span,
.cv-tags span {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

/* =======================================
   STANDARD BUTTONS
======================================= */

.btn {
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.primary {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}

.primary:hover {
  background: #0b5f59;
  border-color: #0b5f59;
}

.secondary {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.secondary:hover {
  background: var(--color-primary-light);
}

/* =======================================
   STANDARD GRID SPACING
======================================= */

.theme-grid,
.project-grid,
.tool-grid,
.workflow,
.methods-grid,
.publication-list,
.research-list,
.about-timeline,
.cv-main {
  gap: 28px;
}

/* =======================================
   INNER PAGE MOBILE POLISH
======================================= */

@media (max-width: 950px) {
  .page-hero {
    padding: 68px 6%;
  }

  .content-section {
    padding: 62px 6%;
  }

  .page-hero p {
    font-size: 18px;
  }

  .section-intro {
    margin-bottom: 34px;
  }

  .section-intro p {
    font-size: 17px;
  }
}

@media (max-width: 650px) {
  .page-hero {
    padding: 52px 6%;
  }

  .page-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .page-hero p {
    font-size: 16.5px;
    line-height: 1.65;
  }

  .content-section {
    padding: 48px 6%;
  }

  .section-intro h2 {
    font-size: 28px;
  }

  .section-intro p {
    font-size: 16.5px;
    line-height: 1.65;
  }

  .theme-card,
  .project-card,
  .tool-card,
  .publication-item,
  .contact-card,
  .workflow-step,
  .timeline-item,
  .cv-sidebar,
  .contact-sidebar {
    border-radius: 14px;
  }

  .theme-card,
  .project-card,
  .tool-card,
  .workflow-step,
  .contact-card {
    padding: 24px;
  }

  .methods-grid {
    gap: 10px;
  }

  .methods-grid span,
  .project-tags span,
  .cv-tags span {
    font-size: 13.5px;
    padding: 8px 12px;
  }
}

/* =======================================
   FINAL VISUAL SYSTEM: NAVY + TEAL
======================================= */

:root {
  --color-navy: #12355B;
  --color-navy-dark: #0B2239;
  --color-teal: #0F766E;
  --color-teal-dark: #0B5F59;
  --color-teal-light: #EAF5F4;
  --color-text: #374151;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-bg: #F8FAFC;
  --color-white: #FFFFFF;
}

/* =======================================
   GLOBAL TYPOGRAPHY
======================================= */

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--color-navy);
  letter-spacing: -0.015em;
}

p,
li {
  color: var(--color-text);
}

/* =======================================
   HEADER / NAVIGATION
======================================= */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--color-navy);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-nav a,
nav a {
  color: var(--color-text);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active,
nav a:hover,
nav a.active {
  color: var(--color-teal);
}

/* =======================================
   HERO SECTIONS
======================================= */

.hero {
  background: var(--color-white);
}

.hero h1 {
  color: var(--color-navy);
}

.hero-text p {
  color: var(--color-text);
}

.eyebrow {
  color: var(--color-teal);
  font-weight: 800;
}

.page-hero {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.page-hero::before {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  background: var(--color-teal);
  border-radius: 999px;
  margin-bottom: 26px;
}

.page-hero h1 {
  color: var(--color-navy);
}

.page-hero p {
  color: var(--color-text);
}

/* =======================================
   SECTIONS
======================================= */

.content-section {
  background: var(--color-white);
}

.alt-section {
  background: var(--color-bg);
}

.section-intro h2 {
  color: var(--color-navy);
}

.section-intro p {
  color: var(--color-text);
}

/* =======================================
   BUTTONS
======================================= */

.btn {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: var(--color-teal);
  border: 1px solid var(--color-teal);
  color: var(--color-white);
}

.primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}

.secondary {
  background: transparent;
  border: 1px solid var(--color-teal);
  color: var(--color-teal);
}

.secondary:hover {
  background: var(--color-teal-light);
}

/* =======================================
   CARDS
======================================= */

.theme-card,
.project-card,
.tool-card,
.publication-item,
.contact-card,
.workflow-step,
.timeline-item,
.cv-sidebar,
.contact-sidebar,
.research-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 28px rgba(18, 53, 91, 0.07);
}

.theme-card h3,
.project-card h3,
.tool-card h3,
.publication-content h3,
.workflow-step h3,
.timeline-content h3,
.cv-entry h3,
.contact-card h3,
.research-item h3 {
  color: var(--color-navy);
}

.theme-card p,
.project-card p,
.tool-card p,
.publication-content p,
.workflow-step p,
.timeline-content p,
.cv-entry p,
.contact-card p,
.research-item p {
  color: var(--color-text);
}

.project-card:hover,
.tool-card:hover,
.theme-card:hover {
  box-shadow: 0 18px 45px rgba(18, 53, 91, 0.12);
}

/* =======================================
   LABELS, TAGS, LINKS
======================================= */

.project-label,
.tool-label,
.publication-year,
.cv-date,
.timeline-date,
.workflow-number {
  color: var(--color-teal);
}

.methods-grid span,
.project-tags span,
.cv-tags span {
  background: var(--color-teal-light);
  color: var(--color-teal);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.text-link,
.contact-card a,
.cv-contact-box a,
.publication-links a {
  color: var(--color-teal);
}

.text-link:hover,
.contact-card a:hover,
.cv-contact-box a:hover {
  color: var(--color-teal-dark);
}

.publication-links a,
.contact-links a {
  background: var(--color-teal-light);
  color: var(--color-teal);
}

.publication-links a:hover,
.contact-links a:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* =======================================
   SPECIAL SECTIONS
======================================= */

.home-cta {
  background: var(--color-navy);
  color: var(--color-white);
}

.home-cta h2 {
  color: var(--color-white);
}

.home-cta p {
  color: #E5E7EB;
}

.home-cta .primary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.home-cta .primary:hover {
  background: var(--color-teal-light);
  color: var(--color-navy);
}

.home-cta .secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.home-cta .secondary:hover {
  background: rgba(255,255,255,0.12);
}

/* =======================================
   SIDEBARS
======================================= */

.cv-sidebar,
.contact-sidebar {
  background: var(--color-bg);
}

.cv-sidebar h2,
.contact-sidebar h2 {
  color: var(--color-navy);
}

/* =======================================
   FOOTER
======================================= */

.site-footer {
  background: var(--color-navy-dark);
  color: #D1D5DB;
}

.site-footer p {
  color: #D1D5DB;
}

/* =======================================
   MOBILE MENU
======================================= */

.menu-toggle span {
  background: var(--color-navy);
}

@media (max-width: 950px) {
  .site-nav {
    background: var(--color-white);
  }

  .site-nav a {
    color: var(--color-text);
  }

  .site-nav a.active {
    color: var(--color-teal);
  }
}

/* =======================================
   HOMEPAGE HERO REFINEMENT
======================================= */

.hero {
  min-height: calc(100vh - 72px);
  padding: 78px 8% 86px;
  gap: 72px;
  align-items: center;
}

.hero-text {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1.08;
  margin-bottom: 26px;
}

.hero-text p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.75;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 340px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(18, 53, 91, 0.14);
}

.buttons {
  margin-top: 30px;
}

/* Better desktop header spacing */
.site-header {
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Mobile override after hero refinement */
@media (max-width: 950px) {
  .hero {
    min-height: auto;
    padding: 56px 6% 68px;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(34px, 8vw, 46px);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text p {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-image img {
    max-width: 280px;
  }
}

@media (max-width: 650px) {
  .hero {
    padding: 42px 6% 56px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-image img {
    max-width: 235px;
  }
}

/* =======================================
   HOMEPAGE AFFILIATION STRIP
======================================= */

.affiliation-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 22px 8%;
  background: var(--color-navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.affiliation-strip span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 650px) {
  .affiliation-strip {
    justify-content: flex-start;
    padding: 18px 6%;
    gap: 10px;
  }

  .affiliation-strip span {
    font-size: 13px;
    padding: 7px 11px;
  }
}
/* =======================================
   FINAL HOMEPAGE HERO BALANCE
======================================= */

.hero {
  padding-top: 64px;
  padding-bottom: 72px;
  min-height: auto;
}

.hero-text {
  max-width: 760px;
}

.hero h1 {
  max-width: 760px;
}

.hero-image img {
  max-width: 370px;
  border-radius: 18px;
}

@media (max-width: 950px) {
  .hero {
    padding-top: 48px;
    padding-bottom: 58px;
  }

  .hero-image img {
    max-width: 285px;
  }
}

@media (max-width: 650px) {
  .hero-image img {
    max-width: 240px;
  }
}
