/* RESET DASAR */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* BODY */
body{
  background:#1f1f1f;
  font-family:'Inter', sans-serif;
  color:#fff;

  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* HEADER */
.header{
  text-align:center;
  padding:25px 15px 10px;
}

.logo{
  max-width:220px;
  width:100%;
}

/* GRID CONTAINER */
.grid{
  flex:1;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  max-width:900px;
  width:100%;
  margin:0 auto;
  padding:15px;
}

/* CARD */
.card{
  background:#2a2a2a;
  border-radius:10px;
  overflow:hidden;
  cursor:pointer;

  border:1px solid rgba(255,255,255,0.05);
  box-shadow:0 8px 18px rgba(0,0,0,0.35);

  transition:transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 24px rgba(0,0,0,0.5);
}

/* IMAGE */
.card img{
  width:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  display:block;
}

/* TITLE */
.card p{
  padding:12px;
  font-size:14px;
  font-weight:600;
  color:#f1f1f1;
  line-height:1.4;
}

/* FOOTER */
.footer{
  width:100%;
  background:#181818;
  color:#aaa;
  text-align:center;
  padding:18px 10px;
  font-size:14px;
  border-top:1px solid rgba(255,255,255,0.05);
}

.footer p{
  margin:0;
}

.footer a{
  color:#a855f7;
  text-decoration:none;
  font-weight:500;
}

.footer a:hover{
  opacity:0.8;
}

/* RESPONSIVE */
@media (max-width:900px){
  .grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:500px){
  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }

  .card p{
    font-size:12px;
  }

  .header{
    padding:20px 10px 5px;
  }
}