@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

body {
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff8fc 0%, #ffeaf3 100%);
  color: #5b4b6f;
  overflow-x: hidden;
  position: relative;
}

/* Floating sparkles */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(#ffd6ec 1px, transparent 1px);
  background-size: 40px 40px;
  animation: sparkle 15s linear infinite;
  opacity: 0.5;
  z-index: 0;
}
@keyframes sparkle {
  from { transform: translate(0, 0); }
  to { transform: translate(-50px, -50px); }
}

/* Sticky header */
header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 248, 252, 0.8);
  backdrop-filter: blur(8px);
  text-align: center;
  width: 100%;
  padding: 1.5em 0;
  border-bottom: 2px solid #ffd1dc;
}

h1 {
  font-size: 2.4em;
  color: #e78fb3;
  margin: 0.2em 0 0.1em 0;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  display: block;
  height: 4px;
  width: 60%;
  margin: 0.3em auto 0 auto;
  background: linear-gradient(90deg, #fcb1d6, #ffc9e3, #fcb1d6);
  border-radius: 2px;
  animation: underlineGlow 3s ease-in-out infinite alternate;
}
@keyframes underlineGlow {
  from { opacity: 0.5; width: 40%; }
  to { opacity: 1; width: 70%; }
}

.subtitle {
  color: #b47aaa;
  font-size: 1.1em;
  margin: 0.3em 0 1em 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2em;
  width: 90%;
  max-width: 900px;
  justify-items: center;
  margin: 3em auto;
  z-index: 1;
}

.art-card {
  background: #fff;
  border-radius: 10px;
  width: 240px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.1);
  padding: 12px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.art-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Cute washi tape */
.art-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 25px;
  background: repeating-linear-gradient(
    45deg,
    #ffd1dc,
    #ffd1dc 6px,
    #fff 6px,
    #fff 12px
  );
  opacity: 0.9;
  border-radius: 5px;
}

.art-card img {
  width: 100%;
  border-radius: 8px;
  border: 3px solid #ffe9f3;
  margin-bottom: 0.6em;
}

.desc {
  font-size: 0.9em;
  color: #6b5477;
  text-align: center;
  line-height: 1.3;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  animation: pop 0.2s ease;
}

@keyframes pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  user-select: none;
}

footer {
  text-align: center;
  margin-top: auto;
  padding: 1.5em 0;
  font-size: 0.9em;
  color: #a97b9c;
  z-index: 1;
}