/********** Template CSS **********/

:root {
    --bg: #0b0f14;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-2: rgba(255, 255, 255, 0.10);
    --text: rgba(255, 255, 255, 0.92);
    --text-2: rgba(255, 255, 255, 0.78);
    --muted: rgba(255, 255, 255, 0.62);
    --muted-2: rgba(255, 255, 255, 0.50);
    --border: rgba(255, 255, 255, 0.10);
}

body {
    background: var(--bg);
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
}

p,
li,
.lead {
    color: var(--text-2);
}

small,
.text-muted,
.text-secondary {
    color: var(--muted) !important;
}

.text-body {
    color: var(--text-2) !important;
}

a {
    color: var(--text);
}

a:hover {
    opacity: 0.9;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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: 600;
    transition: .5s;
    border-radius: 50px;
}

.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: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: none;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu {
        background-color: var(--bs-dark);
    }

    .navbar .dropdown-menu .dropdown-item {
        color: var(--bs-white);
    }

    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item:focus {
        color: var(--bs-primary);
        background-color: rgba(228, 23, 121, .15);
    }

    .navbar .dropdown-menu .dropdown-item.active,
    .navbar .dropdown-menu .dropdown-item:active {
        color: var(--bs-white);
        background-color: var(--bs-primary);
    }

    .navbar .nav-item:hover .dropdown-menu,
    .navbar .nav-item .dropdown-menu.show {
        display: block;
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-brand .site-logo {
    height: 54px;
    width: auto;
    display: block;
}

@media (max-width: 991.98px) {
    .navbar-brand .site-logo {
        height: 42px;
    }
}

.footer .footer-logo {
    height: 90px;
    width: auto;
    display: inline-block;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-caption .title {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-caption .title-center {
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-caption {
        padding-top: 88px;
        padding-left: 16px;
        padding-right: 16px;
    }

    #header-carousel .carousel-caption .title.mx-5,
    #header-carousel .carousel-caption .title.px-5 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .carousel-caption .title {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .carousel-caption .display-1,
    .carousel-caption .display-2 {
        font-size: clamp(1.9rem, 5.6vw, 2.6rem);
        line-height: 1.15;
        letter-spacing: 0.5px;
        word-break: normal;
    }

    .carousel-caption p.fs-5 {
        font-size: 1rem;
        line-height: 1.5;
    }

    .carousel-caption .rounded-pill {
        white-space: normal;
        text-align: center;
        padding: 0.5rem 1rem !important;
        line-height: 1.4;
    }

    .carousel-caption .d-flex.flex-column.flex-sm-row {
        width: 100%;
    }

    .carousel-caption .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .carousel-caption .title h5 {
        font-size: 0.95rem;
    }

    .carousel-caption .display-1,
    .carousel-caption .display-2 {
        font-size: clamp(1.45rem, 6.8vw, 2rem);
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 520px;
    }

    .carousel-caption {
        padding-top: 80px;
    }

    #header-carousel .carousel-caption {
        justify-content: flex-start;
        gap: 0.75rem;
        padding-bottom: 1.25rem;
    }

    #header-carousel .carousel-caption .title,
    #header-carousel .carousel-caption .title-center,
    #header-carousel .carousel-caption .title-left,
    #header-carousel .carousel-caption .title-right {
        width: 100%;
        overflow: visible;
    }

    #header-carousel .carousel-caption .title h1,
    #header-carousel .carousel-caption .title h2 {
        padding: 0 0.25rem;
        overflow-wrap: break-word;
    }

    #header-carousel .carousel-caption .display-1,
    #header-carousel .carousel-caption .display-2 {
        font-size: clamp(1.3rem, 5.6vw, 1.85rem);
        line-height: 1.2;
        letter-spacing: 0;
        word-break: break-word;
        hyphens: auto;
        text-wrap: balance;
    }

    #header-carousel .carousel-caption p.fs-5 {
        font-size: 0.95rem;
        margin-bottom: 1.25rem !important;
    }

    #header-carousel .carousel-caption .rounded-pill {
        font-size: 0.85rem;
    }

    #header-carousel .carousel-caption .btn {
        padding: 0.65rem 1.25rem;
    }
}

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../assets/img/hero-xscooters-1920x1080.jpg) top center no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 140px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding-top: 110px;
        padding-bottom: 2rem !important;
    }

    .page-header .display-4 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    .page-header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-header .breadcrumb {
        flex-wrap: wrap;
        gap: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-caption {
        align-items: center;
        text-align: center;
    }

    #header-carousel .carousel-caption .title h1,
    #header-carousel .carousel-caption .title h2 {
        padding: 0;
    }

    #header-carousel .carousel-caption .d-inline-flex {
        justify-content: center;
    }
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}

