*{
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin:0;
  font-family:'Cairo', sans-serif;
  background:#f4f7fb;
  overflow-x:hidden;
}

/* ================= NAVBAR ================= */
.navbar {
  position:fixed;
  top:0;
  width:100%;
  background:linear-gradient(135deg,#0A2A43,#1DA1F2);
  padding:14px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  z-index:1000;
  animation:slideDown .8s ease;
}

@keyframes slideDown {
  from {transform:translateY(-100%);}
  to {transform:translateY(0);}
}

.logo {
  color:white;
  font-weight:700;
  font-size:20px;
}

/* ===== Menu Toggle (Mobile) ===== */
.menu-toggle {
  display:none;
  font-size:26px;
  color:white;
  cursor:pointer;
}

/* ===== Links ===== */
.nav-links {
  list-style:none;
  display:flex;
  gap:22px;
}

.nav-links a {
  color:white;
  text-decoration:none;
  position:relative;
  font-size:15px;
}

.nav-links a::after{
  content:'';
  position:absolute;
  width:0;
  height:2px;
  background:white;
  left:0;
  bottom:-5px;
  transition:.4s;
}

.nav-links a:hover::after{
  width:100%;
}

/* Shadow عند scroll */
.navbar.scroll-shadow {
  box-shadow:0 6px 15px rgba(0,0,0,.2);
}

/* ================= HERO ================= */
.hero {
  height:100vh;
  position:relative;
  overflow:hidden;
}

.slide {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.1);
  transition:opacity 1.2s ease, transform 1.2s ease;
}

.slide.active {
  opacity:1;
  transform:scale(1);
}

/* Overlay نصوص الهيرو */
.hero-overlay {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:white;
  animation:heroFade 1.5s ease forwards;
}

@keyframes heroFade {
  from {opacity:0; transform:translateY(30px);}
  to {opacity:1; transform:translateY(0);}
}

/* ================= SECTIONS ================= */
.section {
  padding:90px 10%;
  text-align:center;
}

/* Scroll Reveal Animation للنصوص */
.reveal {
  opacity:0;
  transform:translateY(60px);
  transition:1s ease;
}

.reveal.active {
  opacity:1;
  transform:translateY(0);
}

/* ================= BOX ================= */
.box {
  background:white;
  padding:15px;
  border-radius:16px;
  box-shadow:0 12px 30px rgba(0,0,0,.1);
  transition:.4s ease;
  text-align:center;
}

.box:hover {
  transform:translateY(-10px) scale(1.05);
}

.box img {
  width:100%;
  height:120px; /* حجم أكبر قليلاً */
  object-fit:cover;
  border-radius:12px;
  margin-bottom:10px;
  transition:0.5s ease;
}

/* Hover effect على الصور */
.box img:hover {
  transform:scale(1.08);
  box-shadow:0 0 15px #1DA1F2; /* توهج أزرق عند التحويم */
}

/* ================= PARTS GRID ================= */
.parts-grid, .grid-3 {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

/* انيميشن الصور */
.parts-grid .box, .grid-3 .box {
  animation:fadeZoom 0.6s ease forwards;
  opacity:0;
}

@keyframes fadeZoom {
  from {opacity:0; transform:scale(0.85);}
  to {opacity:1; transform:scale(1);}
}

/* ================= BUTTON ================= */
.cta-btn {
  display:inline-block;
  margin-top:25px;
  padding:14px 40px;
  background:linear-gradient(135deg,#1DA1F2,#0A2A43);
  color:white;
  border-radius:40px;
  text-decoration:none;
  transition:.4s;
}

.cta-btn:hover{
  transform:scale(1.1);
  box-shadow:0 8px 20px rgba(0,0,0,.3);
}

/* ================= WHATSAPP ================= */
.whatsapp-float {
  position:fixed;
  bottom:20px;
  left:20px;
  background:#25D366;
  color:white;
  padding:15px;
  border-radius:50%;
  font-size:22px;
  animation:pulse 1.5s infinite;
}

@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(37,211,102,.7);}
  70%{box-shadow:0 0 0 15px rgba(37,211,102,0);}
  100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}
}

