body {
  font-family: sans-serif;
  margin: 0;
  padding: 2rem;
  max-width: 1000px;
  margin-inline: auto;
  background-color: #f9f9f9;
  color: #333;
}

body {
  background-image: url("/img/bg-pattern.svg"), url("/img/bg-pattern.svg");
  background-repeat: repeat;
  background-size: 80px 80px;
  background-position: 
      0 0,
      40px 40px;
  background-color: #ebebeb;
  color: #111;
}


section {
  background: linear-gradient(to right, #f0f0f0, #fafafa);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

h1, h2 {
  text-align: center;
}

a {
  color: #007bff;
  text-decoration: underline;
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: #f7f7f7;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #e0e0e0;
  cursor: pointer;
}

.card-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1rem 1.5rem;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #666;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  background: white;
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  padding: 1.5rem;
  position: relative;
}

.lightbox-content img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.lightbox h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.lightbox p {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.lightbox .close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  font-weight: bold;
}

.lightbox .close-btn:hover {
  color: #000;
}

.lightbox .next-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.lightbox .next-btn:hover {
  background: #0056b3;
}