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

.hero {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(45deg, #08001f, #30197d);
  color: #fff;
  position: relative;
  padding: 20px;
}

.container {
  width: 90%;
  max-width: 800px;
  height: auto;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.clock {
  width: 100%;
  padding: 20px;
  background: rgba(235, 0, 255, 0.11);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  backdrop-filter: blur(40px);
  flex-wrap: wrap;
}

.container::before {
  content: '';
  width: 150px;
  height: 150px;
  background: #f41b75;
  border-radius: 5px;
  position: absolute;
  left: -30px;
  top: -30px;
  z-index: -1;
}

.container::after {
  content: '';
  width: 150px;
  height: 150px;
  background: #419aff;
  border-radius: 50%;
  position: absolute;
  right: -20px;
  bottom: -30px;
  z-index: -1;
}

.clock span {
  font-size: clamp(40px, 6vw, 80px);
  width: clamp(70px, 15vw, 110px);
  display: inline-block;
  text-align: center;
  position: relative;
}

.clock span:after {
  font-size: clamp(10px, 2vw, 16px);
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

#hrs::after {
  content: 'HOURS';
}
#min::after {
  content: 'MINS';
}
#sec::after {
  content: 'SEC';
}

/* Tablets and below */
@media (max-width: 768px) {
  .clock {
    gap: 10px;
  }

  .container::before,
  .container::after {
    width: 100px;
    height: 100px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .clock {
    flex-direction: column;
    padding: 15px;
  }

  .clock span {
    width: auto;
    font-size: clamp(30px, 8vw, 60px);
  }

  .container::before,
  .container::after {
    display: none; /* hide shapes to avoid overlap */
  }
}
