/* 이미지: 비율 고정 + 넘치는 부분은 크롭 */
.img-preview{
  display: block;
  width: 30%;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
  border-radius: var(--img-radius);
  background: #f7f7f7;
}

@media (max-width: 400px) {
  .portfolio-item img {
    max-width: 100%;
    width: 100%;
  }
}

/* 전체 스타일 */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-color: #edede9;
}

body.light-theme {
  background-color: #edede9;
  color: #333;
}

/* Navbar */
.navbar {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  background-color: #fff9f2;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}
.nav-left a {
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  color: #2d2d2d;
}

/* portfolio 섹션 */
.portfolio {
  margin-top: 50px;
  padding: 20px;
  width: 90%;
  max-width: 1100px;
  text-align: left;
}
.portfolio h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fd3e3e;
}
.portfolio hr {
  border: none;
  height: 1px;
  background-color: #000;
  margin: 10px 0 20px;
}

/* 홈 그리드 & 카드 */
.home-grid {
  display: block;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}
.home-grid .portfolio-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-grid .portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* 개별 항목 */
.portfolio-item {
  margin-bottom: 30px;
}
.portfolio-item h3 {
  font-family: 'Crimson Text', serif;
  font-weight: 600 !important;
  font-size: 35px !important;
  margin-bottom: 10px;
}
.portfolio-item h3 a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}
.portfolio-item h3 a i {
  font-size: 14px;
  margin-left: 5px;
  color: red;
  vertical-align: middle;
}
.portfolio-item p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* 태그 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags span {
  background-color: #000;   /* 내부: 검정 */
  color: #fff;              /* 글씨: 흰색 */
  border: 2px solid #000;   /* 테두리도 검정으로 통일 */
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}


/* 푸터 스타일 */
.footer-wrapper {
  background-color: #22333b;
  color: #edede9;
  padding: 3rem 0 2rem 0;
  width: 100%;
  position: relative;
}


.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  color: inherit;
  font-family: 'Poppins', serif;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  line-height: 1.6;
}

.footer p {
  margin: 0;
  text-align: right;
}

.footer-divider {
  width: 100%;
  max-width: 1100px;
  height: 1px;
  background-color: #edede9;
  margin: 2rem auto;
  opacity: 0.4;
}



/* 링크들을 포함하는 컨테이너 */
.footer-links {
  display: flex;
  flex-direction: column; /* ✅ 한 줄씩 정렬 */
  align-items: flex-end; /* ✅ 링크들도 오른쪽 정렬 */
}

/* 푸터 내 링크 스타일 */
.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  display: block; /* ✅ 한 줄씩 나열 */
  margin-bottom: 5px; /* ✅ 링크 간격 조정 */
}

.footer-links a {
color: #ffffff;
text-decoration: none;
font-weight: 600;
display: block;
margin-bottom: 5px;
transition: color 0.3s ease, text-decoration 0.3s ease; /* 부드럽게 전환 */
}

.footer-links a:hover {
color: #ff6666; /* 포인트 컬러 */
}


/* 저작권 문구 스타일 */
.copyright {
  font-size: 14px;
  color: #666;
  text-align: right;
  margin-top: 10px;
}

/* Copyright area 전용 링크 스타일 */
a.copyright-link{
  color: #ff6666;        /* 글자색 */
  font-size: 16px;
  font-weight: 600;      /* 굵게 */
  text-decoration: none; /* 밑줄 제거 */
}
a.copyright-link:visited{
  color: #ff6666;
}
a.copyright-link:hover,
a.copyright-link:focus,
a.copyright-link:active{
  color: #ff6666;
  text-decoration: none;
}


