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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 81%);
  padding: 100px;
}

.container {
  width: 900px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.first {
  grid-column: 1/3;
  grid-row: 1/2;
  background-color: hsl(263, 55%, 52%);
  color: white;
}

.second {
  grid-column: 3/4;
  grid-row: 1/2;
  background-color: hsl(217, 19%, 35%);
  color: white;
}

.third {
  grid-column: 1/2;
  grid-row: 2/3;
  background-color: white;
}

.fourth {
  grid-column: 2/4;
  grid-row: 2/3;
  background-color: hsl(0, 0%, 7%);
  color: white;
}
.fivth {
  grid-column: 4/5;
  grid-row: 1/3;
  background-color: white;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card .head {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.head img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.head p {
  font-size: 10px;
  opacity: 0.6;
}

.testimonial {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 20px;
}

.description {
  opacity: 0.6;
}

@media (max-width: 768px) {
  body {
    padding: 50px;
  }
  .container {
    display: flex;
    flex-direction: column;
  }
  .card {
    width: 100%;
  }
}

.card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  width: 60%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 20px;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

.modal-inner {
  color: hsl(217, 19%, 35%);
}

#toggleDark {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 15px;
  background: black;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  z-index: 1000;
}

body.dark {
  background-color: hsl(0, 0%, 15%);
  color: white;
}

body.dark .card {
  background-color: hsl(0, 0%, 25%) !important;
  color: white;
}

body.dark .third,
body.dark .fivth {
  color: white !important;
  background-color: hsl(0, 0%, 20%) !important;
}

body.dark .modal-content {
  background-color: hsl(0, 0%, 20%);
  color: white;
}

body.dark #toggleDark {
  background: white;
  color: black;
}

body,
.card,
.modal-content {
  transition: background-color 0.3s, color 0.3s;
}
