/* نسخة 4/3/2025 */
:root {
  --primary-color: rgb(241, 196, 15);
  --secondary-color: rgb(106, 27, 154);
  --accent-color: rgb(198, 198, 17);
  --nav-bg: rgba(49, 11, 65, 0.2);
  --clock-bg: rgba(0, 0, 0, 0.6);
  --tooltip-bg: rgba(102, 51, 153, 0.7);
  --footer-gradient-start: rgb(66, 7, 92);
  --footer-gradient-end: rgb(0, 0, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 120vh;
  overflow-x: hidden;
  background: rgb(5, 5, 17);
}

.parallax {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.stars {
  background-image: url('/css/stars.jpg'); 
  background-size: cover;
  background-position: 0 0;
  animation: moveStars 100s linear infinite, fadeStars 15s infinite alternate;
  z-index: 1;
  opacity: 1;
  width: 100%;
  height: 120vh;
  position: absolute;
  top: 0;
  left: 0;
  background-blend-mode: normal;
  background-repeat: repeat; 
}




.moon {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.moon img {
  width: 120px;
  opacity: 0.9;
  transition: transform 0.5s ease-out;
}

.mountains {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 3;
}

.mountains img {
  width: 100%;
  max-height: 45vh;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  min-height: 50px;
  height: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transition: top 0.3s;
  backdrop-filter: blur(10px);
}

.menu-item {
  color: #fff;
  text-decoration: none;
  padding: 3px;
  font-size: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-item img {
  width: 25px;
  height: 25px;
  transition: transform 0.2s ease;
}

.menu-item:hover {
  transform: scale(1.2);
  color: #ffcc00;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

#profile-info {
  font-size: 14px;
  color: rgba(177, 75, 28, 0.882);
  font-weight: bold;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

#clock-container {
  background: var(--clock-bg);
  direction: rtl;
  padding: 5px 10px;
  border-radius: 5px;
  color: rgb(255, 255, 255);
  font-weight: bold;
}

#weekdays {
  display: flex;
  flex-direction: row-reverse;
  gap: 3px;
  font-size: 12px;
}

#weekdays span {
  padding: 2px 6px;
  background: var(--clock-bg);
  border-radius: 3px;
  color: rgb(255, 255, 255);
  opacity: 0.7;
}

.today-highlight,
.today {
  color: rgb(255, 255, 0);
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0px 0px 10px hwb(60 0% 0%);
}


#occasion {
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
  color: hsl(60, 100%, 50%);
  font-size: 16px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

#islamic-events {
  color: rgb(35, 105, 40);

  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

#islamic-events:hover {
  text-decoration: underline;
}

#prophet-prayer {
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
  color: rgb(241, 196, 15);
}

.quran-verse {
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  font-family: 'Amiri', serif;
  font-size: clamp(24px, 3vw, 48px);
  line-height: 1.4;
}
.verse-text {
  word-wrap: break-word;
  white-space: pre-wrap;
}
.quran-verse svg {
  width: 100%;
  height: 100px;
}

.quran-verse text {
  font-size: clamp(20px, 3vw, 60px);
  font-weight: bold;
  font-family: 'Amiri', serif;
  fill: none;
  stroke: rgb(0, 255, 255);
  stroke-width: 1px;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: celestialWriting 3s ease-in-out forwards;
}

@keyframes celestialWriting {
  from {
    stroke-dashoffset: 300;
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.name-container {
  text-align: center;
  margin-bottom: 40px;
}

#name {
  font-size: 2em;
  font-weight: bold;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  background-size: 200% 200%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradientMove 5s ease infinite, pulse 2s infinite;
  margin: 20px;
}

.description {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
  margin: 20px;
}

.flag-orbit-container {
  position: relative;
  width: 50px;
  height: 50px;
  margin: 0 auto;
}


.flag-link {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.palestine-flag {
  width: 50px;
  height: auto;
  display: block;
  position: relative;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.5s ease-out;
  animation: wave 1.5s ease-in-out infinite;
}


.flag-tooltip {
  position: absolute;
  top: 69%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8em;
  font-weight: bold;
  color: #fff;
  background-color: var(--tooltip-bg);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
  text-align: center;
  padding: 8px 12px;
}

.flag:hover .flag-tooltip {
  opacity: 1;
  visibility: visible;

}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  transition: all 0.4s ease-in-out;
  position: relative;
}

.social-icon {
  opacity: 0;
  transform: scale(0.3);
  animation:
    quantumTeleport 3.2s ease-in-out forwards,
    wormholeEnter 5.8s ease-out 3s forwards,
    floatSpace 2.5s infinite ease-in-out 9s alternate;
  transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.social-icon img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.5));
  border-radius: 10px;
}

.social-icon:hover img {
  transform: scale(1.3) rotate(15deg);
  filter: drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.8));
}

.social-toggle {
  cursor: pointer;
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: transform 0.3s ease-in-out;
}

.social-links.closed .social-icon {
  transform: translateX(-40px) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.social-links.closed .social-toggle {
  transform: translateY(-50%) rotate(180deg);
}


@keyframes moveStars {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -1000px 500px;
  }
}
@keyframes fadeStars {
  0%, 40% { filter: brightness(1); }
  50%, 60% { filter: brightness(0.5); }
  70%, 100% { filter: brightness(0.3); }
}


@keyframes quantumTeleport {
  0% {
    opacity: 0;
    transform: scale(0.1) translateY(-50px);
    filter: blur(10px);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2) translateY(0);
    filter: blur(5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes wormholeEnter {
  0% {
    transform: scale(0.5) rotateY(720deg) translateY(100px);
    opacity: 0.7;
    filter: blur(5px);
  }

  50% {
    transform: scale(1.2) rotateY(360deg) translateY(-20px);
    opacity: 1;
    filter: blur(2px);
  }

  100% {
    transform: scale(1) rotateY(0deg) translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes floatSpace {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }

  100% {
    transform: translateY(10px) rotate(-5deg);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pulse-scale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

.footer {
  direction: rtl;
  background: linear-gradient(90deg, var(--footer-gradient-start), var(--footer-gradient-end));
  color: #f1c40f;
  border-top: 2px solid #8c3a2b;
  text-align: center;
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 0;
  font-size: 1em;
  width: 75%;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: auto;
  animation: footerPulse 5s ease infinite;
  border-radius: 20px;
}


.footer a {
  color: #ff5733;
  font-weight: bold;
}

@keyframes footerPulse {

  20%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .top-nav {
    padding: 8px 15px;
  }
  .menu-item img {
    width: 20px; 
    height: 20px;
  }
  #weekdays {
    gap: 4px; 
  }
  .top-nav-right {
    gap: 10px;
    flex-wrap: wrap;
  }
  #clock-container {
    padding: 4px 8px; 
  }
  #occasion {
    padding: 3px 5px;
  }
  .social-links {
    gap: 5px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    flex-direction: column; 
    padding: 5px 8px;
    font-size: 14px;
  }
  .menu-item {
    font-size: 15px;
    padding: 2px;
  }
  .social-links {
    gap: 4px;
  }
  .social-icon img {
    width: 35px; 
    height: 35px;
  }
}

@media (max-width: 480px) {

  .top-nav {
    flex-direction: column;
    padding: 3px 5px;
    font-size: 10px; 
  }

  .menu-item {
    font-size: 10px;
    padding: 2px;
  }

  .social-links {
    gap: 2px;
    flex-wrap: wrap;
  }

  .social-icon img {
    width: 26px;
    height: 26px;
  }


}
