/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600&display=swap');

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background-color: hsl(214, 17%, 92%);
  padding: 1.5rem;
  min-height: 100vh;
}

/* Testimonial Grid Container */
.testimonial-grid {
  max-width: 1110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Individual Testimonial Card */
.testimonial {
  background: hsl(0, 0%, 100%);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Testimonial Variants */
.testimonial.daniel {
  background-color: hsl(263, 55%, 52%);
  color: hsl(0, 0%, 100%);
  background-image: url('./images/bg-pattern-quotation.svg');
  background-repeat: no-repeat;
  background-position: top right 1.5rem;
  background-size: 104px;
}

.testimonial.jonathan {
  background-color: hsl(217, 19%, 35%);
  color: hsl(0, 0%, 100%);
}

.testimonial.jeanette {
  background-color: hsl(0, 0%, 100%);
  color: hsl(217, 19%, 35%);
}

.testimonial.patrick {
  background-color: hsl(219, 29%, 14%);
  color: hsl(0, 0%, 100%);
}

.testimonial.kira {
  background-color: hsl(0, 0%, 100%);
  color: hsl(217, 19%, 35%);
}

/* Profile Section */
.profile {
  display: flex;
  align-items: center;
  margin-bottom: 1.125rem;
}

.profile-image {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  margin-right: 1rem;
  border: 2px solid transparent;
}

.testimonial.daniel .profile-image,
.testimonial.patrick .profile-image {
  border-color: hsl(264, 82%, 80%);
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
}

.status {
  font-weight: 500;
  font-size: 0.6875rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

/* Testimonial Content */
.testimonial-title {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.testimonial.daniel .testimonial-title {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-weight: 500;
  opacity: 0.7;
  line-height: 1.4;
}

/* Attribution */
.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 2rem;
  color: hsl(224, 10%, 45%);
}

.attribution a {
  color: hsl(228, 45%, 44%);
  text-decoration: none;
}

.attribution a:hover {
  text-decoration: underline;
}

/* Mobile Design - 375px */
@media (min-width: 375px) {
  body {
    padding: 1.5rem;
  }
}

/* Tablet and Small Desktop */
@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial.daniel {
    grid-column: 1 / -1;
  }
}

/* Desktop Design - 1440px */
@media (min-width: 1024px) {
  body {
    padding: 10.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.875rem;
  }
  
  /* Grid positioning for desktop layout */
  .testimonial.daniel {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  
  .testimonial.jonathan {
    grid-column: 3 / 4;
    grid-row: 1;
  }
  
  .testimonial.jeanette {
    grid-column: 1 / 2;
    grid-row: 2;
  }
  
  .testimonial.patrick {
    grid-column: 2 / 4;
    grid-row: 2;
  }
  
  .testimonial.kira {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }
}