/* Projects section styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1800px;
  margin: 0 auto;
}

.project-card {
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 15px;
  transition: box-shadow 0.3s, background 0.3s;
  perspective: 1000px;
  min-height: 300px;
  height: 100%;
  overflow: hidden;
}

.project-card h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.35em;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.98em;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin-top: auto;
  padding-top: 10px;
}

.project-tags span {
  background: #232428;
  color: var(--accent-red);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin: 2px 0;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.project-card-front,
.project-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-card-back {
  transform: rotateY(180deg);
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  text-align: center;
  font-size: 1.13em;
  color: var(--text-secondary);
  padding: 18px 16px;
  line-height: 1.7;
}

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

.project-card:hover,
.project-card-flip.flipped {
  box-shadow: 0 0 24px 0 rgba(255,59,59,0.28), 0 2px 16px 0 rgba(0,0,0,0.18) !important;
}

.project-card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  height: 100%;
}

.project-card-front h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.35em;
}

.project-card-front p {
  margin-bottom: 0;
  font-size: 0.98em;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1rem 0.5rem;
    max-width: 100vw;
  }
  .project-card {
    min-width: 0;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
  }
  .project-card-front, .project-card-back {
    padding: 10px;
  }
} 