body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #78c8e8;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #78c8e8;
  color: #2c3e50;
  padding: 40px 20px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 36px;
}

header p {
  font-size: 18px;
  margin-top: 10px;
}

.main-content {
  flex: 1;
  padding: 60px 20px 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.button {
  padding: 14px 28px;
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 30px;
  transition: background-color 0.3s, transform 0.3s;
  min-width: 180px;
  width: auto;
  text-align: center;
  border: none;
  cursor: pointer;
}

.button:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

.left,
.right {
  text-align: center;
}

footer {
  text-align: center;
  padding: 28px 20px;
  background-color: #2c3e50;
  color: white;
  margin-top: auto;
}

.subpage-content {
  flex: 1;
  padding: 60px 20px 40px;
  text-align: center;
}

.back-button {
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.back-button:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

.github-link-box {
  margin-top: 40px;
  text-align: center;
  font-size: 18px;
  color: #2c3e50;
}

.github-link-box a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
  word-break: break-all;
}

.github-link-box a:hover {
  text-decoration: underline;
}

.portfolio-layout {
  flex: 1;
  display: flex;
  gap: 28px;
  padding: 24px 28px 40px;
  align-items: stretch;
  box-sizing: border-box;
}

.project-sidebar {
  width: 33.3333%;
  min-width: 260px;
}

.sidebar-card {
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.12);
}

.sidebar-card h2 {
  margin-top: 0;
  color: #2c3e50;
}

.sidebar-intro {
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.project-nav-button {
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 18px;
  color: #2c3e50;
  background-color: white;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.08);
}

.project-nav-button:hover {
  transform: translateY(-2px);
  border-color: #2c3e50;
}

.project-nav-button.active {
  background-color: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

.project-detail-area {
  width: 66.6667%;
}

.project-detail-card {
  display: none;
  background-color: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 28px rgba(44, 62, 80, 0.12);
  height: 100%;
  box-sizing: border-box;
}

.project-detail-card.active {
  display: block;
}

.project-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: #d8eef8;
  color: #2c3e50;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 14px;
}

.project-detail-card h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 32px;
}

.project-desc {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.detail-box {
  background-color: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.08);
}

.detail-box h3 {
  margin-top: 0;
  color: #2c3e50;
}

.detail-box p,
.detail-box li {
  line-height: 1.7;
}

.detail-box ul {
  margin: 0;
  padding-left: 20px;
}

.vertical-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.small-button {
  font-size: 18px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .portfolio-layout {
    flex-direction: column;
  }

  .project-sidebar,
  .project-detail-area {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header h1 {
    font-size: 30px;
  }

  .button {
    font-size: 22px;
    width: 100%;
  }

  .portfolio-layout {
    padding: 20px 16px 30px;
  }

  .sidebar-card,
  .project-detail-card {
    padding: 22px 18px;
  }

  .project-nav-button {
    font-size: 16px;
  }

  .project-detail-card h2 {
    font-size: 26px;
  }

  .project-desc {
    font-size: 16px;
  }
}

.blog-sidebar {
  position: relative;
}

.blog-sidebar-card {
  display: flex;
  flex-direction: column;
}

.directory-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 20px;
}

.directory-scroll::-webkit-scrollbar {
  width: 8px;
}

.directory-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(44, 62, 80, 0.35);
  border-radius: 999px;
}

.directory-link {
  display: block;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #2c3e50;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
  transition: all 0.25s ease;
}

.directory-link:hover {
  transform: translateY(-2px);
  background-color: #2c3e50;
  color: white;
}

.blog-main-card {
  display: block;
}

.blog-actions {
  margin: 20px 0 28px;
}

.article-section {
  background-color: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(44, 62, 80, 0.08);
  scroll-margin-top: 24px;
}

.article-section h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #2c3e50;
}

.article-meta {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 14px;
  color: #5b6b7a;
}

.article-section p {
  line-height: 1.8;
}

@media (max-width: 960px) {
  .directory-scroll {
    max-height: 260px;
  }
}

.blog-sidebar-card {
  display: flex;
  flex-direction: column;
}

.directory-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 20px;
}

.directory-scroll::-webkit-scrollbar {
  width: 8px;
}

.directory-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(44, 62, 80, 0.35);
  border-radius: 999px;
}

.directory-button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: none;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #2c3e50;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
  transition: all 0.25s ease;
}

.directory-button:hover {
  transform: translateY(-2px);
  background-color: #2c3e50;
  color: white;
}

.directory-button.active {
  background-color: #2c3e50;
  color: white;
}

.blog-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.blog-content-area {
  display: flex;
}

.blog-main-card {
  display: none;
  width: 100%;
  height: 600px;      
  overflow-y: auto;   
  box-sizing: border-box;
}

.blog-main-card.active {
  display: block;
}

.blog-main-card::-webkit-scrollbar {
  width: 8px;
}

.blog-main-card::-webkit-scrollbar-thumb {
  background-color: rgba(44, 62, 80, 0.35);
  border-radius: 999px;
}

.article-meta {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 14px;
  color: #5b6b7a;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  .directory-scroll {
    max-height: 260px;
  }

  .blog-main-card {
    height: 460px;
  }
}

.showcase-sidebar-card {
  display: flex;
  flex-direction: column;
}

.showcase-sidebar-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-views {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  font-size: 12px;
  line-height: 1.4;
  color: #2c3e50;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.12);
  backdrop-filter: blur(4px);
}

@media (max-width: 640px) {
  .page-views {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 3px 7px;
  }
}

.article-content code {
  background: rgba(44, 62, 80, 0.08);
  padding: 3px 7px;
  border-radius: 6px;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "SFMono-Regular",
               "Consolas", "Liberation Mono", "Menlo", monospace;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.article-content pre {
  background: #111827;
  color: #f8fafc;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-content pre code {
  display: block;
  background: transparent;
  padding: 0;
  color: inherit;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "SFMono-Regular",
               "Consolas", "Liberation Mono", "Menlo", monospace;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.2px;
  white-space: pre;
}
