body {
  margin: 0; /* إزالة الهوامش الافتراضية */
  padding: 0;
  font-family: 'Arial', sans-serif; /* خط أساسي */
  background-color: #f5f5f5; /* خلفية فاتحة للصفحة */
  color: #333; /* لون نص أساسي */
  line-height: 1.6;

}


/* أساسي للNavbar */
  
#navbar-top {
    background-color: #e74c3c; /* أحمر */
    padding: 15px 30px;
    font-family: Arial, sans-serif;
    position: fixed;   /* ثابت عند التمرير */
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 100%;
  }

  .navbar-container {
    display: flex;
    justify-content: flex-start; /* كل شيء يبدأ من اليسار */
    align-items: center;
    gap: 20px; /* مسافة بين الشعار والقائمة */
}


  /* الشعار */
  .navbar-brand {
    color: #070707;
    font-size: 28px; /* حجم كبير */
    font-weight: bold;
    text-decoration: none;
  }

  /* قائمة الروابط */
  .navbar-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
  }

  .navbar-nav li {
    margin-left: 5px;
  }

  .navbar-nav li a {
    color: #070707;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    transition: background 0.3s, color 0.3s;
    border-radius: 5px;
  }

  /* تأثير عند المرور */
  .navbar-nav li a:hover,
  .navbar-nav li.active a {
    background-color: #c0392b; /* أحمر داكن */
    color: #fff;
  }

  /* Responsive صغير الشاشة */
  @media (max-width: 768px) {
    .navbar-container {
      flex-direction: column;
      align-items: flex-start;
    }
    .navbar-nav {
      flex-direction: column;
      width: 100%;
    }
    .navbar-nav li {
      margin-left: 0;
      margin-bottom: 10px;
    }
  }
  /* Hero Section */
.hero {
  position: relative;
  height: 100vh; /* يغطي كامل ارتفاع الشاشة */
  background-image: url('carhome.jpg'); /* ضع هنا مسار الصورة */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  text-align: center;
  padding: 50px;
  border-radius: 15px;
}

.hero-overlay h1 {
  font-size: 75px;
  color: #dad7d7; /* لون رمادي داكن */
  margin: 0 0 20px 0;
}

.hero-overlay p {
  font-size: 50px;
  color: #dad7d7; /* رمادي فاتح */
  margin: 0;
}

/* Responsive صغير الشاشة */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 40px;
  }
  .hero-overlay p {
    font-size: 18px;
  }
}

/* Services Section */
.services-section {
  position: relative;
  padding: 80px 0;
  background-image: url('carblanck.jpg');
  background-size: cover;
  background-position: center;
  color: #080808;
}

/* إزالة Overlay نهائيًا */
.services-overlay {
  display: none;
}

/* محتوى فوق الخلفية */
.services-section .container {
  position: relative;
  z-index: 1;
}

/* عنوان Section */
.services-section .heading {
  text-align: center;
  margin-bottom: 80px;
}

.services-section .heading h2 {
  font-size: 70px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #030303;
}

.services-section .heading p {
  font-size: 15px;
  color: #1f1e1e;
}

/* قائمة الخدمات */
.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* كل خدمة */
.service {
  flex: 0 1 220px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
  transition: transform 0.4s, box-shadow 0.4s;
}

.service:nth-child(1) { animation-delay: 0.2s; }
.service:nth-child(2) { animation-delay: 0.4s; }
.service:nth-child(3) { animation-delay: 0.6s; }
.service:nth-child(4) { animation-delay: 0.8s; }

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* الصور داخل الدوائر */
.service-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f10b0b;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s, border-color 0.5s;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon:hover {
  transform: rotate(15deg) scale(1.1);
  border-color: #ff6f61;
}

/* النصوص */
.service h4 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: bold;
  transition: color 0.3s;
}

.service:hover h4 {
  color: #f10b0b;
}

.service p {
  font-size: 14px;
  color: #3a3939;
  transition: color 0.3s;
}

.service:hover p {
  color: #000;
}

/* Keyframes للظهور التدريجي */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* كل خدمة مبدئيًا مخفية */
.service {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.4s, box-shadow 0.4s;
}

/* عند ظهورها في الشاشة */
.service.visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .services-list { gap: 30px; }
  .service { flex: 0 1 45%; }
  .service-icon { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
  .service { flex: 0 1 100%; }
}

/* Work Section */
/* Work Section */
#work {
  background: #000;
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
}

/* العنوان */
#work .heading h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.2s;
}

#work .heading p {
  font-size: 16px;
  color: #ccc;
  text-align: center;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.4s;
}

/* Portfolio */
#portfolio {
  width: 100%;
}

#portfolio .filters {
  margin-bottom: 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.6s;
}

#portfolio .filters li {
  display: inline-block;
  margin: 0 10px;
}

#portfolio .filters li a {
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 15px;
  border: 1px solid #555;
  border-radius: 25px;
  transition: all 0.3s;
}

#portfolio .filters li a.active,
#portfolio .filters li a:hover {
  color: #fff;
  background: #e74c3c;
  border-color: #e74c3c;
}

