.references-section {
  padding: 10rem 2rem 5rem;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.references-title {
  text-align: center;
  font-size: 3.6rem;
  color: var(--primary-color);
  margin-bottom: 4rem;
  position: relative;
  animation: fadeInDown 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.references-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-color);
  border-radius: 2px;
}

.references-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.reference-card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  opacity: 0;
}

.reference-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.reference-card:nth-child(1) {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.reference-card:nth-child(2) {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

.reference-card:nth-child(3) {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

.reference-card:nth-child(4) {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1.1s;
}

.reference-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.reference-content {
  padding: 2rem;
  text-align: center;
}

.reference-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.reference-card p {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .references-section {
    padding: 8rem 1rem 4rem;
  }

  .references-title {
    font-size: 3rem;
  }

  .references-container {
    gap: 2rem;
  }

  .reference-card {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .references-section {
    padding: 7rem 1rem 3rem;
  }

  .references-title {
    font-size: 2.6rem;
  }

  .reference-card {
    max-width: 100%;
  }
}
