/********** Modern Template CSS **********/
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --secondary: #00D4FF;
    --light: #F8FAFC;
    --dark: #0F172A;
    --gray: #64748B;
    --success: #10B981;
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 102, 255, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 102, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    background: #FFFFFF;
    color: var(--dark);
}

html {
    scroll-behavior: smooth;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: none !important;
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.4);
    animation: none;
}

.back-to-top i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%) !important;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

#spinner .spinner-grow {
    background: var(--gradient-primary) !important;
    animation: spinner-grow 0.75s linear infinite;
}

@keyframes spinner-grow {
    0% {
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: var(--transition);
    border-radius: 12px;
    padding: 12px 28px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

.btn.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.3);
}

.btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn.btn-primary:hover::before {
    left: 100%;
}

.btn.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn.btn-secondary {
    color: #FFFFFF;
}

.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 {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.sticky-top.shadow-sm {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

.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 {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    outline: none;
    position: relative;
    transition: var(--transition);
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
    
    /* Mobile Hamburger Menu */
    .navbar-toggler {
        border: 2px solid var(--primary);
        border-radius: 8px;
        padding: 8px 12px;
        transition: var(--transition);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
        outline: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 102, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
@media(min-width: 600px){
    .videooBack{
        height: 400px;   
        width: 756px;
        margin-top: 10px;
    }
}

/* Mobile Video Optimization */
@media(max-width: 599px){
    .videooBack{
        height: 200px !important;
        width: 100% !important;
        margin: 10px 0 !important;
        border-radius: 15px !important;
        border-width: 3px !important;
    }
}

/* Tablet Video */
@media(min-width: 600px) and (max-width: 991px){
    .videooBack{
        height: 300px !important;
        width: 100% !important;
    }
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-logo {
    width: 55px;
    height: 55px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 102, 255, 0.3));
    object-fit: contain;
}

.navbar .navbar-logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.navbar .navbar-brand h1 {
    background: var(--gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    animation: gradientShift 4s ease infinite;
    transition: var(--transition);
    margin: 0;
}

.navbar .navbar-brand:hover h1 {
    transform: scale(1.05);
    letter-spacing: 0px;
}

.navbar a.btn {
    height: auto;
    border-radius: 25px;
    padding: 12px 30px !important;
}

.navbar.sticky-top {
    top: -100px;
    transition: var(--transition);
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        border-radius: 15px;
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        transition: var(--transition);
    }
    
    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
        color: var(--primary);
        padding-left: 25px;
    }
}

/* Mobile Dropdown Menu */
@media (max-width: 991.98px) {
    .navbar .nav-item .dropdown-menu {
        border: none;
        border-radius: 10px;
        padding: 10px 0;
        margin-top: 5px;
        background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
        box-shadow: inset 0 2px 8px rgba(0, 102, 255, 0.05);
    }
    
    .dropdown-item {
        padding: 10px 20px;
        border-radius: 8px;
        margin: 3px 10px;
        transition: var(--transition);
    }
    
    .dropdown-item:active,
    .dropdown-item:focus {
        background: var(--gradient-primary);
        color: #FFFFFF;
    }
}


/*** Header ***/
.header-carousel .owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: url(../img/header-page.jpg) top center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Service ***/
.service-item {
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 255, 0.08) !important;
    background: #FFFFFF !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-item:hover::after {
    opacity: 1;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item .rounded-circle {
    animation: float 3s ease-in-out infinite;
}
/*** Modern Headings ***/
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-primary);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: gradientShift 5s ease infinite;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--dark);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
}

h2:hover::after {
    width: 100%;
}

h4 {
    color: var(--dark);
    font-weight: 700;
    transition: var(--transition);
}

h4:hover {
    color: var(--primary);
    transform: translateX(5px);
}

p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 16px;
}

/*** Modern Checkmarks ***/
.far.fa-check-circle,
.fa.fa-check {
    color: var(--success) !important;
    font-size: 20px;
    animation: bounceIn 1s ease;
    display: inline-block;
    transition: var(--transition);
}

.far.fa-check-circle:hover,
.fa.fa-check:hover {
    transform: scale(1.2) rotate(360deg);
}

/*** Feature Icons ***/
.feature-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.feature-icon-box:hover {
    transform: scale(1.1) rotate(5deg);
}

.butt-DR {
    display: flex;
    left: 70%;
    position: relative;
    border-radius: 25px;
}

.butt-DR a {
    text-decoration: none;
}

