/********** Template CSS **********/
:root {
    --primary: #355EFC;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1, .h1, h2, .h2, .fw-bold {
    font-weight: 700 !important;
}

h3, .h3, h4, .h4, .fw-medium {
    font-weight: 600 !important;
}

h5, .h5, h6, .h6, .fw-semi-bold {
    font-weight: 500 !important;
}


/*** 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 {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.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 ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    max-height: 80px;
    height: auto;
    width: auto;
}

.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 {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
        width: 100%;
        padding: 0.5rem 0;
    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0, 0, 0, .04);
    }

    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Mobile login/register buttons */
    .navbar .d-lg-flex {
        display: none !important;
    }

    .navbar .navbar-collapse .d-flex.d-lg-none {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        width: 100%;
    }

    .navbar .navbar-collapse .d-flex.d-lg-none .btn {
        width: 100%;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 992px) {
    .navbar .navbar-collapse .d-flex.d-lg-none {
        display: none !important;
    }

    .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;
    }
}


/*** Header / Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
    padding: 0 20px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
    z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
        height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: 0;
    }

    .carousel-caption .display-1 {
        font-size: 2.2rem;
    }

    .carousel-caption .btn {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 380px;
        height: 380px;
    }

    .carousel-caption .display-1 {
        font-size: 1.7rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        padding: 0.2rem 0.7rem !important;
    }

    .carousel-caption .btn {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.85rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        border: 6px solid var(--primary);
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 2rem;
    }
}


/*** Page Header ***/
.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}


/*** About ***/
@media (max-width: 576px) {
    .about .border.rounded.p-4 {
        padding: 1rem !important;
    }

    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}


/*** Service ***/
.service .nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-right: 0 !important;
}

.service .nav .nav-link {
    transition: .5s;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
    background-color: #fff;
    color: var(--tertiary);
}

.service .nav .nav-link:last-child {
    margin-bottom: 0;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}

.service .nav .nav-link i {
    color: var(--primary);
}

.service .tab-pane .position-relative {
    min-height: 350px;
}

@media (max-width: 768px) {
    .service .nav .nav-link h5 {
        font-size: 1rem;
    }

    .service .tab-pane .position-relative {
        min-height: 220px;
    }

    .service .tab-pane .col-md-6:first-child {
        min-height: 220px !important;
    }
}

@media (max-width: 576px) {
    .service .nav .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .service .nav .nav-link h5 {
        font-size: 0.9rem;
    }

    .service .tab-pane .position-relative {
        min-height: 180px;
    }

    .service .tab-pane .col-md-6:first-child {
        min-height: 180px !important;
    }

    .service .tab-pane h3 {
        font-size: 1.25rem;
    }

    .service .tab-pane .btn {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem;
    }
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img img {
    width: 100%;
    height: auto;
    display: block;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}

@media (max-width: 768px) {
    .project-item .project-title {
        top: 2rem;
        left: 2rem;
        padding: 12px;
    }

    .project-item .project-title h4 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .project-item {
        padding-right: 10px !important;
        padding-bottom: 10px !important;
    }

    .project-item .project-title {
        top: 1.5rem;
        left: 1.5rem;
        padding: 10px;
    }

    .project-item .project-title h4 {
        font-size: 0.9rem;
    }

    .project-item .project-img a i {
        font-size: 2rem !important;
    }

    .project-carousel .owl-nav .owl-prev,
    .project-carousel .owl-nav .owl-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}


/*** Modals ***/
.modal-content {
    border-radius: 1.5rem !important;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 1rem !important;
    }

    .modal-header {
        padding: 1rem 1rem 0 !important;
    }

    .modal-body {
        padding: 1rem !important;
    }

    .modal-footer {
        padding: 1rem 1rem 0 !important;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-body .form-label {
        font-size: 0.9rem;
    }

    .modal-body .form-control,
    .modal-body .input-group-text {
        font-size: 0.9rem;
    }

    .modal-body .btn {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .modal-dialog {
        margin: 0.25rem;
    }

    .modal-body {
        padding: 0.75rem !important;
    }

    .modal-header {
        padding: 0.75rem 0.75rem 0 !important;
    }

    .modal-footer {
        padding: 0.75rem 0.75rem 0 !important;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}



/*** Global Responsive Helpers ***/
img {
    max-width: 100%;
    height: auto;
}

.container-xxl {
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== PROJECT CAROUSEL FIX ===== */
.project-carousel {
    position: relative;
    display: block;
    width: 100%;
}

.project-carousel .owl-stage-outer {
    overflow: hidden;
    padding: 10px 0;
}

.project-carousel .owl-item {
    display: flex;
    flex: 0 0 auto;
}

.project-carousel .project-item {
    position: relative;
    width: 100%;
    z-index: 1;
    padding-right: 3rem !important;
    padding-bottom: 3rem !important;
}

.project-carousel .project-img {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 8px;
}

.project-carousel .project-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: 0.4s;
}

.project-carousel .project-item:hover .project-img img {
    transform: scale(1.05);
}

.project-carousel .project-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(53, 94, 252, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.5s;
    border-radius: 8px;
}

.project-carousel .project-item:hover .project-img a {
    opacity: 1;
}

.project-carousel .project-img a i {
    color: #fff !important;
}

.project-carousel .project-title {
    position: absolute;
    top: 2rem;
    right: 0;
    bottom: 0;
    left: 2rem;
    border: 1px solid #DFE4FD;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: 0;
    transition: 0.5s;
    background: #fff;
}

.project-carousel .project-item:hover .project-title {
    background: #355EFC;
    border-color: #355EFC;
}

.project-carousel .project-title h4 {
    transition: 0.5s;
    color: #011A41;
    margin-bottom: 0;
}

.project-carousel .project-item:hover .project-title h4 {
    color: #fff;
}

/* Nav arrows */
.project-carousel .owl-nav {
    display: flex !important;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DFE4FD;
    color: #355EFC;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: #355EFC;
    color: #fff;
}

.project-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.project-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: #DFE4FD;
    border-radius: 50%;
    display: block;
    transition: 0.3s;
}

.project-carousel .owl-dots .owl-dot.active span {
    background: #355EFC;
    width: 25px;
    border-radius: 5px;
}

/* Mobile */
@media (max-width: 576px) {
    .project-carousel .project-item {
        padding-right: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    .project-carousel .project-title {
        top: 1rem;
        left: 1rem;
        padding: 12px;
    }
    .project-carousel .project-title h4 {
        font-size: 1rem;
    }
    .project-carousel .project-img img {
        height: 200px;
    }
}
@media (max-width: 576px) {
    .display-5 {
        font-size: 1.8rem;
    }

    .container-xxl.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }

    h1.display-1 {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .display-5 {
        font-size: 1.5rem;
    }

    .display-1 {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.85rem;
    }
}