/* about.css (import styles.css first) */
@import url('styles.css');

.site-main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  height: auto;
  max-width: 1200px;
  margin: 0 auto;
}

.about-section {
  margin: 0 auto;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: row;
  gap: 6rem;
  align-items: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.about-image {
  width: 100%;
  min-height: 300px;
  height: auto;
  border-radius: 5px;
  border: 2px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
  min-width: 300px;
}

.credit-section {
  margin: 0 auto;
  padding: 2rem 2rem;
}

.additional-projects{
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.additional-projects h2 {
  font-size: 2rem;
  text-align: center;
}

.projects-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  flex-direction: row;
}

.project-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-card img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid #1e1e1e;
  box-shadow: 0 2px 6px rgba(107, 97, 97, 0.1);
}

.project-card p{
  width: auto;
  max-width: 300px;
  padding: 0.5rem;
  font-size: 1rem;
  color: #1e1e1e;
  margin-top: 0.5rem;
  text-align: center;
  text-decoration: none !important;
}

.project-card:hover {
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .about-section {
    flex-direction: column;
    align-items: center;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
    align-items: center;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 100%;
    max-width: 300px;
  }

  .about-image {
    width: 100%;
    max-width: 600px;
  }
}