/* 기본 리셋 및 폰트 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.5;
    background: #f9f9f9;
    color: #222;
    min-height: 100vh;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  img {
    max-width: 100%;
    display: block;
  }
  
  /* 헤더 */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  header h1 {
    font-weight: 700;
  }
  #dark-mode-toggle {
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* 네비게이션 */
  #navbar {
    display: flex;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 60px;
    z-index: 999;
  }
  #navbar .nav-link {
    padding: 1rem 1.5rem;
    color: #444;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
  }
  #navbar .nav-link:hover,
  #navbar .nav-link.active {
    color: #0077ff;
  }
  .nav-line {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: #0077ff;
    transition: left 0.3s ease, width 0.3s ease;
    border-radius: 2px;
    will-change: left, width;
    pointer-events: none;
  }
  
  /* 메인 */
  main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  /* 섹션 */
  .section {
    margin-bottom: 4rem;
  }
  
  /* 프로필 영역 */
  .profile {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  #profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  button#open-modal {
    margin-top: 1rem;
    background: #0077ff;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
  }
  
  /* 탭 */
  .tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .tab-button {
    background: #eee;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  .tab-button.active {
    background: #0077ff;
    color: white;
  }
  .tab-content {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
  }
  .tab-content[hidden] {
    display: none;
  }
  
  /* 프로젝트 & 블로그 */
  .project-item,
  .blog-post {
    margin-bottom: 1.5rem;
    border-left: 4px solid #0077ff;
    padding-left: 1rem;
  }
  
  /* SNS */
  .sns-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .sns-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #eee;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #444;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  .sns-btn:hover {
    background: #0077ff;
    color: white;
  }
  .sns-btn img {
    width: 20px;
    height: 20px;
  }
  
  /* 푸터 */
  footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #f1f1f1;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
  }
  
  /* 뒤로가기 버튼 */
  #back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background: #0077ff;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
  }
  #back-to-top:hover {
    background: #005bbb;
  }
  
  /* 모달 */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 1500;
  }
  .modal.show {
    display: flex;
  }
  .modal-content {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
  }
  .close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-weight: bold;
  }
  
  /* 다크모드 */
  body.dark {
    background: #121212;
    color: #eee;
  }
  body.dark header,
  body.dark #navbar,
  body.dark footer {
    background: #1e1e1e;
    color: #ccc;
    border-color: #333;
  }
  body.dark #navbar .nav-link {
    color: #aaa;
  }
  body.dark #navbar .nav-link.active,
  body.dark #navbar .nav-link:hover {
    color: #4aa1ff;
  }
  body.dark .tab-button {
    background: #333;
    color: #ccc;
  }
  body.dark .tab-button.active {
    background: #4aa1ff;
    color: white;
  }
  body.dark .tab-content {
    border-color: #333;
  }
  body.dark .sns-btn {
    background: #333;
    color: #ccc;
  }
  body.dark .sns-btn:hover {
    background: #4aa1ff;
    color: white;
  }
  body.dark #back-to-top {
    background: #4aa1ff;
    color: #222;
  }
  body.dark #back-to-top:hover {
    background: #3a85e6;
  }
  body.dark .modal-content {
    background: #222;
    color: #ddd;
  }
  