@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");

:root {
  --main-color: #E9AE37;
  --white-color: #ffffff;
  --black-color: #000000;
  --text-color: #6a7a77;
  --background-color: #232B38;
  --second-background-color: #232e3f;
  --placeholder-color: #a1a1a1;
  --box-shadow: 0 8px 32px 0 hsla(40, 80%, 56%, 0.096);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul li {
  list-style: none;
}
body{
  background-color: var(--background-color) !important;
}
html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  
}

::-webkit-scrollbar {
  width: 6px;
}

/* ::-webkit-scrollbar-track {
  background: transparent;
} */

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 4px;
}

.text-main {
  color: var(--main-color) !important;
}

.text-white {
  color: var(--white-color) !important;
}

.text-third {
  color: var(--background-color);
}

.section-title h2 {
  color: var(--main-color);
  font-weight: bold;
  font-size: 1.5rem;

  margin-bottom: 1rem;
  border-left: 3px solid var(--main-color);
  padding-left: 0.7rem;
}

.btn-send {
  background-color: var(--background-color);
  color: var(--white-color) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  border: 1px solid var(--white-color);
  transition: all 0.3s ease-in !important;
  font-size: 18px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.btn-send:hover {
 
  border: 1px solid var(--white-color);
  color: var(--background-color) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  padding: 0.6rem 1.8rem !important;
}
.btn-send .btn-arrow {
  color: var(--white-color) !important;
  margin-inline-start: 10px;
  transition: all 0.5s ease-in-out !important;
}
.btn-send .btn-arrow i {
  transition: all 0.3s ease-in-out !important;
  transform: rotate(0deg);
  color: var(--white-color) !important;
}
.btn-send:hover .btn-arrow {
  color: var(--white-color) !important;
}
.btn-send:hover .btn-arrow i {
  color: var(--white-color) !important;
  transform: rotate(90deg);
}
.btn-arrow i {
  color: var(--white-color) !important;
}

.bg-main {
  background-color: var(--main-color) !important;
}
.bg-white {
  
}

.bg-section {
  background-color: var(--background-color);
}
.bg-section-two {
  background-color: var(--second-background-color);
}

.shadow-main {
  box-shadow: 0 8px 32px 0 hsla(197, 95%, 43%, 0.3);
}

.shadow-main-sm {
  box-shadow: 0 8px 32px 0 hsla(197, 95%, 43%, 0.2);
}
/*  
##################################################
#                  LOADING                       #
##################################################
*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
}

.loader-container {
  position: relative;
  width: 160px;
  height: 160px;
}

.pulse-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* border: 10px solid var(--main-color); */
  /* animation: pulse 1.5s infinite ease-in-out; */
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

/* .pulse-circle i {
  font-size: 55px;
  color: var(--third-color);
} */

.pulse-circle img {
  width: 200px;
}

/*  
##################################################
#                  SOCIAL ICONS                  #
##################################################
*/
.social-icon {
  inset-inline-start: 0 !important;
  margin-inline-start: 16px;
  margin-bottom: 50px;
  width: fit-content;
  height: fit-content;
}

.social-icon a {
  background: var(--background-color) !important;
  color: var(--white-color) !important;
  padding: 0.5rem;
  border-radius: 8px;
  margin: 0.5rem;
  text-decoration: none;
  border: 1px solid var(--white-color);
  width: 50px;
  height: 50px;
  font-size: 22px;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, 
              background 0.3s ease, 
              box-shadow 0.3s ease, 
              filter 0.3s ease;
}

.social-icon a:hover {
  background: var(--white-color) !important;
  color: var(--background-color) !important;
  font-weight: bold;
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--box-shadow);
  filter: brightness(1.1);
}


.back-to-top button {
  background: var(--background-color) !important;
  color: var(--white-color) !important;
  padding: 0.5rem;
  border-radius: 8px;
  margin: 0.5rem;
  text-decoration: none;
  border: 1px solid var(--white-color);
  width: 50px;
  height: 50px;
  font-size: 22px;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, 
              background 0.3s ease, 
              box-shadow 0.3s ease, 
              filter 0.3s ease;
}
.back-to-top {
  inset-inline-end: 0 !important;
  margin-inline-end: 16px;
  width: fit-content;
}

.back-to-top button:hover {
  background: var(--white-color) !important;
  color: var(--background-color) !important;
  border: 1px solid var(--background-color);
  border: 1px solid var(--white-color);
  font-weight: bold;
  transform: translateY(-5px) scale(1.05);

  filter: brightness(1.1);
}

.back-to-top button.show {
  opacity: 1;
  visibility: visible;
}