@media (max-width: 576px) {
    .title {
        margin-bottom: 1.5rem;
        overflow: visible;
    }

    .title .title-left,
    .title .title-center,
    .title .title-right {
        width: 100%;
        overflow: visible;
    }

    .title h1,
    .title h2 {
        font-size: clamp(1.35rem, 5.6vw, 1.9rem);
        line-height: 1.25;
    }

    .title h5 {
        font-size: 0.85rem;
        letter-spacing: 0.06em;
    }

    .title .title-left h5::after,
    .title .title-center h5::before,
    .title .title-center h5::after,
    .title .title-right h5::before {
        width: 120%;
    }
}

@media (max-width: 576px) {
    .price-list li.d-flex {
        display: grid !important;
        grid-template-columns: 1fr;
        row-gap: 0.3rem;
        line-height: 1.45;
    }

    .price-list li.d-flex > span {
        display: block;
        width: 100%;
    }

    .price-list li.d-flex > strong {
        display: block;
        justify-self: end;
        text-align: right;
    }

    .price-list li + li {
        margin-top: 0.6rem;
    }
}

@media (max-width: 576px) {
    .service-item .service-img {
        padding: 1.5rem !important;
    }

    .service-item .service-text {
        padding: 1.5rem !important;
    }

    .service-item .service-text h3 {
        font-size: 1.25rem;
    }
}

/* Ensure text is light on bg-secondary background */
.bg-secondary {
    color: var(--text-2);
}

.bg-secondary .title h5,
.bg-secondary .title h2,
.bg-secondary .title h1,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6 {
    color: var(--text) !important;
}

.bg-secondary p,
.bg-secondary li {
    color: var(--text) !important;
}

.bg-secondary .text-body,
.bg-secondary span:not(.text-white):not(.text-primary) {
    color: var(--text-2) !important;
}

.bg-secondary .text-dark {
    color: var(--text) !important;
}

.bg-secondary .text-muted,
.bg-secondary .text-secondary {
    color: var(--muted) !important;
}

.bg-secondary .border-dark,
.bg-secondary .border-secondary {
    border-color: var(--border) !important;
}

.bg-secondary .border-white {
    border-color: var(--border) !important;
}

.bg-dark .text-dark {
    color: var(--text) !important;
}

.bg-dark .text-muted,
.bg-dark .text-secondary {
    color: var(--muted) !important;
}

.bg-dark .border-dark,
.bg-dark .border-secondary {
    border-color: var(--border) !important;
}

/* Panel surfaces on dark theme */
.bg-dark.rounded,
.bg-dark.rounded-1,
.bg-dark.rounded-2,
.bg-dark.rounded-3,
.bg-dark.rounded-4,
.bg-dark.rounded-5,
.bg-dark.rounded-pill,
.bg-dark.p-3,
.bg-dark.p-4,
.bg-dark.p-5 {
    background-color: var(--panel) !important;
    border: 1px solid var(--border);
    color: var(--text);
}

.bg-dark.rounded p,
.bg-dark.rounded li {
    color: var(--text) !important;
}

.list-group-item.bg-dark,
.accordion-item.bg-dark {
    background-color: var(--panel) !important;
    border-color: var(--border) !important;
    color: var(--text-2);
}

.accordion-button.bg-dark {
    background-color: var(--panel) !important;
    color: var(--text);
}

.form-control.bg-dark,
.form-control.bg-secondary {
    background-color: var(--panel-2) !important;
    color: var(--text);
    border: 1px solid var(--border);
}

.form-control.bg-dark::placeholder,
.form-control.bg-secondary::placeholder {
    color: var(--muted-2);
}

.form-floating > label {
    color: var(--muted);
}

#apie {
    background-color: var(--panel) !important;
    color: var(--text-2);
}

