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

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

header {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1.2rem 1rem;
}

header h1 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  line-height: 1.2;
  word-break: break-word;
}

header p {
  font-size: 1rem;
  opacity: 0.85;
  padding: 0 1rem;
  line-height: 1.4;
}

main.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.project-card {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.project-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buttons a {
  text-decoration: none;
  background-color: #60b347;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.buttons a:hover {
  background-color: #4ea336;
}
/* Styling of credits */
.credits {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 1rem;
  font-size: 0.95rem;
  color: #444;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.credits h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #222;
}

.credits ul {
  padding-left: 1.2rem;
}

.credits li {
  margin-bottom: 0.6rem;
}

.credits a {
  color: #60b347;
  text-decoration: none;
}

.credits a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #666;
  background: #eee;
}
