/* BIO */

.bio {
  margin-top: 0;
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.bio-inner {
  width: 66.66%;          /* 2/3 of the page */
  max-width: 1200px;       /* prevents it from getting too wide on big screens */
/*  background: #f7f7f7;*/
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.bio-inner h2 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.bio-inner p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #BBB;
}

/* Mobile & tablets */
@media (max-width: 768px) {
  .bio-inner {
    width: 100%;
    padding: 1.5rem;
  }

  .bio-inner h2 {
    font-size: 1.6rem;
  }
}

/* PROJECTS */

.projects {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.projects-inner {
  width: 66.66%;           /* 2/3 width, like the bio */
  max-width: 1200px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.projects-inner h2 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

/* Project cards layout */
.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;         /* remove link underline */
  color: inherit;                /* keep text color normal */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background-color 0.15s ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background-color: #333;
}

/* Image styling */
.project-image-wrapper {
  overflow: hidden;
  border-radius: 10px;
  max-width: 300px;
}

.project-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.03);
}

/* Text part */
.project-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.project-content p {
  margin: 0;
  line-height: 1.7;
  color: #BBB;
}

/* Mobile & small screens */
@media (max-width: 900px) {
  .projects-inner {
    width: 100%;
  }

  .project-card {
    grid-template-columns: 1fr;   /* image on top, text below */
  }
}

@media (max-width: 600px) {
  .projects {
    padding: 2.5rem 1rem;
  }

  .projects-inner h2 {
    font-size: 1.6rem;
  }

  .project-card {
    padding: 1.25rem;
  }
}
