.projects-section {
  margin-top: 4rem;
}

.projects-section h2 {
  font-weight: 600;
  margin-bottom: 2rem;
  color: #4F46E5;
  /* color: var(--text-dark); */
}

body.light-mode .projects-section h2 {
  color: #4F46E5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background-color: var(--bg-dark);
  color: var(--text-dark);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  text-decoration: none;
}

body.light-mode .project-card {
  background-color: var(--bg-light);
  color: var(--text-light);
}

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

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.3rem;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}
body.light-mode .project-card p {
  color: #4b5563;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
}

.tech-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  background: #1f2937;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  color: white;
  transition: background 0.3s, color 0.3s;
}

.tech-tags span:hover {
  filter: brightness(1.15);
}

body.light-mode .tech-tags span {
  background: #e0e0e0;
  color: #111;
}

