/********** Template CSS **********/
:root {
    --bs-primary: #9b4eff;
    --bs-primary-light: #c792ff;
    --bs-primary-glow: #b77eff;
    --bs-secondary: #0a0520;
    --bs-dark: #070312;
    --bs-light: #1a1035;
    --bs-white: #f0eaff;
    --bs-body-bg: #080214;
    --bs-body-color: #c9b8e8;
    --bs-border-color: rgba(160, 100, 255, 0.25);
    --glass-bg: rgba(12, 8, 28, 0.55);
    --glass-border: rgba(160, 100, 255, 0.3);
}

/* Animated Aurora Background */
body {
    background: radial-gradient(circle at 0% 0%, #0b041c 0%, #080214 50%, #03000b 100%);
}

body::before {
    content: "";
    position: fixed;
    top: -30%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(120, 40, 255, 0.2), rgba(80, 30, 200, 0.08), transparent 70%);
    filter: blur(110px);
    animation: auroraDrift 22s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -30%;
    right: -20%;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(180, 70, 255, 0.15), rgba(100, 20, 210, 0.1), transparent 80%);
    filter: blur(130px);
    animation: auroraReverse 26s infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes auroraDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(6%, 8%) scale(1.3); opacity: 0.8; }
}

@keyframes auroraReverse {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    100% { transform: translate(-5%, -5%) scale(1.2); opacity: 0.7; }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background: rgba(16, 8, 35, 0.8);
    backdrop-filter: blur(12px);
    border: 2px solid var(--bs-primary-glow);
    color: var(--bs-primary-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--bs-primary);
    color: var(--bs-dark);
    box-shadow: 0 0 20px rgba(155, 78, 255, 0.5);
    transform: translateY(-3px);
}


/*** 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;
}

#spinner .spinner-grow {
    color: var(--bs-primary) !important;
    filter: drop-shadow(0 0 10px var(--bs-primary-glow));
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 60px;
}

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

.btn-primary {
    color: var(--bs-dark);
    background: linear-gradient(105deg, #9b4eff, #bf7aff);
    border: none;
    box-shadow: 0 4px 15px rgba(155, 78, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(105deg, #a85fff, #c58aff);
    color: var(--bs-dark);
    box-shadow: 0 6px 25px rgba(155, 78, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--bs-primary-light);
    border: 1.5px solid var(--bs-primary-glow);
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(5px);
}

.btn-outline-primary:hover {
    background: var(--bs-primary);
    color: var(--bs-dark);
    border-color: var(--bs-primary);
    box-shadow: 0 0 20px rgba(155, 78, 255, 0.4);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
    background: rgba(8, 4, 22, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(160, 100, 255, 0.25);
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bs-primary-glow);
    transition: width 0.3s ease;
}

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

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
    
    .navbar .navbar-nav .nav-link::after {
        bottom: 5px;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-border-color);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: 1px solid var(--bs-border-color);
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        background: rgba(10, 5, 28, 0.95);
        backdrop-filter: blur(16px);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    
    .dropdown-menu .dropdown-item {
        color: var(--bs-white);
        transition: all 0.3s ease;
        border-radius: 8px;
        margin: 4px 8px;
        padding: 8px 16px;
    }
    
    .dropdown-menu .dropdown-item:hover,
    .dropdown-menu .dropdown-item:focus {
        background: rgba(155, 78, 255, 0.2);
        color: var(--bs-primary-light);
    }
}

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


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(8, 2, 20, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    filter: drop-shadow(0 0 8px var(--bs-primary-glow));
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 0 10px var(--bs-primary-glow));
    background-color: rgba(155, 78, 255, 0.3);
    border-radius: 50%;
    padding: 10px;
}

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

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(8, 2, 20, 0.9), rgba(8, 2, 20, 0.9)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(155, 78, 255, 0.1), transparent 70%);
    pointer-events: none;
}

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

.page-header .breadcrumb-item.active {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
    color: var(--bs-primary-light);
    text-shadow: 0 0 10px rgba(155, 78, 255, 0.3);
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-primary-glow);
    opacity: 0.5;
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 2px solid var(--bs-primary-glow);
    color: var(--bs-white);
    text-shadow: 0 0 20px rgba(155, 78, 255, 0.2);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--bs-primary-glow);
    box-shadow: 0 10px 30px rgba(155, 78, 255, 0.2);
    transform: translateY(-5px);
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(155, 78, 255, 0.15);
    border-radius: 300px;
    z-index: 1;
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(155, 78, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(155, 78, 255, 0.4); }
}

.service-item .service-img img {
    border-color: var(--bs-primary-glow) !important;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), rgba(12, 8, 28, 0.8));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), rgba(12, 8, 28, 0.8));
}

.service-text h3 {
    color: var(--bs-primary-light);
    text-shadow: 0 0 10px rgba(155, 78, 255, 0.3);
}

.service-text p {
    color: var(--bs-white);
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), rgba(12, 8, 28, 0.8));
        text-align: center;
    }
}


/*** Team ***/
.team-item {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(155, 78, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-item:hover {
    border-color: var(--bs-primary-glow);
    box-shadow: 0 15px 40px rgba(155, 78, 255, 0.25);
    transform: translateY(-8px);
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 2, 20, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(155, 78, 255, 0.2);
}

.team-item .team-name h5 {
    color: var(--bs-primary-light);
    text-shadow: 0 0 10px rgba(155, 78, 255, 0.3);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(12, 8, 28, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}

.team-item .btn-outline-primary {
    color: var(--bs-primary-light);
    border-color: var(--bs-primary-glow);
    background: rgba(155, 78, 255, 0.1);
}

.team-item .btn-outline-primary:hover {
    background: var(--bs-primary);
    color: var(--bs-dark);
    box-shadow: 0 0 20px rgba(155, 78, 255, 0.4);
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: rgba(16, 8, 35, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    transition: .5s;
    border: 2px solid transparent;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
    border-color: var(--bs-primary-glow);
    box-shadow: 0 0 20px rgba(155, 78, 255, 0.4);
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .3;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
    box-shadow: 0 0 15px rgba(155, 78, 255, 0.3);
}

.testimonial-item p {
    color: var(--bs-white);
}

.testimonial-item h5 {
    color: var(--bs-primary-light);
    text-shadow: 0 0 10px rgba(155, 78, 255, 0.2);
}


/*** Footer ***/
@keyframes footerAnimatedBg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -1000px 0;
    }
}
 


/*** Pricing Cards ***/
.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(160, 100, 255, 0.2);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--bs-primary-glow);
    box-shadow: 0 0 30px rgba(155, 78, 255, 0.25);
    transform: translateY(-8px);
}

