*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:'Segoe UI',sans-serif;
  background: #050816;
}

/* HEADER */
header{
  text-align:center;
  padding:40px 20px;
}

header h1{
  font-size:3rem;
  font-weight:800;
  letter-spacing:1px;
  background:linear-gradient(90deg,#22c55e,#38bdf8,#6366f1);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin:0;
}

header p{
  color:rgba(255,255,255,.7);
  font-size:1rem;
}

/* GALLERY */
.gallery-container{
  padding:20px;
}

#gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}

/* CARD */
.card{  
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.05);
  transition:.35s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    135deg,
    rgba(34,197,94,.25),
    rgba(59,130,246,.25)
  );
  opacity:0;
  transition:.3s;
  z-index:1;
}

.card:hover::before{
  opacity:1;
}

.card:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 15px 35px rgba(0,0,0,.4);
}

.card img{
  width:100%;
  height:250px;
  object-fit:cover;
  transition:transform .4s ease;
}
/* CLICK ZOOM */
.card img.zoomed{
  transform:scale(1.2);
  z-index:5;
}

.card:hover img{
  transform:scale(1.08);
}

/* META */
.meta{
  position:absolute;
  bottom:0;
  width:100%;
  background:rgba(0,0,0,.55);
  padding:8px;
  display:flex;
  justify-content:space-between;
  font-size:.8rem;
}

/* FOOTER */
footer{
  padding:20px;
  opacity:.6;
}
canvas{
  position: fixed !important;
  inset: 0;
  z-index: -1 !important;
  pointer-events: none;
}

/* MAIN UI ABOVE */
header,
.gallery-container,
footer{
  position: relative;
  z-index: 2;
}
#lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  justify-content:center;
  align-items:center;
  z-index:9999;
  backdrop-filter:blur(6px);
}

#lightbox img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
  animation:zoom .3s ease;
}


/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity:0;
    transform: translateY(30px);
  }
  to {
    opacity:1;
    transform: translateY(0);
  }
}
@keyframes zoom {
  from { transform: scale(.8); }
  to { transform: scale(1); }
}