/********** Gallery Lightbox **********/
.gallery-image {
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.8;
}

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--bs-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.image-lightbox-prev,
.image-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--bs-white);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-lightbox-prev {
    left: 20px;
}

.image-lightbox-next {
    right: 20px;
}

.image-lightbox-prev:hover,
.image-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/********** Modern Header **********/
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bs-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
}

/* Top Bar */
.header-topbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    padding: 10px 0;
    display: none;
}

.header-topbar.show {
    display: block;
}

.topbar-contact {
    display: flex;
    gap: 24px;
    align-items: center;
}

.topbar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.topbar-link:hover {
    color: var(--bs-white);
    transform: translateY(-1px);
}

.topbar-link i {
    font-size: 12px;
}

.topbar-social {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--bs-white);
    transform: translateY(-2px);
}

/* Main Navigation */
.header-nav {
    background: var(--bs-white);
    padding: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo a {
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Desktop Menu */
.nav-menu-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.nav-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.nav-menu-item {
    position: relative;
}

.nav-menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu-item.has-dropdown:hover .nav-menu-link i {
    transform: rotate(180deg);
}

.nav-menu-link:hover,
.nav-menu-item.active .nav-menu-link {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: var(--bs-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-menu-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    margin: 0;
}

.nav-dropdown a {
    display: block;
    padding: 12px 24px;
    color: #1e40af;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown a:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: var(--bs-white);
    padding-left: 28px;
    border-left-color: var(--bs-white);
}

/* CTA Button */
.nav-cta {
    flex-shrink: 0;
}

.btn-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: var(--bs-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    gap: 12px;
}

.btn-cta i {
    transition: transform 0.3s ease;
}

.btn-cta:hover i {
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(30, 64, 175, 0.3);
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #1e40af;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.mobile-menu-sidebar {
    position: absolute;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-sidebar {
    right: 0;
}

.mobile-menu-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-logo {
    height: 50px;
    width: auto;
    filter: none;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a8a !important;
    border: none !important;
    border-radius: 8px;
    color: var(--bs-white) !important;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.mobile-menu-close:hover {
    background: #1e40af !important;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.mobile-menu-close i {
    color: var(--bs-white) !important;
}

.mobile-menu-nav {
    flex: 1;
    padding: 20px 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-link i:first-child {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.mobile-menu-link i:last-child {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 32px;
    color: var(--bs-white);
}

.mobile-menu-toggle-dropdown:hover,
.mobile-menu-toggle-dropdown.active {
    background: transparent !important;
}

.mobile-menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bs-white);
}

.mobile-menu-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-dropdown .mobile-menu-link {
    background: transparent !important;
}

.mobile-menu-dropdown .mobile-menu-link:hover {
    background: transparent !important;
}

.mobile-menu-dropdown.active .mobile-menu-link i:last-child {
    transform: rotate(180deg);
}

.mobile-menu-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-dropdown.active .mobile-menu-dropdown-content {
    max-height: 500px;
}

.mobile-menu-dropdown-content a {
    display: block;
    padding: 12px 24px 12px 64px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-menu-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 72px;
    color: var(--bs-white);
}

.mobile-menu-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--bs-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-menu-cta:hover {
    background: var(--bs-white);
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-cta i {
    transition: transform 0.3s ease;
}

.mobile-menu-cta:hover i {
    transform: translateX(4px);
}

/* Mobile Menu Scrollbar */
.mobile-menu-sidebar::-webkit-scrollbar {
    width: 5px;
}

.mobile-menu-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-menu-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 991.98px) {
    .modern-header {
        background: var(--bs-white) !important;
    }

    .header-nav {
        background: var(--bs-white) !important;
    }

    .header-topbar {
        display: none !important;
    }

    .nav-menu-desktop {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .nav-wrapper {
        padding: 15px 0;
        background: var(--bs-white);
    }

    .logo-img {
        height: 50px;
    }
}

@media (min-width: 992px) {
    .header-topbar {
        display: block;
    }
}


/*** Button ***/
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-dark,
.btn.btn-outline-dark:hover {
    color: var(--bs-white);
    font-weight: 500;
}

.btn.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
    border-color: #1e40af !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%) !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
}

.btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

.btn.btn-dark {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn.btn-dark:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
}

.btn.btn-dark:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn.btn-light {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn.btn-light:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn.btn-outline-primary {
    border: 2px solid #1e40af;
    color: #1e40af;
    background: transparent;
}

.btn.btn-outline-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-color: #1e40af;
    color: var(--bs-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn.btn-outline-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

.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;
    transition: all 0.3s ease;
}

.btn-square:hover,
.btn-sm-square:hover,
.btn-lg-square:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-square:active,
.btn-sm-square:active,
.btn-lg-square:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}




/*** Hero ***/
.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.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: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 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: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    transition: all 200ms;
}

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

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #1e40af;
    opacity: 1;
}

.page-header {
    background: url(../img/hero.jpg) center right no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-secondery)
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--bs-primary);
}

/* Page header title color - white by default, except on index page */
.page-header h1 {
    color: var(--bs-white) !important;
}

/* Exception: on index page, use default h1 color (blue) instead of white */
body.page-index .page-header h1 {
    color: #1e40af !important;
}


/*** Appointment ***/
@media (min-width: 992px) {
    .container.appointment {
        max-width: 100% !important;
    }

    .container.appointment .appointment-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.appointment .appointment-form {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.appointment .appointment-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.appointment .appointment-form  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.appointment .appointment-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.appointment .appointment-form  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.appointment .appointment-text {
    background: linear-gradient(rgba(37, 99, 235, .95), rgba(37, 99, 235, .95)), url(../img/service-4.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-form {
    background: linear-gradient(rgba(30, 64, 175, .95), rgba(30, 64, 175, .95)), url(../img/service-1.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-text .h-100,
.container.appointment .appointment-form .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}

.service-item .service-text {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.service-item .service-img {
    transition: .5s;
}

.service-item:hover .service-img {
    transform: scale(1.2) rotate(7deg);
}



/*** Team ***/
.team {
    position: relative;
}

.team::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 110px;
    left: 0;
    bottom: 3rem;
    background: var(--bs-light);
    z-index: -1;
}

.team .team-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team .team-item img {
    position: relative;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transform: scale(1.1);
    transition: .5s;
}

.team .team-item:hover img {
    margin-top: -30px;
    padding-bottom: 30px;
}

.team .team-text {
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team .team-text span {
    font-size: 0.95rem;
}

.team .team-text-overflow {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-text-overflow {
    bottom: 0;
    opacity: 1;
}



/*** Testimonial ***/
.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    animation: pulse-img 5s ease-out infinite;
}

@keyframes pulse-img {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }

    50% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0;
    }
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

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

.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 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-white);
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    font-size: 22px;
    transition: .5s;
}

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


/*** Footer ***/
.footer {
    color: rgba(219, 234, 254, .6);
    background: url(../img/hero.jpg) center center no-repeat !important;
    background-size: cover !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(219, 234, 254, .6);
    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: rgba(219, 234, 254, .6);
    margin-right: 10px;
}

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

.footer .btn.btn-square {
    color: rgba(219, 234, 254, .6);
    border: 1px solid rgba(219, 234, 254, .6);
}

.footer .btn.btn-square:hover {
    color: var(--bs-white);
    border-color: #1e40af;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.footer .form-control {
    color: var(--bs-light);
    border-color: rgba(219, 234, 254, .6);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(219, 234, 254, .1);
}

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

.footer .copyright a:hover {
    color: #dbeafe;
}

/*** Override Bootstrap bg-white and bg-light with blue variants ***/
.bg-white {
    background-color: #eff6ff !important;
}

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

.navbar-light {
    background-color: #eff6ff !important;
}

/* Force blue foncé dégradé for bg-primary (square icon backgrounds) */
.bg-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
}

.border-inner {
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

/* Ensure text-primary uses blue */
.text-primary {
    color: var(--bs-primary) !important;
}

/* Override any default text colors */
body {
    color: #1e3a8a;
    padding-top: 90px;
    overflow-y: scroll;
}

html {
    overflow-y: scroll;
}

body.menu-open {
    overflow: hidden !important;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: #1e40af;
}



.dropdown-menu .dropdown-item {
    padding: 10px 20px;
    transition: .3s;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    color: var(--bs-white);
}

.header-carousel {
    position: relative;
    margin-top: 0;
}

.header-carousel .header-carousel-item {
    position: relative;
    height: 700px;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bs-white);
    color: var(--bs-primary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
}

.header-carousel .owl-nav .owl-prev {
    bottom: 30px;
    left: 0;
}

.header-carousel .owl-nav .owl-next {
    bottom: 30px;
    right: 0;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    box-shadow: inset 0 0 65px 0 #1e40af;
    color: var(--bs-dark);
}

.hero-section {
    background-image: url(../img/carousel-1.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg-half-1 {
    background-image: url(../img/header-2.jpg);
    clip-path: polygon(37% 0%, 100% 0%, 100% 100%, 0% 100%);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 58%;
    height: 100%;
    right: 0;
    top: 0;
    filter: grayscale(10%);
}

.hero-bg-half-2 {
    background-image: url(../img/header-1.jpg);
    clip-path: polygon(37% 0%, 100% 0%, 100% 100%, 0% 100%);
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    width: 58%;
    height: 100%;
    right: 0;
    top: 0;
    filter: grayscale(10%);
}

.hero-shape-1,
.hero-shape-2 {
    position: absolute;
    width: 150px;
    height: 50%;
    z-index: 2;
}

.hero-shape-1 {
    left: 54%;
    top: 0;
    transform: translateY(-50%) skew(-26deg, 0deg);
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.hero-shape-1::before {
    content: "";
    position: absolute;
    width: 50%;
    height: 80%;
    right: 0;
    top: 0;
    background-color: var(--bs-dark);
}

.hero-shape-2 {
    right: -43%;
    bottom: 0;
    transform: translateY(50%) skew(-25deg, 0deg);
    background-color: var(--bs-dark);
}

.hero-shape-2::after {
    content: "";
    position: absolute;
    width: 75px;
    height: 80%;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.header-carousel .header-carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    z-index: 9;
    padding: 0 15px;
}

@media (max-width: 991.98px) {
    .header-carousel {
        margin-top: 0;
    }

    .header-carousel .header-carousel-item,
    .hero-section,
    .header-carousel .header-carousel-item .carousel-caption {
        height: 620px;
    }

    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
}

/* Hero section title color - white by default, except on index page */
.hero-section h1 {
    color: var(--bs-white) !important;
}

/* Exception: on index page, use default h1 color (blue) instead of white */
body.page-index .hero-section h1 {
    color: #1e40af !important;
}

/********** Page Preloader Ultra Pro Expert Level **********/
body.preloader-active {
    overflow: hidden;
    height: 100%;
}

.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), visibility 1s;
    backdrop-filter: blur(0px);
    will-change: opacity;
}

.page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Background avec effets avancés */
.preloader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at top, #1e293b 0%, #0f172a 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    background-attachment: fixed;
}

.preloader-gradient-mesh {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 64, 175, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 40% 20%, rgba(251, 191, 36, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 60% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: meshMove 25s ease-in-out infinite;
    opacity: 0.9;
    will-change: transform, opacity;
}

.preloader-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: gridPulse 4s ease-in-out infinite;
}

/* Rayons de lumière */
.preloader-light-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.light-ray {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.3), transparent);
    opacity: 0.3;
}

.ray-1 {
    left: 20%;
    animation: raySweep 8s ease-in-out infinite;
}

.ray-2 {
    left: 50%;
    animation: raySweep 10s ease-in-out infinite 2s;
}

.ray-3 {
    left: 80%;
    animation: raySweep 12s ease-in-out infinite 4s;
}

/* Orbes flottants */
.preloader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.4) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-duration: 20s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 70%;
    animation-duration: 22s;
    animation-delay: 6s;
}

