/* ============================================
   DARK DEVELOPER PORTFOLIO - Tistory Skin
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Pretendard:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2333;
  --bg-card-hover: #22293a;
  --border: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent: #58a6ff;
  --accent-glow: rgba(88, 166, 255, 0.15);
  --green: #3fb950;
  --purple: #bc8cff;
  --orange: #f0883e;
  --pink: #f778ba;
  --yellow: #e3b341;
  --red: #f85149;
  --radius: 12px;
  --radius-sm: 8px;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: #79c0ff; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg-primary); }
.screen_out { position: absolute; overflow: hidden; clip: rect(0,0,0,0); width: 1px; height: 1px; margin: -1px; }

/* ============ HEADER ============ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
#header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
#header h1 a {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
#header h1 a:hover { color: var(--accent); }
#header h1 img { height: 32px; }

/* Header Utils */
.util { display: flex; align-items: center; gap: 16px; }
.util .search {
  position: relative;
}
.util .search input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 36px 6px 14px;
  color: var(--text-primary);
  font-size: 13px;
  width: 200px;
  outline: none;
  transition: var(--transition);
}
.util .search input::placeholder { color: var(--text-muted); }
.util .search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  width: 260px;
}
.util .search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
}
.util .profile button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary);
}
.util .profile button img { width: 100%; height: 100%; object-fit: cover; }
.util .profile nav { display: none; }
.util .profile:hover nav {
  display: block;
  /* position: absolute;*/
  top: 56px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  margin-top: 200px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.util .profile nav li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}
.util .profile nav li a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.util .menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 24px;
}
.util .menu span { font-size: 14px; }

/* GNB */
#gnb { display: flex; align-items: center; }
#gnb ul { display: flex; gap: 4px; }
#gnb li a {
  display: block;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
#gnb li a:hover, #gnb li.active a {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* ============ PORTFOLIO HERO ============ */
.portfolio-hero {
  padding: 0px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 50vh;
}
.portfolio-hero .hero-text h2 {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.portfolio-hero .hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.portfolio-hero .hero-text .subtitle {
  font-size: 24px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 24px;
}
.portfolio-hero .hero-text .bio {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.portfolio-hero .hero-text .bio strong {
  color: var(--accent);
  font-weight: 600;
}
.portfolio-hero .social-links {
  display: flex;
  gap: 12px;
}
.portfolio-hero .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.portfolio-hero .social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}
.portfolio-hero .social-links a svg { width: 18px; height: 18px; }

/* Terminal Card */
.terminal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-header .dot.red { background: var(--red); }
.terminal-header .dot.yellow { background: var(--yellow); }
.terminal-header .dot.green { background: var(--green); }
.terminal-header span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
}
.terminal-body .prompt { color: var(--green); }
.terminal-body .command { color: var(--text-primary); }
.terminal-body .output { color: var(--text-secondary); }
.terminal-body .highlight { color: var(--accent); }
.terminal-body .string { color: var(--orange); }
.terminal-body .cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--green);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ BLOG CONTENT ============ */
#container {
  padding-top: 64px;
}

/* Promotion Slider (dark) */
.main-slider { display: none; } /* 포트폴리오로 대체 */

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
}
#content { flex: 1; min-width: 0; }

/* Blog Section Header */
.blog-section-header {
  padding: 60px 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.blog-section-header h2 {
  font-size: 28px;
  font-weight: 700;
}
.blog-section-header h2 span {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}

/* Post Items */
.post-header h1 {
  font-size: 24px;
  font-weight: 700;
  padding: 40px 0 20px;
}
.post-header h1 span { color: var(--text-primary); }
.post-header h1 em {
  color: var(--accent);
  font-style: normal;
  margin-left: 8px;
}

.post-item {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.post-item:hover { background: var(--bg-secondary); }
.post-item a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 24px 16px;
  color: inherit;
}
.post-item .thum {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-card);
}
.post-item .thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.post-item:hover .thum img { transform: scale(1.05); }
.post-item .title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}
.post-item .excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.post-item .meta { font-size: 13px; color: var(--text-muted); }
.post-item .date { font-family: var(--mono); font-size: 12px; }

