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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f7f7f7;
  padding: 1.5rem;
}

/* Header and top navigation */
header.site-header {
  background: transparent;
  border-bottom: none;
  padding: 0.4rem 0;
} 

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-brand .site-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.site-brand .site-title a {
  color: #111;
  text-decoration: none;
}

.site-brand .site-tagline {
  margin: 0.15rem 0 0;
  color: #666;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-nav a {
  color: #6b7280;
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  font-size: 0.92rem;
  transition: color 0.12s ease;
}

.site-nav a:hover {
  color: #111;
  text-decoration: underline;
  background: transparent;
}

@media (max-width: 768px) {
  .site-nav {
    gap: 0.5rem;
    font-size: 0.95rem;
  }
  header.site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-header {
  background: transparent;
  padding: 0.6rem 0;
  box-shadow: none;
  border-bottom: none;
}

.site-title a {
  color: #333;
  text-decoration: none;
}

.site-nav {
  margin-top: 0;
}

.site-nav a {
  margin-right: 1rem;
  color: #6b7280; /* muted gray */
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  font-size: 0.92rem;
  transition: color 0.12s ease;
}

.site-nav a:hover {
  color: #111;
  text-decoration: underline;
  background: transparent;
} 

.site-content {
  min-height: calc(100vh - 200px);
}

/* Projects container with sidebar on the right */
.projects-container {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Tag sidebar - moved to the right */
.tag-sidebar {
  width: 180px;
  flex-shrink: 0;
  order: 2;
}

.tag-sidebar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #666;
  font-weight: normal;
}

.tag-filters {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tag-filter {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 0.9rem;
  color: #999;
}

.tag-filter:hover {
  color: #333;
}

.tag-filter.active {
  color: #333;
  font-weight: 500;
}

/* Projects grid - on the left */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  flex: 1;
  order: 1;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-image-link {
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  transition: transform 0.3s ease;
}

.project-image-link:hover .project-image {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info h3 a {
  color: #333;
  text-decoration: none;
}

.project-info h3 a:hover {
  color: #0066cc;
}

.project-tags {
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  background: #e0e0e0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-external-link {
  color: #0066cc;
  text-decoration: none;
}

.project-external-link:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .projects-container {
    flex-direction: column;
    padding: 1rem;
  }

  .tag-sidebar {
    width: 100%;
    order: 1;
  }

  .projects-grid {
    order: 2;
  }

  .tag-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .tag-filter {
    flex: 0 0 auto;
  }

  .projects-grid {
    gap: 1rem;
  }
}

.site-footer {
  background: transparent;
  color: #6b7280; /* muted text */
  padding: 1.25rem 0;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.75rem;
}

.site-footer a {
  color: #0366d6;
  margin: 0 0.5rem;
  text-decoration: none;
}

/* Social icons used in footer and about page */
.social-icons {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.25rem;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  color: inherit;
  fill: currentColor;
  vertical-align: middle;
  transition: color 0.12s ease;
}

.social-icon {
  color: #6b7280; /* muted */
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.social-icon:hover {
  color: #111;
}

.project-links .social-icon {
  margin-right: 0.6rem;
}


/* Project page styles */
.project-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.project-header h1 {
  margin-bottom: 1rem;
}

.project-feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.project-meta {
  margin-bottom: 2rem;
}

.project-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.back-link {
  color: #0066cc;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}