@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --main-color: #14489f;
  --second-color: #ffffff;
  --third-color: #0d66ff;
  --fourth-color: #ffc107;
  --fifth-color: rgb(192, 192, 192);
  --placeholder-color: #a1a1a1;
}

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

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

body {
  position: relative;
}

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;
}
.header-text h2 {
  color: var(--main-color);
  font-weight: bold;
}
.text-main {
  color: var(--main-color);
  font-weight: bold;
}
.bg-main {
  background-color: var(--main-color);
}
/*  
##################################################
#                  LOADING                       #
##################################################
*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: start;
}

.loading-spinner .spinner {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-spinner .spinner img {
  width: 100px;
}

.loading-spinner .spinner::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 5px solid transparent;
  animation: rotateLine 2s ease-in-out infinite;
  /* box-shadow: 0 0 10px rgba(20, 72, 159, 0.4); */
}

.loading-spinner .spinner::after {
  content: "Mepicom";
  position: absolute;
  color: var(--main-color);
  font-size: 25px;
  top: 220px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
}

@keyframes rotateLine {
  0% {
    border-left-color: var(--main-color);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: transparent;
    opacity: 0.5;
  }

  25% {
    border-top-color: var(--main-color);
    border-bottom-color: transparent;
    opacity: 0.7;
  }

  50% {
    border-right-color: var(--main-color);
    border-bottom-color: transparent;
    opacity: 0.9;
  }

  100% {
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    opacity: 1;
  }
}

.loading-spinner .bolt,
.loading-spinner .constraction {
  width: 50px;
  height: 50px;
  color: #fff;
  background-color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  position: absolute;
  bottom: 10px;
  font-size: 23px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.loading-spinner .bolt {
  left: 0%;
}

.loading-spinner .constraction {
  right: 0%;
}

/*  
##################################################
#                  SOCIAL ICONS                  #
##################################################
*/
.social-icon a {
  background-color: var(--fourth-color);
  color: black !important;
  padding: 0.5rem;
  border-radius: 100%;
  margin: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease-out;
  border: none;
  width: 45px;
  height: 45px;
}

.social-icon a i {
  font-size: 22px;
}

.social-icon a:hover {
  background-color: var(--fourth-color);
  color: var(--second-color) !important;
  font-weight: bold;
  transform: scale(1.1);
}

.social-icon .back-to-top {
  background-color: var(--fourth-color);
  color: black !important;
  width: 45px;
  height: 45px;
  margin: 0.5rem;
  padding: 0.5rem;
  border: none;
  transition: all 0.4s ease-in-out;
  opacity: 0;
  visibility: hidden;
}

.social-icon .back-to-top:hover {
  background-color: var(--fourth-color);
  color: var(--second-color) !important;
  transform: scale(1.1);
}

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

/*  
##################################################
#                     NAVBAR                     #
##################################################
*/
.navbar {
  z-index: 999 !important;
}
.navbar-toggler:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.fixed-top {
  position: fixed;
  top: 0;
  background-color: white;
  width: 100%;
  z-index: 999 !important;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.fixed-top .container {
  background-color: white;
}

.fixed-top .navbar-brand {
  display: block;
}

.fixed-top .nav-link {
  color: var(--main-color) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}
.phone h5,
.email h5 {
  font-size: 1.1rem;
}
.phone span,
.email span {
  font-size: 1.1rem;
}
/* تأثير link كهربائي (electric-link) */
.electric-link {
  position: relative;
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s ease;
  text-wrap: nowrap;
}

.electric-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #ffc107;
  box-shadow: 0 0 8px #ffc107, 0 0 15px var(--main-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 3px;
}

.electric-link:hover,
.electric-link:focus {
  color: #ffc107 !important;
}

.electric-link:hover::after,
.electric-link:focus::after {
  transform: scaleX(1);
}

/* تحسين مظهر info في top-bar */
.top-bar .contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--main-color);
}

.top-bar {
  background-color: #f8f9fa;
}

/* زر AR */
.btn-warning {
  font-weight: 700;
}

/* تحسين offcanvas */
.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-body .nav-link {
  color: #f8f9fa;
  transition: color 0.2s ease;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link:focus {
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
  border-radius: 4px;
}
.list-contact i {
  color: var(--main-color);
  font-size: 1.2rem;
}
.icons-list-mobile a i {
  transition: all 0.3s ease;
}
.icons-list-mobile a:hover i {
  color: var(--fourth-color);
}
/*  
##################################################
#                  Home                          #
##################################################
*/

.hero-slider {
  height: 100%;
  width: 100%;
}

.hero-slider .item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero-slider-pages {
  width: 100%;
  height: 40vh;
}
.hero-slider-pages .text-slider {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 2 !important;
  transform: translate(-50%, -50%) !important;
}
.hero-slider-pages .text-slider h1 {
  font-size: 4rem;
  color: var(--second-color) !important;
  font-weight: bold !important;
  text-wrap: nowrap;
}
.hero-slider .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  background-color: hsla(218, 78%, 35%, 0.2);
  z-index: 0;
}