/*  
##################################################
#                      Navbar                    #
##################################################
*/
.header {
background-color:var(--background-color);
}
.navbar {
  padding: 0;
  z-index: 99;
  /* border-radius: 0.5rem; */
}
.navbar .navbar-brand {
  margin-right: 0 !important;
}
.nav-link {
  color: var(--white-color) !important;
  font-weight: 500;
  text-transform: capitalize;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem;
  padding: 0.8rem 2rem !important;
  transition: all 0.4s ease; /* تحسين الانتقال لجميع الخصائص */
}



/* عند التحويم أو عندما يكون نشط */
.nav-link:hover,
.nav-link.active {
  color: var(--main-color) !important;
  font-weight: bold;
  /* padding: 0.8rem 2.5rem !important; */
}

.contact-info a {
  transition: all 0.3s ease;
  cursor: pointer;
}
.contact-info a:hover {
  font-weight: 600;
  color: var(--white-color) !important;
}
.contact-info .time {
  border-right: 2px;

  border-color: var(--white-color);
}
.icons-list-mobile a{
  transition: all 0.3s ease;
  cursor: pointer;
}
.icons-list-mobile a:hover{
  color: var(--white-color) !important;
}

.navbar .btn-lang {
  background: var(--main-color);
  color: var(--white-color) !important;
  /* line-height: 1.2em; */
  border-radius: 8px;
  padding: 10px 30px;
  font-size: 0.9rem;
}
.navbar .btn-lang:hover {
  background: var(--main-color);

  color: var(--white-color) !important;
}

.navbar.fixed-top {
  transition: all 0.5s ease !important;
  background-color: var(--second-background-color);
  box-shadow: var(--box-shadow);
}

.navbar.fixed-top .container-fluid {
  margin-top: 0 !important;
  top: 0 !important;
  /* border-bottom-left-radius: 20px; */
  /* border-bottom-right-radius: 20px; */
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.navbar.fixed-top ul li a.nav-link {
  color: var(--white-color);
}
.navbar.fixed-top ul li a.nav-link.active {
  color: var(--main-color) !important;
}
.navbar.fixed-top .navbar-toggler i {
  color: var(--white-color) !important;
}

.dropdown-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* تنسيق عناصر القائمة */
.dropdown-item {
  padding: 10px 20px;
  display: block;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}
.dropdown-submenu a {
  &:hover {
    color: var(--white-color);
  }
  i {
    transition: all 0.3s ease;
  }
  &:hover i {
    transform: rotate(90deg);
  }
}

/* الأيقونات */
.iconToggle {
  transition: transform 0.3s;
}
.iconToggle:nth-child(1) {
  /* transition: transform 0.3s; */
  color: var(--white-color);
}

.nav-item.dropdown.show .iconToggle,
.nav-item.dropdown:hover .iconToggle {
  transform: rotate(180deg);
  color: var(--white-color);
}

.dropdown-submenu.show .iconToggle,
.dropdown-submenu:hover .iconToggle {
  transform: rotate(90deg);
}

/* المستويات المختلفة للقوائم */
.first-level {
  background-color: #fff;
  /* border: 1px solid #eee; */
  width: 100%;
  max-height: 0;
  display: none;
  border-radius: 10px;
}

/* تأثيرات القوائم المنسدلة */
.nav-item.dropdown.show .first-level,
.nav-item.dropdown:hover .first-level {
  max-height: 1000px;
  display: block;
}

/* تنسيق عام للقائمة الجانبية */

.offcanvas-header {
  padding: 1rem 1.5rem;
}
.offcanvas-body .nav-link {
  font-size: 1rem;
}


/* تنسيق القوائم المنسدلة */
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*  
##################################################
#                  Home                          #
##################################################
*/
.background-img img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
.background-img {
  position: relative;
  overflow: hidden;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.slider-content h1 span:first-child {
  color: var(--main-color);
  font-size: 3rem;
  font-weight: 800;
  text-wrap: nowrap;
}

.slider-content span:last-child {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 700px;
  display: inline-block;
}
/*  
##################################################
#                  About Us                      #
##################################################
*/

.custom-logo-about img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0.2rem;
}
.custom-logo-two-about img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0.2rem;
}
.about h2 {
  color: var(--main-color);
  font-weight: bold;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  padding: 1rem 1.5rem;
  z-index: 1;
}

/* النصف العلوي واليسار */
.about h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-top: 3px solid var(--main-color); /* أصفر */
  border-left: 3px solid var(--main-color); /* أصفر */
  border-top-left-radius: 10px;
}

/* النصف السفلي واليمين */
.about h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-bottom: 3px solid #ffc107; /* أصفر */
  border-right: 3px solid #ffc107; /* أصفر */
  border-bottom-right-radius: 10px;
}


