
/* إعدادات أساسية */
body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
  background-color: #081b29;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  line-height: 1.8;
}

/* خلفية النجوم المتحركة */
.stars {
  width: 100%;
  height: 100%;
  background: url('photo1.jpeg') repeat;
  position: fixed;
  top: 0;
  left: 0;
  animation: moveStars 60s linear infinite;
  z-index: -1;
}

@keyframes moveStars {
  from { background-position: 0 0; }
  to { background-position: -10000px 5000px; }
}

/* الهيدر */
header {
  text-align: center;
  padding: 60px 20px 30px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px #0ff;
}

header h1 {
  color: #0ff;
  font-size: 2.2em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
  color: #ddd;
}

/* شريط التنقل */
nav {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 0 10px #0ff;
  margin-bottom: 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
  margin: 0 15px;
}

nav a {
  color: #0ff;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #fff;
  border-bottom: 2px solid #0ff;
}

/* الأقسام */
.section {
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

.section h2 {
  color: #0ff;
  font-size: 1.6em;
  margin-bottom: 10px;
}

/* كروت الأذكار */
.card {
  background-color: rgba(13, 42, 64, 0.9);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #0ff;
  font-size: 1.1em;
}

/* الفوتر */
footer {
  text-align: center;
  padding: 20px;
  font-size: 1em;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ccc;
}

/* الرسالة الافتتاحية (في الصفحة الرئيسية فقط) */
#intro-message {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: #081b29;
  color: #0ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  z-index: 9999;
  animation: fadeOut 3s ease forwards;
  animation-delay: 4s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* أنيميشن */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.counter-btn {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #081b29;
  padding: 12px 24px;
  margin-top: 10px;
  border: none;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 12px #00f2feaa;
  transition: all 0.3s ease;
}

.counter-btn:hover {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #000;
  transform: scale(1.05);
}

.counter-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 5px #00f2fe88;
}

.counter-btn .count {
  color: #fff;
  margin-right: 8px;
}


.card span {

    font-size: 15px;
    color: #00f2fe;
}


/* شريط التنقل */
nav {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 0 10px #0ff;
  margin-bottom: 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline-block;
  margin: 0 15px;
}

nav a {
  color: #0ff;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #fff;
  border-bottom: 2px solid #0ff;
}



.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
  margin-top: 20px;
  text-align: center;
}

.links-grid li a {
  display: block;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #081b29;
  font-weight: bold;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 10px #00f2feaa;
  transition: 0.3s ease;
}

.links-grid li a:hover {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #000;
  transform: scale(1.05);
}



/* تنسيق الزرار لما يخلص عدد التكرار */
.counter-btn.completed {
  background-color: #4caf50; /* لون أخضر مثلاً */
  color: white;
  cursor: default; /* يغير شكل المؤشر عشان يبان إنه مش بيتضغط */
  opacity: 0.8; /* يخليه باهت شوية */
}

/* لو عايز الزر يرجع لوضعه الطبيعي بعد الانتهاء، ممكن تلغي الـ opacity والـ cursor */
.counter-btn.completed:hover {
  background-color: #4caf50; /* يفضل أخضر حتى عند الهوفر */
}