:root {
  --maincolor: #1c4e85ff;
  --textmain: rgb(255, 255, 255);
  /* color for text on main color background */
  --darkcolor: rgb(14, 47, 83);
  --lightcolor: rgb(71, 117, 167);
  --topbar: rgb(17, 55, 95);
  /* topbar background color */
  --white: #fffefd;
  --main50: rgba(28, 79, 133, 0.5);
  --main0: rgba(28, 79, 133, 0);
  --footercolor: rgb(17, 55, 95);
  /* --maincolor: #9b7f5dff ;
  --textmain: #9b7f5dff ; /* color for text on main color background */
  /* --darkcolor: #9b7f5dff ;
  --lightcolor: #9b7f5dff ; */
  /* --topbar: #9b7f5dff ;  /* topbar background color */
  /* --white: #9b7f5dff ;
  --main50: #9b7f5dff ;
  --main0: #9b7f5dff ;
  --footercolor: #9b7f5dff ; */
}

.text-special {
  color: #abc93fff !important;
}

.footercolor {
  background-color: var(--footercolor);
}

#topbar {
  background-color: var(--topbar);
  font-size: 12px;
  color: var(--lightcolor);
}

.topbaricon {
  color: var(--lightcolor);
}

.topbaricon:hover {
  color: var(--maincolor);
}

.navlink:hover {
  margin-top: -10px;
  transition: .1s;
  border-bottom: 2px solid var(--textmain);
}

#bottomnav {
  .mynav {
    border-color: var(--textmain) !important;
  }

  font-size: 10px;

  .active {
    border-style: none;
    background-color: var(--darkcolor);
    font-weight: bold;
    color: var(--lightcolor);
  }
}

#mainnavbar {
  .active {
    background-color: var(--darkcolor);
    font-weight: bold;
    color: var(--textmain);
  }
}

.sticky-menu {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  font-size: 14px;
  transition: 0.5s;

  .activelink {
    color: var(--textmain);
  }

  .active {
    color: red;
  }

  .logo {
    width: 75px;
    transition: 0.9s;
  }

  a:hover {
    margin-top: -5px;
    font-weight: bold;
  }

  a,
  button {
    font-size: 14px;
    transition: 0.1s;
  }

  #navbarbutton {
    background-color: white;
    color: var(--maincolor);
  }

  .navbar {
    padding: 5px;
    transition: 0.1s;
  }
}

.bgmain {
  background-color: var(--maincolor);
  color: var(--textmain) !important;
}

.bgmain:hover {
  background-color: var(--darkcolor);
  color: white;
}

.bgmain-opacity-50 {
  background-color: var(--main50);
  color: white;
}

.bgmain-opacity-50:hover {
  background-color: var(--main0);
  color: white;
}

.bgdark {
  background-color: var(--darkcolor);
  color: white;
}

/* textColors */
.textmain {
  color: var(--maincolor);
}

.textlight {
  color: var(--lightcolor);
}

.textdark {
  color: var(--darkcolor);
}

@media screen and (max-width: 600px) {
  .vh-50 {
    min-height: 40vh;
  }
}

@media screen and (min-width: 601px) {
  .vh-50 {
    min-height: 75vh;
  }
}

/* 
.vh-50 {
  min-height: 100vh;
} */
.aboutsection {
  /* The image used */
  background-image: url("images/aboutsection.webp");
  position: relative;
  /* top: -80px; */
  /* margin-top: -100px; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section5 {
  /* The image used */
  background-image: url("images/section.webp");
  position: relative;
  /* top: -80px; */
  /* margin-top: -100px; */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.activebottomicon {
  background-color: var(--darkcolor);
}

.bottomicon:hover {
  background-color: var(--darkcolor);
  padding-bottom: 10px;
}

.activelink {
  color: var(--lightcolor);
  font-weight: bold;
  /* border-top:2px solid var(--lightcolor);   */
}

#navbarbutton {
  background-color: var(--maincolor);
  color: var(--textmain);
}

#navbarbutton:hover {
  background-color: var(--darkcolor);
  color: white;
}

.zoomarea {
  overflow: hidden;
}

.text-shadow {
  text-shadow: 2px 2px 8px #363636;
}

.secondarybtn {
  background-color: var(--lightcolor);
  color: white;
}

.secondarybtn:hover {
  background-color: var(--maincolor);
  color: white;
}

.mainbutton {
  background-color: var(--maincolor);
  color: var(--textmain);
}

.mainbutton:hover {
  background-color: var(--darkcolor);
  color: hsl(0, 0%, 100%);
}

.navbarbutton {
  border: 0px;
  background-color: white;
  padding: auto;
}

.navbarbutton:hover {
  border: 0px;
  font-weight: bold;
  color: var(--maincolor);
}

.svgicon {
  fill: blue;
  fill: rgb(29, 9, 207);
  /* background-color: red; */
  color: red;
}

#svg1 {
  fill: red;
  background-color: red;
  color: red;
}

.darkcolor {
  background-color: var(--darkcolor);
  color: white;
}

.lightmaincolor {
  color: var(--lightcolor);
}

.maincolor {
  color: white;
  background-color: var(--maincolor);
}

.bgmain {
  color: var(--textmain);
  background-color: var(--maincolor);
}

.maincolor:hover {
  color: var(--darkcolor);
}

.textmaincolor {
  color: var(--maincolor);
}