.about img {
  transition: all 0.3s ease;
  display: block;
}
.about img:hover {
  transform: scaleZ(2);
}
/*  
##################################################
#                      Services                  #
##################################################
*/
.services .container::after {
  content: "";
  position: absolute;
  background-image: url("../images/Heavy\ equipment\ maintenance.webp");
  background-repeat: no-repeat;
  background-size: cover;
  height: 30vh;
  width: 100%;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  border-radius: 5px;
}
.services .container::before {
  border-radius: 5px;
  content: "";
  position: absolute;
  background-color: hsla(0, 0%, 0%, 0.295);
  height: 30vh;
  width: 100%;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.services .card-body {
  height: 200px;

}
.services-card {
  transition: all 0.3s ease;
  position: relative;
  z-index: 3 !important;
  border-radius: 10px;
}
/* النصف العلوي واليسار */
.services-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-top: 3px solid var(--main-color); /* أصفر */
  border-left: 3px solid var(--main-color); /* أصفر */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* النصف السفلي واليمين */
.services-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-bottom: 3px solid #ffc107; /* أصفر */
  border-right: 3px solid #ffc107; /* أصفر */
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}
.services-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.services-card:hover i.text-main {
  color: var(--main-color) !important;
}



/*  
##################################################
#                  depatrment                  #
##################################################
*/

.equipment-card {
  position: relative;
  height: 300px;
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 10px !important;
}
.equipment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-top: 3px solid var(--main-color); /* أصفر */
  border-left: 3px solid var(--main-color); /* أصفر */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.equipment-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-bottom: 3px solid #ffc107; /* أصفر */
  border-right: 3px solid #ffc107; /* أصفر */
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}

.equipment-card:hover {
  transform: scale(1.03);

}

.equipment-card img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.content-card {
  position: absolute;
  top: 50%;
  left: 120%; /* ابدأ من خارج الكارد */
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.5s ease; /* تحكم في السرعة والنعومة */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.equipment-card:hover .content-card {
  left: 50%; /* يوصل للمنتصف */
  opacity: 1;
  transform: translate(-50%, -50%);
}



/*  */


/*  
##################################################
#                      Blog                      #
##################################################
*/

.blog-card-custom h5 {
  font-size: 2rem;
}
.blog-card-custom p {
  font-size: 1.3rem;
  text-overflow: ellipsis;
  overflow: hidden;
}

/*  
##################################################
#                  Blog Details                   #
##################################################
*/

/*  
##################################################
#                Contact Us                      #
##################################################
*/
/* Contact Section */


/* Form */
.contact-form {
  background: #fff;
border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-top: 3px solid var(--main-color); /* أصفر */
  border-left: 3px solid var(--main-color); /* أصفر */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* النصف السفلي واليمين */
.contact-form::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-bottom: 3px solid #ffc107; /* أصفر */
  border-right: 3px solid #ffc107; /* أصفر */
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}
.contact-form:hover {

  box-shadow: 0px 10px 20px rgba(0,0,0,0.08);
}
.contact-form .form-control {
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
.contact-form .form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 8px rgba(239, 164, 22, 0.3);
}


/* Contact Info Card */
.contact-info {
  background: #fff;
position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-top: 3px solid var(--main-color); /* أصفر */
  border-left: 3px solid var(--main-color); /* أصفر */
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* النصف السفلي واليمين */
.contact-info::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-bottom: 3px solid #ffc107; /* أصفر */
  border-right: 3px solid #ffc107; /* أصفر */
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}
.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0,0,0,0.1);
}
.contact-info h5 {
  color: var(--main-color);
  margin-bottom: 1rem;
}
.contact-info p {
  font-size: 0.95rem;
  color: #555;
}

/* Map */
.contact-hero iframe {
  border: 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}


/*  
##################################################
#                  Footer                        #
##################################################
*/

.footer-section .container-fluid {
  background-color: var(--background-color);
  box-shadow: var(--box-shadow);
}

.footer-title,
.footer-subtitle {
  color: var(--main-color);
}
.footer-links li {
  color: var(--white-color);
  text-decoration: none;
  transition: all 0.2s ease; 
  height: 100%;
  cursor: pointer;
  padding:0.5rem 0;

  a {
    transition: all 0.4s ease;
  }

  a:hover {
    color: var(--main-color);
   font-weight: 600;
 
  }
}

.footer-social {
  display: flex;
  justify-content: start !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social-icon {
  color: var(--main-color);
  background:var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  font-size: 1.2rem;
  transition:all 0.3s ease;
  padding: 0.5rem;
}
.footer-social-icon:hover {
  color: var(--background-color);
 background-color: var(--white-color);
transform: translateY(-0px);
}
.footer-contact li a {
  color: var(--white-color);
  cursor: pointer;
  transition: all 0.3s ease;
}
.footer-contact li a:hover {
  color: var(--main-color);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
}