/* Particules animées avancées */
.preloader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    animation: particleFloatAdvanced 25s infinite;
}

.particle-1, .particle-2, .particle-3, .particle-4, .particle-5 {
    width: 6px;
    height: 6px;
}

.particle-6, .particle-7, .particle-8 {
    width: 4px;
    height: 4px;
}

.particle-9, .particle-10 {
    width: 3px;
    height: 3px;
}

.particle-1 { left: 10%; animation-delay: 0s; animation-duration: 18s; }
.particle-2 { left: 20%; animation-delay: 2s; animation-duration: 22s; }
.particle-3 { left: 30%; animation-delay: 4s; animation-duration: 20s; }
.particle-4 { left: 40%; animation-delay: 1s; animation-duration: 19s; }
.particle-5 { left: 50%; animation-delay: 3s; animation-duration: 21s; }
.particle-6 { left: 60%; animation-delay: 5s; animation-duration: 17s; }
.particle-7 { left: 70%; animation-delay: 2.5s; animation-duration: 23s; }
.particle-8 { left: 80%; animation-delay: 4.5s; animation-duration: 18s; }
.particle-9 { left: 15%; animation-delay: 1.5s; animation-duration: 20s; }
.particle-10 { left: 85%; animation-delay: 3.5s; animation-duration: 19s; }

