/* — Smooth scroll — */
html { scroll-behavior: smooth; }

/* — Reset & Base — */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; line-height: 1.5; color: #333; background: #fafafa; }

/* — Full-width header bar — */
.site-header {
  background: #004c3f;
  color: #fff;
}
.site-header .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header h1 {
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header nav a {
  margin-left: 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
@media (max-width: 500px) {
  .site-header .container { flex-wrap: wrap; }
  .site-header h1 { flex: 1 100%; margin-bottom: .5rem; }
  .site-header nav { flex: 1 100%; text-align: right; }
}

/* — Container utility — */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* — Section titles — */
section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

/* — Projects grid — */
#projects { padding: 2rem 1rem 2rem; background: #fff; margin-top: 1rem; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.project-card h3 { padding: .75rem 1rem; font-size: 1.2rem; }
.project-card p  { padding: 0 1rem 1rem; font-size: 1rem; color: #555; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3,1fr); } }

/* — Contact — */
#contact {
  padding: 2rem 1rem;
  background: #fff;
  margin-bottom: 2rem;
}
.contact-info {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #f0f0f5;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  text-align: center;
}
.contact-info p {
  margin-bottom: .75rem;
  font-size: 1rem;
}
.contact-info p strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.contact-info a {
  color: #004c3f;
  text-decoration: none;
  font-weight: 500;
}
.contact-info a:hover {
  text-decoration: underline;
}
