#reviews {
  background-color: #f8fcf8;
  padding: 3rem 1rem ;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Subtle background accent for the section */
#reviews::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(74, 222, 128, 0.08) 0%,
    rgba(248, 252, 248, 0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.review-section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.review-section-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 50ch;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#review-grid {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
}

.review-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px -15px rgba(21, 128, 61, 0.15),
    0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Decorative background quote */
.review-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 10rem;
  font-family: Georgia, serif;
  color: rgba(74, 222, 128, 0.08);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.reviewer-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.reviewer-avatar-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #15803d 0%, #4ade80 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 8px 16px -4px rgba(21, 128, 61, 0.4);
  flex-shrink: 0;
  position: relative;
}

/* Subtle glowing ring pulse */
.reviewer-avatar-initials::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.3);
  animation: pulse-ring 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.review-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  transition:
    opacity 0.5s ease-out,
    filter 0.5s ease-out,
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.review-content.content-hiding {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.9) translateY(10px);
}

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

.reviewer-name {
  font-weight: 700;
  font-size: 1.125rem;
  color: #1a202c;
  margin-bottom: 0.125rem;
}

.reviewer-role {
  font-size: 0.875rem;
  color: #718096;
  font-weight: 500;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a5568;
  font-style: italic;
  flex-grow: 1;
  margin: 0;
  position: relative;
}

.star-rating {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.25rem;
}

.star-rating svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.star-rating svg.inactive {
  color: #cbd5e1;
  filter: none;
}
