/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/
#intro {
  display: table;
  position: relative;
  width: 100%;
  height: 40%;
  padding: 0 20px;
}

#intro .carousel-item {
  width: 100%;
  padding-top: 40%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #eee;
}

.b_m,
.b_d {
  display: none;
}

@media (max-width: 767px) {
  #intro {
    height: 78%;
  }

  #intro .carousel-item {
    padding-top: 78%;
  }
}

#intro .carousel-fade .carousel-inner .carousel-item {
  -webkit-transition-property: opacity;
  transition-property: opacity;
}

#intro .carousel-fade .carousel-inner .carousel-item,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right {
  opacity: 0;
}

#intro .carousel-fade .carousel-inner .active,
#intro .carousel-fade .carousel-inner .carousel-item-next.carousel-item-left,
#intro .carousel-fade .carousel-inner .carousel-item-prev.carousel-item-right {
  opacity: 1;
  transition: 0.5s;
}

#intro .carousel-fade .carousel-inner .carousel-item-next,
#intro .carousel-fade .carousel-inner .carousel-item-prev,
#intro .carousel-fade .carousel-inner .active.carousel-item-left,
#intro .carousel-fade .carousel-inner .active.carousel-item-right {
  left: 0;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

#intro-carousel {
  position: relative;
}

#intro .carousel-control-prev, #intro .carousel-control-next {
  width: 10%;
  opacity: 1 !important;
  background: white;
  height: 4rem;
  width: 4rem !important;
  position: absolute;
  top: calc(50% - 2rem);
}

#intro .carousel-control-prev img,
#intro .carousel-control-next img {
  width: 1rem;
  height: 1rem;
}

#intro .carousel-control-prev {
  left: 0;
  background-color: rgba(0, 0, 0, .4);
}

#intro .carousel-control-prev:hover, 
#intro .carousel-control-next:hover {
  background-color: rgb(0, 0, 0);
}

#intro .carousel-control-next {
  right: 0;
  background-color: rgba(0, 0, 0, .4);
}

#intro .caption-overlay {
  background-color: rgba(0, 0, 0, .4);
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  text-transform: uppercase;
  padding: 20px;
  max-width: 50%;
}

#intro .caption-overlay .caption-timestamp {
  font-size: .7rem;
  margin-bottom: 10px;
}

#intro .caption-overlay .caption-text {
  font-size: 1.5rem;
  font-weight: 700;
}

#intro .carousel-control-next-icon, #intro .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

.carousel-indicators {
  justify-content: left;
  margin-right: 0;
  margin-left: 1%;
}

.carousel-indicators li {
  width: 15px;
  height: 15px;
  border: 1px solid #fff;
  background-color: transparent;
  margin: 0 8px;
}

.carousel-indicators .active {
  background-color: #fff;
}

.projects-carousel .owl-dots {
  margin-top: 15px;
  text-align: center;
}

.projects-carousel .owl-dots .owl-dot {
  display: inline-flex;
}
.projects-carousel .owl-dots .owl-dot span {
  background: none repeat scroll 0 0 #ddd;
  display: block;
  height: 12px;
  margin: 5px 7px;
  width: 12px;
}

.projects-carousel .owl-dots .owl-dot.active span {
  background: none repeat scroll 0 0 #B61F24;
}

@media (max-width: 768px) {
  #intro .carousel-control-prev, #intro .carousel-control-next {
    width: 3rem !important;
    height: 3rem;
    top: 50%;
  }

  #intro .carousel-control-prev img,
  #intro .carousel-control-next img {
    width: 1rem;
    height: 1rem;
  }

  .carousel-indicators li {
    width: 10px;
    height: 10px;
    margin: 0 6px;
  }
}

@media (max-width: 767px) {
  #intro .caption-overlay {
    max-width: 100%; 
  }

  #intro .caption-overlay .caption-timestamp {
    font-size: .6rem;
    margin-bottom: 5px;
  }

  #intro .caption-overlay .caption-text {
    font-size: 1rem;
  }
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

