/********** Template CSS **********/

/* Custom CSS Styles */
body {
    background-color: #000000;
}

.bg-light {
    background-color: #222222!important;
}

.bg-light:hover {
    background-color: #505050!important;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: #FFF;
}

/* End of Custom CSS Styles */

:root {
    --primary: #4507CC;
    --secondary: #777777;
    --light: #F7F7F7;
    --dark: #000000;
    --orange : #FF4B00;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

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

.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 {
    background: linear-gradient(135deg, #4507CC 0%, #3d0ba3 100%) !important;
    box-shadow: 0 8px 32px 0 rgba(69, 7, 204, 0.2);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem 2rem !important;
    justify-content: flex-end;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
    transition: transform 0.4s ease;
    color: #F7F7F7;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 12px 0;
    color: #F7F7F7 !important;
    font-weight: 600;
    outline: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #FF4B00, #FF8C00);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .navbar-nav .nav-link:hover {
    color: #FF4B00 !important;
    transform: translateY(-2px);
}

.navbar .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar .navbar-nav .nav-link.active {
    color: #FF4B00 !important;
    font-weight: 700;
}

.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    color: #FF4B00;
}

.navbar .dropdown-menu {
    background: linear-gradient(135deg, rgba(69, 7, 204, 0.95), rgba(61, 11, 163, 0.95)) !important;
    border: 1px solid rgba(255, 75, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(69, 7, 204, 0.3);
    border-radius: 12px !important;
    padding: 12px 0;
}

.navbar .dropdown-item {
    color: #F7F7F7 !important;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #FF4B00;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 75, 0, 0.15) !important;
    color: #FF4B00 !important;
    padding-left: 25px;
}

.navbar .dropdown-item:hover::before {
    transform: scaleY(1);
}

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

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

    .navbar .navbar-nav {
        margin-top: 12px;
        border-top: 1px solid rgba(256, 256, 256, .15)
    }
    
    .navbar .dropdown-menu {
        background: rgba(69, 7, 204, 0.9) !important;
        border-radius: 8px !important;
        margin-top: 8px;
    }

    /* Custom hamburger */
    .custom-hamburger {
        width: 54px;
        height: 42px;
        padding: 6px;
        border-radius: 10px;
        border: unset;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all .35s cubic-bezier(.2,.9,.2,1);
    }

    .custom-hamburger:focus { outline: none; box-shadow: 0 6px 20px rgba(69,7,204,0.18); }

    .hamburger-box { display: inline-block; width: 32px; height: 18px; position: relative; }

    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg,#FF8C00,#FF4B00);
        border-radius: 2px;
        transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .2s ease, top .35s cubic-bezier(.2,.9,.2,1);
        left: 0;
        will-change: transform;
    }

    .hamburger-inner { top: 50%; transform: translateY(-50%); }
    .hamburger-inner::before { content: ""; top: -8px; }
    .hamburger-inner::after  { content: ""; top: 8px; }

    /* Active state -> X */
    .custom-hamburger.is-active .hamburger-inner { transform: rotate(45deg); background: #FF4B00; }
    .custom-hamburger.is-active .hamburger-inner::before { top: 0; transform: rotate(-90deg); opacity: 0; }
    .custom-hamburger.is-active .hamburger-inner::after  { top: 0; transform: rotate(-90deg); }

    /* Fullscreen collapse overlay */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        padding: 2rem 2rem 2rem; /* leave space for header */
        background: linear-gradient(180deg, rgb(69 7 204), rgb(61 11 163));
        backdrop-filter: blur(10px);
        z-index: 1100;
        overflow-y: auto;
        transform: translateY(-6%);
        opacity: 0;
        visibility: hidden;
        transition: transform .4s cubic-bezier(.2,.9,.2,1), opacity .35s ease, visibility .35s;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Close button styling for mobile menu */
    .navbar-collapse .btn-close {
        width: 32px;
        height: 32px;
        /*
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        */
        transition: all 0.3s ease;
        padding: 4px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-collapse .btn-close:hover,
    .navbar-collapse .btn-close:focus {
        background: rgba(255, 75, 0, 0.2) !important;
        border-color: #FF4B00 !important;
        transform: rotate(90deg);
        box-shadow: 0 4px 12px rgba(255, 75, 0, 0.2);
    }

    /* make nav links large and centered inside full screen menu */
    .navbar-collapse .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 1rem;
    }

    .navbar-collapse .nav-link {
        font-size: 18px;
        padding: 14px 20px;
        color: #fff !important;
        width: 100%;
        max-width: 720px;
        text-align: center;
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
        transition: transform .25s ease, background .25s ease;
    }

    .navbar-collapse .nav-link:hover {
        transform: translateY(-4px);
        background: rgba(255,75,0,0.12);
        color: #FFEBE0 !important;
    }

    /* Dropdowns inside overlay: full width cards */
    .navbar-collapse .dropdown-menu {
        position: static;
        background: rgba(0,0,0,0.12) !important;
        border: 1px solid rgba(255,255,255,0.04) !important;
        box-shadow: none;
        padding: 8px;
        margin: 8px 0 0;
        width: 100%;
        border-radius: 10px;
    }
    .navbar-collapse .dropdown-item {
        color: #fff !important;
        padding: 10px 18px;
        text-align: left;
    }

    /* CTA button becomes full-width in mobile overlay */
    .btn.btn-light.d-none.d-lg-block {
        display: none !important;
    }
    .btn.btn-light.mobile-cta {
        display: block;
        width: calc(100% - 4rem);
        max-width: 640px;
        margin: 18px auto 6px;
    }

}

/* lock body scroll when menu is open */
body.mobile-nav-open {
    overflow: hidden;
    height: 100vh;
}


/*** 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: #3d3d3d !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: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}


/*** Feature ***/
.progress {
    height: 5px;
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Project ***/
.project-item {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.project-item .position-relative {
    flex-shrink: 0;
    height: 250px;
    overflow: hidden;
}

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

.project-item h6,
.project-item span {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

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


/*** 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: #000000;
    transition: .5s;
}

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

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


/*** Testimonial ***/

.testimonial-carousel .owl-item .testimonial-item {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

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

.testimonial-carousel .owl-item .testimonial-item .d-flex {
    flex-shrink: 0;
}

.testimonial-carousel .owl-item .testimonial-item p {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

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


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    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);
}

/*** Topbar Modern ***/
.container-fluid.bg-light {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(34, 34, 34, 0.8)) !important;
    border-bottom: 1px solid rgba(69, 7, 204, 0.2);
    backdrop-filter: blur(10px);
}

.breadcrumb-item a {
    color: #F7F7F7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #FF4B00;
}

.topbar_pages a.small {
    color: #F7F7F7;
}

.topbar_pages a.small:hover {
    color: #FF4B00;
}

.btn-square {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-square:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(255, 75, 0, 0.1) !important;
}

/*** Brand Section Modern ***/
.top-bar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(34, 34, 34, 0.4));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(69, 7, 204, 0.15);
    padding: 20px 30px;
    width: 100%;
    margin: 0;
}

.btn-lg-square {
    border: 2px solid rgba(69, 7, 204, 0.3) !important;
    background: rgba(69, 7, 204, 0.05) !important;
    transition: all 0.4s ease;
}

.btn-lg-square:hover {
    border-color: #FF4B00 !important;
    background: rgba(255, 75, 0, 0.1) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 75, 0, 0.2);
}

.btn-lg-square i {
    transition: all 0.3s ease;
}

.btn-lg-square:hover i {
    color: #FF4B00 !important;
}

/*** Button CTA Modern ***/
.btn.btn-light {
    background: linear-gradient(135deg, #FF4B00, #FF8C00) !important;
    border: none !important;
    color: #FFFFFF !important;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(255, 75, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn.btn-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 75, 0, 0.4);
}

.btn.btn-light:hover::before {
    left: 100%;
}