.grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 100px)) !important;
}
.card {
  background: linear-gradient(145deg, #1d1d1d, #2b2b2b);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  max-width: 200px;
  max-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.card:hover {
  transform: scale(1.05);
}
.card img.project-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 10px;
}
.card h3 {
  font-size: 1.1rem;
  margin: 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: #fff;
  text-align: center;
  position: relative;
}
.modal-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 10px;
}
.close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-links {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.modal-btn {
  display: inline-block;
  padding: 6px 14px;  
  border-radius: 20px; 
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  background: #3498db;
  color: #fff;
  transition: background 0.3s, transform 0.2s;
}

.modal-btn:hover { 
  opacity: 0.9; 
  transform: scale(1.05);
}
.modal-btn.discords { 
    background: #5865F2; 
}
.modal-btn.store   { 
    background: #e67e22; 
}
.modal-btn.site {
    background: #0b9b88; 
}