/* Portfolio items */
#portfolio .items {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#portfolio .items li {
  position: relative;
  width: calc(25% - 20px);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  opacity: 0;
  transform: scale(0.9);
}

/* عند الظهور */
#portfolio .items li.visible {
  animation: zoomIn 0.8s forwards;
}

/* Hover */
#portfolio .items li a img {
  width: 100%;
  display: block;
  transition: all 0.3s ease-in-out;
}

#portfolio .items li a .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

#portfolio .items li a .overlay span {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  padding: 10px 20px;
}

#portfolio .items li a:hover .overlay {
  opacity: 1;
}

#portfolio .items li:hover {
  transform: translateY(-8px);
}

#portfolio .items li a:hover img {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  #portfolio .items li {
    width: calc(33.33% - 20px);
  }
}

@media (max-width: 768px) {
  #portfolio .items li {
    width: calc(50% - 15px);
  }
}

@media (max-width: 480px) {
  #portfolio .items li {
    width: 100%;
  }

  #portfolio .filters li {
    display: block;
    margin-bottom: 10px;
  }
}


#about {
  background-color: #3a302f;
  color: #fff;
  padding: 100px 0;
  font-family: 'Arial', sans-serif;
  text-align: center;
  overflow: hidden;
}

#about .heading h2 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 15px;
}

#about .heading p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 60px auto;
  color: #fff;
}

/* Grid للصور */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.teammate {
  width: 200px;
  margin-bottom: 40px;
  text-align: center;
  transition: transform 0.3s, opacity 0.6s;
  opacity: 0;
  transform: translateY(60px);
}

.teammate.show {
  opacity: 1;
  transform: translateY(0);
}

/* الصور مربعة */
.profile-photo {
  width: 200px;
  height: 200px;
  overflow: hidden;
  margin: 0 auto 10px auto;
  border-radius: 5px;
  border: 2px solid #fff;
  transition: transform 0.4s ease;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.teammate:hover .profile-photo img {
  transform: scale(1.1);
}

/* الاسم والوظيفة */
.bio h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.bio h5 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}
/* Contact Section */
/* Contact Section */
#contact {
  background: url('contact.jpg') no-repeat center center;
  background-size: cover;
  padding: 80px 0;
  color: #fff;
  text-align: center;
  position: relative;
  font-family: 'Arial', sans-serif;
}

/* محتوى القسم فوق الخلفية */
#contact .container {
  position: relative;
  z-index: 1;
}

/* عنوان القسم */
#contact .heading h2 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 15px;
}

#contact .heading p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

/* الفورم مركزي وضيق */
#contact form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 600px; /* عرض أقصى */
  margin: 0 auto;
}

/* الأعمدة */
#contact .col-left,
#contact .col-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1 1 200px; /* حجم ضيق لكل عمود */
}

/* Inputs و Textarea شفافة */
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 5px;
  font-size: 14px;
  background-color: rgba(255,255,255,0); /* شفاف */
  color: #fff;
  outline: none;
}

/* زر Send */
button.submit {
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  background-color: #e74c3c;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

button.submit:hover {
  background-color: #c0392b;
}

/* Responsive */
@media (max-width: 768px) {
  #contact form {
    flex-direction: column;
    gap: 20px;
  }
}

#footer {
  padding: 40px 0;
  color: #ccc;
  text-align: center;
  background-color: #181818;
}
/* Footer */
#footer {
  background-color: #222; /* لون الخلفية */
  color: #f75e5e;
  padding: 50px 0;
  text-align: center;
  font-family: 'Arial', sans-serif;
}

#footer h1 {
  font-size: 50px; /* حجم كبير للكلمة */
  font-weight: bold;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

#footer p {
  font-size: 16px;
  margin: 0;
  color: #ccc; /* لون أفتح للنص الصغير */
}

@media (max-width: 768px) {
  #footer h1 {
    font-size: 36px;
  }

  #footer p {
    font-size: 14
  }
}
.scroll-link {
  display: inline-block;
  padding: 8px 15px;
  color: #fff;
  background-color: #e74c3c;
  border-radius: 5px;
  transition: all 0.3s;
  text-decoration: none;
}

.scroll-link:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
}
/* العناصر المخفية أولاً */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px); /* يتحرك من الأسفل */
  transition: all 0.8s ease-out;
}

/* عند ظهور العنصر */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 768px) {
  #navbar-top {
    padding: 5px 10px;
  }

  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  .navbar-nav li a {
    display: block;
    padding: 10px;
    width: 100%;
    text-align: left;
  }

  .hero {
    height: 80vh;
  }

  .hero-overlay h1 {
    font-size: 36px;
  }

  .hero-overlay p {
    font-size: 18px;
  }

  .services-section {
    padding: 50px 20px;
  }

  .services-section .heading h2 {
    font-size: 40px;
  }

  #about .heading h2 {
    font-size: 36px;
  }

  #contact .heading h2 {
    font-size: 36px;
  }

  #footer h1 {
    font-size: 30px;
  }
}

