@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* Primary */
  --purple-50: hsl(260, 100%, 95%);
  --purple-300: hsl(264, 82%, 80%);
  --purple-500: hsl(263, 55%, 52%);

  /* Neutral */
  --white: hsl(0, 0%, 100%);
  --grey-100: hsl(214, 17%, 92%);
  --grey-200: hsl(0, 0%, 81%);
  --grey-400: hsl(224, 10%, 45%);
  --grey-500: hsl(217, 19%, 35%);
  --dark-blue: hsl(219, 29%, 14%);
  --black: hsl(0, 0%, 7%);
}

body {
  font-family: "Barlow Semi Condensed", sans-serif;
}

.container {
  max-width: 90%;
  margin: 3rem auto;
  /* padding: 2rem; */
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-areas:
    "one one two five"
    "three four four five";
    grid-template-rows: auto;
}

img {
  max-width: 2.2rem;
  border-radius: 50%;
  height: auto;
}
.items {
  box-shadow: 34px 33px 56px -5px rgba(0,0,0,0.35);
  border-radius: 0.5rem;
}
.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.items .details h3 {
  margin: 0 0 0.3rem;
}
.items h2 {
  margin: 1rem 0;
}

.item1 img,
.item4 img {
  border: 3px solid var(--purple-300);
}
.item1 h3,
.item2 h3,
.item4 h3 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
}

.item1 h4,
.item2 h4,
.item4 h4 {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--white);
}

.item3 h3,
.item5 h3 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark-blue);
}
.item3 h4,
.item5 h4 {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--grey-500);
}

.item1 h2,
.item2 h2,
.item4 h2 {
    font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}
.item3 h2,
.item5 h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-blue);
}
.item1 p,
.item2 p,
.item4 p {
  font-size: 1rem;
  color: var(--white);
}
.item3 p,
.item5 p {
  font-size: 1rem;
  color: var(--grey-500);
}

.item1 {
  grid-area: one;
  background: url(./images/bg-pattern-quotation.svg);
  background-repeat: no-repeat;
  background-position: top 0 right 5rem;
  background-size: 7rem;
  background-color: var(--purple-500);
  padding: 1.8rem;
  padding-top: 2rem;

}
.item2 {
  grid-area: two;
  background-color: var(--grey-500);
  padding: 1.8rem;
  
}
.item3 {
  grid-area: three;
  background-color: var(--white);
  padding: 1.8rem;
}
.item4 {
  grid-area: four;
  background-color: var(--dark-blue);
  padding: 1.8rem;
  padding-top: 2rem;
}
.item5 {
  grid-area: five;
  background-color: var(--white);
  padding: 1.8rem ;
}


@media (max-width: 1286px) {
  .container {
    grid-template-areas:
      "one two three"
      "four five five";
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }  
}

@media (max-width: 1000px) {
  .container {
    grid-template-areas:
      "one two "
      "three four "
      " five five";
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }  
}

@media (max-width: 710px) {
  .container {
    grid-template-areas:
      "one"
      "two"
      "three"
      "four"
      "five";
  }  
  .item1{
    background-image: none;
  }
  
}