  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    text-align: center;
  }

  .projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 80px;
    padding-bottom: 80px;
    align-items: flex-start; /* supaya tinggi berbeda tetap rapi */
  }

  .project-card {
    position: relative; /* untuk overlay */
    background: #fff;
    border-radius: 10px;
    width: 350px;
    height: 180px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .project-card img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    filter: brightness(30%);
  }



  .overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 0px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s ease;
  }

  .overlay-title p {
    font-size: 0.8rem;
    font-weight: normal;
    color: white;
  }

  /* Overlay detail (muncul saat hover) */
  .overlay-detail {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    text-decoration: none;
  }

  .overlay p {
    font-size: 0.9rem;
  }

  /* Hover effect */
  .project-card:hover .overlay-detail {
    opacity: 1;
  }
  .project-card:hover .overlay-title {
    opacity: 0;
  }