@media (max-width: 900px) {
    .butt-DR {
        display: flex;
        left: 35%;
        position: relative;
    }
}

.CardALer {
    font-size: medium !important;
    transition: var(--transition);
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    padding: 8px 20px;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.CardALer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-item .rounded-circle {
    background: linear-gradient(135deg, #F0F7FF 0%, #E6F2FF 100%) !important;
    transition: var(--transition);
    position: relative;
}

.service-item:hover .rounded-circle {
    background: var(--gradient-primary) !important;
    animation: pulse 2s infinite;
}

.service-item:hover .rounded-circle i {
    color: #FFFFFF !important;
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-item .btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    border-radius: 25px;
    white-space: nowrap;
    overflow: hidden;
    transition: var(--transition);
    color: #FFFFFF;
    font-weight: 600;
}

.service-item .btn i {
    color: #FFFFFF !important;
}

.service-item:hover .btn {
    width: 150px;
    padding-right: 20px;
}

/*** Topbar ***/
.topbar {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    animation: slideInDown 0.8s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topbar small {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
}

.topbar small:hover {
    color: var(--primary);
}

.topbar .btn-sm-square {
    transition: var(--transition);
    background: #FFFFFF !important;
    box-shadow: var(--shadow-sm);
}

.topbar .btn-sm-square:hover {
    background: var(--gradient-primary) !important;
    transform: translateY(-3px) rotate(360deg);
    box-shadow: var(--shadow-md);
}

.topbar .btn-sm-square:hover i {
    color: #FFFFFF !important;
}

/*** About Section ***/
.about-img {
    position: relative;
}

.about-img img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease;
}

.about-img img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.25);
}

.about-img img:last-child {
    border: 5px solid #FFFFFF;
    animation: float 4s ease-in-out infinite;
}

.about-img img:last-child:hover {
    animation-play-state: paused;
}

/*** Modern Cards ***/
.bg-light {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%) !important;
    border-radius: 20px !important;
}

.rounded-pill {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: var(--primary) !important;
    font-weight: 600;
    border: 1px solid rgba(0, 102, 255, 0.2) !important;
    padding: 8px 24px !important;
}

/*** Video Background ***/
.videooBack {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 5px solid #FFFFFF;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.videooBack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 102, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.videooBack:hover::before {
    opacity: 1;
}

.videooBack:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
}

/*** Appointment Section ***/
.appointment-card {
    border-radius: 20px;
    padding: 30px;
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.appointment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 255, 0.05), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.appointment-card:hover::before {
    top: -60%;
    right: -60%;
}

.appointment-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
}

.appointment-card .rounded-circle {
    background: linear-gradient(135deg, #F0F7FF 0%, #E6F2FF 100%) !important;
    animation: pulse 3s infinite;
}

.appointment-card:hover .rounded-circle {
    animation: heartbeat 1s infinite;
}

/*** Modern Inputs ***/
input.form-control,
textarea.form-control,
select.form-select {
    border: 2px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    transition: var(--transition);
    background: #FFFFFF;
}

input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    outline: none;
}
/*** Feature ***/
.bg-primary {
    background: var(--gradient-primary) !important;
}

.feature-text {
    position: relative;
}

.feature-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 255, 0.08);
    position: relative;
}

.team-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.team-item:hover::before {
    opacity: 1;
}

.team-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
}

.team-item img {
    position: relative;
    top: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: grayscale(0%);
}

.team-item:hover img {
    top: -30px;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: var(--transition);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%) !important;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: var(--transition);
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.team-item:hover .team-social .btn {
    opacity: 1;
    transform: translateY(0);
}

.team-item .team-social .btn:nth-child(1) {
    transition-delay: 0.1s;
}

.team-item .team-social .btn:nth-child(2) {
    transition-delay: 0.2s;
}

