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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f5;
}

#container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.card a {
  text-decoration: none;
  display: block;
}

.card-image {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}

.card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.card-title {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 32px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin: 0;
}

.card-arrow {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  transition: background 0.3s ease, transform 0.3s ease;
}

.card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(3px, -3px);
}

canvas {
  width: 100vw;
  height: 100vh;
}

@media (max-width: 768px) {
  #container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 15px;
  }
  
  .card-image {
    height: 300px;
  }
  
  .card-title {
    font-size: 24px;
  }
}
