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

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}


/*** 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;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-primary);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -25px;
    }
    50% { 
        top: -45px;
    }
    100% { 
        top: -25px;
    } 
}


/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(0, 0, 0) 50%), url(../img/mpe.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

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


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--bs-primary);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}


/*** Appoinment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-2.jpg) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

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

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: var(--bs-primary);
    font-size: 45px;
    transition: .5s;
}

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


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-3.jpg) left center no-repeat;
    background-size: cover;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

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

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

.copyright {
    background: #222222;
}

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

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


/* Modern Glass Topbar */
.topbar-wrapper {
    background: rgba(0, 87, 179, 0);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(255, 255, 255);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.topbar-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

/* Info Items */
.topbar-info .info-item {
    color: #050505;
    margin-left: 25px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.topbar-info .info-item i {
    margin-right: 8px;
    font-size: 15px;
    color: #0466f7;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Social Icons */
.social-icons a {
    height: 34px;
    width: 34px;
    margin-left: 10px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #0573e8;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.4);
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.08);
    background: #ffe38f;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 227, 143, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .topbar-logo {
        height: 60px;
    }
    .topbar-info .info-item {
        font-size: 12px;
        margin-left: 15px;
    }
}
/* Mobile-only logo */
.mobile-logo {
    height: 55px;
    width: auto;
}

/* Hide for desktop */
@media (min-width: 992px) {
    .mobile-logo {
        display: none !important;
    }
}

/* Glass Navbar */
.glass-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Menu Items */
.nav-link-custom {
    position: relative;
    padding: 20px 18px !important;
    font-weight: 500;
    color: #013b7b !important;
    transition: 0.3s;
}

/* Hover Line */
.nav-link-custom::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: 0.3s ease-out;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 60%;
}

/* Dropdown */
.dropdown-custom {
    padding: 10px 0;
    animation: dropdownFade 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button */
.modern-btn {
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
    transition: 0.3s ease;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 104, 255, 0.45);
}
/* ---------- Layout & Ken Burns ---------- */
.premium-slider-wrap { position: relative; overflow: hidden; }
.slider-img {
  width:100%; height:90vh; object-fit:cover;
  transform-origin:center center;
  transition: transform 12s cubic-bezier(.22,.98,.28,.99);
  will-change: transform;
}

/* Start small motion then zoom in when active */
.carousel-item .slider-img { transform: scale(1); }
.carousel-item.active .slider-img { transform: scale(1.12); }

/* ---------- Overlay (readability) ---------- */
.overlay {
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(120deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.65) 100%);
  pointer-events:none;
}

