/* 전체 스타일 초기화 */
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; /* Light mode */
}

body.light-theme {
  background-color: #edede9; /* Medium 스타일의 아이보리 톤 */
  color: #333;
}

.section {
  width: 100%;
  padding: 80px 20px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Navbar 스타일 */
.navbar {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  background-color: #fff9f2; /* 흰색 배경 */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* drop shadow 추가 */
  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; /* medium은 500 */
  color: #2d2d2d;
}

.nav-links {
display: flex;
gap: 24px;
font-family: 'Poppins', sans-serif;
}

.nav-links a {
text-decoration: none;
font-weight: 500;
color: #2d2d2d;
transition: color 0.3s ease;
}

.nav-links a:hover {
color: #ff0000;
}


/* 햄버거 버튼 - 기본은 숨김 */
.hamburger {
display: none;
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #2d2d2d;
}

/* 작은 화면에서만 햄버거 보이기 */
@media (max-width: 768px) {
.hamburger {
  display: block;
  position: absolute;
  top: 20px;
  right: 10%;
  z-index: 200;
}
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw; 
    height: 35vh;
    background-color: rgba(255, 249, 242, 0.97);
    backdrop-filter: blur(8px);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05); /* ✅ 살짝 그림자 */
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
    margin: 12px 0;
    color: #2d2d2d;
    font-weight: 600;
    text-align: center;
  }
}


/* Home 전용 스타일 */