/* Wrapper principal */
.preloader-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preloader-main {
    text-align: center;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Container du cercle */
.preloader-circle-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.preloader-halo {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: haloPulse 4s ease-in-out infinite;
    filter: blur(20px);
    z-index: 1;
}

.preloader-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: ringRotate 25s linear infinite;
    z-index: 2;
}

.preloader-middle-ring {
    position: absolute;
    width: 92%;
    height: 92%;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    animation: ringRotate 18s linear infinite reverse;
    z-index: 2;
}

.preloader-inner-ring {
    position: absolute;
    width: 86%;
    height: 86%;
    border: 1px solid rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    animation: ringRotate 12s linear infinite;
    z-index: 2;
}

.preloader-outer-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.preloader-inner-ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: ringRotate 15s linear infinite reverse;
}

.preloader-logo-inner {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 2px 15px rgba(255, 255, 255, 0.9),
        inset 0 -2px 10px rgba(0, 0, 0, 0.05);
    animation: logoFloat 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 5;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.preloader-logo-glow {
    position: absolute;
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: 
        radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(251, 191, 36, 0.2) 40%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 4;
    filter: blur(15px);
}

.preloader-logo-shadow {
    position: absolute;
    width: 105%;
    height: 105%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
    bottom: -5%;
    z-index: 3;
    filter: blur(10px);
}

.preloader-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 50%;
}