/* ---------- Glass Caption ---------- */
.carousel-caption.glass-box {
  position:absolute; z-index:3; color:#fff;
  padding:22px 28px; border-radius:14px; max-width:720px;
  backdrop-filter: blur(8px) saturate(120%);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* Positions */
.caption-center { left:50%; top:50%; transform:translate(-50%,-50%); text-align:center; }
.caption-left { left:6%; top:50%; transform:translateY(-50%); text-align:left; }
.caption-right { right:6%; top:50%; transform:translateY(-50%); text-align:right; }

/* ---------- Metal Title (shine) ---------- */
.metal-title { font-size:44px; line-height:1.02; font-weight:800; text-transform:uppercase; margin:0 0 8px; letter-spacing:1px; }
.metal-title .typewriter { display:inline-block; vertical-align:middle; color:transparent; background: linear-gradient(90deg,#ffd479 0%, #fff 20%, #ffd479 60%, #fff 100%);
  -webkit-background-clip: text; background-clip:text; background-size:200% 100%;
  animation: metalShine 3.5s linear infinite;
  font-weight:800;
}
@keyframes metalShine {
  0% { background-position: -60% 0; filter:brightness(0.95); }
  50% { background-position: 120% 0; filter:brightness(1.15); }
  100% { background-position: 260% 0; filter:brightness(0.95); }
}

/* ---------- Typewriter caret ---------- */
.typewriter::after { content:"|"; margin-left:6px; opacity:1; animation: caretBlink 1s steps(1) infinite; color:#ffd479; }
@keyframes caretBlink { 50% { opacity:0; } }

/* ---------- Slide text animations ---------- */
.slide-up .glass-box { transform: translateY(24px); opacity:0; transition: transform .9s cubic-bezier(.2,.9,.2,1), opacity .9s; }
.slide-left .glass-box { transform: translateX(-30px); opacity:0; transition: transform .9s cubic-bezier(.2,.9,.2,1), opacity .9s; }
.slide-right .glass-box { transform: translateX(30px); opacity:0; transition: transform .9s cubic-bezier(.2,.9,.2,1), opacity .9s; }

/* When active make visible */
.carousel-item.active .glass-box { transform: translate(0,0); opacity:1; }

/* ---------- Button shine ---------- */
.btn-shine { position:relative; overflow:hidden; border-radius:999px; font-weight:700; background:#0d6efd; color:#fff; }
.btn-shine::after {
  content:""; position:absolute; top:0; left:-80%; width:40%; height:100%;
  background:linear-gradient(120deg, rgba(255,255,255,0.12), rgba(255,255,255,0.28), rgba(255,255,255,0.08));
  transform: skewX(-25deg); transition: left .8s cubic-bezier(.2,.9,.2,1);
}
.btn-shine:hover::after { left:140%; }

/* ---------- Custom arrows ---------- */
.custom-arrow {
  position:absolute; top:50%; transform:translateY(-50%); z-index:6;
  width:52px; height:52px; border-radius:50%; border:none;
  background: rgba(0,0,0,0.36); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.carousel-control-prev.custom-arrow { left:18px; }
.carousel-control-next.custom-arrow { right:18px; }
.custom-arrow i { font-size:18px; }

/* ---------- Indicators thumbnails ---------- */
.modern-indicators { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); z-index:6; display:flex; gap:8px; }
.modern-indicators button { padding:0; border:none; background:transparent; cursor:pointer; }
.modern-indicators img { width:64px; height:44px; object-fit:cover; border-radius:6px; opacity:.85; transition:transform .25s, box-shadow .25s; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.modern-indicators .active img { transform:scale(1.06); box-shadow: 0 12px 30px rgba(13,110,253,0.18); border:2px solid rgba(255,216,121,0.12); opacity:1; }

/* ---------- Typography & responsive ---------- */
.lead { color:#e6e6e6; margin-bottom:14px; font-size:16px; }
@media(min-width:1200px){ .metal-title{ font-size:56px; } }
@media(max-width:992px){
  .slider-img{ height:60vh; }
  .metal-title{ font-size:22px; }
  .carousel-caption.glass-box{ max-width:94%; padding:14px 16px; }
  .modern-indicators img{ width:48px; height:36px; }
  .custom-arrow{ width:40px; height:40px; }
}
/*************************************
    GLOBAL 3D EFFECT STYLES
*************************************/

/* Smooth animations */
.feature-item, 
.service-item, 
.border, 
.experience {
    transition: all 0.35s ease;
    transform-style: preserve-3d;
}

/*************************************
    3D EFFECT FOR TOP FEATURE BOXES
*************************************/
.feature-item {
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    transform: translateZ(20px);
}

.feature-item:hover {
    transform: translateY(-10px) rotateX(6deg) rotateY(3deg) translateZ(30px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.55);
}

/* Icon Float 3D */
.feature-icon {
    transform: translateZ(40px);
    transition: 0.35s;
}

.feature-item:hover .feature-icon {
    transform: translateZ(60px) rotateY(10deg);
}

/*************************************
    3D EFFECT FOR WHY-CHOOSE-US COUNTERS
*************************************/
.feature .flex-column {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.45),
                inset 0 0 12px rgba(255,255,255,0.12);
    transform: translateZ(20px);
}

.feature .flex-column:hover {
    transform: translateZ(40px) rotateX(6deg) rotateY(5deg);
    box-shadow: 0 25px 40px rgba(0,0,0,0.65),
                inset 0 0 18px rgba(255,255,255,0.2);
}

/*************************************
    3D EFFECT PROGRESS BAR
*************************************/
.progress {
    height: 12px;
    border-radius: 25px;
    background: rgba(255,255,255,0.2);
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.4);
}

.progress-bar {
    background: linear-gradient(45deg, #007bff, #00d0ff);
    box-shadow: 0 0 15px #00aaff;
}

/*************************************
    3D EFFECT FOR SERVICE BOXES
*************************************/
.service-item {
    transform: translateZ(20px);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    
    backdrop-filter: blur(5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.service-item:hover {
    transform: translateY(-12px) rotateX(6deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.65);
}

/* Image zoom effect */
.service-item img {
    transition: 0.4s ease-in-out;
}

.service-item:hover img {
    transform: scale(1.08);
}

/* Text lift */
.service-text {
    transform: translateZ(30px);
    transition: 0.3s;
}

.service-item:hover .service-text {
    transform: translateZ(50px);
}
/* Initial hidden state */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px) scale(0.95) rotateX(6deg);
    transition: all 0.9s ease;
    transition-delay: 0.2s;
}

/* When animation becomes visible */
.scroll-animate.active {
    opacity: 1;
    transform: translateY(0px) scale(1) rotateX(0deg);
}
/* Make all service cards same height */
.service-item {
    height: 100%;
}

.service-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fixed image height */
.service-inner img {
    height: 210px;
    object-fit: cover;
    width: 100%;
}

/* Text grows evenly */
.service-text {
    flex-grow: 1;
}

/* Keep Read More button at bottom */
.service-inner a.btn {
    margin-top: auto;
}
.service-text p {
    font-size: 14px;
    line-height: 1.6;
}

.read-more-btn {
    background: none;
    border: none;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.read-more-btn:hover {
    text-decoration: underline;
}