/* Project flip-card styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  perspective: 1000px;
  width: 100%;
  height: 220px;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.project-card:hover .project-card-inner,
.project-card.is-flipped .project-card-inner {
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.25rem;
  overflow: hidden;
}

.project-card-front {
  background-color: #343a40;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.project-card-front .no-image {
  color: #adb5bd;
  font-family: 'Saira Extra Condensed', serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 1rem;
}

.project-card-back {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.project-card-back h6.project-title {
  margin-bottom: 0.15rem;
  color: #343a40;
}

.project-card-back h6.project-subtitle {
  font-family: 'Saira Extra Condensed', serif;
  text-transform: uppercase;
  color: #7EC8E3;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.project-card-back p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-card-back a.project-link {
  font-family: 'Saira Extra Condensed', serif;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background-color: #343a40;
  padding: 0.35rem 0.9rem;
  border-radius: 0.2rem;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0.15rem;
}

.project-card-back a.project-link:hover {
  background-color: #7EC8E3;
}

.missing-note {
  font-size: 0.75rem;
  color: #dc3545;
  font-style: italic;
}

/* Certificate links in the Education section */
.cert-link {
  margin-top: 0.25rem;
}

.cert-link a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
}

.cert-link a:hover {
  color: #7EC8E3;
  text-decoration: underline;
}

.cert-link i {
  margin-right: 0.3rem;
}
