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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
  color: #f3efd7;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 20px;
}

/* === خلفية التروس الدوارة (ذهبية) === */
.gears-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gear {
  position: absolute;
  opacity: 0.12;
  color: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
  display: inline-block;
}

/* ترس كبير 1 */
.gear-1 {
  font-size: 180px;
  top: 10%;
  left: -5%;
  animation: spin 20s linear infinite;
}

/* ترس كبير 2 */
.gear-2 {
  font-size: 220px;
  bottom: 5%;
  right: -8%;
  animation: spin-reverse 25s linear infinite;
}

/* ترس متوسط */
.gear-3 {
  font-size: 120px;
  top: 40%;
  right: 5%;
  animation: spin 18s linear infinite;
}

/* ترس صغير */
.gear-4 {
  font-size: 80px;
  bottom: 20%;
  left: 8%;
  animation: spin-reverse 12s linear infinite;
}

/* ترس صغير جداً */
.gear-5 {
  font-size: 60px;
  top: 70%;
  left: 20%;
  animation: spin 14s linear infinite;
}

/* ترس إضافي */
.gear-6 {
  font-size: 100px;
  top: 15%;
  right: 20%;
  animation: spin-reverse 22s linear infinite;
}

/* تروس إضافية لزيادة الجمال */
.gear-7 {
  font-size: 45px;
  top: 85%;
  right: 35%;
  animation: spin 10s linear infinite;
  opacity: 0.08;
}

.gear-8 {
  font-size: 70px;
  top: 55%;
  left: -2%;
  animation: spin-reverse 16s linear infinite;
  opacity: 0.1;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

/* حاوية المحتوى الرئيسية */
.container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(2px);
  border-radius: 48px;
  padding: 30px 20px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

/* تنسيقات الهيدر */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vw;
}

.logo {
  width: 28vw;
  height: auto;
  max-width: 200px;
  min-width: 100px;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.header h1 {
  font-size: clamp(28px, 8vw, 58px);
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  letter-spacing: 1px;
}

/* محتوى الصيانة */
.content {
  font-size: clamp(14px, 4vw, 22px);
  text-align: center;
  color: #f3efd7;
}

.apologize {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px 0;
}

.apologize p {
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 40px;
  display: inline-block;
  margin: 0 auto;
  backdrop-filter: blur(4px);
}

.apologize p:first-child {
  font-size: 1.3em;
  font-weight: bold;
  color: #ffd700;
  border-right: 3px solid #ffd700;
  border-left: 3px solid #ffd700;
}

/* شريط تقدم صيانة متحرك */
.maintenance-progress {
  margin: 20px auto 15px;
  max-width: 380px;
  width: 80%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #ffd700;
  margin-bottom: 8px;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffb347);
  border-radius: 30px;
  animation: pulse 1.5s ease-in-out infinite;
  position: relative;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.6;
  }
}

/* قسم powered by */
.powered-sec {
  margin: 30px 0 20px;
}

.powered-sec h2:first-child {
  font-size: 0.9em;
  color: #aaa;
  letter-spacing: 2px;
}

.powered-sec-wa {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.powered-sec .powered-sec-wa .wa-logo {
  width: clamp(40px, 10vw, 85px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(188, 124, 255, 0.4));
}

.powered-sec .powered-sec-wa h2 {
  color: #bc7cff;
  font-size: clamp(14px, 4vw, 24px);
  text-shadow: 0 0 5px rgba(188, 124, 255, 0.3);
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #ffd700,
    #bc7cff,
    #ffd700,
    transparent
  );
  margin: 25px auto;
  width: 85%;
}

/* قسم الحد الأقصى */
.limit {
  text-align: center;
  margin: 20px 0 10px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
  font-size: clamp(12px, 3.5vw, 18px);
  color: #ffaa44;
  background: rgba(255, 68, 0, 0.1);
  padding: 12px 20px;
  border-radius: 60px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(4px);
}

.limit p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.limit p:first-child::before {
  content: "⏱️";
  font-size: 1.2em;
}

.limit p:last-child::before {
  content: "🕛";
  font-size: 1.2em;
}

/* أيقونات صيانة إضافية متحركة */
.maintenance-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

.icon-tool {
  font-size: clamp(24px, 6vw, 38px);
  animation: bounce 2s ease infinite;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.4));
  color: #ffd700;
}

