/* Projects Section */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
}

/* For better centering when there are fewer cards than can fill a row */
@media (min-width: 992px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
  }
}

.card {
  background: var(--secondary-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-color);
}

.card-badge {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-description {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(0, 123, 255, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.card-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.card-btn:not(.secondary) {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card-btn.secondary {
  background-color: var(--text-color);
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card-btn:hover:not(.secondary) {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.2);
}

.card-btn.secondary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.2);
}

/* Style for the GitHub icon */
.github-icon {
  margin-right: 8px;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  content: url('../../assets/icons/cloud/git.svg');
  filter: brightness(0) invert(1);
}

/* Dark mode adjustments */
.dark-mode .card-btn.secondary {
  background-color: var(--accent-color);
  color: white;
}

.dark-mode .card-btn.secondary:hover {
  background-color: var(--primary-color);
} 