* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  font-family: 'Tajawal', sans-serif;
  overflow: hidden;
}

/* نقاط خلفية */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #ffffff08 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.container {
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

.clock {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(4rem, 15vw, 10rem);
  color: #00ff88;
  text-shadow:
    0 0 20px #00ff8866,
    0 0 60px #00ff8833;
  letter-spacing: 4px;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

.date {
  font-size: 1.2rem;
  color: #ffffff55;
  margin-top: 1rem;
  letter-spacing: 2px;
  font-weight: 300;
}

.greeting {
  font-size: 1rem;
  color: #00ff8877;
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

/* لون الساعة بيتغير حسب الوقت */
body.morning .clock {
  color: #ffbb00;
  text-shadow: 0 0 20px #ffbb0066, 0 0 60px #ffbb0033;
}
body.morning .greeting { color: #ffbb0077; }

body.evening .clock {
  color: #ff6b6b;
  text-shadow: 0 0 20px #ff6b6b66, 0 0 60px #ff6b6b33;
}
body.evening .greeting { color: #ff6b6b77; }

body.night .clock {
  color: #a78bfa;
  text-shadow: 0 0 20px #a78bfa66, 0 0 60px #a78bfa33;
}
body.night .greeting { color: #a78bfa77; }

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