* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #fafafa;
  --text-color: #333;
  --text-secondary: #555;
  --text-tertiary: #999;
  --border-color: #eee;
  --accent-color: #5dba99;
  --accent-hover: #4a9a7f;
  --code-bg: #f1f1f1;
  --separator-color: #ccc;
  --project-border: #eee;
  --font-family: "Courier New", "Courier", monospace;
}

html.dark-mode,
body.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #e0e0e0;
  --text-tertiary: #b0b0b0;
  --border-color: #333;
  --accent-color: #5dba99;
  --accent-hover: #4a9a7f;
  --code-bg: #2a2a2a;
  --separator-color: #555;
  --project-border: #333;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s, font-family 0.3s;
}

/* Font Family Options */
body.font-monospace {
  --font-family: "Courier New", "Courier", monospace;
}

body.font-serif {
  --font-family: "Georgia", "Times New Roman", serif;
}

body.font-sans-serif {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
}

body.font-mono-modern {
  --font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Code",
    "Droid Sans Mono", "Source Code Pro", monospace;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header Styles */
.header {
  margin-bottom: 60px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 50px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.header h1 {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: -1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.nav a {
  color: var(--accent-color);
  text-decoration: none;
  transition: opacity 0.2s, text-decoration 0.2s;
  position: relative;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.separator {
  color: var(--separator-color);
}

/* Theme Toggle Button */
.theme-toggle,
.font-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-color);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  font-family: var(--font-family);
}

.theme-toggle:hover,
.font-toggle:hover {
  background-color: var(--border-color);
  border-color: var(--accent-color);
}

.font-toggle {
  font-size: 14px;
  padding: 8px 10px;
}

/* Social Section */
.social-section {
  margin-bottom: 80px;
  font-size: 16px;
}

.social-section p {
  line-height: 1.8;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  vertical-align: middle;
  margin-left: 12px;
}

.social-links-text {
  margin-right: 8px;
}

.social-section p .social-link:first-of-type {
  margin-left: 0;
}

.social-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.social-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Projects Section */
.projects-section {
  margin-bottom: 80px;
}

.projects-section h2 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  /* gap: 32px; */
}

.project {
  border-bottom: 1px solid var(--project-border);
  padding-bottom: 24px;
}

.project:last-child {
  border-bottom: none;
}

.project h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: normal;
}

.project h3 a {
  color: var(--text-color);
  text-decoration: underline;
  transition: color 0.2s;
}

.project h3 a:hover {
  color: var(--accent-color);
}

.project p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Blog Section */
.blog-section {
  margin-bottom: 80px;
}

.blog-section h2 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 40px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.blog-preview {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.blog-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  background-color: var(--bg-color);
}

.blog-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(93, 186, 153, 0.1);
  transform: translateY(-2px);
}

.blog-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  background-color: var(--bg-color);
}

.blog-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(93, 186, 153, 0.1);
  transform: translateY(-2px);
}

.blog-item h3,
.blog-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: normal;
}

.blog-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-item h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-item:hover h3 a {
  color: var(--accent-color);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card h3 {
  color: var(--text-color);
  text-decoration: none;
}

.blog-card:hover h3 {
  color: var(--accent-color);
}

.blog-date {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.blog-item p:last-child,
.blog-card p:last-child {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* See More Button */
.see-more {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
}

.see-more-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s, opacity 0.2s, transform 0.2s;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid var(--accent-color);
  cursor: pointer;
}

.see-more-btn:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: scale(1.05);
}

/* Blog Post Page */
.blog-post {
  margin-bottom: 80px;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.post-header h1 {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: bold;
}

.post-date {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.post-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content h2 {
  font-size: 22px;
  color: var(--text-color);
  margin: 32px 0 16px 0;
  margin-top: 32px;
  font-weight: bold;
}

.post-content h3 {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 24px 0 12px 0;
  font-weight: bold;
}

.post-content ul,
.post-content ol {
  margin: 16px 0 16px 24px;
}

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

.post-content code {
  background-color: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", "Courier", "Monaco", "SF Mono", monospace;
  font-size: 14px;
  color: var(--text-color);
}

.post-content pre {
  background-color: var(--code-bg);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
  color: var(--text-color);
  font-family: "Courier New", "Courier", "Monaco", "SF Mono", monospace;
}

.post-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.back-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

/* About Section */
.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 24px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.about-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 30px 16px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header h1 {
    font-size: 24px;
  }

  .projects-section h2,
  .about-section h2,
  .blog-section h2 {
    font-size: 20px;
  }

  .nav {
    font-size: 14px;
    flex-wrap: wrap;
  }

  .theme-toggle,
  .font-toggle {
    font-size: 16px;
    padding: 6px 10px;
  }

  body {
    font-size: 15px;
  }

  .post-header h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 12px;
  }

  .header h1 {
    font-size: 20px;
  }

  .logo {
    width: 28px;
    height: 30px;
  }

  .projects-section h2,
  .about-section h2,
  .blog-section h2 {
    font-size: 18px;
  }

  .theme-toggle,
  .font-toggle {
    font-size: 14px;
    padding: 5px 8px;
  }

  body {
    font-size: 14px;
  }

  .post-header h1 {
    font-size: 22px;
  }
}
