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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f7;
  color: #222;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-title {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.site-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.site-email a {
  font-weight: 600;
  text-decoration: underline;
}

main {
  padding: 32px 0 40px;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  text-align: center;
}

.projects-section {
  margin-top: 8px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  width: 280px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.project-image {
  border-radius: 10px;
  height: 140px;
  margin-bottom: 12px;
}

/* Simple color-coded placeholders for now */
.project-image-1 {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.project-image-2 {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.project-image-3 {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.project-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.project-description {
  font-size: 0.92rem;
  color: #555;
}

.site-footer {
  padding: 16px 0 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

/* Project detail pages */
.project-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.project-page-header {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  padding: 24px 0;
  text-align: center;
  margin-bottom: 24px;
}

.project-page-main {
  flex: 1;
  padding-bottom: 32px;
}

.project-page-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  text-align: center;
}

.project-page-status {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.95rem;
  text-decoration: underline;
  color: #4f46e5;
}

@media (max-width: 640px) {
  .projects-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card {
    width: 100%;
  }
}
