body{
  overflow: auto;
}
/* 전역 스크롤바 스타일 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #3eaf7c;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2d8a5f;
}

/* Firefox 스크롤바 */
* {
  scrollbar-width: thin;
  scrollbar-color: #3eaf7c #f1f1f1;
  cursor: none;
}
/* ===============================
  헤더, 푸터 부분 고정
=============================== */

.header{
  flex-shrink:0;
}

.footer{
  flex-shrink: 0;
  margin-top: auto;
  padding: 20px 100px 24px;
  background:#fff;
  width: 100%; 
}

.content.layout{
  flex:1;
  min-height:0;
  display:flex;
  overflow:hidden;
  background:#fffefe;
}

*{
    cursor: none;
}

/* ===============================
   마우스커서
=============================== */
body{ cursor:none; }
.c-dot{
  position:fixed; top:0; left:0;
  width:18px; height:18px;
  border-radius:50%;
  background:#3eaf7c;
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:99;
  overflow-x: hidden;
}

@media (hover:none) and (pointer:coarse){
  body{cursor:auto;}
  .c-dot{display:none !important;}
}

/* ===============================
   SIDEBAR
=============================== */
.sidebar{
  width:30%;
  height: auto;
  flex:0 0 260px;
  background:#fff;
  padding:24px 20px;
  border-right:1px solid #eee;
  box-shadow:2px 0 10px rgba(0,0,0,0.04);
  overflow:hidden;
  position: relative;
  transition: width .28s ease, padding .28s ease;
}

.sidebar h2{
  font-size: 1rem;  
  text-align: center;
  color: #222;
}

/* ------사이드바 토클------- */
.sidebar-toggle{
  display: none;
}

/* -----홈아이콘--- */
.home-icon{
  display: none;
}
.sidebar .name{
 font-weight:600;
  letter-spacing:.04em;
  color:#111;
  margin-bottom:10px;
}

.contact-info{
 font-size:12px;
  line-height:1.8;
  color:#333;
  margin: 0 4px 18px;
  padding-bottom:18px;
  border-bottom:1px dashed #e9e9e9;
}

/* 버튼 리스트 */
.nav-list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 10px 10px;
  border-radius:10px;
  cursor:pointer;
  transition: background .18s ease, transform .18s ease;
  user-select:none;
}

.nav-item:hover{
  background:#f4f4f4;
  transform: translateY(-1px);
}
.nav-item.active{ background:#eef7f2; }
.folder-icon{
  width:30px;
  height:30px;
  position:relative;
}
.folder-icon a img{
  width: 100%;
  height: 100%;

}
.nav-item span{
  font-size:14px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:#222;
  white-space:nowrap;
}




/*폴더 옆 각각 카테고리 글씨 */
.folder-icon span{
  font-size:14px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:#222;
  white-space:nowrap;
}

/* 폴더이미지 전체 */
.folders{
  display: flex;
  gap:40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  padding: 0 20px;
  max-width: 100%;
}

.folder-item{
  width: 200px;
  flex: 0 0 auto;
}
/* 폴더 이미지: 기본만 보이고 hover는 숨김 */
.folder-item a{
  position: relative;
  display:block;
  aspect-ratio: 1 / 1;
}

.folder-item a img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  background: transparent;
  padding: 10px;
  display:block;
}

.folder-item .img-hover{ opacity:0; }
.folder-item:hover .img-hover{ opacity:1; }
.folder-item:hover .img-default{ opacity:0; }

/* 폴더 호버: 맥OS 느낌 */
.folder-item{
  transition: transform .25s ease, filter .25s ease;
  transform-origin: center bottom;
}

.folder-item:hover{
  transform: translateY(-10px) scale(1.06);
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.18));
}

/* hover 이미지 전환도 더 부드럽게 */
.folder-item a img{
  transition: opacity .25s ease, transform .25s ease;
}

.folder-item:hover a img{
  transform: scale(1.01);
}

/* ===============================
  오른쪽 내용 부분
=============================== */
.main-area{
  flex:1;
  width: 70%;
  height: auto;
  min-height: 900px;
  background:#fff;
  padding:60px 100px;
  overflow-y: hidden;
  background-color: #f7fafc;
}

/* 스크롤바(선택) */
.main-area::-webkit-scrollbar{ width:10px; }
.main-area::-webkit-scrollbar-thumb{
  background: #3eaf7c;
  border-radius:999px;
}
.main-area::-webkit-scrollbar-track{ background: transparent; }

  /* 폴더 2x2 그리드 */
 .folders{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
    max-width: 480px;
    margin: 0 auto;
  }

/* ===============================
   PORTFOLIO HEADER
=============================== */
.portfolio-header{ margin-bottom:40px; }

.name-letters{
  display:flex;
  gap:15px;
  margin-bottom:10px;
  font-size:14px;
  font-weight:500;
  letter-spacing:2px;
}
.portfolio-title{
  font-size:60px;
  font-weight:700;
  letter-spacing:-2px;
  margin-bottom:24px;
  color:#111;
}
.divider{
  width:100%;
  height:1px;
  background:#333;
  margin-bottom:30px;
}
.portfolio-description{
  font-size:16px;
  line-height:1.6;
  color:#333;
  max-width:800px;
}

