/* ----- Base ----- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
}

.projects-section {
  padding: 40px 20px;
  text-align: center;
}

.subtitle {
  color: #db1d23;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.title {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: bold;
}

/* ----- Scrollable row ----- */
.projects-container {
  display: flex;
  gap: 05px;
  padding: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  max-width: 100%;
}

/* hide scrollbar */
.projects-container::-webkit-scrollbar { display: none; }
.projects-container { -ms-overflow-style: none; scrollbar-width: none; }

/* ----- Card ----- */
.project-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: transform 0.28s ease;
}

/* ----- Hover ----- */
.project-card:hover,
.project-card.hover { /* hover class for JS */
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(219,29,35,0.12);
}

.project-card:hover img,
.project-card.hover img {
  transform: scale(1.05);
}

/* ----- Text centered ----- */
.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0;
  line-height: 1.3;
  text-align: center;
}

.project-card p {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  line-height: 1.5;
  margin: 8px 0 0;
  text-align: center;
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .project-card { flex: 0 0 90%; }
  .project-card img { height: 180px; }
}