:root {
  --secondFont: "Lato", sans-serif;
  --mainColor: rgba(234, 0, 0, 1);
  --secondaryColor: rgba(242, 245, 246, 1);
  --secondaryhoverColor: rgb(222, 233, 236);
  --textblue: rgba(0, 119, 255, 1);
  --textgreen: rgba(0, 164, 44, 1);
  --bbox:#00000080;
}
html {
  font-family: var(--secondFont);
  font-size: 10px;
}

body {
  font-family: var(--secondFont);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p {
  font-size: 1.8rem;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 7rem;
  font-weight: 600;
}

h2 {
  font-size: 6rem;
}

h3 {
  font-size: 5.8rem;
}

h4 {
  font-size: 3.2rem;
}

h5 {
  font-size: 2.5rem;
}

h6 {
  font-size: 2rem;
}

.mg-4 {
  margin: 4rem;
}
.mg-9 {
  margin: 9rem;
}

.mgx-4 {
  margin: 4rem 0;
}
.mgx-9 {
  margin: 9rem 0;
}
.mgx-10 {
  margin: 10rem 0;
}

.pdb-5{
  padding-bottom:5rem ;
}

.gap-9{
  gap: 9rem;
}

.bb{
  display: none;
}

.dropdown-menu {
  filter: blur(0.5);
  padding: 0.5rem;
  background-color: rgba(240, 248, 255, 0.7);
  border: none;
}

.dropdown-item:hover {
  background-color: var(--mainColor);
  color: white;
  border-radius: 0.5rem;
}

.active {
  color: var(--mainColor) !important;
}
.main {
  font-family: var(--secondFont);
  /* color: green; */
}

.skiiled-bg {
  background-color: var(--mainColor);
}

.certified-color {
  background-color: var(--secondaryColor);
}

.certified-color:hover{
  background-color: var(--secondaryhoverColor)
}

.textred {
  color: var(--mainColor);
}
.textblue {
  color: var(--textblue);
}
.textgreen {
  color: var(--textgreen);
}

.active{
  color: var(--mainColor) !important
}

.textgray {
  color: gray;
  opacity: 1;
}

.cards-body{
  display: none;
}
.cards:hover .bb{
  display: block;
}
.cards:hover .textgray {
  opacity: 1;
}

/* testamonial section  */
.carousel img {
  width: 70px;
  max-height: 70px;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
}
.carousel-inner {
  padding: 1em;
}

.bg-img{
  background-image: url('./assets/home/connection-ind\ filtered.jpeg') ;
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 80vh;
  /* filter: brightness(0.5); */
}

.bg-img h1{
  z-index: 999;
}

.tograde:hover{
  color: var(--mainColor);
}


.wwd1{
  background-image: url('./assets/home/Audio Visual ICT Solution.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 40vh;
}

.wwd2{
  background-image: url('./assets/home/Digital Media Creation.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 40vh;
}

.wwd3{
  background-image: url('./assets/home/Automation.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 40vh;
}

.wwd4{
  background-image: url('./assets/home/IT & Networking.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 40vh;
}

.wwd5{
  background-image: url('./assets/home/Electrical Solutions.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 40vh;
}

.wwd6{
  background-image: url('./assets/home/Flow Control & Comprehensive.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 40vh;
}

.mediator {
  opacity: 0;
  max-height: 0; /* Start hidden with no height */
  overflow: hidden; /* Hide content when not fully expanded */
  transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out;
}

/* Display .mediator content on hover */
.wwd:hover .mediator {
  opacity: 1; /* Fade in */
  max-height: 300px; /* Adjust to allow space for all content */
}

.bbc {
  background-color: var(--bbox);
}

.scrolling-container {
  width: 100%;
  overflow: hidden; /* Hide overflowing content */
  position: relative;
}

.scrolling-logos {
  display: flex;
  align-items: center;
  gap: 5rem; /* Space between logos */
  animation: scroll 15s linear infinite;
  flex-wrap: nowrap; /* Prevent wrapping to keep logos in a single line */
}

.scrolling-logos img {
  height: 5vh;
  object-fit: contain; /* Maintain aspect ratio */
}

/* Duplicate row for infinite loop */
.scrolling-logos {
  width: max-content; /* Allow the content to expand infinitely */
}

/* Animation to scroll the logos */
@keyframes scroll {
  from {
      transform: translateX(0);
  }
  to {
      transform: translateX(-50%);
  }
}

/* Duplicate the row for seamless scrolling */
.scrolling-logos::after {
  content: "";
  display: block;
}

/* animation  */
@keyframes appear{
  from {
    opacity: 0;
    scale: 0.5;
  }to{
    opacity: 1;
    scale: 1;
  }
}

.block{
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0 cover 30%;
}

@media (max-width: 576px) {
  html {
    font-size: 3px;
  }

  .textgray{
    opacity: 1;
  }
}

@media (max-width:900px){
  html{
    font-size: 5px;
  }
}

@media (min-width:576px) and (max-width:900px){
  .textgray {
    opacity: 1;
  }
}

@media screen and (min-width: 576px) {
  .carousel-inner {
    display: flex;
    width: 90%;
    margin-inline: auto;
    padding: 1em 0;
    overflow: hidden;
  }
  .carousel-item {
    display: block;
    margin-right: 0;
    flex: 0 0 calc(100% / 2);
  }
}
@media screen and (min-width: 1024px) {
  .carousel-item {
    display: block;
    margin-right: 0;
    flex: 0 0 calc(100% / 3);
  }
}
.carousel .card {
  margin: 0 0.5em;
  border: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 3rem;
  height: 3rem;
  background-color: grey;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
/* testamonial section  */


