* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "jost", serif;
  min-height: 100vh;
  background: linear-gradient(to right, #b438ed, #e94057, #f27121);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.light {
background: linear-gradient(to right, #8a2387, #3847ed, #070707);
color: gray;
}


.logo span {
  color: white;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  width: 100%;
  height: 80px;
  top: 0;
  background: transparent;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 999;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2rem;
  max-width: 1600px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.navbar-container .navbar-menu {
  display: flex;
  text-align: center;
  list-style: none;
  gap: 1.7rem;
}

.navbar-container .navbar-menu li a {
  padding: 3px 20px;
  font-weight: 500;
  color: black;
  text-decoration: none;
  font-size: 1.3rem;
  font-family: Arial, sans-serif;
  border: 2px solid transparent;
  border-radius: 20px;
  transition: all 0.8s ease;
  white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover {
  color: #162530;
  background: rgba(188, 212, 229, 0.8);
  border: 2px solid #fff;
}



/********* زرار المود المعادل ********/
#themeBtn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2); /* خلفية شبه شفافة تناسب الـ Navbar */
  color: #fff; /* لون الأيقونة أبيض */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#themeBtn:hover {
  transform: scale(1.1) rotate(15deg); /* تكبير مع لفة خفيفة عند الـ Hover */
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* تعديل شكل الزرار لما يفعل الوضع الفاتح */
body.light #themeBtn {
  background: rgba(0, 0, 0, 0.1);
  color: #222; /* لون الأيقونة داكن */
  border: 1px solid rgba(0, 0, 0, 0.2);
}






/**********البرجر منيو ********/
.navbar-toggle {
  display: none;
  background: transparent;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

/*******الميديا كوايرز ********/

@media (max-width: 880px) {
  .navbar {
    backdrop-filter: none;
  }

  .navbar-container .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.7rem !important;
    position: absolute;
    height: 100vh;
    width: 250px;
    top: 0;
    right: 0;
    padding: 5rem 1.5rem;
    box-shadow: 0 10px rgba(0 , 0 , 0 ,0.5);
    backdrop-filter:blur(10px);
  }

  .navbar-container .navbar-menu.active {
    display: flex;
  }
  .navbar-toggle {
    display: block;
    z-index: 999;
  }

  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.7rem;
  }

.navbar-container .navbar-menu li a {
font-size: 1.2rem;
padding: 3px 15px;
}


}
