/********** Template CSS **********/
:root {
    --primary: #2e388f;
    --primary-hover: #4953b8;
    --secondary: #1f6aeb;
    --secondary-hover: #3b8eff;
    --light: #f5f5f5;
    --dark: #102c57;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
    color: var(--dark);
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
    color: var(--dark);
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
    color: var(--dark);
}

a:hover,
a:focus {
    color: var(--secondary);
}

strong {
    font-weight: 700;
    color: var(--dark);
}

.footer strong {
    color: #fff;
}

.lead {
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
}

section {
    padding: 4rem 0;
}

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

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

/*** Button ***/
.btn {
    transition: 0.5s;
    font-weight: 600;
}

.btn-primary,
.btn-primary:hover,
.btn-outline-primary:hover {
    color: #ffffff;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.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;
}

.topbar-right {
    position: relative;
    background: var(--primary);
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 70px;
    height: 100%;
    top: 0;
    left: -35px;
    background-color: var(--primary);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 20px 0);
    z-index: 1;
}

.topbar-right span,
.topbar-right button {
    z-index: 3;
}

/*** Navbar ***/
.navbar {
    padding: 0 !important;
}

.navbar-nav {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

.navbar img {
    width: 250px;
}

@media screen and (max-width: 400px) {
    .navbar img {
        width: 230px;
    }
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: var(--primary);
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--primary);
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

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

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

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

    .navbar .navbar-nav {
        border-top: 1px solid #eeeeee;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
}

.navbar .navbar-toggler,
.offcanvas.offcanvas-end .offcanvas-header button i {
    color: #fff;
    font-size: 2.5rem;
    border: none;
    box-shadow: none;
}

/*** Header ***/
.hero-inner {
    display: flex;
    position: relative;
    width: 100%;
    --hero-height: 480px;
    height: var(--hero-height);
    min-height: var(--hero-height);
    overflow: hidden;
}

.hero-caption {
    width: 50%;
    height: var(--hero-height);
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: start;
    z-index: 3;
    padding: 60px 0 60px 50px;
    box-sizing: border-box;
}

.hero-caption .text {
    max-width: 750px;
}

.hero-caption h1,
.hero-caption p,
.hero-caption strong {
    color: #fff !important;
}

.hero-caption p {
    margin-right: 20px;
}

.hero-caption span,
.hero-caption em {
    color: var(--secondary-hover);
}

.hero-mobile-bolt {
    display: none;
    position: absolute;
    top: -100px;
    right: 0;
    font-size: var(--hero-height);
    z-index: 2;
    opacity: 0.2;
    transform: rotate(8deg);
    color: #1e2c46;
}

.hero-bolt-svg {
    margin-left: -10px;
    height: var(--hero-height);
    aspect-ratio: 7 / 16;
    width: auto;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: stretch;
}

.hero-bolt-svg svg {
    height: 100%;
    width: 100%;
    aspect-ratio: 7 / 16;
    object-fit: contain;
    display: block;
}

.hero-image {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: left top;
}

@media screen and (min-width: 2500px) {
    .hero-inner {
        --hero-height: 650px;
    }
}

@media screen and (min-width: 1600px) {
    .hero-inner {
        --hero-height: 550px;
    }

    .hero-caption {
        justify-content: center !important;
    }
}

@media screen and (max-width: 1400px) {
    .hero-inner {
        --hero-height: 600px;
    }
}

@media screen and (max-width: 1100px) {
    .hero-caption {
        width: 100%;
        text-align: center;
        padding: 40px;
        --hero-height: 100%;
        margin: auto;
        background: radial-gradient(
            circle at center,
            rgba(20, 36, 56, 0.6) 0%,
            rgba(30, 44, 70, 0.75) 100%
        );
    }

    .hero-caption .text {
        margin: auto;
        max-width: 90%;
    }

    .hero-caption p {
        margin: 8px;
    }

    .hero-image {
        width: 100%;
        left: 0;
        right: auto;
    }

    .hero-bolt-svg {
        display: none;
    }

    .hero-mobile-bolt {
        display: block;
    }
}

@media screen and (max-width: 991px) {
    .hero-inner {
        --hero-height: 500px;
    }

    .hero-caption p {
        font-size: 1.125rem !important;
    }
}

@media screen and (max-width: 768px) {
    .hero-caption {
        padding: 0;
    }
}

@media screen and (max-width: 456px) {
    .hero-inner {
        --hero-height: 600px;
    }

    .hero-caption .text {
        margin: auto;
        max-width: 100%;
    }
}

.offcanvas.offcanvas-end .offcanvas-header {
    background: var(--primary);
    border-bottom: 1px solid var(--secondary);
    padding: 0.5rem 1rem;
}

.offcanvas.offcanvas-end .offcanvas-body {
    border-top: none;
}

.offcanvas.offcanvas-end .navbar-nav {
    border: none;
    width: 100%;
}

.offcanvas.offcanvas-end .navbar-nav .nav-link {
    color: var(--primary);
    border-bottom: 1px solid var(--secondary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    display: flex;
    justify-content: space-between;
}

.offcanvas.offcanvas-end .navbar-nav .nav-link.active,
.offcanvas.offcanvas-end .navbar-nav .nav-link:focus,
.offcanvas.offcanvas-end .navbar-nav .nav-link:hover {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
    background: none;
}

.offcanvas.offcanvas-end .navbar-nav .nav-link::after {
    color: inherit !important;
}

@media (max-width: 380px) {
    .offcanvas.offcanvas-end .offcanvas-body .btn-primary span {
        white-space: nowrap;
        display: inline;
    }
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(
            to right,
            rgba(2, 36, 91, 1) 0%,
            rgba(2, 36, 91, 0) 100%
        ),
        url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

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

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

/* Border draw animation */
.border-draw {
    position: relative;
    z-index: 1;
}

.border-draw span.border-segment {
    position: absolute;
    display: block;
    background-color: var(--primary);
    z-index: -1;
}

.border-draw span.top {
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    animation: draw-top 1.5s forwards;
}
.border-draw span.right {
    top: 0;
    right: 0;
    width: 2px;
    height: 0;
    animation: draw-right 1.5s forwards;
}
.border-draw span.bottom {
    bottom: 0;
    right: 0;
    height: 2px;
    width: 0;
    animation: draw-bottom 1.5s forwards;
}
.border-draw span.left {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 0;
    animation: draw-left 1.5s forwards;
}

@keyframes draw-top {
    to {
        width: 100%;
    }
}
@keyframes draw-right {
    to {
        height: 100%;
    }
}
@keyframes draw-bottom {
    to {
        width: 100%;
    }
}
@keyframes draw-left {
    to {
        height: 100%;
    }
}

/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #ffffff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

/*** Service ***/
.service-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.5rem;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
}

.service-item img {
    width: 100%;
    height: 230px;
    border-radius: 1rem 1rem 0 0;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-in-out;
}

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

.service-item .service-title {
    margin: 1rem 0;
}

.service-item .service-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
    z-index: 2;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.service-item .service-icon-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.service-item .service-icon-inner i {
    font-size: 2rem;
}

.service-item .service-icon-border {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 90px;
    height: 48px;
    background: var(--secondary);
    border-top-left-radius: 48px 48px;
    border-top-right-radius: 48px 48px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 2;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
    animation: iconBorderReveal 0.5s ease-out 0.5s forwards;
}
.service-icon-border.animated {
    animation: iconBorderReveal 0.5s ease-out forwards;
}

@keyframes iconBorderReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.service-item .service-detail {
    position: relative;
    background: #fff;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    margin-top: -32px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-height: 210px;
}

.service-item .service-detail-border {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: var(--secondary);
    z-index: 0;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    clip-path: inset(0 100% 0 0);
    animation: detailBorderReveal 1.5s ease-out 0.5s forwards;
}
.service-detail-border.animated {
    animation: detailBorderReveal 1.5s ease-out forwards;
}

@keyframes detailBorderReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    transform: scale(0.8);
    transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

/*** Footer ***/
.footer {
    color: #b0b9ae;
}

.footer a {
    font-size: 1.125rem;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: 0.3s;
}

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

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

.copyright {
    color: #b0b9ae;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
