/* ===============================
   LOCK SCREEN BASE
   =============================== */

#lockScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  /* Dark overlay */
  background: rgba(15, 22, 36, 0.65);

  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hide */
#lockScreen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ===============================
   BLUR BACKGROUND ONLY
   =============================== */

.lock-blur {
  position: absolute;
  inset: 0;
  z-index: 1;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===============================
   LOTTIE BACKGROUND (VISIBLE)
   =============================== */

.lock-lottie {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 120vw;
  height: 120vh;

  transform: translate(-50%, -50%);
  z-index: 2;

  pointer-events: none;

  opacity: 0.9;

  /* subtle cinematic motion */
  animation: lottieZoom 20s ease-in-out infinite alternate;
}

/* ===============================
   CONTENT (TIME + TEXT)
   =============================== */

.lock-content {
  position: absolute;
  right: 8%;          /* move to right side */
  top: 50%;
  transform: translateY(-50%); /* keep vertical center */

  z-index: 2;
  text-align: right;  /* align text nicely */

  color: #fff;
  animation: slideInRight 0.8s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate(30px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

/* TIME TEXT */
.lock-content h1 {
  font-size: clamp(42px, 8vw, 90px);
  font-weight: 600;
  letter-spacing: -1px;

  /* subtle glow */
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.25);

  animation: floatTime 4s ease-in-out infinite;
}

/* SUBTEXT */
.lock-content p {
  margin-top: 10px;
  font-size: clamp(12px, 2vw, 16px);
  opacity: 0.7;
  letter-spacing: 0.5px;

  transition: opacity 0.3s ease;
}

.lock-content:hover p {
  opacity: 1;
}

/* ===============================
   ANIMATIONS
   =============================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatTime {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes lottieZoom {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* ===============================
   UNLOCK TRANSITION
   =============================== */

#lockScreen.hide {
  animation: unlockAnim 0.7s forwards;
}

@keyframes unlockAnim {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* ===============================
   RESPONSIVE TWEAKS
   =============================== */

@media (max-width: 768px) {
  .lock-lottie {
    width: 150vw;
    height: 150vh;
  }

  .lock-content h1 {
    font-size: clamp(36px, 10vw, 60px);
  }
}