.projects-section {
  padding: 100px;
  width: 100%;
  color: #fff;
}


.projects-title,
.group-title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-align: left;
  color: #00abdc;
}


.project-group {
  margin-bottom: 60px;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}


.project-card {
  background: #0a1214;
  border: 2px solid #00abdc;
  border-radius: 25px;
  padding: 25px;
  transition: 0.3s ease;
  text-align: center;
}


.project-card:hover {
  transform: translateY(-6px);
  border-color: #24a5ff;
  box-shadow: 0 0 12px #00abdc80;
}


.project-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  color: #24a5ff;
}


.project-card p {
  color: #fff;
  opacity: 0.9;
  line-height: 1.5;
  font-size: 1rem;
  margin-bottom: 20px;
}


.project-link {
  display: inline-block;
  padding: 10px 18px;
  background: #00abdc;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.2s ease;
}


.project-link:hover {
  background: #24a5ff;
}

/* Background image hover */
.project-card {
  position: relative;
  overflow: hidden;
}


.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}


/* Example images — replace these with your own paths */
.project-card:nth-child(1)::before {
  background-image: url('../img/CFM.png');
}
.project-card:nth-child(2)::before {
  background-image: url('../img/CFM.png');
}
.project-card:nth-child(3)::before {
  background-image: url('../img/ProgJournal.png');
}
.project-card:nth-child(1)::before {
  background-image: url('../img/AppLib.png');
}


.project-card:hover::before {
  opacity: 0.25; /* adjust strength */
}


/* Keep text above background */
.project-card * {
  position: relative;
  z-index: 2;
}


