/* 기본 설정 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 전체 페이지 기본 설정 */
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  padding-top: 0;
}

/* 모든 페이지 컨테이너 */
main {
  padding-top: 20px;
  min-height: calc(100vh - 65px);
}

/* 모든 article 요소 (포스트 페이지) */
article {
  padding-top: 20px;
  min-height: 100vh;
  background: #f9fafb;
}

.inner, .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 헤더 - 스크롤 시 숨김/표시 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  padding: 0;
  transition: transform 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo h2 {
  margin: 0;
}

.logo h2 a {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.025em;
}

.logo h2 a:hover {
  color: #ffd700;
}

.menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0;
}

.menu a {
  display: block;
  padding: 8px 16px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.menu a:hover {
  color: #ffd700;
  background-color: rgba(255, 255, 255, 0.1);
}

.menu a.active {
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.m-menu {
  display: none;
  position: fixed;
  top: 65px;
  right: -280px;
  width: 260px;
  height: calc(100vh - 65px);
  background: rgba(0, 0, 0, 0.95);
  transition: right 0.3s ease;
  z-index: 999;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.m-menu.active {
  right: 0;
}

.m-menu ul {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.m-menu li {
  padding: 0 20px;
  margin-bottom: 4px;
}

.m-menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 0;
  display: block;
  transition: color 0.2s ease;
}

.m-menu a:hover {
  color: #ffd700;
}

/* 섹션 공통 - 모든 페이지 적용 */
section, .posts-page, .post-page, main > *, article.post-page {
  padding-top: 20px;
}

section {
  padding: 20px 0 60px 0;
}

.bg--black {
  background: #1a1a1a;
  color: white;
}

.title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 2px;
}

/* HOME 섹션 */
.home {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  position: relative;
  padding-top: 0;
}

.home__txt h1 {
  font-size: 80px;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 5px;
}

.home__txt p {
  font-size: 24px;
  margin-bottom: 40px;
}

.home__txt span {
  color: #ffd700;
  font-weight: bold;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mouse-icon {
  width: 20px;
  height: 35px;
  border: 2px solid white;
  border-radius: 15px;
  margin: 0 auto 10px;
  position: relative;
}

.mouse-icon::before {
  content: '';
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* ABOUT 섹션 */
.profile-img {
  width: 150px;
  height: 150px;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: #333;
  border-radius: 50%;
}

/* About Me 섹션 새로운 스타일 */
.about__content {
  max-width: 1200px;
  margin: 0 auto;
}

/* 프로필 요약 */
.profile-summary {
  margin-bottom: 60px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.profile-info h3 {
  font-size: 32px;
  color: #ffd700;
  margin-bottom: 8px;
  font-weight: 700;
}

.role-desc {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 20px;
}

.experience-badge {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-description {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid #ffd700;
}

.profile-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #e0e0e0;
  margin-bottom: 15px;
}

/* 핵심 역량 - 확장 가능한 UI */
.core-competencies {
  margin-bottom: 60px;
}

.core-competencies h4 {
  font-size: 28px;
  color: #ffd700;
  margin-bottom: 30px;
  text-align: center;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.competency-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
}

.competency-item.expandable {
  cursor: pointer;
}

.competency-item.expandable:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}

.competency-header {
  display: flex;
  align-items: center;
  padding: 25px;
  position: relative;
}

.competency-icon {
  font-size: 32px;
  margin-right: 15px;
}

.competency-item h5 {
  font-size: 18px;
  color: #ffd700;
  margin: 0;
  font-weight: 600;
  flex: 1;
}

.expand-icon {
  font-size: 24px;
  color: #ffd700;
  font-weight: bold;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.competency-item.expanded .expand-icon {
  transform: rotate(45deg);
}

.competency-item > p {
  padding: 0 25px 20px 25px;
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

.tech-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.2);
}

.competency-item.expanded .tech-details {
  max-height: 300px;
  padding: 20px 25px 25px 25px;
}

.tech-details .tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tech-details .tech-item {
  background: rgba(255, 215, 0, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.tech-details .tech-item.primary {
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  font-weight: 600;
}

.tech-details .tech-item:hover {
  background: rgba(255, 215, 0, 0.3);
  border-color: #ffd700;
  transform: scale(1.05);
}

/* 기술 스택 */
.tech-stack h4 {
  font-size: 28px;
  color: #ffd700;
  margin-bottom: 40px;
  text-align: center;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-item {
  background: rgba(255, 215, 0, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.tech-item.primary {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  font-weight: 600;
}

.tech-item:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
  transform: translateY(-2px);
}

/* BLOG 섹션 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.blog-item:hover {
  transform: translateY(-10px);
}

.blog-img {
  height: 200px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.blog-content {
  padding: 30px;
}

.blog-content h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.blog-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.date {
  color: #999;
  font-size: 14px;
}

/* PROJECTS 섹션 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.project-item {
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.05);
}

.project-img {
  height: 250px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffd700;
}

.project-info p {
  color: #ccc;
  margin-bottom: 20px;
}

.tech-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tech-stack span {
  background: #007bff;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
}

/* CONTACT 섹션 */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.contact-item h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #007bff;
}

.contact-item p {
  font-size: 16px;
  color: #666;
}

/* POSTS 페이지 - 자동 적용 */
.posts-page {
  padding: 100px 0 80px 0;
  min-height: 100vh;
  background: #f9fafb;
}

.posts-hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
}

.posts-hero .title {
  color: white;
  margin-bottom: 20px;
}

.posts-hero .subtitle {
  font-size: 18px;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.search-filter {
  margin-bottom: 40px;
  text-align: center;
}

#search-input {
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
  font-size: 16px;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-filter {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.tag-filter:hover, .tag-filter.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.post-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.category {
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tag {
  background: #f8f9fa;
  color: #495057;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid #dee2e6;
}

.no-posts {
  text-align: center;
  padding: 80px 20px;
  color: #666;
}

.no-posts h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

/* 버튼 */
.btn {
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 푸터 */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* 포스트 페이지 - 자동 적용 */
.post-page, article, article.post-page {
  min-height: 150vh;
  background: #f9fafb;
  padding-top: 80px;
}

.post-header {
  background: white;
  padding: 48px 40px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.post-meta-top {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #6b7280;
}

.post-title {
  font-size: 2.25rem;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.post-excerpt {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.post-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tags .tag {
  background: #3b82f6;
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.post-content {
  background: white;
  padding: 48px 40px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  line-height: 1.7;
  border: 1px solid #e5e7eb;
  min-height: 80vh;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-content h1 {
  font-size: 2.2rem;
  border-bottom: 3px solid #007bff;
  padding-bottom: 10px;
}

.post-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.post-content h3 {
  font-size: 1.5rem;
  color: #007bff;
}

.post-content p {
  margin-bottom: 20px;
  color: #555;
  font-size: 16px;
}

.post-content ul, .post-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.post-content li {
  margin-bottom: 8px;
  color: #555;
}

.post-content blockquote {
  border-left: 4px solid #007bff;
  background: #f8f9fa;
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
}

.post-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 30px 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.post-content code {
  background: #f1f3f4;
  color: #d73a49;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
}

.post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.post-content th, .post-content td {
  border: 1px solid #dee2e6;
  padding: 12px;
  text-align: left;
}

.post-content th {
  background: #f8f9fa;
  font-weight: 600;
}

.post-footer {
  background: white;
  padding: 32px 40px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.post-navigation {
  text-align: center;
  margin-bottom: 30px;
}

.back-to-blog {
  display: inline-block;
  padding: 12px 24px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.back-to-blog:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: #007bff;
  border-radius: 50%;
}

.author-details h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.author-details p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Projects 페이지 스타일 */
.projects-page {
  padding: 100px 0 80px 0;
  background: #000000;
  color: #fff;
  min-height: 100vh;
}

.projects-hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
}

.projects-hero .title {
  font-size: 48px;
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
}

.projects-hero .subtitle {
  font-size: 18px;
  color: white;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  border-color: #ffd700;
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.project-image {
  position: relative;
  height: 200px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.project-icon {
  font-size: 60px;
  opacity: 0.7;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-links {
  display: flex;
  gap: 15px;
}

.btn-link {
  background: rgba(255, 215, 0, 0.9);
  color: #000;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-link:hover {
  background: #ffd700;
  transform: scale(1.05);
}

.project-content {
  padding: 25px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}

.project-header h3 {
  font-size: 20px;
  color: #ffd700;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.project-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.project-status.completed {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #000;
}

.project-status.in-progress {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
}

.project-description {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: rgba(255, 215, 0, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.tech-tag.primary {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  font-weight: 600;
}

.tech-tag:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
  transform: scale(1.05);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  gap: 15px;
}

.project-duration,
.project-role {
  font-weight: 500;
}

/* Projects 페이지 반응형 */
@media (max-width: 768px) {
  .projects-hero .title {
    font-size: 36px;
  }
  
  .projects-hero .subtitle {
    font-size: 16px;
  }
  
  .projects-hero {
    padding: 40px 20px;
    margin-bottom: 40px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-card {
    margin: 0 10px;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .project-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .menu {
    display: none;
  }
  
  .theme-toggle:not(.mobile) {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .m-menu {
    display: block;
  }
  
  .home__txt h1 {
    font-size: 50px;
  }
  
  .home__txt p {
    font-size: 18px;
  }
  
  .title {
    font-size: 36px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .posts-hero {
    padding: 40px 20px;
    margin-bottom: 40px;
  }
  
  .post-header,
  .post-content,
  .post-footer {
    padding: 32px 20px;
  }
  
  .post-title {
    font-size: 1.875rem;
  }
  
  .post-content h1 {
    font-size: 1.75rem;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
  }
  
  .author-info {
    flex-direction: column;
    text-align: center;
  }
  
  /* About Me 반응형 */
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .profile-info h3 {
    font-size: 28px;
  }
  
  .role-desc {
    font-size: 16px;
  }
  
  .experience-badge {
    justify-content: center;
  }
  
  .profile-description {
    padding: 20px;
  }
  
  .competency-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .competency-header {
    padding: 20px;
  }
  
  .competency-icon {
    font-size: 28px;
  }
  
  .competency-item h5 {
    font-size: 16px;
  }
  
  .competency-item > p {
    padding: 0 20px 15px 20px;
    font-size: 13px;
  }
  
  .competency-item.expanded .tech-details {
    padding: 15px 20px 20px 20px;
  }
  
  .core-competencies h4 {
    font-size: 24px;
  }
}

/* 테마 토글 버튼 */
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.theme-toggle.mobile {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  width: 100%;
  justify-content: center;
}

.mobile-theme-toggle {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 다크 모드 스타일 */
body:not(.light-mode) {
  background: #000000;
  color: #ffffff;
}

body:not(.light-mode) header {
  background: rgba(0, 0, 0, 0.95);
}

body:not(.light-mode) .logo h2 a,
body:not(.light-mode) .menu a,
body:not(.light-mode) .m-menu a {
  color: #ffffff;
}

body:not(.light-mode) .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

body:not(.light-mode) .m-menu {
  background: rgba(0, 0, 0, 0.95);
}

body:not(.light-mode) .bg--black {
  background: #000000;
  color: #ffffff;
}

body:not(.light-mode) .home {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

body:not(.light-mode) .about .title {
  color: #ffd700;
}

body:not(.light-mode) .profile-info h3,
body:not(.light-mode) .competency-item h5,
body:not(.light-mode) .expand-icon {
  color: #ffd700;
}

body:not(.light-mode) .badge {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000000;
}

body:not(.light-mode) .profile-description {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #ffd700;
}

body:not(.light-mode) .competency-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

body:not(.light-mode) .competency-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
}

body:not(.light-mode) .tech-details {
  background: rgba(255, 255, 255, 0.05);
}

body:not(.light-mode) .tech-details .tech-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body:not(.light-mode) .tech-details .tech-item.primary {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
}

body:not(.light-mode) .projects-page,
body:not(.light-mode) .posts-page {
  background: #000000;
  color: #ffffff;
}

body:not(.light-mode) .projects-hero,
body:not(.light-mode) .posts-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

body:not(.light-mode) .projects-hero .subtitle,
body:not(.light-mode) .posts-hero .subtitle {
  color: white;
}

body:not(.light-mode) #search-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

body:not(.light-mode) #search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

body:not(.light-mode) .tag-filters .tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body:not(.light-mode) .tag-filters .tag:hover,
body:not(.light-mode) .tag-filters .tag.active {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000000;
}

body:not(.light-mode) .no-posts h3 {
  color: #ffd700;
}

body:not(.light-mode) .no-posts p {
  color: rgba(255, 255, 255, 0.8);
}

body:not(.light-mode) .filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

body:not(.light-mode) .filter-btn:hover,
body:not(.light-mode) .filter-btn.active {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000000;
}

body:not(.light-mode) .project-card,
body:not(.light-mode) .blog-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

body:not(.light-mode) .project-card:hover,
body:not(.light-mode) .blog-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

body:not(.light-mode) .project-image {
  background: linear-gradient(45deg, #667eea, #764ba2);
}

body:not(.light-mode) .project-header h3,
body:not(.light-mode) .blog-item h3 {
  color: #ffd700;
}

body:not(.light-mode) .blog-item h3 {
  color: #ffd700;
}

body:not(.light-mode) .blog-item p {
  color: rgba(255, 255, 255, 0.8);
}

body:not(.light-mode) .post-meta .date,
body:not(.light-mode) .post-meta .category {
  color: rgba(255, 255, 255, 0.6);
}

body:not(.light-mode) .tags .tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body:not(.light-mode) .tech-tag.primary {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
}

body:not(.light-mode) .btn-primary {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000000;
}

body:not(.light-mode) footer {
  background: #000000;
  color: #ffffff;
}

/* 라이트 모드 - 대칭적 색상 시스템 */
body.light-mode {
  background: #ffffff;
  color: #1a1a1a;
}

/* 헤더 */
body.light-mode header {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .logo h2 a,
body.light-mode .menu a,
body.light-mode .m-menu a {
  color: #1a1a1a;
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
  color: #1a1a1a;
}

body.light-mode .m-menu {
  background: rgba(255, 255, 255, 0.95);
}

/* Light 모드에서 모바일 메뉴 토글 버튼 색상 */
body.light-mode .menu-toggle span {
  background: #1a1a1a;
}

/* 홈 섹션 */
body.light-mode .home {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

/* About 섹션 */
body.light-mode .bg--black {
  background: #f8fafc;
  color: #1a1a1a;
}

body.light-mode .about .title {
  color: #1e3a8a;
}

body.light-mode .profile-info h3,
body.light-mode .competency-item h5,
body.light-mode .expand-icon {
  color: #1e3a8a;
}

body.light-mode .badge {
  background: linear-gradient(135deg, #1e3a8a, #3730a3);
  color: #ffffff;
}

body.light-mode .profile-description {
  background: rgba(30, 58, 138, 0.05);
  border-left-color: #1e3a8a;
}

body.light-mode .competency-item {
  background: rgba(30, 58, 138, 0.05);
  border-color: rgba(30, 58, 138, 0.1);
}

body.light-mode .competency-item:hover {
  background: rgba(30, 58, 138, 0.08);
  border-color: rgba(30, 58, 138, 0.3);
}

body.light-mode .tech-details {
  background: rgba(30, 58, 138, 0.1);
}

body.light-mode .tech-details .tech-item {
  background: rgba(30, 58, 138, 0.1);
  border-color: rgba(30, 58, 138, 0.2);
  color: #1a1a1a;
}

body.light-mode .tech-details .tech-item.primary {
  background: rgba(30, 58, 138, 0.2);
  border-color: rgba(30, 58, 138, 0.4);
}

/* Projects & Posts 페이지 */
body.light-mode .projects-page,
body.light-mode .posts-page {
  background: #ffffff;
  color: #1a1a1a;
}

body.light-mode .projects-hero,
body.light-mode .posts-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

body.light-mode .projects-hero .title,
body.light-mode .posts-hero .title {
  color: white;
}

body.light-mode .filter-btn {
  background: rgba(30, 58, 138, 0.05);
  border-color: rgba(30, 58, 138, 0.3);
  color: #1a1a1a;
}

body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active {
  background: linear-gradient(135deg, #1e3a8a, #3730a3);
  color: #ffffff;
}

body.light-mode .project-card,
body.light-mode .blog-item {
  background: #ffffff;
  border-color: rgba(30, 58, 138, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .project-card:hover,
body.light-mode .blog-item:hover {
  border-color: rgba(30, 58, 138, 0.3);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
}

body.light-mode .project-image {
  background: linear-gradient(45deg, #667eea, #764ba2);
}

body.light-mode .project-header h3,
body.light-mode .blog-item h3 {
  color: #1e3a8a;
}

body.light-mode .tech-tag {
  background: rgba(30, 58, 138, 0.1);
  border-color: rgba(30, 58, 138, 0.2);
  color: #1a1a1a;
}

body.light-mode .tech-tag.primary {
  background: rgba(30, 58, 138, 0.2);
  border-color: rgba(30, 58, 138, 0.4);
}

/* 라이트 모드에서 텍스트 가시성 개선 */
body.light-mode .profile-description p,
body.light-mode .competency-item p,
body.light-mode .project-description,
body.light-mode .blog-item p,
body.light-mode .date,
body.light-mode .project-meta,
body.light-mode .contact-item p,
body.light-mode .subtitle {
  color: #4a5568;
}

body.light-mode .role-desc {
  color: #2d3748;
}

body.light-mode .posts-hero .subtitle {
  color: white;
  opacity: 1;
}

body.light-mode .projects-hero .subtitle {
  color: white;
  opacity: 1;
}
/* 공통 요소 */
body.light-mode .btn-primary {
  background: linear-gradient(135deg, #1e3a8a, #3730a3);
  color: #ffffff;
}

body.light-mode footer {
  background: #1a1a1a;
  color: #ffffff;
}

/* 반응형 */
@media (max-width: 768px) {
  .theme-toggle:not(.mobile) {
    display: none;
  }
  
  body.light-mode .mobile-theme-toggle {
    border-top-color: rgba(0, 0, 0, 0.1);
  }
  
  body.light-mode .theme-toggle.mobile {
    background: rgba(30, 58, 138, 0.8);
    border-color: rgba(30, 58, 138, 1);
    color: #ffffff;
  }
  
  /* Dark 모드에서 모바일 테마 버튼 */
  body:not(.light-mode) .theme-toggle.mobile {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    color: #1a1a1a;
  }
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}
