* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.clock {
  width: 350px;
  height: 350px;
  position: relative;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
  border: 10px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.clock:hover {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
}

.clock::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.clock .number {
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  transform: rotate(var(--rotation));
  font-size: 1.5rem;
  padding: 18px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.clock .number span {
  display: inline-block;
  transform: rotate(calc(var(--rotation) * -1));
}

.hand {
  position: absolute;
  bottom: 50%;
  transform-origin: bottom;
  border-radius: 4px;
  transform: translateX(-50%) rotate(0deg);
  transition: transform 0.3s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.hour {
  width: 8px;
  height: 30%;
  background: #ff9800;
  left: 50%;
}

.minute {
  width: 6px;
  height: 40%;
  background: #03a9f4;
  left: 50%;
}

.second {
  width: 4px;
  height: 45%;
  background: #f44336;
  left: 50%;
}

.digital-clock {
  font-size: 3.5rem;
  font-weight: bold;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  min-width: 300px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

.digital-clock:hover {
  background: rgba(0, 0, 0, 0.6);
}

.date {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 2rem;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .container {
    flex-direction: row;
    gap: 50px;
  }
}
