* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  overflow-x: hidden;
}

/* soft blur background */
.bg-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(40px);
  z-index: -1;
}

header {
  text-align: center;
  padding: 60px 20px 30px;
}

header h1 {
  font-size: 4rem;
  letter-spacing: 6px;
  font-weight: lighter;
    color: #ffffff;
  text-shadow:
    0 0 5px #ffffff,
    0 0 0px #ffffff,
    0 0 0px #ffffff,
    0 0 40px #ffffff;
  animation: flicker 1.5s infinite alternate;
}
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 5px #ffffff,
      0 0 20px #ffffff,
      0 0 0px #ffffff,
      0 0 40px #ffffff;
  }
  20%, 22%, 24%, 55% {
    text-shadow: none;
  }
}

header p {
  opacity: 0.8;
  margin-top: 10px;
  
}

/* Gallery */
.gallery {
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Card */
.card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.card img {
  width: 100%;
  height: 660px;
  object-fit: cover;
  display: block;
}

/* Card overlay */
.card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.144),
    rgba(0, 0, 0, 0)
  );
}

.card-info h3 {
  font-weight: 400;
  margin-bottom: 12px;
}

.card-info a {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.1s;
}
.card-info a:hover{
    
    transform: scale(1.1);
}



/* Footer */
footer {
  text-align: center;
  padding: 25px;
  font-size: 0.85rem;
  opacity: 0.6;
}
/* FULLSCREEN PREVIEW */
#preview {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.308);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#preview.show {
  opacity: 1;
  pointer-events: auto;
}

#preview-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 18px;
  border-radius: 0px;
}

#preview .close {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 10rem;
  color: white;
  cursor: pointer;
}

#preview-download {
  margin-top: 25px;
  padding: 12px 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: white;
  text-decoration: none;
}

.card img {
  cursor: zoom-in;
}

@media (max-width: 768px) {

  header {
    padding: 40px 15px 20px;
  }

  header h1 {
    font-size: 2.4rem;
    letter-spacing: 3px;
  }

  header p {
    font-size: 0.95rem;
  }

  .gallery {
    padding: 20px 15px 40px;
    gap: 20px;
  }

  .card {
    border-radius: 14px;
  }

  .card-info {
    padding: 14px;
  }

  .card-info a {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  #preview-img {
    max-width: 95%;
    max-height: 80vh;
  }

  #preview-download {
    padding: 10px 22px;
    font-size: 0.9rem;
  }

  #preview .close {
    font-size: 2.2rem;
    top: 15px;
    right: 20px;
  }
}



