
:root {
  --bg: #fafafa;
  --bg-sidebar: #f0f0f0;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e0e0e0;
  --link: #1a1a1a;
  --link-hover: #444;
  --code-bg: #f5f5f5;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

body.dark {
  --bg: #0d1117;
  --bg-sidebar: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: #30363d;
  --link: #e6edf3;
  --link-hover: #58a6ff;
  --code-bg: #161b22;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--text-muted);
}

.theme-icon::before {
  content: '☀';
  font-size: 18px;
  color: var(--text);
}

body.dark .theme-icon::before {
  content: '☾';
  color: #faf0e6;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-content {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photo-container {
  margin-bottom: 20px;
}

.photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.sidebar-name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sidebar-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sidebar-highlight {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 20px;
}

.sidebar-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.sidebar-icons a {
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.sidebar-icons a:hover {
  opacity: 1;
}

.sidebar-icons img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.sidebar-links a:hover {
  background: var(--border);
}

.sidebar-links img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.7;
}

/* Main Wrapper */
.main-wrapper {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.site-header {
  padding: 48px 48px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  transition: border-color 0.2s ease;
  width: 100%;
}

.nav {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

/* Main Content */
.main {
  flex: 1;
  padding: 0 48px 64px;
  max-width: 1000px;
}

.main-centered {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.about h2 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.about h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.about p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.7;
}

.about strong {
  font-weight: 600;
}

/* Currently Working On Section */
.currently-working {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.currently-working h2 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.working-list {
  list-style: none;
  padding: 0;
}

.working-list li {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.working-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.working-list a:hover {
  text-decoration: underline;
}

/* Blogs Section */
.blogs {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.blogs h2 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.blog-list {
  list-style: none;
  padding: 0;
}

.blog-list li {
  font-size: 14px;
  margin-bottom: 8px;
}

.blog-list a {
  color: var(--text);
  text-decoration: none;
}

.blog-list a:hover {
  text-decoration: underline;
}

/* Status Badge */
.status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 500;
}

/* Coming Soon */
.coming-soon {
  background: var(--code-bg);
  padding: 24px;
  border-radius: 4px;
  margin-top: 24px;
}

.coming-soon h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.coming-soon p {
  color: var(--text-muted);
}

.coming-soon ul {
  color: var(--text-muted);
}

/* Projects Page */
.page-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 40px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

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

.project-card h2 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.project-card h2 a:hover {
  text-decoration: underline;
}

.project-card .description {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

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

.project-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.project-links a:hover {
  color: var(--text);
}

/* Article / Blog Post */
.article {
  max-width: 1000px;
}

.article-header {
  margin-bottom: 48px;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--text);
}

.article-header h1 {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.article-content h2 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-content strong {
  font-weight: 600;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 3px;
}

.article-content pre {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--code-bg);
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
  line-height: 1.5;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content blockquote {
  border-left: 3px solid var(--border);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-footer h2 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.article-footer a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.article-footer a:hover {
  color: var(--text);
}

/* Resume Page */
.resume-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.resume-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.resume-link:hover {
  border-color: var(--text);
}

/* Contact Page */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-list span {
  color: var(--text-muted);
  margin-left: 8px;
}

/* Footer */
.site-footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  transition: border-color 0.2s ease;
  width: 100%;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Link styles */
.link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.link:hover {
  border-color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .site-header {
    padding: 32px 24px 16px;
  }

  .main {
    padding: 0 24px 48px;
  }

  .site-footer {
    padding: 24px;
  }

  .theme-toggle {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .article-header h1 {
    font-size: 18px;
  }

  .article-content h2 {
    font-size: 15px;
    margin-top: 36px;
  }

  .article-content p,
  .article-content li {
    font-size: 14px;
  }
}
