* {
  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;
}


/* 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);
}



.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);
  }
}

/* Course Box */
.course-box {
  background-color: #00bcd4;
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 40px 20px;
}

.course-img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.course-desc {
  font-size: 16px;
  margin-bottom: 15px;
}

.counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.counter button {
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  color: #00bcd4;
  border: none;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.counter .value {
  width: 40px;
  text-align: center;
  font-size: 16px;
  color: white;
}

.price {
  font-size: 18px;
  margin: 15px 0;
}


/* Teacher Search */
#teacherSearch {
  padding: 10px;
  width: 90%;
  max-width: 500px;
  margin: 30px auto;
  display: block;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Swiper */
.swiper-container {
  width: 100%;
  padding: 20px;
}

.teacher-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  max-width: 350px;
}

/* اخفاء السويبر على الموبايل */
@media (max-width: 600px) {
  .swiper-wrapper {
    display: block !important;  /* نخلي الكروت تظهر كبلوك */
  }
  .swiper-slide {
    width: 100% !important;  /* الكارت ياخد العرض كامل */
    margin-bottom: 20px;
    display: block !important;
  }
  #teacherSearch{
    display: none;
  }
}

.teacher-card:hover {
  transform: translateY(-5px);
}

.teacher-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.teacher-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.teacher-card p {
  color: #555;
  margin-bottom: 10px;
}

.teacher-card button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}


h1 {
  text-align: center;
  margin: 50px 0 20px;
}
.logo img{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  margin: auto;
}



.container {
  position: relative;
  min-height: 100vh;
}







.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;
}



.imgs{
    margin-top: 200px;
}
.imgs img{
    margin: auto;
    width: 350px;
    display: block;
}




.form-container {
  width: 90%;
  margin: auto;
  position: relative;
  margin-top: 100px;
  background-color: rgba(0, 255, 255, 0.411);
  border-radius: 10px;
}

.spinner-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: auto;
}

.spinner-border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 10px solid rgba(50, 146, 205, 0.763);
  border-top: 5px solid rgba(50, 146, 205, 1);
  border-radius: 50%;
  animation: spin 2s linear infinite;
  z-index: 1;
}

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

.robot {
  position: relative;
  width: 100px;
  height: 100px;
  background: orange;
  border-radius: 50%;
  margin: auto;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  top: 30px;
}

.eyes {
  display: flex;
  gap: 10px;
}

.eye {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.hand {
  width: 15px;
  height: 30px;
  background: rgb(216, 143, 7);
  border-radius: 20%;
  position: absolute;
  top: 25px;
  z-index: 4;
  transition: 1s;
  display: none;
}

.left-hand {
  left: 0;
}

.right-hand {
  right: 0;
}

.speech-bubble {
  position: absolute;
  top: 10px;
  right: -140px;
  width: 130px;
  background: white;
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-size: 13px;
  display: none;
  text-align: right;
}

form {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;

}

label {
      display: block;
      margin-bottom: 6px;
    }

    input, select, textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 16px;
    }

    button {
      width: 100%;
      background: #28a745;
      color: white;
      padding: 10px;
      font-size: 18px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }






#submitbtn {
  padding: 10px;
  border: none;
  background: #3498db;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}
.eye-cover {
      position: absolute;
      width: 25px;
      height: 25px;
      top: 40%;
      left: -35px;
      background-image: url('https://cdn-icons-png.flaticon.com/512/2206/2206368.png');
      background-size: cover;
      display: none;
    }




    #popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000;
  }

  .popup-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    max-width: 300px;
  }

  .popup-box button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #3498db;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }