@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;700&display=swap');

body {
  background: #0b0f19;
  color: #d8d8d8;
  font-family: 'Titillium Web', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 900px;
}
.card {
  position: relative;
  height: 180px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);

  /* 🔥 make image fully cover the card, no blank spaces */
  background: #111 var(--bg) center/cover no-repeat;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #00ffff, #ff00ff, #00ffff);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.3);
}

/* The last card spans the full width */
.card.large {
  grid-column: span 2;
  height: 200px;
}


@media (max-width: 700px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .card.large {
    grid-column: span 1;
  }
  .card {
    height: 150px;
    font-size: 1.2rem;
  }
}
