:root {
  --bg: #0f172a;
  --text: #e2e8f0;
  --accent: #d4af37;
  --green: #4a7043;
  --card-bg: rgba(212, 175, 55, 0.08);
}
html { 
  scroll-behavior: smooth; 
}
body {
  margin: 0;
  font-family: 'Scheherazade New', serif;
  background: linear-gradient(to bottom, var(--bg), #1e293b);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
}
.section {
  opacity: 0;
  transform: translateY(50px);   /* يبدأ من تحت */
  transition: all 0.9s ease-out;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Header Styling */
.container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 20px; 
  text-align: center;
}
.container ul{
  margin-left: 25px;
}
.container ul li{
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('https://source.unsplash.com/random/1600x900/?moon,night,stars');
  background-size: cover;
  background-position: center;
}
h1 { font-family: 'Amiri', serif; 
  font-size: 5rem; margin: 0; 
  color: var(--accent); 
  text-shadow: 0 4px 10px rgba(0,0,0,0.6); 
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 50px;
  font-size: 2.8rem;
  flex-wrap: wrap;
}
.countdown div {
  background: var(--card-bg);
  padding: 25px 35px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212,175,55,0.2);
}
/* navbar Styling */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s;
}
.nav-toggle:hover {
  color: var(--accent);
  transform: rotate(90deg);
}
.section { 
  padding: 70px 0; 
}
/* prayer Styling */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.prayer-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(212,175,55,0.15);
  transition: 0.3s;
}
.prayer-card:hover { 
  transform: translateY(-8px); 
  background: rgba(212,175,55,0.15); 
}
.highlight { 
  border-color: var(--accent); 
  background: rgba(212,175,55,0.25); font-weight: bold; 
}
.next-info { 
  font-size: 1.4rem; 
  color: var(--accent); 
  text-align: center; 
  margin-top: 30px; 
}
/* Tips styling */
.tips-section {
  padding: 80px 20px;     
}
.daily-tip-card {
  background: rgba(212, 175, 55, 0.08);    
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 35px 30px;                     
  margin: 30px auto;
  max-width: 900px;                      
  min-height: 140px;                       
  font-size: 1.4rem;                       
  line-height: 1.8;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.tip-btn {
  background: var(--accent);
  color: #0f172a;
  font-size: 1.3rem;
  padding: 16px 40px;                    
  border-radius: 12px;
  min-width: 260px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}
.tip-btn:hover {
  background: #e0c04e;
  transform: translateY(-3px);
}
/* hadith styling */
.hadith-card{
  font-size: 1.3rem;
  line-height: 1.8;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 16px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
/* Modal for Adhkar */
.adhkar-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.adhkar-modal-content {
  background: linear-gradient(to bottom, #0f172a, #1e293b);
  margin: 8% auto;
  padding: 25px 35px;
  border: 1px solid rgba(212,175,55,0.25);
  width: 85%;
  max-width: 720px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
  color: #e2e8f0;
  max-height: 82vh;
  overflow-y: auto;
}
.close-modal {
  color: #d4af37;
  float: left;
  font-size: 38px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
}
.close-modal:hover,
.close-modal:focus {
  color: #ffcc00;
  text-decoration: none;
}
.dhikr-block {
  background: rgba(212,175,55,0.07);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
  line-height: 1.7;
}
.dhikr-block strong {
  color: #d4af37;
  display: block;
  margin-bottom: 8px;
}
.modal-trigger-btn{
  
}
/* calendar Styling */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.calendar-day {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(213, 172, 39, 0.263);
  transition: 0.4s ease;
}
.calendar-day:hover{
  transform: translateY(-8px); 
  background: rgba(213, 168, 23, 0.347); 
}
.calendar-day.today {
  border: 2px solid var(--accent);
  background: rgba(212, 175, 55, 0.18) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: scale(1.05);
}
.today-label {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: bold;
  margin-right: 8px;
  background: rgba(212, 175, 55, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
}
button {
  background: var(--accent);
  color: #0f172a;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  background: #e0c04e; 
  transform: translateY(-3px); 
}
/* Footer Styling */
footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0,0,0,0.4);
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  h1 { font-size: 3.5rem; }
  .countdown { gap: 15px; font-size: 2rem; }
  .nav-links { gap: 20px; font-size: 1rem; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
.nav-toggle {
  display: block;
}
.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  transition: right 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.6);
  padding: 2rem;
}
.nav-links.active {
  right: 0;
}
.nav-links a {
  font-size: 1.5rem;
  padding: 0.8rem 1.5rem;
}
.nav-links.active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}
}
@media (max-width: 768px) {
  .daily-tip-card {
  font-size: 1.25rem;
  padding: 25px 20px;
  margin: 25px auto;
}
  .tip-btn {
  font-size: 1.2rem;
  padding: 14px 35px;
}
}
/* Responsive للموبايل */
@media (max-width: 600px) {
  .adhkar-modal-content {
      margin: 10% auto;
      padding: 20px;
      width: 92%;
  }
  .close-modal {
      font-size: 32px;
  }
}
/* ================================Change Mood==========================*/
:root {
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --card-bg: rgba(212, 175, 55, 0.08);
  --accent: #d4af37;
  --border: rgba(212, 175, 55, 0.18);
}
/* الوضع الفاتح (Light/White) */
[data-theme="light"] {
  --bg-color: #f8f9fa;
  --hed-color: linear-gradient(rgb(212, 175, 55), rgba(212, 175, 55, 0.08));
  --footer-color: linear-gradient( rgba(212, 175, 55, 0.3), rgb(212, 175, 55));
  --text-color: #1f2937;
  --card-bg: rgba(255, 255, 255, 0.9);
  --accent: #b45309;
  --btn-color: #1f2937; /* زرار غامق */
  --btn-text: #ffffff;
  --border: rgba(180, 83, 9, 0.2);
}
/* خلفية الصفحة */
body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.4s ease, color 0.4s ease;
}
.hero{
  background: var(--hed-color);
}
h1{
  color: white;
}
.navbar{
  background: var(--accent);
}
.navbar .logo{
  color: rgb(245, 248, 255);
}
.countdown .time{
  border: 1px solid rgb(205, 158, 2);
}
/* Card and Elements*/
.calendar-day, .daily-tip-card, .dhikr-block, .prayer-card {
  background: var(--card-bg);
  border: 1px solid rgba(180, 83, 9, 0.581);
  color: var(--text-color);
}
.daily-tip-card{
 background:rgba(212, 175, 55, 0.08);
}
/* ======================buttons==================== */
.tip-btn, .modal-trigger-btn, .hadith-btn{
  color: white;
}
.theme-btn {
  position: absolute;
  top: 20px;
  left: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
}
.theme-btn:hover {
  background: white;
  color: #1e293b;
}
/* ==============footer==================== */
footer{
  background: var(--footer-color);
}
/* Change Icon when On/Off */
[data-theme="light"] .theme-btn i.fa-moon {
  content: "\f185"; 
}
/* Responsive button */
@media (max-width: 820px) {
  .theme-btn {
    top: 20px;
    left: 65px;
  }
}