:root {
  --primary-color: #1e3a8a;
  --secondary-color: #f59e0b;
  --text-color: #f8fafc;
  --bg-color: #0f172a;
  --moonlight-color: #e2e8f0;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(30, 58, 138, 0.2) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(245, 158, 11, 0.2) 0%,
      transparent 20%
    );
  overflow-x: hidden;
}

.container {
  max-width: 800px;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 60s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 5px;
}

.moon-container {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.moon {
  width: 100%;
  height: 100%;
  background-color: var(--moonlight-color);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.moon::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  width: 30px;
  height: 30px;
  background-color: var(--bg-color);
  border-radius: 50%;
  box-shadow: 40px -10px 0 -5px var(--bg-color),
    60px 20px 0 -10px var(--bg-color), 30px 40px 0 -7px var(--bg-color),
    10px 50px 0 -5px var(--bg-color), 60px 50px 0 -12px var(--bg-color);
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkle var(--duration) infinite ease-in-out;
  opacity: 0;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0;
}

.countdown-item {
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 20px;
  min-width: 120px;
  text-align: center;
  backdrop-filter: blur(5px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.countdown-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
}

.countdown-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.countdown-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ramadan-date {
  text-align: center;
  margin-top: 20px;
  font-size: 1.2rem;
  background: rgba(30, 58, 138, 0.2);
  padding: 15px;
  border-radius: 10px;
  border-left: 3px solid var(--secondary-color);
}

.ramadan-date span {
  color: var(--secondary-color);
  font-weight: bold;
}

.dua {
  margin-top: 30px;
  text-align: center;
  font-style: italic;
  line-height: 1.6;
  padding: 20px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 10px;
  border-right: 3px solid var(--primary-color);
}

.dua-arabic {
  font-size: 1.5rem;
  direction: rtl;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.dua-translation {
  opacity: 0.9;
}

footer {
  margin-top: 30px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .countdown-item {
    min-width: 80px;
    padding: 15px 10px;
  }

  .countdown-value {
    font-size: 2rem;
  }

  .dua-arabic {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .countdown {
    gap: 10px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 10px 5px;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.7rem;
  }
}
