.projects {
  background-color: var(--bg);
  padding: 6rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.project-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.2);
}

.project-image {
  width: 100%;
  height: 350px;
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: auto;
  height: 80%;
  max-width: 90%;
  object-fit: contain;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-family: 'Chillax', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-info p {
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.project-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
  gap: 0.25rem;
}

.project-link:hover {
  gap: 0.5rem;
}

.upcoming-title {
  margin-top: 4rem;
}

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

.upcoming-card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.upcoming-card .project-image {
  height: 200px;
}

.upcoming-card .project-info {
  padding: 1.5rem;
}

.upcoming-card .project-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.upcoming-card .project-info p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .projects {
    padding: 4rem 1.5rem;
  }

  .project-image {
    height: 250px;
  }

  .project-info {
    padding: 1.5rem;
  }

  .project-info h3 {
    font-size: 1.5rem;
  }

  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .upcoming-title {
    margin-top: 3rem;
  }
}
