@keyframes blurFade {
  from {
      filter: blur(5px);
      opacity: 0;
  }
  to {
      filter: blur(0);
      opacity: 1;
  }
}



/* Ensure body fills viewport and centers content */
body {
  margin: 20px;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  position: relative;    
  overflow: hidden; 
}

/* Image Grid - 4x3 layout */
.image-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, auto);
  grid-template-rows: repeat(3, auto);
  justify-content: center;
  align-content: center;
  gap: 10px;
  padding: 10px;
  z-index: 9; /* ✅ Above the clock but below the Buy section */
  pointer-events: auto;
}

/* Image Thumbnails */
.grid-item {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: blur(20px);
  transition: opacity 1s ease-in, filter 1s ease-in;
}

/* Hover effect for images */
.grid-item:hover {
  opacity: 0.6;
  filter: blur(0px);
}

/* Main layout - 3 columns */
.main-layout {
  display: grid;
  width: 100%;
  height: 100%;
  position: relative;
  align-content: center;
  z-index: 2; /* Above background */
}

/* Empty column for balance */
.empty-column {}

/* Clock in the middle column */
.clock-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Clock container */
.clock {
  width: 90vmin;
  height: 90vmin;
  background: url('img/clock-face.png') no-repeat center center;
  background-size: contain;
  position: relative;
  margin: auto;
  z-index: 1; /* Behind image grid */
}

/* Each clock hand centered */
.hand {
  position: absolute;
  width: 100%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}

/* Updated Stacking Order for Clock Hands */
.hour { z-index: 6; }
.minute { z-index: 5; }
.second { z-index: 7; }


.product-info-box {
  margin-bottom: 24px;
}

.creator-info-box {
  position: fixed;
  width: 170px;
  margin: 0px;
  padding: 0px;
  right: 15%;
  top: 20%;
  text-align: left;
  z-index: 10;
  
}


.creator-info {
  font-family: "Lexend Giga", serif;
  font-weight: 200;
  font-optical-sizing: auto;
  font-style: normal;  
  color: white;
  font-size: 24px;
  margin: 0;
  text-transform: none;
  margin-bottom: 8px;
  animation: blurFade 1.5s ease-out forwards;

}


/* Text & Button Wrapper */
.buy-content {
  position: fixed;
  width: 170px;
  margin: 0px;
  padding: 0px;
  right: 15%;
  bottom: 30%;
  text-align: left;
  z-index: 10;
}

/* Product Title */
.product-title {
  font-family: "Lexend Giga", serif;
  color: white;
  font-size: 12px;
  font-weight:100;
  margin: 0;
  margin-bottom: 10px;
  filter: blur(10px);
  -webkit-transition: opacity 1.5s ease-in-out, filter 1s ease-in-out;
  -moz-transition: opacity 1.5s ease-in-out, filter 1s ease-in-out;
}

.product-title:hover {
  filter: blur(0px);
}

.product-info {
  font-family: "Lexend Giga", serif;
  font-weight: 300;
  font-optical-sizing: auto;
  font-style: normal;  
  color: white;
  font-size: 14px;
  margin: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
  animation: blurFade 2s ease-out forwards;
}

.product-info-serif {
  font-family: "Funnel Display", serif;  
  font-optical-sizing: auto;
  font-style: normal;  
  line-height: 140%;
  letter-spacing: 1px;
  color: white;
  font-size: 10px;
  margin: 0;
  margin-bottom: 10px;
  animation: blurFade 3s ease-out forwards;

}


/* Product Price */
.product-price {
  font-family: "Lexend Giga", serif;
  color: white;
  font-size: 12px;
  margin: 0;
  padding-bottom: 24px;
  z-index: 8;
}

/* BUY Button */
.buy-button {
  width: 160px;
  height: 40px;
  border: 1px solid white;
  background: transparent;
  color: white;
  font-family: "Lexend Giga", serif;
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
  z-index: 10;
  position: relative;
  animation: blurFade 5s ease-out forwards;

}

/* Hover Effect */
.buy-button:hover, .buy-button:active{
  background: white;
  color: black;

}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {

  body {
    margin: 20px;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    position: relative;    
    overflow: hidden; 
  }


  .main-layout {
    grid-template-columns: 1fr;
  }

  .clock-column {
    align-items:flex-start;
  }
  
  .clock {
    margin-bottom: 80px;
  }


  .creator-info-box {
    margin-top: 40px;
  } 
  

  .buy-content {
    align-items: center;
    right: auto;
    left: 20%;
    bottom: 50px;
  }

  .creator-info-box {
    align-items: center;
    right: auto;
    left: 20%;
    top: 20px;
  }


  .buy-button {
    text-align: center;
  }

  /* Image Grid - Change to 2x6 for mobile */
  .image-grid {
    grid-template-columns: repeat(2, auto);
    grid-template-rows: repeat(6, auto);
  }
}