/* 홈 전용 카드 레이아웃 */
.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);
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* 전체 컨텐츠 가운데 정렬 */
.content {
  background-color: #f7f7f4; /* 원하는 색상으로 바꿔도 됨 */
  padding: 60px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 로고 이미지 */
.logo img {
  width: 200px;
  height: auto;
  margin: 20px 0;
}

/* 소셜 아이콘 스타일 */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons a {
  color: #2d2d2d;
  font-size: 35px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ff0000;
}

/* 자기소개 섹션 스타일 */
.bio {
background-color: transparent; /* 카드 배경 제거 */
padding: 0 5%; /* 양옆 여백만 살짝 */
width: 100%;
max-width: 800px;
font-family: 'Metal', serif;
font-size: 23px;
line-height: 1.5;
text-align: left;
margin-top: 20px;
margin-bottom: 60px;
position: relative;
}

/* ✅ 반응형 자기소개 스타일 */
@media (max-width: 768px) {
  .bio {
      width: 90%; /* 모바일에서 더 넓게 보이도록 조정 */
      font-size: 16px; /* 글자 크기 조금 줄이기 */
      text-align: center;
  }
}

/* 접힘 */
.hidden {
  display: none;
}

.intro {
  margin-bottom: 0.0rem; /* 또는 0으로 해도 됨 */
}

.read-more-btn {
  margin-top: 0.0rem;
  font-size: 20px;               /* bio랑 맞추기 */
  font-family: 'Metal', serif;  /* Metal 폰트 적용 */
  font-style: italic;
  font-weight: 600;              /* 굵게 */
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}


.read-more-btn:hover {
  color: #ff0000;
}


/* about me 버튼 */
.about-btn {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 0;
  background-color: #333;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.about-btn span {
  font-size: 14px;
  font-family: 'poppins', san-serif;
  font-weight: 500;
  color: #f7f7f4; /* ✅ 텍스트 색상 */
  display: inline-block;
}

.about-btn:hover {
  background-color: #ff0000; /* 포인트 컬러로 hover 효과 */
  transform: translateY(-2px); /* 살짝 올라가는 효과 */
}
.about-icons {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  font-size: 35px;
  margin-top: 8px;
}

.about-icons a {
  color: #333;
  transition: color 0.2s ease;
}

.about-icons a:hover {
  color: #ff0000; /* LinkedIn blue or 너의 테마 컬러 */
}

/* ✅ 기본: 전부 숨김 처리 */
.about-desktop,
.about-mobile,
.about-mobile-break {
  display: none;
}

/* ✅ 모바일 (최대 768px)에서만 보여야 하는 항목들 */
@media (max-width: 768px) {
  .about-mobile,
  .about-mobile-break {
    display: inline;
  }

  .about-desktop {
    display: none;
  }

  /* scroll-indicator도 모바일에서만 보이게 */
  .scroll-indicator {
    display: block;
    font-size: 22px;
    color: #999;
    padding-top: 3rem; /* ✅ margin보다 확실히 잘 먹힘 */
    text-align: center;
    animation: flickerWhite 1.5s infinite ease-in-out;
  }
}

/* ✅ 데스크탑 (769px 이상)에서만 보여야 하는 항목들 */
@media (min-width: 769px) {
  .about-desktop {
    display: block;
  }

  .about-mobile,
  .about-mobile-break {
    display: none;
  }

  /* scroll-indicator는 데스크탑에서 감춤 */
  .scroll-indicator {
    display: none;
  }
}

/* ✅ 깜빡이는 애니메이션 */
@keyframes flickerWhite {
  0%, 53.3%, 100% {
    color: #999;
  }
  13.3% {
    color: #edede9;
  }
}


/* illustration hmtl */
.blink-hard{
  animation: blinkHard 1s steps(2, start) infinite;
}
@keyframes blinkHard{
  0%, 49%  { opacity: 1; }
  50%,100% { opacity: 0; }
}



/* img */
.folio-images {
display: block;
text-align: left;
}

.img-small {
max-height: 500px;
}

.img-medium {
max-height: 600px;
}

.img-large {
max-height: 800px;
}

@media screen and (max-width: 768px) {
  .img-small {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* portfolio 섹션 스타일 */
.portfolio {
  margin-top: 50px;
  padding: 20px;
  width: 90%;
  max-width: 1100px;
  text-align: left;
}

.project-context {
  font-family: 'Poppins', serif;
  font-size: 1.2rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 5rem; /* 헤더 상단과의 여백 */
  margin-bottom: 0rem; /* 타이틀과의 간격 확보 */
  text-align: left;
  line-height: 1.1;
}

.project-title {
  font-family: 'Crimson Text', serif;
  font-size: 4rem;
  font-weight: 800;
  color: #fd3e3e;
  text-align: left;
  margin-top: 0; /* context가 여백을 가지고 있으므로 0으로 줄임 */
  margin-bottom: 2rem;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .project-title {
      font-size: 2.7rem; /* 모바일 화면에서 글씨 크기 축소 */
  }
}

.portfolio h2 {
  font-size: 28px;
  font-weight: bold;
  color: #fd3e3e;
}

.portfolio-item h3 {
  font-family: 'Crimson Text', serif;
  font-weight: 600 !important;
  font-size: 35px !important;
  margin-bottom: 10px;
}


/* 구분선 */
.portfolio hr {
  border: none;
  height: 1px;
  background-color: #000;
  margin: 10px 0 20px;
}

/* 개별 경험 항목 */
.portfolio-item {
  margin-bottom: 30px;
}

/* 경험 제목 */
.portfolio-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

/* 경험 제목 내 링크 스타일 */
.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;
}

.sticky-image {
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.sticky-image img {
  width: 100%;
  height: auto; 
  max-width: 1920px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .sticky-image img {
    width: 100%;     
    height: 18vh;    
    object-fit: cover; 
  }
}


/* 태그 스타일 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  background-color: white;
  border: 2px solid black;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}
/* 추가 경험 섹션 스타일 */
.additional-portfolio {
  margin-top: 20px;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  text-align: left;
}

/* 경험 제목 */
.additional-portfolio h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.additional-portfolio h3 a {
  text-decoration: none;
  color: black;
}

.additional-portfolio h3 a span {
  color: red;
  font-size: 16px;
}

/* 설명 문구 */
.additional-portfolio p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* 이미지 반응형 스타일 */
.ioffering-images img {
  max-width: 100%;  /* 화면 크기에 맞게 조정 */
  height: auto;
  display: block;
  margin: 0 auto;  /* 가운데 정렬 */
}

/* 작은 화면 (모바일) 대응 */
@media screen and (max-width: 768px) {
  .ioffering-images img {
      width: 90%;  /* 모바일에서는 가로 크기 90%로 조정 */
      max-width: 400px;  /* 너무 커지지 않도록 제한 */
  }
}
/* 태그 스타일 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  background-color: #f7f7f7;
  border: 2px solid black;
  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;
}



/* PayPal 결제 CTA */
.purchase-cta{
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 16px;
}

.price-tag{
  display: inline-block;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.pp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pp-btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); filter: brightness(1.05); }
.pp-btn:active{ transform: translateY(0); box-shadow: none; }

.pp-note{
  grid-column: 1 / -1;
  color: #555;
  font-size: 13px;
  margin-top: 2px;
}

/* 모바일: 한 줄 정렬 */
@media (max-width: 520px){
  .purchase-cta{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .pp-btn, .price-tag{ width: 100%; max-width: 360px; }
}


/* 1) 바로 이어지는 .portfolio 섹션 사이 간격 축소 */
.portfolio + .portfolio{
  margin-top: 16px; /* 기존 50px → 16px */
}

/* 2) 히어로 타이틀 아래 간격 축소 */
.project-title{
  margin-bottom: 0.8rem; /* 기존 2rem → 0.8rem */
}

/* 3) 카드 제목(H3) 위 여백 제거 (브라우저 기본 top margin 제거) */
.portfolio-item h3{
  margin-top: 0;
}

/* 4) (선택) Pinterest 임베드 바로 붙도록 살짝만 여백 */
.portfolio-item a[data-pin-do="embedBoard"]{
  display: block;
  margin-top: 8px;
}


/* 이메일 템플릿 가독성 업 */
.email-template{
  font-size: 16.5px;      /* 16~18px에서 취향대로 조절 */
  line-height: 1.7;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  white-space: pre-wrap;   /* 줄넘김 유지 + 줄바꿈 자동 */
}

/* 첨부 안내도 살짝 키움 */
.attachment-note{
  margin: 8px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
}

/* 모바일에서 살짝만 축소 */
@media (max-width: 520px){
  .email-template,
  .attachment-note{
    font-size: 15.5px;
  }
}



.slider {
  position: relative;
  max-width: 400px; /* 원하는 크기 */
  margin: auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.3s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
}

.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

.slider .prev { left: 10px; }
.slider .next { right: 10px; }