#apie h1,
#apie h2,
#apie h3,
#apie h4,
#apie h5,
#apie h6 {
    color: var(--text) !important;
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        text-align: center;
    }
}


/*** Team ***/
.team-item {
    position: relative;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.team-item .team-body img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
	background-image: url(../img/footer-bg.png);
	background-position: 0px 0px;
    background-repeat: repeat-x;
	animation: footerAnimatedBg 50s linear infinite;
}

/* Language Switcher */
.language-switcher {
    margin-right: 15px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
}

.language-switcher a {
    text-decoration: none;
    transition: color 0.3s;
}

.language-switcher a:hover {
    color: #E41779 !important;
}

/* Mobile fallback: keep critical mobile layout even if extra CSS file is not loaded */
:root {
    --nav-height: 72px;
}

.hero-text--mobile {
    display: none;
}

@media (max-width: 991.98px) {
    html.nav-open,
    body.nav-open {
        overflow: hidden;
        height: 100%;
        touch-action: none;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2200;
        min-height: var(--nav-height);
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(8px);
    }

    .navbar .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar .navbar-collapse {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        width: 100%;
        min-height: calc(100vh - var(--nav-height));
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        overflow-x: hidden;
        background: rgba(13, 13, 13, 1);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1rem 1.25rem 1.5rem;
    }

    .navbar .navbar-collapse.show {
        display: flex;
        flex-direction: column;
    }

    .navbar .navbar-nav {
        gap: 0.35rem;
        width: 100%;
    }

    .navbar .navbar-nav .nav-link,
    .navbar .dropdown-item {
        padding: 0.6rem 0;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
        text-transform: none;
        letter-spacing: 0.01em;
    }

    .navbar .language-switcher-mobile {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
    }

    .navbar .language-switcher-mobile a {
        color: var(--bs-white);
        text-transform: uppercase;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.03em;
    }

    .navbar .navbar-mobile-register {
        width: 100%;
        margin-top: 0.9rem;
    }

    .navbar .navbar-collapse > .d-none.d-lg-flex {
        display: flex !important;
        flex-direction: column;
        gap: 0.9rem;
        width: 100%;
        margin-top: 0.9rem;
    }

    .navbar .navbar-collapse > .d-none.d-lg-flex .language-switcher {
        margin-right: 0;
        width: max-content;
        align-self: center;
    }

    .navbar .navbar-collapse > .d-none.d-lg-flex .btn {
        width: 100%;
    }

    .navbar .navbar-collapse > .d-none.d-lg-flex .btn.btn-outline-primary {
        background: var(--bs-primary);
        border-color: var(--bs-primary);
        color: var(--bs-white);
    }

    #header-carousel .carousel-caption {
        padding-top: calc(var(--nav-height) + 1.8rem);
    }

    .page-header {
        padding-top: calc(var(--nav-height) + 2.5rem);
    }
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        min-height: 720px;
    }

    #header-carousel .carousel-caption {
        justify-content: flex-start !important;
        gap: 0.7rem;
        padding-bottom: 1.2rem;
    }

    #header-carousel .carousel-caption .display-1,
    #header-carousel .carousel-caption .display-2 {
        font-size: clamp(30px, 8.2vw, 52px);
        line-height: 1.04;
    }

    #header-carousel .hero__title {
        max-width: 15.5ch;
        margin-inline: auto;
        letter-spacing: 0.01em;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: none;
    }

    #header-carousel .hero__subtitle {
        max-width: 23ch;
        margin-inline: auto;
        margin-bottom: 0.8rem !important;
        overflow-wrap: anywhere;
    }

    #header-carousel .hero__badge {
        max-width: 26ch;
        white-space: normal;
        line-height: 1.35;
        text-align: left;
        margin-bottom: 0.7rem !important;
    }

    #header-carousel .carousel-caption .d-flex.flex-column.flex-sm-row > .btn:nth-child(n + 2) {
        display: none;
    }

    .hero-text--desktop {
        display: none !important;
    }

    .hero-text--mobile {
        display: inline !important;
    }

    #header-carousel .hero__subtitle .hero-text--mobile {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .hero-text--mobile {
        display: none !important;
    }

    .hero-text--desktop {
        display: inline !important;
    }
}
