/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 8px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid rgba(256, 256, 256, .1)
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* ==========================
   Brand Logo
========================== */

.top-bar .navbar-brand {
    display: inline-flex;
    align-items: center;
}

.top-bar .navbar-brand img{
    width: auto;
    height: 100px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Tablet */
@media (max-width:991px){

    .top-bar .navbar-brand img{
        height:90px;
    }

}

/* Mobile */
@media (max-width:576px){

    .top-bar{
        text-align:center;
    }

    .top-bar .navbar-brand img{
        height:70px;
        margin:auto;
    }

}

/*** Header ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}


/*** Facts ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .3s;
    color: inherit;
}

.service-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    border: 1px solid #DEE2E6;
}

.service-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

@media (max-width: 768px) {
    .service-img img {
        height: 220px;
    }
}

.service-item:hover .service-img img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 0, 0, 0.75);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    text-align: center;

    opacity: 0;
    transition: .4s ease;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.service-overlay p {
    color: #fff;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

.service-item h4 {
    transition: .3s;
}

.service-item:hover h4 {
    color: var(--primary);
}

/* =====================================================
   SPECIAL SERVICES
===================================================== */

.special-service{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    text-align:center;
    height:100%;
    transition:.4s ease;
    border:1px solid #eee;
}

.special-service:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.special-img{
    overflow:hidden;
}

.special-img img{
    width:100%;
    height:230px;
    object-fit:cover;
    transition:.5s;
}

.special-service:hover .special-img img{
    transform:scale(1.08);
}

.special-service h4{
    margin:25px 20px 15px;
    font-size:23px;
    font-weight:700;
    color:#222;
}

.special-service p{
    padding:0 25px 30px;
    color:#666;
    line-height:1.8;
    margin:0;
}

/* Tablet */

@media (max-width:991px){

    .special-img img{

        height:220px;

    }

}

/* Mobile */

@media (max-width:768px){

    .special-service{

        margin-bottom:10px;

    }

    .special-img img{

        height:210px;

    }

    .special-service h4{

        font-size:20px;

    }

}

/* Small Mobile */

@media (max-width:576px){

    .special-img img{

        height:200px;

    }

    .special-service p{

        font-size:14px;

        padding:0 18px 25px;

    }

}

/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

.project-item .position-relative {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
}

.project-item .position-relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
}

.team-item:hover .team-social {
    top: 0;
}

/* ==========================
   CTA SECTION
========================== */

.cta-section {
    position: relative;
    overflow: hidden;
    border-radius: 15px;

    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 40px;
}

/* Background */
.cta-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Overlay */
.cta-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);
}

/* Content */
.cta-content {
    position: relative;
    z-index: 2;

    max-width: 850px;
    text-align: center;
}

.cta-content h1 {
    color: #fff;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-content p {
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ==========================
   TABLET
========================== */

@media (max-width: 991px) {

    .cta-section {
        min-height: 450px;
        padding: 70px 30px;
    }

    .cta-content h1 {
        font-size: 2.4rem;
    }

    .cta-content p {
        font-size: 16px;
    }

}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

    .cta-section {
        min-height: 380px;
        padding: 60px 20px;
        border-radius: 10px;
    }

    .cta-content h1 {
        font-size: 2rem;
        line-height: 1.4;
    }

    .cta-content p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 25px;
    }

    .cta-content .btn {
        width: 100%;
        max-width: 280px;
    }

}

/* ==========================
   SMALL MOBILE
========================== */

@media (max-width: 576px) {

    .cta-section {
        min-height: 320px;
        padding: 50px 15px;
    }

    .cta-content h1 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 14px;
    }

    .cta-content .btn {
        width: 100%;
    }

}

/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

.testimonial-rating {
    color: #ffc107;
    font-size: 14px;
}

.testimonial-rating small {
    color: #6c757d;
    font-weight: 600;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* =====================================================
   PORTFOLIO MODAL
===================================================== */

.portfolio-modal {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.portfolio-modal .modal-header {
    padding: 15px 20px;
    background: #fff;
}

.portfolio-modal .btn-close {
    box-shadow: none;
}

.portfolio-modal .modal-body {
    padding: 0;
}

/* =====================================================
   CAROUSEL
===================================================== */

#portfolioCarousel {
    position: relative;
}

#portfolioCarousel .carousel-item {
    height: 550px;
}

.portfolio-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   INDICATORS
===================================================== */

#portfolioCarousel .carousel-indicators {
    margin-bottom: 15px;
}

#portfolioCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* =====================================================
   PREV NEXT
===================================================== */

#portfolioCarousel .carousel-control-prev,
#portfolioCarousel .carousel-control-next {
    width: 50px;
}

#portfolioCarousel .carousel-control-prev-icon,
#portfolioCarousel .carousel-control-next-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-size: 50%;
    background-color: rgba(0,0,0,.45);
    transition: .3s;
}

#portfolioCarousel .carousel-control-prev-icon:hover,
#portfolioCarousel .carousel-control-next-icon:hover {
    background-color: var(--primary);
}

/* =====================================================
   CONTENT
===================================================== */

.portfolio-content {
    padding: 35px;
    text-align: center;
}

#portfolioTitle {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

#portfolioCategory {
    display: inline-block;

    padding: 8px 20px;

    border-radius: 30px;

    background: rgba(var(--bs-primary-rgb), .1);

    color: var(--primary);

    font-size: 15px;

    font-weight: 600;
}

#portfolioDescription {

    max-width: 800px;

    margin: 25px auto 0;

    color: #666;

    line-height: 1.9;

    font-size: 16px;

}

#portfolioLink {

    margin-top: 30px;

    min-width: 220px;

    font-weight: 600;

}

/* =====================================================
   HOVER BUTTON
===================================================== */

#portfolioLink:hover {

    transform: translateY(-2px);

    transition: .3s;

}

/* =====================================================
   MODAL SIZE
===================================================== */

.modal-xl {

    max-width: 950px;

}

/* =====================================================
   TABLET
===================================================== */

@media (max-width:991px){

    .modal-xl{

        max-width:90%;

    }

    #portfolioCarousel .carousel-item{

        height:420px;

    }

    .portfolio-content{

        padding:30px;

    }

    #portfolioTitle{

        font-size:1.7rem;

    }

}
special
/* =====================================================
   MOBILE
===================================================== */

@media (max-width:768px){

    .portfolio-modal{

        border-radius:10px;

    }

    #portfolioCarousel .carousel-item{

        height:300px;

    }

    .portfolio-content{

        padding:25px 20px;

    }

    #portfolioTitle{

        font-size:1.5rem;

    }

    #portfolioDescription{

        font-size:15px;

        line-height:1.8;

    }

    #portfolioLink{

        width:100%;

    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width:576px){

    .modal-dialog{

        margin:.8rem;

    }

    #portfolioCarousel .carousel-item{

        height:220px;

    }

    #portfolioTitle{

        font-size:1.3rem;

    }

    #portfolioCategory{

        font-size:13px;

        padding:6px 16px;

    }

    #portfolioDescription{

        font-size:14px;

    }

}