.icon-tool:nth-child(2) {
  animation-delay: 0.3s;
}
.icon-tool:nth-child(3) {
  animation-delay: 0.6s;
}
.icon-tool:nth-child(4) {
  animation-delay: 0.9s;
}

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

/* === RESPONSIVE (تابليت وهاتف) === */
/* شاشات تابلت (عرض بين 768 و 1024) */
@media (max-width: 1024px) and (min-width: 768px) {
  .container {
    padding: 25px 25px 35px;
    border-radius: 40px;
  }

  .gear-1 {
    font-size: 140px;
    top: 5%;
    left: -3%;
  }
  .gear-2 {
    font-size: 170px;
    bottom: 3%;
    right: -5%;
  }
  .gear-3 {
    font-size: 90px;
    top: 35%;
    right: 2%;
  }
  .gear-4 {
    font-size: 65px;
    bottom: 15%;
    left: 2%;
  }
  .gear-5 {
    font-size: 50px;
    top: 75%;
    left: 15%;
  }
  .gear-6 {
    font-size: 75px;
    top: 12%;
    right: 15%;
  }
  .gear-7 {
    font-size: 35px;
  }
  .gear-8 {
    font-size: 55px;
  }

  .apologize {
    gap: 12px;
  }
  .limit {
    padding: 8px 18px;
    gap: 12px;
  }
}

/* شاشات الهواتف (أقل من 768px) */
@media (max-width: 767px) {
  body {
    padding: 12px;
    align-items: center;
  }

  .container {
    padding: 20px 12px 30px;
    border-radius: 32px;
  }

  .logo {
    width: 35vw;
    min-width: 85px;
  }

  .header h1 {
    font-size: 32px;
  }

  .apologize {
    gap: 12px;
    margin: 18px 0;
  }

  .apologize p {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .content {
    font-size: 16px;
  }

  .limit {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
  }

  .powered-sec-wa {
    gap: 8px;
  }

  .wa-logo {
    width: 45px;
  }

  .powered-sec-wa h2 {
    font-size: 18px;
  }

  hr {
    margin: 18px auto;
    width: 90%;
  }

  /* تقليل حجم التروس في الجوال */
  .gear-1 {
    font-size: 100px;
    top: 2%;
    left: -12%;
    opacity: 0.1;
  }
  .gear-2 {
    font-size: 130px;
    bottom: 2%;
    right: -15%;
    opacity: 0.1;
  }
  .gear-3 {
    font-size: 70px;
    top: 30%;
    right: -5%;
    opacity: 0.1;
  }
  .gear-4 {
    font-size: 55px;
    bottom: 12%;
    left: -3%;
    opacity: 0.1;
  }
  .gear-5 {
    display: none;
  }
  .gear-6 {
    font-size: 60px;
    top: 15%;
    right: 5%;
    opacity: 0.1;
  }
  .gear-7 {
    display: none;
  }
  .gear-8 {
    font-size: 45px;
    opacity: 0.08;
  }

  .maintenance-icons {
    gap: 12px;
  }

  .icon-tool {
    font-size: 28px;
  }
}

/* للشاشات الصغيرة جداً (اقل من 480px) */
@media (max-width: 480px) {
  .gear-1,
  .gear-2,
  .gear-3,
  .gear-4,
  .gear-6,
  .gear-8 {
    opacity: 0.08;
  }
  .container {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(4px);
  }
  .limit p {
    font-size: 13px;
  }
  .progress-fill {
    width: 65%;
  }
}

/* شاشات كبيرة */
@media (min-width: 1400px) {
  .gear-1 {
    font-size: 250px;
  }
  .gear-2 {
    font-size: 290px;
  }
  .gear-3 {
    font-size: 160px;
  }
  .gear-4 {
    font-size: 110px;
  }
  .gear-5 {
    font-size: 85px;
  }
  .gear-6 {
    font-size: 130px;
  }
  .gear-7 {
    font-size: 65px;
  }
  .gear-8 {
    font-size: 95px;
  }
}

/* تحسين التمرير والروابط */
a,
button {
  transition: all 0.2s;
}

/* اضافات صيانة مرئية جذابة */
.glow-text {
  color: #ffd966;
}