.preloader-circle-bg {
    opacity: 0.25;
    animation: circleBgPulse 3s ease-in-out infinite;
}

.preloader-circle-progress {
    stroke-dashoffset: 502.65;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.7));
    will-change: stroke-dashoffset;
    transform-origin: center;
    animation: progressRotate 20s linear infinite;
}

.preloader-circle-glow {
    stroke-dashoffset: 502.65;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    transform-origin: center;
    animation: glowRotate 15s linear infinite;
}

.preloader-logo-wrapper {
    position: relative;
    z-index: 6;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: logoBgPulse 4s ease-in-out infinite;
    z-index: -1;
}

.preloader-logo-img {
    max-width: 160px;
    max-height: 160px;
    height: auto;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
    animation: logoPulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, filter;
}

.preloader-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 7;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 10%;
    left: 50%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 50%;
    right: 10%;
    animation-delay: 0.75s;
}

.sparkle-3 {
    bottom: 10%;
    left: 50%;
    animation-delay: 1.5s;
}

.sparkle-4 {
    top: 50%;
    left: 10%;
    animation-delay: 2.25s;
}

.preloader-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

/* Container texte */
.preloader-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.preloader-text {
    color: rgba(255, 255, 255, 0.98);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(59, 130, 246, 0.3);
    animation: textGlow 3s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(200, 220, 255, 0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #fbbf24 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    animation: dotBounceAdvanced 1.6s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }

/* Barre de progression avancée */
.preloader-progress-container {
    width: 320px;
    margin: 0 auto;
}

.preloader-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.preloader-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: trackShimmer 2s infinite;
}

.preloader-progress-fill {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 20%, #3b82f6 40%, #60a5fa 60%, #93c5fd 70%, #fbbf24 85%, #fcd34d 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 25px rgba(59, 130, 246, 0.7),
        0 0 40px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: gradientMoveAdvanced 4s ease infinite;
    overflow: hidden;
    will-change: width;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

.preloader-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.preloader-percentage {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-variant-numeric: tabular-nums;
}

.preloader-separator {
    width: 2px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.preloader-speed {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Animations Ultra Pro */
@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: translate(10%, -5%) scale(1.1);
        opacity: 0.9;
    }
    66% {
        transform: translate(-5%, 10%) scale(0.95);
        opacity: 0.85;
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes raySweep {
    0% {
        transform: translateX(0) scaleY(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
        transform: translateX(100px) scaleY(1);
    }
    100% {
        transform: translateX(200px) scaleY(0.5);
        opacity: 0;
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes particleFloatAdvanced {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(50px) rotate(180deg) scale(1);
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes haloPulse {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.15);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.45;
        transform: scale(1.08) rotate(90deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15) rotate(180deg);
    }
    75% {
        opacity: 0.45;
        transform: scale(1.08) rotate(270deg);
    }
}

@keyframes progressRotate {
    from {
        filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.7)) hue-rotate(0deg);
    }
    to {
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6)) hue-rotate(20deg);
    }
}

@keyframes glowRotate {
    from {
        opacity: 0.3;
        transform: rotate(0deg);
    }
    to {
        opacity: 0.6;
        transform: rotate(360deg);
    }
}

@keyframes circleBgPulse {
    0%, 100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.35;
    }
}

@keyframes logoBgPulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 
            0 25px 70px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.6),
            inset 0 2px 15px rgba(255, 255, 255, 0.9),
            inset 0 -2px 10px rgba(0, 0, 0, 0.05);
    }
    33% {
        transform: translateY(-6px) rotate(0.3deg);
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.7),
            inset 0 2px 15px rgba(255, 255, 255, 0.95),
            inset 0 -2px 10px rgba(0, 0, 0, 0.08);
    }
    66% {
        transform: translateY(-8px) rotate(-0.3deg);
        box-shadow: 
            0 28px 75px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.65),
            inset 0 2px 15px rgba(255, 255, 255, 0.92),
            inset 0 -2px 10px rgba(0, 0, 0, 0.06);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
    }
    25% {
        transform: scale(1.015);
        filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.25));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.35));
    }
    75% {
        transform: scale(1.015);
        filter: drop-shadow(0 8px 18px rgba(251, 191, 36, 0.25));
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 2px 10px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(59, 130, 246, 0.3);
        filter: brightness(1);
    }
    50% {
        text-shadow: 
            0 2px 15px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(59, 130, 246, 0.6),
            0 0 40px rgba(251, 191, 36, 0.4);
        filter: brightness(1.2);
    }
}

