#references {
  background-image: url("../images/backgroundR.jpg");
  position: relative;
  background-size: auto 500px;
  background-position: right;
  background-repeat: no-repeat;
  overflow: hidden;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: calc(3 * 310px * 30px);
  margin: 0 auto;
  justify-content: center;
  padding: 0 32px;
  box-sizing: border-box;
}

.references-card {
  position: relative;
  overflow: hidden;

  padding-right: 8px;
  padding-left: 16px;
  padding-bottom: 8px;

  background: radial-gradient(
    circle at center,

    rgba(21, 112, 147, 0.08) 0%,
    rgba(34, 165, 176, 0.12) 45%,
    rgba(12, 65, 73, 0.85) 100%
  );
  backdrop-filter: blur(8px);
  border: 1px solid rgba(89, 253, 252, 0.15);
  border-radius: 32px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.references-h3 {
  color: var(--text);
  text-align: center;
  font-size: 24px;
  color: #59fdfc;
  padding-top: 8px;
}

.references-p {
  color: #cbd5e1;
  text-align: left;
  margin: 0;

  padding-bottom: 8px;
  line-height: 1.4rem;
  padding: 8px 16px;
}

.ref-btn {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  background: #000;

  text-decoration: none;
  text-align: center;
  color: #fff;

  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;

  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.references-card:hover .ref-btn {
  opacity: 1;
  color: var(--accent);
}

.references-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(89, 253, 252, 0.18);
}