#project {
  background-image: url("images/hp2.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-text {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*
#hero {
  background-image: url("images/qasralmas/main.v1.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}*/
.map {
  z-index: -1;
}

.parallax2 {
  /* The image used */
  background-image: url("images/S1.webp");
  position: relative;
  /* top: -80px; */
  position: relative;
  z-index: -1;
  margin-bottom: -50px;
  margin-top: -50px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.trans {
  opacity: 1;
  animation: 1s ease-in both;
}

@keyframes fadeIn {
  from {
    transform: translate3d(0, -50%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

#navbar {
  transition: 0.9s;
}

#navbar1 {
  transition: 0.9s;
}

.parallax-section {
  overflow-y: scroll;
  /* margin-top: -100px; */
  scroll-snap-type: y mandatory;
  background-image: url("/images/hp.jpg");
}

.reveal {
  position: relative;
  transform: translateY(150px);
  opacity: 0;
  transition: 1s all ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

.logo {
  width: 125px;
  transition: 0.9s;
}

.typeText::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* 
.typing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  #feature-text {
    margin-left: 8px;
  }
  .input-cursor {
    display: inline-block;
    width: 2px;
    height: 42px;
    background-color: white;
    margin-left: 8px;
    animation: blink 0.6s linear infinite alternate;
  }
} */
.service-icon {
  font-size: 75px;
  color: rgb(24, 24, 24);
}

.imglarger {
  width: 100%;
}

.imglarger:hover {
  width: 125%;
}

#message {
  margin-bottom: -50px;
  margin-top: -50px;
  position: relative;
  z-index: -1;
  background-image: url(images/zahal/main.v1.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#company {
  position: relative;
  z-index: -1;
  background-image: url(images/fan2.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

#company1 {
  position: relative;
  z-index: -1;
  margin-top: -50px;
  margin-bottom: -50px;
  background-image: url(images/dur/main.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.team {
  border-width: 5px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.5);
}

.team:hover {
  border-width: 10px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.5);
}

.companylast {
  position: relative;
  /* z-index: -1; */
  /* margin-top: -50px;
  margin-bottom: -50px; */
  background-image: url(images/products.webp);
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.contacthero {
  position: relative;
  background-image: url(images/contact.webp);
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.zoom {
  transition: 0.9s;
}

.zoom:hover {
  -ms-transform: scale(1.2);
  /* IE 9 */
  -webkit-transform: scale(1.2);
  /* Safari 3-8 */
  transform: scale(1.2);
}

.social-link {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border-radius: 50%;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.social-link:hover,
.social-link:focus {
  background: var(--darkcolor);
  text-decoration: none;
  color: black;
}

#hero {
  z-index: -1;
}

.parallax {
  background-image: url("images/main.webp");
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  background-attachment: fixed;
}

.parallax-mobile {
  background: url(images/main.webp);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  position: relative;
}

.companylast-mobile {
  z-index: -1;
  margin-top: -50px;
  margin-bottom: -50px;
  background-image: url(images/products.webp);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  position: relative;
}

.carousel_container {
  overflow: auto;
  display: flex;
  padding-bottom: 25px;
  scroll-snap-type: x mandatory;
}

.carousel_box {
  width: 80%;
  margin-right: 5%;
  margin-left: 5%;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* width */
::-webkit-scrollbar {
  width: 20px;
}

/* ::-webkit-scrollbar-track {
  background: var(--lightcolor);
} */
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--maincolor);
  border-radius: 10px;
}

/* logos_carousel  */
@keyframes slides {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

.logos {
  overflow: hidden;
  padding: 30px 0px;
  white-space: nowrap;
  position: relative;
}

.logo_items {
  display: inline-block;
  animation: 20s slides infinite linear;
}

.logos:hover .logo_items {
  animation-play-state: paused;
}

.logo_items img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0px 15px;
}



/* Services Section Styling */
.services-section {
  background: url('images/services-bg.webp') no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/grid-pattern.png');
  opacity: 0.2;
  z-index: 0;
}

/* Services Title Styling */
.services-title {
  font-size: 4.5rem;
  font-weight: bold;
  color: #18392b;
  line-height: 1;
  position: relative;
  text-align: right;
  z-index: 2;
}

/* Ensure the service boxes have consistent structure */
.service-box {
  position: relative;
  height: 100%;
  direction: rtl;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Align items to the start (right in RTL) */
}


/* Updated Service Header Styling */
.service-header {
  background-color: #6da1d0;
  padding: 15px 20px;
  position: relative;
  margin-bottom: 15px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10% 50%);
  width: 85%;
  /* Fixed width for all headers */
  margin-right: auto;
  margin-left: 0;
  /* Important for RTL alignment */
  display: flex;
  justify-content: center;
  /* Center the text */
  align-items: center;
}



/* Make header text fixed height to prevent inconsistencies */
.service-header h3 {
  color: white;
  font-weight: bold;
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
  width: 100%;
  /* Take full width of container */
  min-height: 60px;
  /* Fixed height for consistency */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content {
  padding: 0 15px;
  text-align: justify;
}

.service-content p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  /* Adds dark shadow around text */
  font-weight: 500;
  /* Makes text slightly bolder */
}

/* Installation Methods */
.installation-method {
  background-color: white;
  border-radius: 50px;
  padding: 8px 15px;
  color: #18392b;
  font-size: 0.9rem;
  border: 1px solid #deb988;
  text-align: center;
}

/* Certificate styling */
.certificate-box {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.certificate-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.certificate-img {
  transition: transform 0.5s ease;
  max-height: 300px;
  object-fit: contain;
}

.certificate-box:hover .certificate-img {
  transform: scale(1.2);
}

/* Optional: Add a magnifying glass icon that appears on hover */
.certificate-box::after {
  content: '🔍';
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.certificate-box:hover::after {
  opacity: 1;
}

.certificate-img {
  max-height: 300px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .certificate-img {
    max-height: 200px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .services-title {
    font-size: 3rem;
  }

  .service-header {
    width: 100%;
  }
}