* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: color 0.3s, background 0.3s;
}

body {
  font-family: 'Cairo', sans-serif;
  overflow-x: hidden;
}

body.light {
  background: #f9f9f9;
  color: #2e2e2e;
}

body.dark {
  background: #121212;
  color: #e0e0e0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark .navbar {
  background: #1f2029;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: auto;
}

.theme-toggle,
.menu-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.actions a {
  color: inherit;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.actions a:hover,
.mobile-menu a:hover {
  background-color: #10b981;
}

/* Scroll Bar */
#scroll-bar {
  position: fixed;
  top: 100px; /* أو top: 0px حسب مكان الـ navbar */
  right: 0;
  height: 4px;
  background-color: #10b981;
  width: 0%;
  z-index: 9999;
  transition: width 0.25s ease-in-out;
}
/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  padding: 60px 20px;
  gap: 20px;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .actions a {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* Background Scene */
.scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.sky {
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, white, yellow);
  transition: background 0.6s ease;
  overflow: hidden;
}

body.dark .sky {
  background: linear-gradient(to top, black, blue);
}

.sun,
.moon {
  position: absolute;
  font-size: 5rem;
  top: 60px;
  left: 60px;
  transition: opacity 0.5s ease;
}

.sun {
  color: #facc15;
  filter: drop-shadow(0 0 30px #facc15aa);
  animation: sun-glow 3s infinite alternate ease-in-out;
  opacity: 1;
}

body.dark .sun {
  opacity: 0;
}

.moon {
  color: #f1f5f9;
  opacity: 0;
}

body.dark .moon {
  opacity: 1;
}

.stars {
  width: 100%;
  height: 100%;
  background-size: 4px 4px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.dark .stars {
  opacity: 0.5;
}

.clouds {
  position: absolute;
  top: 20px;
  left: 0;
  width: 200%;
  height: 200px;
  background: url('https://static.vecteezy.com/system/resources/previews/010/174/972/non_2x/simple-sunny-day-cloud-image-realistic-cloud-on-a-transparent-background-cloud-on-the-sky-free-png.png') repeat-x;
  background-size: contain;
  animation: clouds-move 60s linear infinite;
  opacity: 0.6;
}

@keyframes sun-glow {
  from {
    filter: drop-shadow(0 0 10px #facc15aa);
  }

  to {
    filter: drop-shadow(0 0 30px #facc15aa);
  }
}

@keyframes clouds-move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Waves */
.waves {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  overflow: hidden;
}

.waves svg {
  width: 100%;
  height: 300px;
  display: block;
  animation: wave-bounce 6s ease-in-out infinite;
}

.waves path {
  fill: rgba(0, 0, 255, 0.329);
}

@keyframes wave-bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }

  100% {
    transform: translateY(0);
  }
}




.custom-footer {
  background: #1f1f1f;
  color: white;
  padding: 30px 10px;
  text-align: center;
  position: relative;
  margin-top: 50px;
}

.robot-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-robot {
  width: 80px;
  height: 80px;
  animation: float 3s ease-in-out infinite;
}

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

.robot-speech {
  background: #2d2d2d;
  padding: 20px;
  border-radius: 15px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.top-icons {
  margin-bottom: 10px;
}

.icon {
  font-size: 32px;
  margin: 0 12px;
  color: white;
  transition: transform 0.3s, color 0.3s;
}

.icon:hover {
  transform: scale(1.2);
}

.facebook { color: #1877f2; }
.whatsapp { color: #25d366; }

.developer-info p {
  margin-bottom: 8px;
  font-size: 16px;
}

.developer-info a {
  color: #ccc;
  text-decoration: none;
  margin: 0 5px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.developer-info a:hover {
  color: #10b981;
}
