@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: #fff;
}

/* ===============================
   Layout
================================ */
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 36px;
}

/* ===============================
   Clock Container
================================ */
.container {
  margin: 20px 0;
}

.clock {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  position: relative;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );

  border: 1.5px solid rgba(255, 255, 255, 0.25);

  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05),
    0 25px 50px rgba(0, 0, 0, 0.9);

  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center Pin */
.clock::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ===============================
   Numbers
================================ */
.clock span {
  position: absolute;
  inset: 16px;
  transform: rotate(calc(30deg * var(--i)));
  text-align: center;
}

.clock span b {
  display: inline-block;
  transform: rotate(calc(-30deg * var(--i)));
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
}

/* ===============================
   Hands (Premium)
================================ */
.hand {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform-origin: bottom;
}

/* Base style */
.hand i {
  position: absolute;
  height: var(--h);
  background: var(--clr);
  border-radius: 10px;
  transform-origin: bottom;
  transition: transform 0.05s linear;
}

/* Hour Hand */
#hr i {
  width: 6px;
  box-shadow: 0 0 8px rgba(255, 61, 88, 0.8);
}

/* Minute Hand */
#min i {
  width: 4px;
  box-shadow: 0 0 10px rgba(0, 166, 255, 0.8);
}

/* Second Hand */
#sec i {
  width: 2px;
  background: #ffffff;
}

/* Red tip on second hand */
#sec i::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ff3d58;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 61, 88, 0.9);
}

/* Digital Time */
.digital {
  margin-top: 24px;
}

.digital h2 {
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 2px;
}

.digital p {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.65;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 480px) {
  .clock {
    width: 230px;
    height: 230px;
  }

  h1 {
    font-size: 2rem;
  }

  .digital h2 {
    font-size: 1.6rem;
  }
}
