@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");

:root {
  /* Colors */

  /* 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%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Barlow Semi Condensed", sans-serif;
  background-color: var(--Grey-100);
  color: var(--Dark-blue);
}

img {
  border-radius: 100%;
}
main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 3rem 2rem;
  gap: 1.5rem;
}

.grid__item {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: #000;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  height: fit-content;
}

.profile {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.profile__info {
  display: flex;
  flex-direction: column;
}

.name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--Purple-500);
}

.status {
  font-size: 1rem;
  color: var(--Grey-200);
}

h1.title {
  font-size: 1.5rem;
  font-weight: 500;
  width: 100%;
}

p.quote {
  font-size: 0.9rem;
  font-weight: 400;
}

/* Grid Item #1 */
.grid__item:nth-child(1) {
  background: var(--Purple-500);
  /* height: 100%; */
}

.grid__item:nth-child(1) img {
  border: 3px solid var(--Grey-200);
}

.grid__item:nth-child(1) .name {
  color: var(--White);
}

.grid__item:nth-child(1) .status {
  color: var(--Grey-200);
}

.grid__item:nth-child(1) h1.title {
  color: var(--White);
}

.grid__item:nth-child(1) p.quote {
  color: var(--Grey-200);
}

/* Grid Item #2 */

.grid__item:nth-child(2) {
  background: var(--Grey-500);
}

.grid__item:nth-child(2) h3.name {
  color: var(--White);
}

.grid__item:nth-child(2) p.status {
  color: var(--Grey-200);
}

.grid__item:nth-child(2) h1.title {
  color: var(--White);
}

.grid__item:nth-child(2) p.quote {
  color: var(--Grey-200);
}

/* Grid Item #3 */

.grid__item:nth-child(3),
.grid__item:nth-child(5) {
  background: var(--White);
}

.grid__item:nth-child(3) h3.name,
.grid__item:nth-child(5) h3.name {
  color: var(--Grey-500);
}

.grid__item:nth-child(3) p.status,
.grid__item:nth-child(5) p.status {
  color: var(--Grey-400);
}

.grid__item:nth-child(3) h1.title,
.grid__item:nth-child(5) h1.title {
  color: var(--Grey-500);
}

.grid__item:nth-child(3) p.quote,
.grid__item:nth-child(5) p.quote {
  color: var(--Grey-400);
  padding-left: 0.1rem;
}

/* Grid Item #4 */

.grid__item:nth-child(4) {
  background: var(--Black);
}

.grid__item:nth-child(4) img {
  border: 3px solid var(--Purple-500);
}

.grid__item:nth-child(4) h3.name {
  color: var(--Grey-200);
}

.grid__item:nth-child(4) p.status {
  color: var(--Grey-400);
}

.grid__item:nth-child(4) h1.title {
  color: var(--Grey-200);
}

.grid__item:nth-child(4) p.quote {
  color: var(--Grey-400);
  padding-left: 0.1rem;
}

@media (min-width: 600px) {
  main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    /* grid-template-rows: repeat(auto-fit, minmax(300px, 3fr)); */
  }
  .grid__item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .grid__item:nth-child(3),
  .grid__item:nth-child(4) {
    height: 100%;
  }
}

@media (min-width: 900px) {
  main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    /* grid-template-rows: repeat(auto-fit, minmax(300px, 3fr)); */
  }
  .grid__item:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 2;
  }
.grid__item:nth-child(2) {
    height: fit-content;
    grid-column: 1/2 ;
    grid-row: 2 / 3;
  }
  
  .grid__item:nth-child(4){
    grid-column: 2/3;
    grid-row: 2 / 3;
    grid-row: span 2;
  }
  .grid__item:nth-child(5){
    grid-column: 3/3;
    grid-row: 2 / 3;
    grid-row: span 2;
    height: 100%;
  }
  .grid__item:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
}

@media (min-width: 1200px) {
  main {
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    /* grid-template-rows: repeat(auto-fit, minmax(300px, 3fr)); */
    height: 90dvh;
    padding: 2rem 7rem;
  }
  p.quote {
  font-size: 1.025rem;
  line-height: 1.3;
  font-weight: 400;
}
  .grid__item:nth-child(1) {
    grid-column: span 2;
    grid-row: 1 / 1;
    height: 100%;
    
  }
  
  .grid__item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    height: 100%;
  }
  
  .grid__item:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 2;
    /* height: 100%; */
  }
  
  .grid__item:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2 / 2;
    /* height: 100%; */
  }
  
  .grid__item:nth-child(5) {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
    /* height: 100%; */
  } 
}