/********** Template CSS **********/
.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 {
    transition: .5s;
}

.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:hover {
    background: var(--bs-dark);
    border-color: var(--bs-dark);
}

.btn.btn-dark:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.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.sticky-top {
    position: sticky !important;
    top: 0px !important;
    z-index: 1020 !important;
    transition: .5s;
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin: 0 12px;
    padding: 10px 0;
    color: var(--bs-secondery);
    font-size: 17px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .navbar-nav .dropdown-item:hover,
.navbar .navbar-nav .dropdown-item.active {
    background: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 45px;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background-color: #ffffff !important;
        z-index: 9999;
        padding: 80px 20px 20px 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease-in-out;
        display: block !important;
        overflow-y: auto;
    }

    .navbar-collapse.collapse:not(.show) {
        display: block !important;
        left: -300px;
    }

    .navbar-collapse.show {
        left: 0 !important;
    }

    .navbar .navbar-nav {
        background-color: transparent !important;
        padding: 0 !important;
        margin-top: 20px !important;
    }

    .navbar .navbar-nav .nav-link {
        margin: 5px 0 !important;
        padding: 10px 15px !important;
        border-radius: 8px;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f5f6f7;
    }

    .navbar .navbar-nav .nav-link.active, 
    .navbar .navbar-nav .nav-link:hover {
        background-color: rgba(6, 163, 218, 0.1); /* Primary color alpha */
        color: #06a3da !important;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn-light {
    font-weight: 500;
    color: var(--bs-secondery);
}

.navbar .btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** 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: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    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: #000000;
    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);
}


/*** 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(205, 95, 55, .95), rgba(205, 95, 55, .95)), url(../img/service-4.jpg) center center no-repeat;
    background-size: cover;
}

.container.appointment .appointment-form {
    background: linear-gradient(rgba(72, 30, 11, .95), rgba(72, 30, 11, .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;
}

.team .team-item img {
    position: relative;
    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-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: var(--bs-primary);
    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: #a0aec0;
    font-size: 0.95rem;
}

.footer .section-title {
    position: relative;
    padding-bottom: 8px;
}

.footer .section-title::after {
    content: "";
    position: absolute;
    width: 35px;
    height: 3px;
    background: var(--bs-primary);
    bottom: 0;
    left: 0;
}

.footer .btn.btn-link {
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary) !important;
    padding-left: 8px !important;
    background: transparent;
}

.btn-social-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a0aec0;
    transition: all 0.3s ease;
}

.btn-social-circle:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-3px);
}

.border-muted-opacity {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-newsletter .form-control {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03) !important;
}

.footer-newsletter .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: none;
}


/*** Header Upgrades ***/
.header-topbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-item {
    transition: background 0.3s ease;
}

.topbar-item:hover {
    background: #f8f9fa !important;
}

.font-sm {
    font-size: 0.8rem;
}

.custom-navbar {
    transition: all 0.3s ease;
}

.custom-navbar.shadow-sm {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
}

.nav-links-container {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.custom-navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

@media (min-width: 992px) {
    .custom-navbar .nav-link::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 5px;
        left: 50%;
        background-color: var(--bs-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .custom-navbar .nav-link:hover::after,
    .custom-navbar .nav-link.active::after {
        width: 60%;
    }

    .custom-navbar .nav-link:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.12);
        padding-right: 18px;
        margin-right: 6px;
    }
}

.action-btn {
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#header-placeholder {
    display: contents;
}

/* Custom UI Additions */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #1e40af 100%) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-interactive {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.card-interactive:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.2) !important;
}

.step-card {
    position: relative;
    border: none;
    background: #f8fafc;
    border-radius: 12px;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.3);
}

.accent-card {
    background: rgba(var(--bs-primary-rgb), 0.03);
    border-left: 4px solid var(--bs-primary) !important;
    border-radius: 4px 8px 8px 4px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Responsive Fixes & Premium Styles */
.card-interactive {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 12px;
}
.card-interactive:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.step-card {
    transition: all 0.3s ease;
    border-radius: 12px;
}
.step-card:hover {
    background-color: var(--bs-primary);
    color: white !important;
    transform: translateY(-4px);
}
.step-card:hover p, .step-card:hover h5, .step-card:hover .step-number {
    color: white !important;
}

.action-btn {
    transition: all 0.3s ease-in-out;
}
.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.3) !important;
}

@media (max-width: 992px) {
    #header-carousel .carousel-item img {
        height: 50vh !important;
        min-height: 350px !important;
    }
}

@media (max-width: 768px) {
    .hero-header {
        padding: 4rem 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-header h1 {
        font-size: 2.2rem !important;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }

    .display-5 {
        font-size: 2rem !important;
    }
    
    .card-interactive:hover {
        transform: none !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    }
}

/* Centering Styles for Icons */
.icon-box-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px;
}

.icon-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px;
    height: 50px;
}

/* Premium Topbar Styles */
.topbar-social-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar-social-link:hover {
    transform: translateY(-2px) scale(1.1);
    background: var(--bs-primary);
}
.topbar-social-link:hover i {
    color: white !important;
}
.topbar-divider {
    height: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    align-self: center;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    background-color: #22c35e;
    box-shadow: 2px 4px 15px rgba(37, 211, 102, 0.4);
}
