body {
  padding: 3rem 2rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", sans-serif;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: rgb(45, 45, 45);
}

section,
footer {
  max-width: 1600px;
  margin: 0 auto;
}

#header {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.portfolio-name {
  font-size: 4rem;
  font-weight: bold;
  position: absolute;
  z-index: 1;
  color: white;
  bottom: 1rem;
  left: 1rem;
}

.header__background {
  position: absolute;
  z-index: -12;
  top: 0;
  left: 0;
  width: 100%;
  height: 25rem;
  background-color: rgb(159, 245, 178);
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0%, 100% 59%, 0% 100%);
  box-shadow: 0 1rem rgba(255, 0, 0, 0.963);
}

.content__picture {
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  min-height: calc(100% + 20px); /* extra height relative to content */
  box-shadow: 1rem 1rem 1rem rgba(0, 0, 0, 0.1);
}

.content__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content__bio {
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 2rem;
  box-shadow: 1rem 1rem 1rem rgba(0, 0, 0, 0.1);
}

#header .content__bio-socials {
  align-self: flex-end;
  margin-top: 2rem;
}

#header .content__bio-socials * {
  font-size: 1.5rem;
}

/* Work section */
#work {
  padding: 3.5rem 0;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.work__card {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card__img {
  height: 250px;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__content {
  padding: 1rem 1rem 3rem 1rem;
}

.card__content p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
}
.card__title {
  font-size: 1.2rem;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.card__links {
  display: flex;
  gap: 1rem;
}

/* Footer */
footer {
  background-color: rgb(0, 0, 0);
  color: rgb(236, 236, 236);
  padding: 2rem;
  border-radius: 1rem;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__content .content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content__bio-socials {
  display: flex;
  gap: 1rem;
}

.content__bio-socials * {
  font-size: 2rem;
}

.footer__image {
  max-width: 50%;
  border-radius: 0.5rem;
  overflow: hidden;
}

.footer__contact-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Mobile (up to 767px) ===== */
@media (max-width: 767px) {
  /* styles for phones */
  .portfolio-name {
    font-size: 2rem;
  }
  .work__grid {
    grid-template-columns: 1fr;
  }
  #header {
    flex-direction: column;
  }
  .footer__content {
    flex-direction: column;
    gap: 2rem;
  }
  .footer__image {
    max-width: 100%;
  }
  #work {
    padding: 2rem 0;
  }
  body {
    padding: 2rem;
  }
}

/* ===== Tablet (768px to 1024px) ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  /* styles for tablets */
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-name {
    font-size: 3rem;
  }
}