.slider-content {
  color: white;
}

/*  
##################################################
#                  About Us                      #
##################################################
*/
.home-about {
  background-image: url("../images/Razvodne_table.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.custom-logo {
  width: 100%;
}

.whyus-circle-main {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.whyus-feature {
  background: #fff;
  transition: transform 0.2s;
  width: 350px;

}
.whyus-feature p {
  width: 100%;
  white-space: normal;
  word-break: break-word;
}


/*  
##################################################
#                   Services                     #
##################################################
*/
.home-services {
  background-image: url("../images/electrical-engineer-ss2434604441.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.services {
  background-color: #f1f4f7;
}
.custom-services {
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  display: block;
  height: 100%;
}

.custom-services:hover {
  transform: translateY(-5px);
}

.custom-services img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.custom-services .content-service {
  position: absolute;
  top: 90%; /* قريب من أعلى الصورة */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  width: 80%;
}
.content-service h2 {
  font-size: 20px;
}
.services-card p {
  font-size: 20px;
  margin: 0;
  color: #333;
}

/*  
##################################################
#                 Our Products                   #
##################################################
*/
.home-products {
  background-image: url("../images/Central\ Air\ Conditioning\ Systems.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.nav-tabs-custom {
  border-bottom: none;
  justify-content: center;
  margin-bottom: 2rem;
  align-items: center;
  gap: 10px;
}

.nav-tabs-custom .nav-link {
  color: var(--main-color);
  font-weight: 600;
  border: none;
  padding: 1rem 2rem;
  position: relative;
  transition: all 0.3s;
  margin: 6px;
  border-radius: 10px;
  text-align: start;
}
.nav-tabs-custom .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: #ffc107;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 3px;
}
.nav-tabs-custom .nav-link:hover {
  color: var(--fourth-color);
  /* background-color: rgba(0, 0, 0, 0.1); */
}

.nav-tabs-custom .nav-link.active {
  color: var(--fourth-color);
  background-color: transparent;
  /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); */
  border: none;
}

.nav-tabs-custom .nav-link.active::after {
  transform: scaleX(1);
}

/* Product Card Enhancements */
.product-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08),
    0 1.5px 6px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.25s;
  overflow: hidden;
  position: relative;
  border: none;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.13), 0 3px 12px 0 rgba(0, 0, 0, 0.08);
}
.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
  transition: box-shadow 0.3s, filter 0.3s;
  position: relative;
  z-index: 1;
}
.product-card .product-img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
/* Shine Animation */
.product-img.shine-hover {
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.4, 2, 0.6, 1);
  z-index: 2;
}
.product-card:hover .product-img::after {
  left: 120%;
  transition: left 0.6s cubic-bezier(0.4, 2, 0.6, 1);
}
.product-body {
  padding: 1.5rem 1rem 1.2rem 1rem;
  background: linear-gradient(120deg, #f8fafc 80%, #e9f0ff 100%);
  border-radius: 0 0 18px 18px;
  /* min-height: 180px; */
}
.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-color);
  margin-top: 1rem;
  /* margin-bottom: 0.5rem; */
  letter-spacing: 0.5px;
}
.product-category {
  font-size: 0.9rem;
  font-weight: 600;
  background: #e3f2fd;
  border: 1.5px solid #1976d2;
}
.product-card p {
  color: #555;
  font-size: 0.98rem;
  margin-bottom: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: nowrap;
}
@media (max-width: 991px) {
  .product-img {
    height: 180px;
  }
}
@media (max-width: 767px) {
  .product-img {
    height: 140px;
  }
}

