/* portfolio-page 내부에만 적용되게 함 */
.portfolio-page body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  background-color: #fff;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.portfolio-page .main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 40px;
}

.portfolio-page .portfolio-section {
  display: flex;
  gap: 100px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -10px;
  margin-bottom: -90px;
}

.portfolio-page .portfolio-item {
  text-align: center;
  position: relative;
}

/* ✅ 정사각형 + 둥근 모서리 + 어두워지는 hover 효과 */
.portfolio-page .portfolio-box {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-page .portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* ✅ 어두워지는 효과 */
.portfolio-page .portfolio-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  border-radius: 14px;
}

.portfolio-page .portfolio-item:hover .portfolio-box::after {
  background: rgba(0,0,0,0.25);
}

.portfolio-page .portfolio-item:hover .portfolio-box {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

.portfolio-page .portfolio-item p {
  margin-top: 14px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #000; /* ← 글씨 색 지정 */
}

/* 반응형 */
@media (max-width: 768px) {
  .portfolio-page .portfolio-box {
    width: 220px;
    height: 220px;
  }
}
@media (max-width: 480px) {
  .portfolio-page .portfolio-box {
    width: 180px;
    height: 180px;
  }
}

/* 전역이 꺼림칙하면 최상위 래퍼(.page 등)로 대체 */
html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }   /* 콘텐츠 영역 확장 */
.footer { margin-top: 24px; } /* 필요 여백만 명시 */

