/* wrapper */
.portfolio-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* top */
.portfolio-top {
  background: #5f74d6;
  padding: 30px 0 10px;
}

.portfolio-top h1 {
  font-size: 90px;
  margin-bottom: 30px;
}

.portfolio-top p {
  font-size: 20px;
  max-width: 720px;
  line-height: 1.6;
  opacity: 0.95;
  margin-left: 50px;
}

/* grid section */
.portfolio-section {
  background: #000;
  padding: 120px 0;
}

.portfolio-wrap.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* cards */
.portfolio-card {
  background: #1a1a1a;
  height: 260px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: 0.4s ease;
  cursor: pointer;

}

.portfolio-card h3 {
  font-size: 30px;
  margin-top: -20px;
  margin-left: 10px;
}

/* hover */
.portfolio-card:hover {
  background: #2f66ff;
}

/* note */
.portfolio-note {
  padding: 80px 0 140px;
  background: #000;
    padding: 10px 0 40px;
}

.portfolio-note p {
  font-size: 14px;
  opacity: 0.6;
  max-width: 900px;
  line-height: 1.7;
}


.portfolio-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.portfolio-card img {
  width: 150px;
  height: 190px;
  object-fit: contain;
  margin-bottom: 16px;
}


/* responsive */
@media (max-width: 1100px) {
  .portfolio-wrap.grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .portfolio-wrap {
    padding: 0 40px;
  }

  .portfolio-wrap.grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portfolio-card {
  background: #1a1a1a;
  height: 260px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.4s ease;
}





/* ===== PORTFOLIO PAGE LOAD ===== */

.portfolio-page {
  opacity: 0;
  animation: portfolioFade 0.8s ease forwards;
}

@keyframes portfolioFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* hidden state */
.portfolio-card {
  opacity: 0;
  transform: translateY(25px);
}

/* visible */
.portfolio-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: 0.6s ease;
}