/* About Us Section
--------------------------------*/
#about #about-text-container,
#about #about-image-container {
  padding: 0 20px;  
}

#about #about-image-container #about-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 100%;
}

@media (min-width: 769px) and (max-width: 991px) {
  #about #about-image-container #about-image {
    padding-top: 40%;
  }
}

@media (max-width: 768px) {
  #about #about-text-container {
    padding-bottom: 0;
  }

  #about #about-image-container {
    padding-top: 0;
  }

  #about #about-image-container #about-image {
    padding-top: 50%;
  }
}

/* Services Section
--------------------------------*/
.services a:hover .service-image {
  transform: scale(1.2);
}

#services .services-image-cont {
  width: 100%;
  padding-top: 60%;
  position: relative;
  overflow: hidden;
}

.service-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  background-image: url('https://images.pexels.com/photos/1078884/pexels-photo-1078884.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500');
  background-size: cover;
  background-position: center;
  transition: transform .5s;
}

#services .services-text-container {
  background-color: #B61F24;
  padding: 19px;
}

.services {
  padding-top: 30px;
}

.services-number {
  color: white;
  font-size: 2.6rem;
  font-weight: 700;
  padding-left: 7%;
}

.services-name {
  color: white;
  font-size: 1.2rem;
  margin-left: 10px;
  font-weight: 700;
  height: 30px;
}


@media (max-width: 768px) {
  
}

/* Projects Section
--------------------------------*/
#projects .project-thumb-container {
  padding-left: 30px;
  padding-right: 0;
}

#projects .project-thumb {
  background-image: url('https://images.pexels.com/photos/585419/pexels-photo-585419.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: relative;
}

#projects .project-thumb .left-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background-color: #B61F24;
}

#projects .project-content {
  padding-left: 0;
  padding-right: 30px;
}

#projects .project-content div#project-content {
  background-color: #F4F4F4;
  padding: 50px 35px 50px 35px;
  min-height: 350px;
}

#projects .project-content .timestamp {
  font-weight: 700;
  text-transform: uppercase;
}

#projects .project-content p.content {
  margin-bottom: 40px;
}

#projects .project-content a {
  border: 1px solid #B61F24;
  padding: 15px 25px;
  color: #B61F24;
  text-transform: uppercase;
  font-weight: 700;
}

#projects .project-content a:hover {
  background-color: #B61F24;
  color: #fff;
  cursor: pointer;
}

#more-button {
  color: #B61F24;
  padding: 30px;
  text-decoration: underline;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 30px;
  font-size: 1.01rem;
}

.slider-nav:hover i {
  background-color: #B61F24;
  color: white;
  cursor: pointer;
}

.slider-nav i {
  border: 1px solid #B61F24;
  padding: 20px;
  color: #B61F24;
}

#navigation-container {
  margin-top: 20px;
  text-align: center;
}

@media (min-width: 769px) and (max-width: 991px) {
  #projects .project-thumb {
    height: 300px;
  }
}

@media (max-width: 768px) {
  #projects .project-thumb {
    height: 300px;
  }

  #projects .project-thumb-container {
    padding-right: 30px;
    background-color: #fff;
  }

  #projects .project-content {
    padding-left: 30px;
  }

  .slider-nav i {
    padding: 10px;
  }
}

@media (max-width: 360px) {
  .slider-nav i {
    padding: 4px;
  }
}

/* Clients Section
--------------------------------*/
.clients-carousel {
  margin: 60px 0;
}

.clients-carousel .owl-item {
  text-align: center;
  padding: 0 15px;
}

.clients-carousel .owl-item img {
  height: 70px !important;
  width: auto;
}

@media (max-width: 768px) {
  .clients-carousel {
    margin: 30px 0;
  }

  .client-image {
    height: 60px !important;
    width: auto;
    margin: 20px 0;
  }
}
