/* ============================= */
/* Projects section wrapper      */
/* ============================= */

.projects {
  padding: 80px 60px; /* top-bottom | left-right */
}

.project-titles {
  text-align: left;
}

.project-titles h1 {
  font-size: 2rem;
  font-weight: 700;
}

/* Headings inside projects-content */
.projects-content h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: #000000;
}

.projects-content h4 {
  font-size: 1.8rem;
  margin: 1rem 0;
  color: #ffffff;
}

/* Constrain content width */
.projects-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================= */
/* Single horizontal project card*/
/* (if you still use .project-card) */
/* ============================= */

.project-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  margin-top: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.project-image {
  width: 50%;
  border-radius: 14px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.project-desc {
  color: #cbd5f5;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-buttons {
  display: flex;
  gap: 1rem;
}

/* ============================= */
/* Grid of C++ project cards     */
/* ============================= */

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

/* Card style */
.project-card2 {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  padding-left: 30px;
  border-radius: 20px;
  padding-bottom: 30px;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e5e7eb;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image in grid card */
.project-image2 {
  width: 40%;
  border-radius: 14px;
  overflow: hidden;
}

.project-image2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text in grid card */
.project-info2 h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.project-buttons2 {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ============================= */
/* Responsive                    */
/* ============================= */

@media (max-width: 900px) {
  .projects {
    padding: 60px 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr; /* stack cards on mobile */
  }

  .project-card2 {
    flex-direction: column;
  }

  .project-image2 {
    width: 100%;
  }
}
