html{ scroll-behavior: smooth; }

body{
  color: #333;
  font-family: sans-serif;
  font-weight: 100;
}

h1{ font-size: 1.7em; }
h2{ font-size: 1.76m; margin-bottom: 1.3em; }
h3{ font-size: 1.5rem; }
h4{ font-size: 1.25rem; }

.navbar{
  background: #fff;
  background-image: linear-gradient(to bottom, rgb(255 255 255 / 50%), 80%, #ecf0f0ba);
}
.navbar-brand img{
  max-height: 30px;
}
.navbar-light .navbar-nav .nav-link{
  color: #000;
  margin: 0 18px;
}
.navbar-light .navbar-nav .nav-link:hover{
  color: #17a2b8;;
}

.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show>.nav-link{
  color: #17a2b8;
  font-weight: bold;
}

section{ padding: 70px 0; }
.main-color{ color: #2696a9; }


.company-header{
  height: 750px;
  background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.45) 33%,  #c9e6eaba 100%),  url("../img/main-pic/main1.jpg");
  background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.45) 33%,  #c9e6eaba 100%),  url("../img/main-pic/main1.jpg");
  background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.45) 33%,  #c9e6eaba 100%),  url("../img/main-pic/main1.jpg");
  background-image: linear-gradient(top, rgba(255, 255, 255, 0.45) 33%,  #c9e6eaba 100%),  url("../img/main-pic/main1.jpg");

  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  -o-background-size: cover;
  -moz-background-size: cover;
  -webkit-background-size: cover;
  display: flex;
}
.company-header a{ margin:auto;}
.company-header img{ max-width:50%; }

.about img{ max-height: 240px; margin: auto;}

.services .item{ cursor: pointer; }
.action-line{
  padding: 50px;
  height: 140px;
  width: 100%;
  background-color: #64bbc8;
}

.action-line .action-text,
.action-line .action-text a{
  text-align: center;
  color: #fff;
  font-size:1.8rem;
  font-weight: 100;
  text-decoration: none;
}
.action-line .action-text a{ font-size: 2rem; }

.border-line{
  height: 50px;
  width: 100%;
  background-color: #64bbc8;
}

.portfolio .nav-pills a.nav-link{
  color:#444;
  text-transform: uppercase;
  font-weight: 300;
  font-size: 1.1rem;
}
.portfolio .nav-pills a.nav-link:hover{
  color: #2796a9;
}
.portfolio .nav-pills .nav-link.active, .nav-pills .show>.nav-link{
  color:#444;
  background-color: inherit;
  border-bottom: 2px solid #2796a9;
  border-radius: 0;
}
.portfolio .box{
  background: #fff;
  padding: 15px 5px;
  color: #777;
  font-family: sans-serif;
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}
.portfolio .box img {
    float: center;
    width:  350px;
    height: 280px;
    object-fit: cover;
}
.portfolio .box .overlay{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height: 100%;
  background: #fefefe;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
  padding:10px;
}
.portfolio .box .overlay p{
  width:100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 300;
  letter-spacing: 1.1px;
  font-size: 1.4rem;
}

.portfolio .box:hover .overlay{
  opacity: 0.8;
}

.clients{
  background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.45) 33%, #e9e9e9ba), url("../img/bg/4.jpg");
  background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.45) 33%, #e9e9e9ba), url("../img/bg/4.jpg");
  background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.45) 33%, #e9e9e9ba), url("../img/bg/4.jpg");
  background-image: linear-gradient(top, rgba(255, 255, 255, 0.45) 33%,  #e9e9e9ba), url("../img/bg/4.jpg");

  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}
.clients #clientsCarousel{
  height: 310px;
}
#clientsCarousel .carousel-control-prev,
#clientsCarousel .carousel-control-next{
  width: 5%;
}
#clientsCarousel .carousel-control-prev i,
#clientsCarousel .carousel-control-next i{
  font-size: 2.2rem;
  color: #161616;
}
#clientsCarousel .carousel-control-prev i:hover,
#clientsCarousel .carousel-control-next i:hover{
  color: #2696a9;
}
.clients #clientsCarousel .carousel-item{
  height: 300px;
  font-weight: 100;
  font-size: 1.1rem;
}

.clients #clientsCarousel .carousel-item .inner-box{
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  padding: 2rem;
}
.clients #clientsCarousel .carousel-item .inner-box .main-color{
  line-height: 1.2rem;
  font-weight: normal;
  font-style: normal;
  text-align: left;
}
.media .tv-show img{
  max-height: 140px;
}
.media .tv-show img,
.media img.full-height{
  height: 100%;
  max-width:100%;
  display: flex;
  margin: auto;
}
.media img{ cursor: pointer;}
.media .grey-border{
  border: 1px solid #999;
}

footer{
  background-color: #545454;
  color: white;
  padding: 40px 0;
}

footer a,
footer a:visited{
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
footer a:hover,
footer a:focus{
  color: #2696a9;
}

#modalPortfolio .modal-dialog,
#modalPortfolio .modal-content {
    min-width: 70vw;
    min-height: 90vh;
    max-height: 90vh;
}

