/********** Template CSS **********/
:root {
    --primary: #FDA12B;
    --secondary: #8D9297;
    --light: #F8F9FA;
    --dark: #182333;
}

.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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    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.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 25px 0;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--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-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 25px;
        border-top: 1px solid #EEEEEE;
    }
}

@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;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    background: rgba(0, 0, 0, .65);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--dark);
    border: 15px solid var(--dark);
    border-radius: 50px;
}

.carousel-caption .breadcrumb-item+.breadcrumb-item::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem;
        height: 3rem;
        border-width: 12px;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
.facts-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
}

.facts-overlay h1 {
    font-size: 120px;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.facts-overlay a:hover {
    color: var(--primary) !important;
}


/*** Service ***/
.service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--primary);
    opacity: 0;
    transition: .5s;
}

.service-item:hover .service-text::before {
    height: 100%;
    opacity: 1;
}

.service-text * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-text * {
    color: #FFFFFF !important;
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team-text {
    position: absolute;
    width: 75%;
    bottom: 30px;
    left: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    width: 100%;
}

.team-text * {
    transition: .5s;
}

.team-item:hover .team-text * {
    letter-spacing: 2px;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    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: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.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);
}

/*** Split-Screen Accordion Design ***/
.services-showcase-wrapper {
    width: 100%;
    height: 600px;
    background: #000;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.split-screen-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.split-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-panel:hover {
    flex: 2;
    z-index: 10;
}

.split-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: brightness(0.6);
}

.split-panel:hover .split-bg {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(24, 35, 51, 0.4) 0%, rgba(24, 35, 51, 0.9) 100%);
    transition: background 0.6s ease;
    z-index: 1;
}

.split-panel:hover .split-overlay {
    background: linear-gradient(135deg, rgba(253, 161, 43, 0.9) 0%, rgba(24, 35, 51, 0.95) 100%);
}

.split-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
}

.split-icon {
    width: 90px;
    height: 90px;
    background: rgba(253, 161, 43, 0.2);
    border: 3px solid #FDA12B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.split-panel:hover .split-icon {
    background: #FDA12B;
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 0 40px rgba(253, 161, 43, 1);
}

.split-icon i {
    font-size: 42px;
    color: #FDA12B;
    transition: color 0.6s ease;
}

.split-panel:hover .split-icon i {
    color: #fff;
}

.split-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    transition: all 0.6s ease;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
}

.split-panel:hover .split-title {
    font-size: 30px;
    letter-spacing: 4px;
}

.split-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
    max-width: 280px;
    line-height: 1.6;
}

.split-panel:hover .split-desc {
    opacity: 1;
    transform: translateY(0);
}

.split-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 110px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    transition: all 0.6s ease;
    z-index: 2;
}

.split-panel:hover .split-number {
    color: rgba(253, 161, 43, 0.2);
    font-size: 130px;
}

.split-arrow {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
    z-index: 2;
}

.split-panel:hover .split-arrow {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.split-arrow i {
    font-size: 36px;
    color: #FDA12B;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-showcase-wrapper {
        height: auto;
    }
    
    .split-screen-container {
        flex-wrap: wrap;
    }
    
    .split-panel {
        flex: 1 1 50%;
        min-height: 400px;
    }
    
    .split-panel:hover {
        flex: 1 1 50%;
    }
    
    .split-title {
        font-size: 22px;
    }
    
    .split-panel:hover .split-title {
        font-size: 24px;
    }
    
    .split-number {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .split-panel {
        flex: 1 1 100%;
        min-height: 350px;
    }
    
    .split-icon {
        width: 75px;
        height: 75px;
    }
    
    .split-icon i {
        font-size: 34px;
    }
    
    .split-title {
        font-size: 20px;
    }
    
    .split-desc {
        font-size: 14px;
    }
    
    .split-number {
        font-size: 70px;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .split-panel {
        min-height: 320px;
    }
    
    .split-content {
        padding: 30px 20px;
    }
    
    .split-icon {
        width: 65px;
        height: 65px;
    }
    
    .split-icon i {
        font-size: 30px;
    }
    
    .split-title {
        font-size: 18px;
    }
    
    .split-number {
        font-size: 60px;
    }
}


/* Move Experience Badge to Bottom-Left on Mobile */
@media (max-width: 991.98px) {
    .position-relative.overflow-hidden.ps-5.pt-5 {
        padding-left: 0 !important;
        padding-top: 0 !important;
    }
    
    .position-relative.overflow-hidden.ps-5.pt-5 > .position-absolute.top-0.start-0 {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
    }
}


/* Mobile Dropdown Styles */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        display: none;
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
    
    .navbar .dropdown-menu.show {
        display: block;
    }
    
    .navbar .dropdown-submenu .dropdown-menu {
        display: none;
        position: static;
        margin-left: 15px;
    }
    
    .navbar .dropdown-submenu .dropdown-menu.show {
        display: block;
    }
    
    .navbar .dropdown-item {
        color: #212529;
        padding: 10px 20px;
    }
    
    .navbar .dropdown-submenu > .dropdown-toggle::after {
        transform: rotate(-90deg);
        float: right;
    }
}


/* Desktop Dropdown Submenu Styles */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }
    
    .dropdown-submenu > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: 0;
        margin-left: 0;
        display: none;
        min-width: 220px;
        border-radius: 0.25rem;
        background-color: #fff;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > .dropdown-toggle::after {
        content: "▶";
        float: right;
        font-size: 0.75rem;
        margin-left: 0.5rem;
        margin-top: 0.3rem;
        border: none;
    }
    
    .dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        color: #212529;
        transition: background-color 0.2s;
    }
    
    .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #fda12b;
    }
    

}



/* Force Desktop Submenu Hover to Work */
@media (min-width: 992px) {
    .navbar .dropdown-submenu:hover > .dropdown-menu,
    .navbar .dropdown-submenu .dropdown-menu:hover {
        display: block !important;
    }
    
    /* Add padding to create hover bridge between parent and submenu */
    .navbar .dropdown-submenu > .dropdown-menu {
        margin-left: -5px;
        padding-left: 5px;
    }
    
    /* Keep submenu open when hovering over it */
    .navbar .dropdown-submenu > .dropdown-menu:hover {
        display: block !important;
    }
}