/* list-type-2: gallery view */
body.list-type-2 .post-item a {
  grid-template-columns: 1fr;
}
body.list-type-2 .post-item .thum {
  aspect-ratio: 16/9;
}

/* Post Cover (Permalink) */
.post-cover {
  padding: 120px 24px 60px;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.post-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,17,23,0.7), var(--bg-primary));
}
.post-cover .inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.post-cover .category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}
.post-cover h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.post-cover .meta {
  color: var(--text-muted);
  font-size: 14px;
}
.post-cover .author { margin-right: 12px; }

/* Entry Content */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 60px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--text-primary);
  margin: 2em 0 0.8em;
  font-weight: 700;
}
.entry-content h2 { font-size: 24px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.entry-content h3 { font-size: 20px; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}
.entry-content pre, .entry-content code {
  font-family: var(--mono);
}
.entry-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.entry-content code {
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--orange);
}
.entry-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}
.entry-content img {
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.entry-content th, .entry-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.entry-content th { background: var(--bg-secondary); color: var(--text-primary); }

/* Tags */
.tags { padding: 20px 0; }
.tags h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.tags a {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Related Articles */
.related-articles { padding: 30px 0; border-top: 1px solid var(--border); }
.related-articles h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.related-articles ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-articles li a {
  display: block;
  color: inherit;
}
.related-articles figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  margin-bottom: 8px;
}
.related-articles img { width: 100%; height: 100%; object-fit: cover; }
.related-articles .title {
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Comments */
.comments { padding: 40px 0; border-top: 1px solid var(--border); }
.comments h2 { font-size: 18px; margin-bottom: 20px; }
.comments h2 .count { color: var(--accent); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 40px 0;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.pagination a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.pagination a.selected { background: var(--accent); color: var(--bg-primary); font-weight: 600; }
.pagination .no_more_prev, .pagination .no_more_next { opacity: 0.3; pointer-events: none; }

/* ============ SIDEBAR ============ */
#aside {
  width: 280px;
  flex-shrink: 0;
  padding-top: 40px;
}
body.aside-left .content-wrap { flex-direction: row-reverse; }
body.aside-none #aside { display: none; }
body.aside-none #content { max-width: 100%; }

.sidebar-1, .sidebar-2 { margin-bottom: 30px; }

/* Category Nav */
.category ul { margin: 0; }
.category li a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.category li a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.category li ul { padding-left: 16px; }
.category .link_item { font-weight: 500; }
.category .link_sub_item { font-size: 13px; }
.category .c_cnt { color: var(--text-muted); font-size: 12px; margin-left: 4px; }

/* Sidebar Widgets */
#aside h2 {
  font-size: 14px;
  font-family: var(--mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.notice ul li a, .recent-comment ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice ul li a:hover, .recent-comment ul li a:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Recent/Popular Tab */
.post-list.tab-ui .tab-list { margin-bottom: 16px; }
.post-list.tab-ui .tab-list ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.post-list.tab-ui .tab-list ul li a:hover { background: var(--bg-secondary); }
.post-list.tab-ui .tab-list ul li img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.post-list.tab-ui .title {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-list.tab-ui .date {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Visitor Count */
.count {
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.count .total {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
  margin: 8px 0;
}
.count p { font-size: 13px; color: var(--text-muted); }

/* Social Channel */
.social-channel ul { display: flex; gap: 8px; padding: 0 12px; }
.social-channel li a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-channel li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ COVER GROUPS ============ */
.cover-thumbnail-1, .cover-thumbnail-2, .cover-thumbnail-3,
.cover-thumbnail-4, .cover-list, .cover-event {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.cover-thumbnail-1 h2, .cover-thumbnail-2 h2, .cover-thumbnail-3 h2,
.cover-thumbnail-4 h2, .cover-list h2, .cover-event h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.cover-thumbnail-1 ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.cover-thumbnail-1 li a { display: block; color: inherit; }
.cover-thumbnail-1 figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  margin-bottom: 10px;
}
.cover-thumbnail-1 img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.cover-thumbnail-1 li:hover img { transform: scale(1.05); }
.cover-thumbnail-1 .title { font-size: 15px; font-weight: 500; display: block; margin-bottom: 4px; }
.cover-thumbnail-1 .date { font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.cover-thumbnail-1 .more {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}
.cover-thumbnail-1 .more:hover { border-color: var(--accent); color: var(--accent); }

/* Cover thumbnail 2-4 */
.cover-thumbnail-2 ul, .cover-thumbnail-3 ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cover-thumbnail-2 li a, .cover-thumbnail-3 li a { display: block; color: inherit; }
.cover-thumbnail-2 figure, .cover-thumbnail-3 figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 8px;
}
.cover-thumbnail-2 img, .cover-thumbnail-3 img { width: 100%; height: 100%; object-fit: cover; }
.cover-thumbnail-2 .title, .cover-thumbnail-3 .title {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.cover-thumbnail-2 .excerpt {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-thumbnail-4 ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cover-thumbnail-4 li a { display: block; color: inherit; }
.cover-thumbnail-4 figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  margin-bottom: 8px;
}
.cover-thumbnail-4 img { width: 100%; height: 100%; object-fit: cover; }
.cover-thumbnail-4 .title { font-size: 16px; font-weight: 600; display: block; }
.cover-thumbnail-4 .excerpt { font-size: 13px; color: var(--text-muted); display: block; margin-top: 4px; }

.cover-list ul li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: inherit; }
.cover-list .title { font-size: 16px; font-weight: 500; display: block; }
.cover-list .excerpt { font-size: 13px; color: var(--text-muted); display: block; margin-top: 4px; }

/* Protected Post */
.post-item.protected .thum { background: var(--bg-card); display: flex; align-items: center; justify-content: center; }
.post-item.protected .thum::after { content: '🔒'; font-size: 24px; }
.protected_form {
  text-align: center;
  padding: 60px 20px;
}
.protected_form h2 { font-size: 24px; margin-bottom: 12px; }
.protected_form p { color: var(--text-secondary); margin-bottom: 20px; }
.protected_form input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  margin-right: 8px;
}
.protected_form input:focus { border-color: var(--accent); }
.protected_form .btn {
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.protected_form .btn:hover { opacity: 0.85; }

/* Not Found */
.not-found {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}
.not-found li { margin-bottom: 8px; font-size: 14px; }

/* ============ FOOTER ============ */
#footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}
#footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.order-menu {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.order-menu a { color: var(--text-secondary); font-size: 14px; }
.order-menu a:hover { color: var(--text-primary); }
.page-top {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
  transition: var(--transition);
}
.page-top:hover { border-color: var(--accent); color: var(--accent); }
#footer .meta, #footer .copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .portfolio-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 100px;
    min-height: auto;
  }
  .portfolio-hero .hero-text h1 { font-size: 40px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .content-wrap { flex-direction: column; }
  #aside { width: 100%; }
  .util .search input { width: 140px; }
  .util .search input:focus { width: 180px; }
  .util .menu { display: block; }
  #gnb { display: none; }
  .portfolio-hero { padding: 100px 16px 40px; }
  .portfolio-hero .hero-text h1 { font-size: 32px; }
  .portfolio-hero .subtitle { font-size: 18px; }
  .portfolio-hero .social-links { flex-wrap: wrap; }
  .post-item a { grid-template-columns: 120px 1fr; gap: 12px; padding: 16px 8px; }
  .post-cover h1 { font-size: 24px; }
  .related-articles ul { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .post-item a { grid-template-columns: 1fr; }
  .post-item .thum { aspect-ratio: 16/9; }
  .related-articles ul { grid-template-columns: 1fr; }
  .social-channel ul { flex-wrap: wrap; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.portfolio-hero .hero-text { animation: fadeInUp 0.6s ease-out; }
.portfolio-hero .terminal-card { animation: fadeInUp 0.6s ease-out 0.2s both; }
.tech-category { animation: fadeInUp 0.5s ease-out both; }
.tech-category:nth-child(1) { animation-delay: 0.1s; }
.tech-category:nth-child(2) { animation-delay: 0.2s; }
.tech-category:nth-child(3) { animation-delay: 0.3s; }
.tech-category:nth-child(4) { animation-delay: 0.4s; }
.project-card { animation: fadeInUp 0.5s ease-out both; }
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
