/* === PROJECTS === */
.projects-section {
  padding: 24px 28px 40px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.section-header h2 {
  font-size: 18px;
  font-weight: 600;
}
.section-header a {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  opacity: .7;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;        /* ← vertical agora */
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  opacity: 0;
  transform: translateY(25px);
  transition:
    transform .3s ease,
    opacity .5s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}
.project-card.project-visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,217,255,0.3);
  box-shadow: 0 16px 40px rgba(0,217,255,0.08);
}

/* thumbnail 16:9 */
.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.project-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.2px;
}
.project-info p {
  font-size: 12px;
  color: #7a90b0;
  line-height: 1.55;
}

.tech-stack {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tech-stack span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.14);
  font-size: 9.5px;
  font-weight: 500;
  color: #7ecfdf;
}

.project-info small {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  color: #4a6280;
  line-height: 1.4;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  opacity: .85;
  transition: opacity .2s;
}
.project-card:hover .project-link {
  opacity: 1;
}

/* === MOBILE === */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-section {
    padding: 16px 14px 32px;
  }
  .project-card {
    text-decoration: none;
  }
}