html, body {
  min-height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  box-sizing: border-box;
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

#main {
  width: 100%;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

#main h1 {
  margin-top: 0;
  color: #ffffff;
}

#buttons {
  margin: 20px 0 40px 0;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: #343131;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #a1d6b2;
  color: #121212;
}

/* --- Project Section Styling --- */
#projects-section {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-card {
  background-color: #1e1e1e;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.project-card h2 {
  margin-top: 0;
  color: #61afef;
}

.project-desc {
  color: #abb2bf;
  line-height: 1.5;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.project-gallery img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #333;
  object-fit: cover;
}

.project-features {
  line-height: 1.6;
  color: #abb2bf;
  padding-left: 20px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #2a2a2a;
}

.tech-tags span {
  background-color: #2c313a;
  color: #98c379;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 6px;
  font-family: monospace;
}

.github-btn {
  color: #61afef;
  text-decoration: none;
  font-weight: bold;
}

.github-btn:hover {
  text-decoration: underline;
}

/* Header alignment for title + badge */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.card-header h2 {
  margin: 0;
}

/* Status Badge Base */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Warning / In Fabrication Variant (Amber Gold) */
.status-badge.warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Adds 32px gap between cards regardless of parent container rules */
.project-card + .project-card {
  margin-top: 32px;
}
