/* إعدادات عامة */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Roboto', sans-serif; background:#0b0b0b; color:#fff; }

/* -------------------- */
/*      شريط التنقل     */
/* -------------------- */
nav {
  display: flex;
  justify-content: space-between; /* يوزع العناصر بين الطرفين */
  align-items: center;
  padding: 15px 30px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 2px solid #00f0ff;
  box-shadow: 0 4px 25px rgba(0,0,0,0.8), 0 0 10px #ff7b00 inset;
  border-radius: 0 0 12px 12px;
  direction: ltr; /* يضمن الشعار على اليسار وزر القائمة على اليمين */
}

/* شعار الموقع */
.logo {
  order: 1; /* الشعار أول عنصر من اليسار */
}
.logo img {
  height: 30px; width: auto;
  
  background-color: black; 
}
.logo img:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 0 20px #ffae00);
}

/* روابط التنقل */
nav ul {
  order: 2; /* قائمة الروابط بين الشعار وزر القائمة */
  display: flex;
  list-style: none;
  gap: 25px;
  transition: 0.3s;
}
nav ul li a {
  color: #00d0ff;
  text-decoration: none;
  font-size: 18px; font-weight: 600;
  text-shadow: 0 0 3px #00d0ff, 0 0 8px #ff7b00;
  padding: 6px 12px; border-radius: 8px; transition: 0.3s;
}
nav ul li a:hover {
  color: #ff7b00;
  transform: scale(1.1);
  text-shadow: 0 0 12px #ff7b00, 0 0 20px #00f0ff;
  background: rgba(255,140,0,0.15);
}

/* زر القائمة في الهواتف */
.menu-toggle {
  order: 3; /* زر القائمة آخر عنصر من اليمين */
  display: none;
  font-size: 30px; color: #ff7b00; cursor: pointer;
  text-shadow: 0 0 5px #ff7b00, 0 0 10px #ffae00;
}

/* -------------------- */
/*      الواجهة الرئيسية */
/* -------------------- */
main {
  padding: 120px 20px 80px;
  text-align: center;
  min-height: calc(100vh - 60px);
}
main.home {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
main.home h1 {
  font-family:'Poppins', sans-serif;
  font-size: 48px; color: #00f0ff;
  margin-bottom: 15px;
  text-shadow: 0 0 12px #00f0ff, 0 0 25px #ff7b00;
}
main.home h1 span {
  color: #ff7b00;
  text-shadow: 0 0 20px #ffae00;
}
main.home p {
  font-size: 20px; color: #ccc; margin-bottom: 30px;
}

/* زر اكسر الجليد */
.btn {
  padding: 12px 20px;
  background: linear-gradient(90deg,#00f0ff,#ff7b00);
  color: #000; text-decoration: none; border-radius: 12px;
  font-size: 20px; font-weight: 700;
  transition: 0.4s;
  box-shadow: 0 0 15px #00f0ff, 0 0 25px #ff7b00;
}
.btn:hover {
  background: linear-gradient(90deg,#ff7b00,#00f0ff);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 0 30px #ff7b00, 0 0 40px #00f0ff;
}

/* -------------------- */
/*        البطاقات       */
/* -------------------- */
.card {
  background: #111;
  max-width: 600px; margin: 25px auto; padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px #00f0ff, 0 0 10px #ff7b00 inset;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px #ff7b00, 0 0 40px #00f0ff;
}
.card img {
  width: 160px; height: 160px;
  border-radius: 50%; margin-bottom: 20px;
  border: 3px solid #ff7b00;
}
.card h2 {
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  color: #00f0ff;
  text-shadow: 0 0 8px #00f0ff, 0 0 15px #ff7b00;
}
.card p { font-size: 18px; color: #ccc; }

/* -------------------- */
/*          النماذج      */
/* -------------------- */
form {
  max-width: 450px; margin: 25px auto;
  display: flex; flex-direction: column; gap: 15px;
}
input, textarea {
  padding: 12px; border-radius: 10px;
  border: 1px solid #ff7b00;
  background: #111; color: #00f0ff;
  font-size: 16px; transition: 0.3s;
}
input:focus, textarea:focus {
  border-color: #00f0ff; outline: none;
  box-shadow: 0 0 10px #00f0ff, 0 0 5px #ff7b00;
}
button {
  padding: 14px; background: linear-gradient(90deg,#ff7b00,#00f0ff);
  color: #000; border: none; border-radius: 12px;
  font-size: 18px; cursor: pointer; font-weight: 700;
  transition: 0.4s;
  box-shadow: 0 0 15px #ff7b00, 0 0 25px #00f0ff;
}
button:hover {
  background: linear-gradient(90deg,#00f0ff,#ff7b00);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px #00f0ff, 0 0 35px #ff7b00;
}
.btn1 {
  margin-left: -110px;
  padding: 12px 20px;
  background: linear-gradient(90deg,#00f0ff,#ff7b00);
  color: #000; text-decoration: none; border-radius: 12px;
  font-size: 20px; font-weight: 700;
  transition: 0.4s;
  box-shadow: 0 0 15px #00f0ff, 0 0 25px #ff7b00;
}
.btn:hover {
  background: linear-gradient(90deg,#ff7b00,#00f0ff);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 0 30px #ff7b00, 0 0 40px #00f0ff;
}

/* -------------------- */
/*        البطاقات       */
/* -------------------- */
.card {
  background: #111;
  max-width: 600px; margin: 25px auto; padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px #00f0ff, 0 0 10px #ff7b00 inset;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px #ff7b00, 0 0 40px #00f0ff;
}
.card img {
  width: 160px; height: 160px;
  border-radius: 50%; margin-bottom: 20px;
  border: 3px solid #ff7b00;
}
.card h2 {
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  color: #00f0ff;
  text-shadow: 0 0 8px #00f0ff, 0 0 15px #ff7b00;
}
.card p { font-size: 18px; color: #ccc; }

/* -------------------- */
/*          النماذج      */
/* -------------------- */
form {
  max-width: 450px; margin: 25px auto;
  display: flex; flex-direction: column; gap: 15px;
}
input, textarea {
  padding: 12px; border-radius: 10px;
  border: 1px solid #ff7b00;
  background: #111; color: #00f0ff;
  font-size: 16px; transition: 0.3s;
}
input:focus, textarea:focus {
  border-color: #00f0ff; outline: none;
  box-shadow: 0 0 10px #00f0ff, 0 0 5px #ff7b00;
}
button {
  padding: 14px; background: linear-gradient(90deg,#ff7b00,#00f0ff);
  color: #000; border: none; border-radius: 12px;
  font-size: 18px; cursor: pointer; font-weight: 700;
  transition: 0.4s;
  box-shadow: 0 0 15px #ff7b00, 0 0 25px #00f0ff;
}
button:hover {
  background: linear-gradient(90deg,#00f0ff,#ff7b00);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 25px #00f0ff, 0 0 35px #ff7b00;
}

/* -------------------- */
/*        الهواتف       */
/* -------------------- */
@media (max-width:768px){
  nav ul {
    display: none;
    flex-direction: column; gap: 15px;
    background: rgba(0,0,0,0.95);
    position: absolute; top: 60px; right: 0;
    width: 220px; padding: 15px;
    border-radius: 0 0 0 10px;
    box-shadow: 0 0 25px #ff7b00, 0 0 35px #00f0ff;
  }
  nav.active ul {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }
  .menu-toggle { display: block; }
  main.home h1 { font-size: 36px; }
}

/* -------------------- */
/*      الحركات         */
/* -------------------- */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}