
/* ========================================
   GENERAL WEBSITE STYLING
======================================== */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #1f1f1f;
  line-height: 1.6;
}

header {
  background: #174A52;
  color: white;
  text-align: center;
  padding: 47px 15px;
}

header h1 {
  margin: 0;
  font-size: 3.2rem;
}

header p {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1.15rem;
}

nav {
  margin-top: 28px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  margin: 0 14px;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 950px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

section {
  margin-bottom: 70px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}


/* ========================================
   HOMEPAGE - ABOUT
======================================== */

#about p {
  font-size: 1.05rem;
  max-width: 900px;
}

.about-link {
  display: inline-block;
  margin-top: 12px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.about-link:hover {
  text-decoration: underline;
}


/* ========================================
   HOMEPAGE - PROJECTS
======================================== */

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: white;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.project-image-wrapper {
  width: 100%;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.project-content {
  min-width: 0;
}

.project-content h3 {
  margin: 0 0 18px;
  font-size: 1.7rem;
  line-height: 1.25;
}

.project-content p {
  margin: 0 0 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tags span {
  background: #eef2f7;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.project-link {
  display: inline-block;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.project-link:hover {
  text-decoration: underline;
}


/* ========================================
   HOMEPAGE - CONTACT
======================================== */

#contact {
  padding-bottom: 20px;
}

.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.contact-button.secondary {
  background: #e8edf4;
  color: #1f1f1f;
}

.contact-button:hover {
  opacity: 0.9;
}


/* ========================================
   PROJECT DETAIL PAGE
======================================== */

.project-header {
  padding: 60px 20px;
}

.project-hero {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.project-hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin: 10px 0 18px;
}

.project-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.7;
}

.project-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.hero-tags {
  justify-content: center;
  margin: 24px 0 26px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.project-header nav {
  margin-top: 22px;
}

.project-page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}


/* PROJECT OVERVIEW */

.project-intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.project-summary-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.project-summary-card h3 {
  margin-top: 0;
}


/* ANALYSIS PIPELINE */

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

.pipeline-step {
  background: white;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.pipeline-step span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 8px;
}

.pipeline-step h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.pipeline-step p {
  margin: 0;
  font-size: 0.95rem;
}


/* PROJECT RESULTS */

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

.result-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.result-card h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.result-card p {
  margin: 0;
}


/* PROJECT VISUALISATIONS */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.project-gallery figure {
  margin: 0;
  background: white;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.project-gallery img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.project-gallery figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #555;
}

.gallery-feature {
  grid-column: 1 / -1;
}

.gallery-feature img {
  max-height: 500px;
}


/* PROJECT OUTPUT BUTTONS */

.output-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.output-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.output-button.secondary {
  background: #e8edf4;
  color: #1f1f1f;
}


/* ========================================
   ABOUT PAGE - GENERAL
======================================== */

.about-page {
  max-width: 950px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.about-page section {
  margin-bottom: 65px;
}

#about-me p {
  font-size: 1.05rem;
  max-width: 900px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-card {
  background: white;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.about-card h3 {
  font-size: 1.3rem;
  margin: 26px 0 12px;
}

.about-card h3:first-child {
  margin-top: 0;
}

.about-card p {
  margin: 0 0 18px;
  line-height: 1.75;
}

.about-card .project-tags {
  margin-bottom: 18px;
}


/* ========================================
   ABOUT PAGE - EDUCATION
======================================== */

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 35px;
  align-items: center;
}

.education-content {
  min-width: 0;
}


/* GRADUATION PHOTO */

.education-grid .graduation-photo {
  width: 100%;
  margin: 0;
}

.education-grid .graduation-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 12px;
}

.graduation-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
}


/* ========================================
   ABOUT PAGE - PERSONAL LIFE PHOTOS
======================================== */

.personal-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin: 25px 0 35px;
}

.personal-gallery figure {
  margin: 0;
  width: 390px;
  max-width: 100%;
  min-width: 0;
}

.personal-gallery img {
  display: block;
  width: 100%;
  height: 285px;
  object-fit: cover;
  border-radius: 12px;
}

.personal-gallery figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
}


/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 850px) {

  /* PROJECT DETAIL PAGE */

  .project-hero h1 {
    font-size: 2.2rem;
  }

  .project-intro-grid,
  .pipeline-grid,
  .results-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery img {
    max-height: none;
  }

}


@media (max-width: 800px) {

  /* GENERAL */

  header {
    padding: 50px 20px;
  }

  header h1 {
    font-size: 2.4rem;
  }

  nav a {
    display: inline-block;
    margin: 8px 10px;
  }

  main {
    padding: 35px 18px 60px;
  }

  h2 {
    font-size: 1.8rem;
  }

  /* HOMEPAGE */

  .project-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }

  .project-content h3 {
    font-size: 1.4rem;
  }

  /* ABOUT PAGE */

  .about-page {
    padding: 35px 18px 60px;
  }

  .about-card {
    padding: 22px;
  }

  /* EDUCATION */

  .education-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .education-grid .graduation-photo {
    width: 100%;
    max-width: 345px;
    margin: 0 auto;
  }

  /* PERSONAL PHOTOS */

  .personal-gallery figure {
    width: 390px;
    max-width: 100%;
  }

}


/* Consistent page alignment */

main,
.about-page {
  width: 100%;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