.team-item .team-social .btn:nth-child(3) {
    transition-delay: 0.3s;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--gradient-primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--shadow-md);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
   
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
   
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer {
    background: var(--gradient-dark) !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 255, 0.05), transparent);
    animation: rotateBackground 20s linear infinite;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.footer h5 {
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer h5:hover::after {
    width: 100%;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.footer .btn.btn-social::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.footer .btn.btn-social:hover::before {
    width: 100%;
    height: 100%;
}

.footer .btn.btn-social:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: var(--transition);
    position: relative;
    padding-left: 20px;
}

.footer .btn.btn-link::before {
    position: absolute;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    left: 0;
    transition: var(--transition);
}

.footer .btn.btn-link:hover::before {
    left: 5px;
    color: var(--primary);
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    padding-left: 25px;
    letter-spacing: 1px;
    box-shadow: none;
    transform: translateX(5px);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/*** Container Spacing ***/
.container-xxl {
    padding-top: 80px;
    padding-bottom: 80px;
}

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/*** Modern Section Titles ***/
.text-center.mx-auto.mb-5 {
    position: relative;
    padding-bottom: 20px;
}

.text-center.mx-auto.mb-5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: expandWidth 2s ease-in-out infinite alternate;
}

@keyframes expandWidth {
    0% {
        width: 40px;
    }
    100% {
        width: 80px;
    }
}

.text-center.mx-auto.mb-5 .rounded-pill {
    animation: bounceIn 1s ease;
    display: inline-block;
}

.text-center.mx-auto.mb-5 h1 {
    animation: fadeInUp 1s ease;
}

/*** Modern Scrollbar ***/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/*** Selection Style ***/
::selection {
    background: var(--primary);
    color: #FFFFFF;
}

/*** Modern Animations ***/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 102, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.wow {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInUp {
    animation-name: fadeInUp;
}

.zoomIn {
    animation-name: zoomIn;
}

.bounceIn {
    animation-name: bounceIn;
}

.rotateIn {
    animation-name: rotateIn;
}

/*** Hover Effects ***/
.service-item,
.team-item,
.appointment-card {
    will-change: transform;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/*** Modern Badge ***/
.badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.badge-primary {
    background: var(--gradient-primary);
    color: #FFFFFF;
}

::-moz-selection {
    background: var(--primary);
    color: #FFFFFF;
}

/*** Responsive Typography ***/
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 15px;
    }
    
    .container-xxl {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .container-xxl {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/*** Page Load Animations ***/
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Stagger animation for service items */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

/* Stagger animation for team items */
.team-item:nth-child(1) { animation-delay: 0.1s; }
.team-item:nth-child(2) { animation-delay: 0.2s; }
.team-item:nth-child(3) { animation-delay: 0.3s; }
.team-item:nth-child(4) { animation-delay: 0.4s; }

/*** Icon Animations ***/
.fa, .fab, .far, .fas {
    transition: var(--transition);
}

i.text-primary {
    animation: pulse 3s infinite;
}

/*** Enhanced Interactions ***/
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
    transition: var(--transition);
}

/*** Mobile Optimization ***/
@media (max-width: 991.98px) {
    /* Navbar Mobile */
    .navbar {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem !important;
    }
    
    .navbar-logo {
        width: 45px !important;
        height: 45px !important;
    }
    
    .navbar-collapse {
        background: #FFFFFF;
        padding: 20px;
        margin-top: 10px;
        border-radius: 15px;
        box-shadow: var(--shadow-md);
    }
    
    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    }
    
    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar .navbar-nav .nav-link::after {
        display: none;
    }
    
    /* Mobile Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg-square,
    .btn-square,
    .btn-sm-square {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Service Cards Mobile */
    .service-item {
        margin-bottom: 20px;
    }
    
    .service-item .btn {
        width: 120px !important;
    }
    
    /* Team Cards Mobile */
    .team-item {
        margin-bottom: 30px;
    }
    
    .team-item:hover img {
        top: -20px;
    }
    
    .team-item:hover .team-text {
        margin-top: -40px;
    }
    
    /* Video Mobile */
    .videooBack {
        height: 250px !important;
        border-radius: 15px !important;
    }
    
    /* About Images Mobile */
    .about-img img {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .about-img img:last-child {
        margin-top: 0 !important;
    }
    
    /* Appointment Cards */
    .appointment-card {
        padding: 20px !important;
        margin-bottom: 15px;
    }
    
    .appointment-card .rounded-circle {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Feature Section */
    .feature-text {
        padding: 30px 20px !important;
    }
    
    /* Footer Mobile */
    .footer {
        text-align: center;
    }
    
    .footer .btn.btn-link {
        text-align: center;
        padding-left: 0 !important;
    }
    
    .footer .btn.btn-link::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    /* Typography Mobile */
    .rounded-pill {
        font-size: 13px;
        padding: 6px 16px !important;
    }
    
    /* Topbar Hide on Mobile */
    .topbar {
        display: none !important;
    }
    
    /* Buttons More Doctor */
    .butt-DR {
        left: 50% !important;
        transform: translateX(-50%);
        margin-top: 20px;
    }
    
    /* Service Item */
    .service-item {
        padding: 30px 20px !important;
    }
    
    /* Back to Top */
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px !important;
        height: 45px !important;
    }
}

@media (max-width: 575.98px) {
    /* Extra Small Devices */
    .navbar-brand h1 {
        font-size: 1.2rem !important;
    }
    
    .navbar-logo {
        width: 40px !important;
        height: 40px !important;
    }
    
    .service-item {
        padding: 25px 15px !important;
    }
    
    .team-text h5 {
        font-size: 1rem;
    }
    
    .appointment-card h5 {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer .btn.btn-social {
        width: 35px;
        height: 35px;
        margin: 5px;
    }
    
    /* Form Controls */
    input.form-control,
    textarea.form-control,
    select.form-select {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/*** Touch Optimization ***/
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .service-item:hover,
    .team-item:hover,
    .appointment-card:hover {
        transform: none;
    }
    
    /* Increase tap targets */
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Remove complex animations on mobile */
    * {
        animation-duration: 0.3s !important;
    }
}

/*** Landscape Orientation ***/
@media (max-width: 991.98px) and (orientation: landscape) {
    .videooBack {
        height: 300px !important;
    }
    
    .container-xxl {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/*** Mobile Grid Optimization ***/
@media (max-width: 767.98px) {
    .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }
    
    .row.g-5 {
        --bs-gutter-y: 2rem;
    }
    
    /* Full width cards on mobile */
    .col-lg-4,
    .col-lg-3,
    .col-lg-6,
    .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/*** Mobile-Specific Utilities ***/
.mobile-center {
    text-align: center;
}

@media (max-width: 767.98px) {
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-mt-3 {
        margin-top: 1rem !important;
    }
    
    .mobile-mb-3 {
        margin-bottom: 1rem !important;
    }
}

/*** Smooth Mobile Scrolling ***/
@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 70px;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/*** Mobile Image Optimization ***/
@media (max-width: 767.98px) {
    img {
        height: auto;
        max-width: 100%;
    }
    
    .team-item img {
        height: 250px !important;
        width: 100% !important;
        object-fit: cover;
    }
}

/*** Mobile Performance ***/
@media (max-width: 767.98px) {
    /* Reduce animation complexity on mobile */
    .service-item::after,
    .team-item::before,
    .appointment-card::before,
    .videooBack::before {
        display: none;
    }
    
    /* Simplify gradients */
    .bg-primary {
        background: var(--primary) !important;
    }
    
    /* Disable float animations on mobile */
    .service-item .rounded-circle,
    .about-img img:last-child {
        animation: none !important;
    }
}

/*** Mobile Footer Optimization ***/
@media (max-width: 767.98px) {
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer .d-flex {
        justify-content: center !important;
    }
    
    .footer::before {
        display: none;
    }
}

/*** Tablet Optimization ***/
@media (min-width: 768px) and (max-width: 991.98px) {
    .service-item {
        margin-bottom: 25px;
    }
    
    .team-item {
        margin-bottom: 25px;
    }
    
    .navbar-brand h1 {
        font-size: 1.4rem !important;
    }
}

/*** High DPI Displays ***/
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .service-item,
    .team-item,
    .appointment-card {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/*** Mobile Text Optimization ***/
@media (max-width: 767.98px) {
    /* Improve readability on mobile */
    body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    p {
        margin-bottom: 1rem;
    }
    
    /* Mobile spacing */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-3 {
        margin-top: 1rem !important;
    }
    
    .pt-5, .pb-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/*** Mobile Call-to-Action ***/
@media (max-width: 767.98px) {
    /* Make CTA buttons more prominent */
    .btn-primary {
        width: 100%;
        margin-bottom: 10px;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    /* Appointment section mobile */
    .appointment-card h5 {
        font-size: 1.1rem !important;
        margin-bottom: 0;
    }
    
    .appointment-card p {
        font-size: 13px;
        margin-bottom: 5px;
    }
}

/*** Mobile Navigation Enhancement ***/
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
        padding: 12px 15px;
        border-radius: 8px;
        margin: 5px 0;
    }
    
    .navbar a.btn {
        width: 100%;
        margin-top: 15px;
        text-align: center;
        justify-content: center;
    }
}

/*** Mobile Accessibility ***/
@media (max-width: 767.98px) {
    /* Increase tap target sizes */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Mobile-friendly forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Better spacing for touch */
    .service-item .btn,
    .team-item .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/*** Print Styles ***/
@media print {
    .navbar,
    .topbar,
    .back-to-top,
    .footer .btn-social {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container-xxl {
        width: 100%;
        max-width: none;
    }
}