.project-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem 2rem;
  padding-left: 80px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ddd;
}
 
/* Global project page body text */
.project-page p,
.project-page li,
.project-page .image-caption,
.project-page .project-subtitle,
.project-page .result-card p,
.project-page .iteration-card p,
.project-page .challenge-item p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.project-hero-text {
  flex: 1 1 400px;
  min-width: 0;
}

.project-hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.project-hero-figure {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
}

.project-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.project-hero-figure .image-caption {
  width: 100%;
  text-align: center;
  margin: 0.75rem 0 0 0;
  padding: 0;
}

@media (max-width: 790px) {
  .project-hero-figure {
    max-width: 100%;
    width: 100%;
  }
}

.project-hero-image img,
.project-image-block img,
.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.project-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

.project-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5em);
  margin: 0;
  line-height: 1.1;
}

.project-subtitle {
  max-width: 600px;
  color: #ddd;
  margin-top: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}

.project-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 1rem;
}

.project-section {
  padding: 0.5rem 0;
  margin-bottom: 0;
}

.project-section h2 {
  font-size: 2rem;
  margin: 0 0 2rem 0;
  font-weight: 700;
}

.project-section p {
  margin-bottom: 1rem;
}

.results-grid,
.iteration-grid,
.challenge-list,
.project-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
 
.result-card,
.iteration-card,
.challenge-item {
  background-color: #282a2b;
  border-radius: var(--radius);
  padding: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover,
.iteration-card:hover,
.challenge-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.result-card h3,
.iteration-card h3,
.challenge-item h3 {
  margin: rem 0 0.5rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
  
}

.result-card p,
.iteration-card p,
.challenge-item p {
  color: #ccc;
  margin: 0;
}

.project-two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.project-two-column > div:first-child {
  flex: 1 1 400px;
}

.project-image-block {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-list {
  padding-left: 1.2rem;
  line-height: 1.6;
}

.image-caption {
  margin-top: 0.75rem;
  color: #ccc;
  text-align: center;
}

/* FIXED BUTTON STYLES */

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-links a {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 58px;
  min-width: 190px;
  padding: 0 1.5rem;

  border-radius: var(--radius);
  text-decoration: none;

  border: 1px solid rgba(255,255,255,0.15);

  box-sizing: border-box;

  font-size: 0.9rem;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.project-links a:hover {
  transform: translateY(-2px);
}

/* LinkedIn button */

.linkedin-button {
  width: 58px;
  min-width: 58px !important;
  height: 58px;
  padding: 0 !important;
}

.linkedin-button img {
  width: 58px;
  height: 58px;
  display: block;
}

.project-back-button {
  position: fixed;
  top: 2rem;
  left: 90px;
  z-index: 2000;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: #282a2b;
  color: #ddd;

  padding: 0.75rem 1.2rem;

  border-radius: var(--radius);

  text-decoration: none;

  width: fit-content;

  white-space: nowrap;
}

@media (max-width: 975px) {
  .results-grid,
  .iteration-grid,
  .challenge-list,
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 790px) {

  .project-page {
    padding: 5rem 1rem 3rem 1rem;
    padding-left: 1rem;
  }

  .project-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .project-hero h1 {
    font-size: 2.5em;
  }

  .project-hero-text,
  .project-hero-image,
  .project-two-column > div:first-child,
  .project-image-block {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .project-two-column {
    flex-direction: column;
    align-items: stretch;
  }

  .results-grid,
  .iteration-grid,
  .challenge-list,
  .project-gallery {
    gap: 2rem;
  }

  .project-section {
    padding: 0.5rem 0;
  }

  .project-section h2 {
    font-size: 2rem;
  }

  .project-hero-image img,
  .project-image-block img,
  .project-gallery img {
    width: 100%;
    max-width: 100%;
  }

  .result-card,
  .iteration-card,
  .challenge-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* FIXED MOBILE BUTTONS */

  .project-links {
    gap: 0.8rem;
    justify-content: center;
  }

  .project-links a {
    min-width: 0;
    flex: 1 1 auto;
    height: 54px;
    font-size: 1rem;
    padding: 0 1rem;
  }

  .linkedin-button {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }

  .linkedin-button img {
    width: 54px;
    height: 54px;
  }

  .project-back-button {
    top: 1rem;
    left: 1rem;
    right: auto;
    width: fit-content;
  }
}
