/* Projects Section */
.projects-section {
  margin-top: 40px;
}

.section-heading {
  font-size: 32px;
  font-weight: 500;
  color: #f0efef;
  margin-bottom: 40px;
  font-family: "space-grotesk", sans-serif;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* Project Card */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #333;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Project Image */
.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #2a2a2a;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: "space-grotesk", sans-serif;
}

/* Project Content */
.project-content {
  padding: 24px;
}

.project-title {
  font-size: 22px;
  font-weight: 500;
  color: #f0efef;
  margin-bottom: 12px;
  font-family: "space-grotesk", sans-serif;
}

.project-description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: #b0b0b0;
  margin-bottom: 20px;
  font-family: "space-grotesk", sans-serif;
}

/* Tech Badges */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #2a2a2a;
  color: #f0efef;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 400;
  font-family: "space-grotesk", sans-serif;
  border: 1px solid #333;
  transition: all 0.2s ease;
}

.project-card:hover .tech-badge {
  background: #333;
  border-color: #444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-image-wrapper {
    height: 200px;
  }

  .project-content {
    padding: 20px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-description {
    font-size: 14px;
  }
}