.pricing-card .price {
    color: var(--bs-primary-light);
    text-shadow: 0 0 20px rgba(155, 78, 255, 0.4);
}

.pricing-card .text-primary {
    color: var(--bs-primary-light) !important;
}

.pricing-card .border-primary {
    border-color: var(--bs-primary-glow) !important;
}

.pricing-card ul li i.fa-check-circle {
    color: var(--bs-primary-light) !important;
    text-shadow: 0 0 10px rgba(155, 78, 255, 0.3);
}


/*** Login Section ***/
.login-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(160, 100, 255, 0.3);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(155, 78, 255, 0.15);
}

.login-wrapper .form-control {
    background: rgba(8, 2, 20, 0.6);
    border: 1px solid rgba(160, 100, 255, 0.2);
    color: var(--bs-white);
    border-radius: 12px;
}

.login-wrapper .form-control:focus {
    border-color: var(--bs-primary-glow);
    box-shadow: 0 0 15px rgba(155, 78, 255, 0.2);
    background: rgba(12, 8, 28, 0.8);
}

.login-wrapper .text-primary {
    color: var(--bs-primary-light) !important;
}


/*** Broker Box ***/
.broker-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(160, 100, 255, 0.2);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.broker-box:hover {
    border-color: var(--bs-primary-glow);
    box-shadow: 0 10px 30px rgba(155, 78, 255, 0.2);
}

.broker-box .text-primary {
    color: var(--bs-primary-light) !important;
}

.broker-box .md5-badge {
    background: rgba(8, 2, 20, 0.8);
    border: 1px solid var(--bs-primary-glow);
    color: var(--bs-primary-light);
    border-radius: 12px;
}


/*** Gallery ***/
.gallery-item {
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--bs-primary-glow);
    box-shadow: 0 0 25px rgba(155, 78, 255, 0.3);
    transform: scale(1.02);
}


/*** Background Colors ***/
.bg-primary {
    background-color: var(--bs-primary) !important;
}

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

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

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

.text-body {
    color: var(--bs-white) !important;
}

.border-primary {
    border-color: var(--bs-primary-glow) !important;
}

.border-secondary {
    border-color: rgba(160, 100, 255, 0.2) !important;
}

.footer {
    background-image: url(../img/footer-bg.png);
    background-position: 0px 0px;
    background-repeat: repeat-x;
    animation: footerAnimatedBg 50s linear infinite;
    background-color: rgba(8, 2, 20, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(160, 100, 255, 0.2);
}

/*** Additional Glassmorphism Effects ***/
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.glass-card:hover {
    border-color: var(--bs-primary-glow);
    box-shadow: 0 10px 40px rgba(155, 78, 255, 0.2);
    transform: translateY(-3px);
}

/*** Glow Effects ***/
.glow-text {
    text-shadow: 0 0 20px rgba(155, 78, 255, 0.4);
}

.glow-border {
    box-shadow: 0 0 20px rgba(155, 78, 255, 0.3);
    border-color: var(--bs-primary-glow);
}

/*** Smooth Transitions ***/
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}