/* ===============================
   반응형: 태블릿 (1250px 이하)
=============================== */
@media (max-width: 1250px){
  /* 레이아웃을 세로로 변경 */
  .content.layout{
    padding: 0;
    gap: 0;
  }
.sheet{
    display: block !important;
    width: 100%;
    padding: 50px 40px;
    overflow: visible;
  }

  /* 사이드바 얇게 */
  .sidebar{
    width: 100px;
    height: auto;
    flex: 0 0 100px;
    padding: 20px 10px;
  }
  .sidebar h2{
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center;

  }

  /* 프로필 이미지 작게 */
  .profile-image{
   display: hidden;
  }

  .sidebar .name{
    font-size: 8px;
    font-weight: 600;
    margin: 0;
    
  }

  .contact-info{
    font-size: 11px;
    margin: 0;
    padding: 0;
    border: none;
    flex-shrink: 0;
  }

  /* 네비게이션 가로 배치 */
  .nav-list{
    margin-top: 20px;
    gap:15px;
   align-items: center;
  }

  .nav-item{
    padding: 10px 8px;
    flex-direction: column;
    gap: 6px;
    width: 70px;
  }

  .folder-icon{
    width: 32px;
    height: 32px;
    margin: 0;
  }

  .nav-item span{
    display: block;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }

 .nav-item.active{
    background: #eef7f2;
    border-radius: 12px;
  }

  .nav-item:hover{
    background: #f4f4f4;
     border-radius: 12px;
  }


  /* 메인 영역 */
  .main-area{
    padding: 40px 30px;
    overflow-y: auto;
  }

  /* 헤더 */
  .portfolio-header{
    margin-bottom: 60px;
  }

  .name-letters{
    font-size: 12px;
    gap: 10px;
  }

  .portfolio-title{
    font-size: 20px;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
  }

  .divider{
    margin-bottom: 14px;
  }

  .portfolio-description{
    font-size: 14px;
  }

  /* 폴더 2x2 그리드 */
  .folders{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
  }


  .folder-item{
    width: 195px;
  }

  /* 터치 디바이스에서는 hover 효과 제거 */
  .folder-item:hover{
    transform: none;
    filter: none;
  }

  .folder-item:active{
    transform: scale(0.95);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.12));
  }
}






/* ===============================
   반응형: 모바일 (800px 이하)
=============================== */
@media (max-width:800px){
  /* 메인 영역 */
  .main-area{
    padding: 24px 20px 80px;
  }
  
  /* 사이드바 얇게 */
  .sidebar{
    
  }
  .sidebar h2{
    font-size: 16px;
    text-align: center;
  }

  /* 프로필 이미지 작게 */
  .profile-image{
   display: hidden;
  }

  .sidebar .name{
    font-size: 8px;
    font-weight: 600;
    margin: 0;
  }

  .contact-info{
    font-size: 11px;
    margin: 0;
    padding: 0;
    border: none;
    flex-shrink: 0;
  }

  /* 네비게이션 가로 배치 */
  .nav-list{
    margin-top: 20px;
    gap:15px;
   align-items: center;
  }

  .nav-item{
    padding: 10px 8px;
    flex-direction: column;
    gap: 6px;
    width: 70px;
  }

  .folder-icon{
    width: 32px;
    height: 32px;
    margin: 0;
  }

  .nav-item span{
    display: block;
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
  }

 .nav-item.active{
    background: #eef7f2;
    border-radius: 12px;
  }

  .nav-item:hover{
    background: #f4f4f4;
     border-radius: 12px;
  }

  /* 프로필 이미지 작게 */
  .profile-image{
   display: hidden;
  }

  .sidebar .name{
    font-size: 8px;
    font-weight: 600;
    margin: 0;
    
  }

  /* 헤더 간소화 */
  .portfolio-header{
    margin-bottom: 40px;
  }

  .name-letters{
    font-size: 10px;
    gap: 6px;
    margin-bottom: 8px;
  }

  .portfolio-title{
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }

  .divider{
    margin-bottom: 16px;
  }

  .portfolio-description{
    font-size: 13px;
    line-height: 1.5;
  }

  /* 폴더 1열 세로 배치 */
  .folders{
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    max-width: 220px;
    margin: 0 auto;
  }

  .folder-item{
    width: 100%;
  }

  /* 터치 피드백 */
  .folder-item:active{
    transform: scale(0.96);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
  }

  .folder-item a img{
    padding: 8px;
  }

}

/* ===============================
   추가: 초소형 기기 (400 x 이하) 사이드바 슬라이드로
=============================== */
@media (max-width: 480px){
  .main-area{
    padding: 20px 16px 80px;
    overflow-x: hidden;
  }

  .portfolio-title{
    font-size: 28px;
  }
.sidebar {
  position: fixed;
  left:0px;
  top:0px;
  width: 60px;
  height: 100vh;
  z-index: 90;
  transform: translateX(-100%);
  flex: none;
  padding: 80px 16px 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.903);
  overflow-x: hidden;
  transition: transform 0.3s ease;
}

.sidebar.active{
  transform: translateX(0);
}
/*---초록버튼----- */
.sidebar-toggle{
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 95;
    width: 44px;
    height: 44px;
    background: #3eaf7c;
    border-radius: 50%;
    border: none;
    color: #fff;
  }
.home-icon{
  display: block;
  padding-bottom: 24px;
  text-align: center;
}
.sidebar h2{
  display: none;
}
.sidebar .name{
      display: none;
    }
  .folders{
    max-width: 160px;
    gap: 8px;
  }

  .folder-item a img{
    padding: 4px;
  }
}