.section-title {
  color: var(--main-color);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--fourth-color);
}
/*  
##################################################
#              Our Products Details              #
##################################################
*/
.home-products-details {
  background-image: url("../images/Products/Air Conditining system/2.Metal duct.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.thumbnail-item img {
  height: 150px;
  cursor: pointer;
}
.project-overview-box {
  background: #f5f9fa;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  padding: 36px 32px 18px 32px;
  margin-bottom: 2rem;
}
.project-overview-box .overview-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--main-color);
  margin-bottom: 2rem;
  letter-spacing: -1px;
}
.project-overview-box .overview-row {
  margin-bottom: 1.2rem;
}
.project-overview-box .overview-label {
  color: var(--main-color);
  font-weight: 700;
  font-size: 1.08rem;
  display: block;
}
.project-overview-box .overview-value {
  color: #4a5a6a;
  font-size: 1.05rem;
  margin-top: 2px;
  margin-bottom: 8px;
  word-break: break-all;
}
.project-overview-box hr {
  border: none;
  border-top: 1px solid #e4e8ee;
  margin: 0 0 1.2rem 0;
}
.project-overview-box .overview-footer {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-start;
}
.project-overview-box .overview-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e4e8ee;
  color: var(--main-color);
  font-size: 1.2rem;
  background: #fff;
  transition: all 0.2s;
}
.project-overview-box .overview-footer a:hover {
  background: #ffb400;
  color: #fff;
  border-color: #ffb400;
}

.project-overview p {
  font-size: 1.2rem;
}

.feature-section .feature-desc {
  color: #555;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.feature-list li {
  font-size: 1.13rem;
  color: #222;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-list li i {
  color: #1db954;
  font-size: 1.2rem;
  background: #eafaf1;
  border-radius: 50%;
  padding: 4px;
}

.other-products {
  background: #f5f9fa;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  /* padding: 0px 32px 18px 32px; */
}

.other-products h3 {
  color: var(--main-color);
}
.other-products .other-products-list h5 a {
  color: var(--main-color);
}

/*
##################################################
#                    Projects                    #
##################################################
*/
.home-projects {
  background-image: url("../images/FOTO-RR.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.modern-project-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.08),
    0 1.5px 6px 0 rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.4, 2, 0.6, 1), box-shadow 0.25s;
}
.modern-project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.13), 0 3px 12px 0 rgba(0, 0, 0, 0.08);
}
.modern-project-card .modern-card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}
.modern-project-card .modern-card-action {
  position: absolute;
  top: 0;
  right: 0;
  margin: 1rem;
  z-index: 2;
}
.modern-project-card .modern-card-action a {
  display: inline-block;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  padding: 0;
  transition: background 0.2s;
}
.modern-project-card .modern-card-action a:hover {
  background: #f5f5f5;
}
.modern-project-card .modern-card-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 1.2rem 1rem 1rem 1rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  margin: 0 1rem;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
}
.modern-project-card .modern-card-category {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--main-color);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  display: block;
}
.modern-project-card .modern-card-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 0;
  display: block;
}

/*  
##################################################
#                      Blog                      #
##################################################
*/
.home-blog {
  background-image: url("../images/AdobeStock_110420101.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.blogs {
  background-color: #f1f4f7;
}
/*  
##################################################
#                 Blog Details                   #
##################################################
*/
.home-blog-details {
  background-image: url("../images/Central Air Conditioning Systems.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.contact-box-custom {
  padding: 0 0 32px 0;
  margin-bottom: 2rem;
  background: #f5f9fa;
  border-radius: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.contact-box-custom .contact-title {
  font-size: 1.7rem;
  font-weight: 700;
}
.contact-box-custom .form-label {
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-box-custom .form-control {
  border-radius: 7px;
  margin-bottom: 18px;
  font-size: 1.08rem;
  padding: 10px 12px;
}
.contact-box-custom .btn-send {
  background: #111;
  color: #fff;
  font-weight: 600;
  border-radius: 7px;
  width: 100%;
  padding: 10px 0;
  font-size: 1.1rem;
  margin-top: 8px;
  transition: background 0.2s;
}
.contact-box-custom .btn-send:hover {
  background: #ffb400;
  color: #111;
}
/*  
##################################################
#                Contact Us                      #
##################################################
*/
.home-contact {
  background-image: url("../images/contact.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-icon-circle {
  width: 40px;
  height: 40px;
  background-color: var(--third-color);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
/*  
##################################################
#                  Footer                        #
##################################################
*/
footer {
  background-color: var(--main-color);
  color: white;
}
footer img {
  filter: brightness(100);
}

footer .social a {
  transition: all 0.4s ease-in-out;
}
footer .social a:hover {
  color: var(--fourth-color);
}
footer .links li a {
  transition: all 0.4s ease-in-out;
}
footer .links li a:hover {
  color: var(--fourth-color);
}
.footer-links-list {
  width: 100%;
}
.site-footer-custom .footer-link {
  display: flex;
  align-items: center;
  min-width: calc(28.33% - 10px);
  border: 1px solid #fff;
  border-radius: 5px;
  padding: 15px 10px;

  justify-content: center;
}
.site-footer-custom .footer-link:hover {
  color: #ffc107;
}