#modalPortfolio .modal-body{
  overflow-y: auto;
  padding:0px;
  padding-top: 3px;
  background: #dedede;
}
#modalPortfolio #galleryCarousel{
  width:100%;
  height:640px;
  overflow: auto;
}
#modalPortfolio #galleryCarousel .carousel-inner,
#modalPortfolio #galleryCarousel .carousel-inner .carousel-item{
  width:100%;
  height: 480px;
  background: #fff;
}
#modalPortfolio .carousel-inner .carousel-item .wrapper{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#modalPortfolio .carousel-inner img.full-height{
  max-height: 460px;
  min-height: 420px;
  height: auto;
  width:auto;
}

#modalPortfolio .carousel-inner img,
#modalPortfolio .carousel-inner img.full-width{
  display: block;
  max-width:570px;
  width:100%;
  height: auto;
}


#modalPortfolio .carousel-control-prev,
#modalPortfolio .carousel-control-next{
  width: 5%;
}
#modalPortfolio .carousel-control-prev i,
#modalPortfolio .carousel-control-next i{
  font-size: 2rem;
  color: #161616;
  background: #ffffffc7;
}

#galleryCarousel .carousel-indicators {
  position: static;
  margin-top: 20px;
  margin-left:10px;
  margin-right:10px;
  height: 130px;
  flex-wrap: wrap;
  overflow: auto;
}
#galleryCarousel .carousel-indicators>li { width: 80px; height:80px; margin-bottom: 5px;}
#galleryCarousel .carousel-indicators li img { display: block; opacity: 0.5; width:80px; height: 80px; }
#galleryCarousel .carousel-indicators li.active img { opacity: 1 }
#galleryCarousel .carousel-indicators li:hover img { opacity: 0.75 }
#galleryCarousel .carousel-indicators .list-inline-item:not(:last-child) { margin-right:0;}

#modalMedia .modal-dialog,
#modalMedia .modal-content {
    min-width: 70vw;
    min-height: 70vh;
    max-height: 80vh;

}
#modalMedia .modal-body{
  max-height: 80vh;
  overflow: auto;
}
#modalMedia .content{
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* max-height: 80vh; */
}
#modalMedia .content .row-preview{
  display: flex;
  flex-direction: row;
  margin-bottom: 0.7rem;
  margin-top: 0.3rem;
  font-size: 1.1rem;
}
#modalMedia .content .row-preview i{
  font-size: 0.9rem;
}
#modalMedia .content img.preview{
  max-width: 100px;
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid #999;
}

/* desktop safari only */
@media not all and (min-resolution:.001dpcm) {
     @supports (-webkit-appearance:none) {
          #modalMedia .content img.preview{
            max-width: 120px;
            max-height: 110px;
          }
     }
}

#media-content .clickable{
  cursor: pointer;
}
#media-details  { height: 500px; }
#media-details #detailsCarousel{ width:100%; height: 490px;}
#media-details #detailsCarousel .carousel-inner,
#media-details #detailsCarousel .carousel-inner .carousel-item{
  width:100%;
  height: 480px;
  background: #fff;
}

#media-details #detailsCarousel .carousel-inner img{
  display: block;
  max-width:550px;
  width:100%;
  height: auto;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left:0;
  right: 0;
}


#media-details #detailsCarousel .carousel-inner img.full-height{
  max-height: 460px;
  min-height: 420px;
  height: auto;
  width:auto;
}

#media-details #detailsCarousel .carousel-control-prev,
#media-details #detailsCarousel .carousel-control-next{
  width: 5%;
}
#media-details #detailsCarousel .carousel-control-prev i,
#media-details #detailsCarousel .carousel-control-next i{
  font-size: 2rem;
  color: #161616;
  background: #ffffffc7;
}


@media (max-width: 768px) {
   section{ padding:30px 0;}
   p { font-size: 0.9rem; }
   h1{ font-size: 1.5rem;}
   h2{ font-size: 1.4rem; }
   h3{ font-size: 1.2rem; }
   h4{ font-size: 1rem;}
   .company-header{ height: 330px;}
   .company-header a{ margin-top:20%;}
   .company-header img{ max-width:85%; }
   .about img{ max-height: 120px; margin:10px; border-radius: 20%; }
   .portfolio .nav-pills a.nav-link{ font-size: 0.9rem; }
   .portfolio .box img{ width: 250px; height:180px; }
   .action-line .action-text a{ font-size:1.6rem; }
   .action-line .action-text i{ font-size:1.4rem; }
   .clients #clientsCarousel { height: 330px;}
   .clients #clientsCarousel .carousel-item{ height: 330px; }
   .clients #clientsCarousel .carousel-control-prev i, #clientsCarousel .carousel-control-next i{font-size:1.5rem;}
   .clients #clientsCarousel .carousel-item .inner-box { padding: 0.3rem 1.7rem; text-align: justify; font-size: 0.8rem;}

   #modalPortfolio .modal-dialog,
   #modalPortfolio .modal-content {
       min-width: 95%;
       min-height: 70vh;
   }

   .media .tv-show img{ max-height: 65px; }
   .media img.full-height { max-height: 115px; }
   #modalMedia .modal-dialog,
   #modalmedia .modal-content{
     min-width: 95%;
     min-height: 70vh;
   }
}
