.playwrite-us-modern-regular {
  font-family: "Playwrite US Modern", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.montserrat-regular {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

:root {
  --max-width: 1100px;
  --drop-shadow: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
  --primary-color: rgb(189, 213, 189);
  --secondary-color: rgb(255, 254, 248);
  --h1-size: 4rem;
  --h2-size: 3rem;
  --h3-size: 1.5rem;
  --h1-color: rgb(255, 254, 249);
  --std-gap: 1rem;
  --p-color: rgb(57 57 58);
  --card-color: rgb(251, 251, 246);
  --glow-color: rgba(255 134 83);
  --alt-color: rgb(40 116 115);
}

body {
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: "Montserrat", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--p-color);
}

a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: var(--h2-size);
  font-family: "Playwrite US Modern", "Courier New", Courier, monospace;
}

h2,
h3 {
  font-family: "Playwrite US Modern", "Courier New", Courier, monospace;
}

address h2 {
  font-style: normal;
}

header {
  display: flex;
  flex-direction: column;
}

.profile,
.card-container,
.card-container img,
footer img {
  border-radius: 8px;
}

.profile {
  float: left;
  min-width: clamp(300px, 100%, 420px);
  min-height: 450px;
  margin-top: 50px;
  background-image: url("../images/jane_doe_profile.webp");
  display: flex;
  background-size: cover;
  background-position: center;
  justify-content: center;
  z-index: 2;
  transition: transform 1s ease;
}

.profile h1 {
  transition: transform 1s ease-in-out;
  font-family: "Playwrite US Modern";
}

.profile-summary {
  border-radius: 0 8px 8px 0;
  margin-top: 100px;
  padding: 2rem;
  min-height: min-content;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--secondary-color);
  transition: margin 1s ease;
}

.social-bar {
  align-self: flex-end;
}

.social-bar a {
  font-size: calc(var(--h3-size) * 1.5);
}

.page,
.footer-content {
  margin: 34px 55px;
  max-width: var(--max-width);
}

.social-bar {
  margin: 0;
  padding: 0;
}

.social-bar li {
  list-style: none;
  display: inline;
  padding: 0 8px;
}

.profile,
.bg-wrap,
.about-me,
.card-container,
footer img {
  filter: var(--drop-shadow);
}

footer,
.bg-wrap {
  width: 100vw;
}

.bg-wrap {
  position: absolute;
  top: 0;
  transform: translate(0%, -20%);
  z-index: -10;
}

.bg-decor {
  width: 100%;
  min-height: 600px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 0% 100%);
  background-color: var(--primary-color);
}

.profile h1 {
  font-size: var(--h1-size);
  color: var(--h1-color);
  align-self: flex-end;
}

main {
  padding: 34px 0;
}

.my-work-container {
  min-height: min(100vh, 600px);
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-items: center;
  gap: 3rem;
}

.project-title,
.card-container p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-title {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.card-container p {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.card-container {
  display: grid;
  max-width: 400px;
  min-height: 450px;
  padding: 13px;
  background-color: var(--card-color);
  transition: all 0.5s ease;
}

.card-container img {
  border: 1px solid rgb(227, 227, 227);
  min-width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-title,
.project-actions {
  font-size: var(--h3-size);
}

.project-details {
  display: grid;
  grid-template: min-content auto / auto auto;
  align-items: center;
}

.project-details .project-actions {
  grid-column: 2;
}

footer {
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  display: grid;
  grid-template: 3fr 1fr / 1fr 1fr;
  justify-items: center;
  gap: 2rem;
}

.footer-content address {
  display: flex;
  flex-direction: column;
  justify-items: center;
  gap: 1rem;
}

.footer-content :not(h2) {
  font-size: 1rem;
}

.footer-content .social-bar {
  align-self: flex-start;
}

.footer-content .social-bar i {
  font-size: var(--h3-size);
}

.footer-content address ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-content img {
  grid-column: 2;
  min-height: 100%;
  align-self: center;
  object-fit: cover;
  object-position: left;
}

.credit {
  grid-column: 1 / span 2;
  align-self: center;
  justify-self: center;
  text-align: center;
  width: 100%;
}

.card-container:hover,
a:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 5px var(--glow-color));
}
@media (max-width: 1100px) and (min-width: 751px) {
  .about-me .social-bar {
    display: none;
  }

  .profile {
    transform: scale(1.01) translateX(-1%) translateY(-3%);
    margin-right: 1rem;
  }

  .profile h1 {
    transform: translateX(85%) translateY(-370%);
  }

  .profile-summary {
    border-radius: 8px;
    display: block;
    margin-top: 8rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 750px) {
  .page {
    margin: 21px 21px;
  }

  header {
    align-items: center;
    justify-content: center;
  }

  main h2 {
    align-self: center;
  }

  .about-me {
    display: flex;
    flex-direction: column;
    justify-items: center;
    filter: none;
  }

  .profile {
    margin-top: 34px;
  }

  .profile-summary {
    margin-top: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .social-bar {
    align-self: center;
  }

  .project-container {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 3rem;
  }

  .footer-content {
    grid-template: repeat(3, auto) / 1fr;
    margin: 0;
    padding-top: 21px;
  }

  .footer-content address {
    margin: 0 34px;
  }

  .footer-content address h2 {
    align-self: center;
  }

  .footer-content .social-bar {
    align-self: center;
  }

  .footer-content img {
    grid-column: 1;
    width: 100vw;
    filter: none;
  }

  .credit {
    grid-column: 1;
    grid-row: 2;
  }
}