@keyframes dotBounceAdvanced {
    0%, 80%, 100% {
        transform: scale(0) translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2) translateY(-8px);
        opacity: 1;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
}

@keyframes gradientMoveAdvanced {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes trackShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .preloader-circle-container {
        width: 200px;
        height: 200px;
        margin-bottom: 40px;
    }
    
    .preloader-logo-inner {
        width: 180px;
        height: 180px;
    }
    
    .preloader-logo-img {
        max-width: 140px;
        max-height: 140px;
    }
    
    .preloader-svg {
        width: 180px;
        height: 180px;
    }
    
    .preloader-svg circle {
        r: 70;
    }
    
    .preloader-text {
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    .preloader-progress-container {
        width: 260px;
    }
    
    .preloader-stats {
        gap: 10px;
    }
    
    .preloader-percentage {
        font-size: 13px;
    }
    
    .preloader-speed {
        font-size: 11px;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 150px;
        height: 150px;
    }
}

/********** Partner Section **********/
.partner-item {
    background-color: #ffffff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.partner-logo-wrapper img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: grayscale(20%);
}

.partner-item:hover .partner-logo-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.partner-item h5 {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .partner-item {
        margin-bottom: 1rem;
    }
    
    .partner-logo-wrapper {
        height: 120px !important;
    }
    
    .partner-item h5 {
        font-size: 0.85rem;
    }
}