/********** Just Money Official Theme CSS **********/
:root {
    /* Brand Palette Derived From Official 3D Just Money Logo */
    --primary: #0052CC;
    --primary-dark: #003D99;
    --primary-darker: #002B6D;
    --primary-light: #EEF4FF;
    
    --secondary: #D48806;
    --secondary-hover: #B87700;
    --secondary-light: #FFF8E7;
    --gold: #E5A100;
    --gold-dark: #B87700;
    --gold-gradient: linear-gradient(135deg, #F5B300 0%, #E5A100 50%, #D48806 100%);
    --blue-gradient: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    
    --tertiary: #5A6A80;
    --light: #F4F7FC;
    --dark: #051329;
    --dark-surface: #0A192F;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-body);
    color: #334155;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: var(--blue-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.35);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #003D99 0%, #002B6D 100%);
    color: #ffffff;
}

/* Floating WhatsApp Button (Left Side) */
.floating-whatsapp {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.floating-whatsapp-btn {
    width: 58px;
    height: 58px;
    background: #25D366;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-whatsapp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPulse 2s infinite ease-out;
    pointer-events: none;
}
@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}
.floating-whatsapp:hover .floating-whatsapp-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
    color: #ffffff !important;
}
.floating-whatsapp-text {
    background: #ffffff;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 20px;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-left: 3px solid #25D366;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}
.floating-whatsapp:hover .floating-whatsapp-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
@media (max-width: 576px) {
    .floating-whatsapp {
        left: 16px;
        bottom: 16px;
    }
    .floating-whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .floating-whatsapp-text {
        display: none;
    }
}

/* Typography Hierarchy */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    color: var(--dark);
    letter-spacing: -0.02em;
}

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: 600 !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 {
    font-family: var(--font-heading);
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-primary {
    color: #ffffff !important;
    background: var(--blue-gradient) !important;
    border: 1px solid #0052CC !important;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #003D99 0%, #002B6D 100%) !important;
    border-color: #003D99 !important;
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.35);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-secondary {
    color: #051329 !important;
    background: var(--gold-gradient) !important;
    border: 1px solid #D48806 !important;
    box-shadow: 0 4px 14px rgba(212, 136, 6, 0.25);
    font-weight: 700 !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: linear-gradient(135deg, #D48806 0%, #B87700 100%) !important;
    border-color: #B87700 !important;
    box-shadow: 0 6px 20px rgba(212, 136, 6, 0.35);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    color: #ffffff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.25);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    color: var(--secondary) !important;
    border: 2px solid var(--secondary) !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    color: #ffffff !important;
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 4px 14px rgba(212, 136, 6, 0.25);
    transform: translateY(-2px);
}

.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 ***/
.sticky-top,
.fixed-top,
.top-bar,
.navbar {
    background-color: #ffffff !important;
}

.sticky-top,
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid #eeeeee !important;
}

.top-bar small,
.top-bar a {
    color: #555555;
}

.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 {
    font-family: var(--font-heading);
    padding: 25px 15px;
    color: #1e293b;
    font-weight: 600;
    outline: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.navbar .navbar-nav .nav-link.active {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@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;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 25px rgba(5, 19, 41, 0.08);
        border-radius: 8px;
    }

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


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

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

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

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


/*** Service ***/
.service .nav .nav-link {
    transition: .4s;
    font-family: var(--font-heading);
    border-radius: 8px;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.25);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    color: #FFFFFF !important;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

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

.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(--primary-light);
    border-radius: 45px;
    font-size: 22px;
    transition: .3s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}


/*** Footer ***/
.footer {
    background-color: var(--dark) !important;
    color: rgba(255, 255, 255, 0.85);
}

.footer h4,
.footer h5,
.footer h6 {
    color: #ffffff !important;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    text-transform: capitalize;
    transition: .3s;
    font-size: 14.5px;
}

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

.footer .btn.btn-link:hover {
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: none;
    transform: translateX(4px);
}

.footer .btn.btn-link:hover::before {
    color: var(--gold);
}

.copyright {
    color: rgba(255, 255, 255, 0.65);
    background: #020B17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copyright a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.25s;
}

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