.portfolio {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 40px 0;
}

.project {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  padding: 20px;
}

.overlay h3,
.overlay p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal video {
  max-width: 95%;
  max-height: 90%;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}