/* ================= BOOKING FORM MINI ================= */
.order-form input,
.order-form textarea,
.order-form .cta-btn {
  width:300px; /* طول أقصر مثل التعديل الأول */
  max-width:90%; /* ليناسب الشاشات الصغيرة */
  margin:10px auto; /* فوق بعض وفي الوسط */
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #ccc;
  font-size:14px;
  display:block; /* فوق بعض */
  transition:.5s ease;
}

/* التركيز على الحقول */
.order-form input:focus,
.order-form textarea:focus {
  border-color:#1DA1F2;
  box-shadow:0 0 8px #1DA1F2;
  outline:none;
}

/* زر الإرسال */
.order-form .cta-btn {
  background:linear-gradient(135deg,#1DA1F2,#0A2A43);
  color:white;
  border-radius:40px;
  padding:12px 0;
  cursor:pointer;
}

/* Scroll reveal للحجز */
.order-form input,
.order-form textarea,
.order-form .cta-btn {
  opacity:0;
  transform:translateY(30px);
  transition:0.6s ease;
}

.order-form input.active,
.order-form textarea.active,
.order-form .cta-btn.active {
  opacity:1;
  transform:translateY(0);
}
/* ================= FOOTER ================= */
.footer {
  text-align:center;
  padding:20px;
  color:white;
  background:linear-gradient(135deg,#0A2A43,#1DA1F2);
  border-top:4px solid #1DA1F2; /* الإطار الأزرق */
}
/* ================= MOBILE ================= */
@media(max-width:768px){
  .menu-toggle { display:block; }
  .nav-links {
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#0A2A43;
    flex-direction:column;
    text-align:center;
    padding:20px 0;
    display:none;
    animation:menuSlide .5s ease;
  }
  .nav-links.open { display:flex; }
  @keyframes menuSlide {
    from { opacity:0; transform:translateY(-20px);}
    to { opacity:1; transform:translateY(0);}
  }

  .hero { height:90vh; }
  .section { padding:70px 6%; }

  /* Grid صور صغيرة في الموبايل */
  .parts-grid, .grid-3 { grid-template-columns:repeat(2,1fr); }

  /* الحجز نصوص فوق بعض */
  .order-form input,
  .order-form textarea,
  .order-form .cta-btn {
    width:100%;
    margin-bottom:15px;
  }
}
/* ===== مربع التقييم ===== */
.rating-box {
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) scale(0);
  max-width:400px;
  width:90%;
  padding:20px;
  background:white;
  border-radius:16px;
  box-shadow:0 0 25px rgba(29,161,242,0.8); /* إطار أزرق متوهج */
  text-align:center;
  z-index:2000;
  opacity:0;
  transition: all 0.6s ease;
}

/* إظهار المربع */
.rating-box.show {
  transform:translate(-50%, -50%) scale(1);
  opacity:1;
}

/* نص التقييم */
.rating-box p {
  margin-bottom:12px;
  font-weight:600;
  font-size:16px;
}

/* النجوم */
.stars {
  display:flex;
  justify-content:center;
  gap:10px;
  font-size:30px;
  cursor:pointer;
  margin-bottom:15px; /* مسافة بين النجوم والزر */
}

.stars span {
  color:lightgray;
  transition:0.3s;
}

.stars span.selected,
.stars span:hover,
.stars span:hover ~ span {
  color:#1DA1F2; /* أزرق متوهج */
}

/* زر "تم" تحت النجوم */
#rating-done {
  display:block;
  margin:0 auto;
  margin-top:10px;
  padding:12px 30px;
  background: linear-gradient(135deg,#1DA1F2,#0A2A43);
  color:white;
  border:none;
  border-radius:40px;
  font-weight:bold;
  cursor:pointer;
  transition:all 0.4s ease;
}

#rating-done:hover {
  transform:scale(1.05);
  box-shadow:0 8px 20px rgba(29,161,242,0.6);
}
/* ===== مربعات السيارات والزيوت ===== */
.grid-3 .box,
.parts-grid .box {
  width: 100%;          /* المربع يشغل كامل العمود */
  height: 150px;        /* ارتفاع أكبر من السابق */
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-3 .box img,
.parts-grid .box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* الصورة تبقى واضحة داخل المربع */
  border-radius: 12px;
  transition: transform 0.4s ease;
}

/* Hover animation */
.grid-3 .box:hover img,
.parts-grid .box:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* إزالة أي علامة x أو عناصر تحكم افتراضية في المربع */
#rating-box,
#rating-box button,
#rating-box span {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
