/* Apple-inspired frontend skin for Bootstrap 5 */

:root {
    --ui-bg: #f5f5f7;
    --ui-surface: rgba(255, 255, 255, 0.78);
    --ui-surface-solid: #ffffff;
    --ui-surface-soft: #fbfbfd;
    --ui-text: #1d1d1f;
    --ui-muted: #6e6e73;
    --ui-line: rgba(29, 29, 31, 0.1);
    --ui-line-strong: rgba(29, 29, 31, 0.18);
    --ui-blue: #0071e3;
    --ui-blue-strong: #005ecb;
    --ui-green: #00a36c;
    --ui-pink: #ff375f;
    --ui-ink: #111827;
    --ui-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --ui-shadow-soft: 0 10px 35px rgba(15, 23, 42, 0.08);
    --ui-radius-lg: 28px;
    --ui-radius-md: 20px;
    --ui-radius-sm: 14px;
    --ui-blur: blur(22px) saturate(180%);
}

* {
    box-sizing: border-box;
    letter-spacing: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42%, #eef2f8 100%);
    color: var(--ui-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ui-blue);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease, opacity .2s ease;
}

a:hover,
a:focus {
    color: var(--ui-blue-strong);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clearfix {
    clear: both;
}

.container {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
}

.section-padding,
.about-section,
.service-section,
.pricing-plan,
.contact-info,
.message-section {
    padding: 96px 0;
}

.section-heading {
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--ui-text);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
    text-transform: none;
}

.section-heading h2 span {
    display: inline-block;
    margin-left: .2em;
    color: var(--ui-blue);
}

.section-heading .head-img,
.head-img {
    display: none;
}

.btn,
button,
input[type="submit"],
.custom-btn,
.custom-btn2,
.package-plan .btn,
.message-section .btn,
.pricing-plan a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #0a84ff, #006edb);
    color: #fff !important;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    box-shadow: 0 12px 28px rgba(0, 113, 227, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.custom-btn:hover,
.custom-btn2:hover,
.package-plan .btn:hover,
.message-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 113, 227, .34);
}

.btn-default {
    background: var(--ui-text);
}

input,
select,
textarea,
.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    color: var(--ui-text);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, .03);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea,
textarea.form-control {
    min-height: 140px;
    padding: 16px;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: rgba(0, 113, 227, .55);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(0, 113, 227, .12);
}

/* Header */
.header {
    position: relative;
    z-index: 20;
}

.header-top {
    background: #0f172a;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.header-top .container,
.header-top .row {
    min-height: 42px;
    align-items: center;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-end;
}

.contact-mathod ul,
.social-icon ul,
.footer-content ul,
.services ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.contact-mathod li,
.header-top .social-icon li {
    color: rgba(255, 255, 255, .78);
}

.contact-mathod i,
.header-top .social-icon i {
    color: #7dd3fc;
}

.header-bottom {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--ui-line);
    background: rgba(251, 251, 253, .78);
    backdrop-filter: var(--ui-blur);
    -webkit-backdrop-filter: var(--ui-blur);
}

.menu-fixed {
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.main-menu,
.navbar,
.navbar-default {
    min-height: 76px;
    margin: 0;
    border: 0;
    background: transparent;
}

.navbar .container,
.main-menu .container {
    display: flex;
    align-items: center;
}

.navbar-header {
    display: flex;
    align-items: center;
    min-height: 76px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    height: auto;
    padding: 0;
}

.navbar-brand img {
    width: 176px;
    max-height: 58px;
    object-fit: contain;
}

.navbar-collapse {
    flex: 1;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.navbar-default .navbar-nav > li > a,
.navbar-nav > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--ui-text);
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > .active > a {
    background: rgba(0, 113, 227, .1);
    color: var(--ui-blue);
}

.navbar-toggle,
.navbar-toggler {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid var(--ui-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
}

.navbar-toggle .icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--ui-text);
}

/* Hero / slider */
.slider {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.carousel-inner {
    position: relative;
}

.carousel-inner > .item,
.carousel-inner > .carousel-item {
    display: none;
    position: relative;
    min-height: 680px;
}

.carousel-inner > .item.active,
.carousel-inner > .carousel-item.active {
    display: block;
}

.slider .item img,
.slider .carousel-item img {
    width: 100%;
    min-height: 680px;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
}

.slider .overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 10, 24, .74) 0%, rgba(4, 10, 24, .38) 48%, rgba(4, 10, 24, .08) 100%),
        linear-gradient(180deg, rgba(4, 10, 24, .05), rgba(4, 10, 24, .62));
}

.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    color: #fff;
}

.banner-content h1,
.banner-content h2 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 78px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: .96;
}

.banner-content p {
    max-width: 650px;
    color: rgba(255, 255, 255, .82);
    font-size: 21px;
}

.carousel-control1,
.carousel-control2 {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.carousel-control1 {
    left: 24px;
}

.carousel-control2 {
    right: 24px;
}

/* Content cards */
.about-section {
    background: var(--ui-bg);
}

.about-content,
.about-img,
.feature-item,
.service-item,
.person-item,
.counter-up,
.package-plan,
.person-info-inner,
.contact-item,
.form-box,
.message-section form {
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-soft);
    backdrop-filter: var(--ui-blur);
    -webkit-backdrop-filter: var(--ui-blur);
}

.about-content {
    padding: 34px;
    color: var(--ui-muted);
    font-size: 18px;
}

.about-img {
    overflow: hidden;
    padding: 12px;
}

.about-img img {
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.feature-section,
.team-section,
.counter-section,
.client-section,
.message-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, #0f172a 0%, #1f2937 50%, #0b3b5f 100%);
    color: #fff;
}

.feature-section .overlay,
.team-section .overlay,
.counter-section .overlay,
.client-section .overlay,
.message-section .overlay {
    padding: 96px 0;
    background: rgba(3, 7, 18, .18);
}

.feature-section .section-heading h2,
.team-section .section-heading h2,
.counter-section .section-heading h2,
.client-section .section-heading h2,
.message-section .section-heading h2 {
    color: #fff;
}

.section-wrapper {
    display: block;
}

.feature-item,
.service-item,
.person-item,
.package-plan {
    position: relative;
    height: calc(100% - 28px);
    margin-bottom: 28px;
    padding: 30px;
    color: var(--ui-text);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-item:hover,
.service-item:hover,
.person-item:hover,
.package-plan:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 113, 227, .25);
    box-shadow: var(--ui-shadow);
}

.feature-icon,
.service-icon,
.item-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 113, 227, .14), rgba(0, 163, 108, .14));
    color: var(--ui-blue);
}

.feature-icon i,
.service-icon i,
.item-icon i {
    font-size: 24px;
}

.feature-item h3,
.service-item h3,
.person-info h3,
.package-plan h3,
.contact-item h2 {
    margin: 0 0 10px;
    color: var(--ui-text);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.feature-item p,
.service-item p,
.person-info p,
.package-plan li,
.contact-item p {
    color: var(--ui-muted);
}

.service-section,
.pricing-plan {
    background: #fbfbfd;
}

.person-img {
    overflow: hidden;
    margin: -14px -14px 22px;
    border-radius: 24px;
}

.person-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.person-info h4 {
    margin: 0 0 14px;
    color: var(--ui-blue);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.person-info .social-icon ul {
    margin-top: 20px;
}

.person-info .social-icon a,
.footer-widget .social-icon a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 113, 227, .1);
    color: var(--ui-blue);
}

.counter-up {
    padding: 34px;
    text-align: center;
}

.counter-up i {
    color: #7dd3fc;
    font-size: 42px;
}

.counter-value {
    display: block;
    margin: 16px 0 4px;
    color: #fff;
    font-size: 48px;
    font-weight: 850;
}

.counter-up p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-weight: 700;
}

.count-img {
    display: none;
}

/* Pricing */
.package-plan {
    overflow: hidden;
    padding: 0 0 30px;
    text-align: center;
}

.planing-head {
    padding: 34px 24px 28px;
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #fff;
}

.planing-head h3 {
    color: #fff;
    text-transform: uppercase;
}

.pricing-currency {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    margin-top: 14px;
}

.pricing-currency .currency {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 800;
}

.pricing-currency .price {
    font-size: 58px;
    font-weight: 850;
    line-height: .95;
}

.package-plan .feature {
    padding: 26px 30px;
}

.package-plan li {
    padding: 11px 0;
    border-bottom: 1px solid var(--ui-line);
}

/* Client slider */
.person-info-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px;
    text-align: center;
}

.person-info-inner h3 {
    color: #fff;
}

.person-info-inner p {
    color: rgba(255, 255, 255, .76);
}

.ratting i {
    color: #ffd60a;
}

.client-img {
    overflow: hidden;
    width: 92px;
    height: 92px;
    margin: 20px auto 0;
    border: 3px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
}

.client-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact and footer */
.contact-info {
    background: #fbfbfd;
}

.contact-item {
    min-height: 220px;
    padding: 34px;
    text-align: center;
}

.message-section form {
    padding: 32px;
}

footer {
    background: #0f172a;
    color: rgba(255, 255, 255, .76);
}

.footer-top .overlay {
    padding: 78px 0 56px;
}

.footer-bottom-widget {
    margin-bottom: 30px;
}

.footer-widget,
.footer-bottom {
    color: rgba(255, 255, 255, .76);
}

.footer-widget .footer-logo img {
    max-width: 170px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.footer-widget p,
.footer-widget li,
.footer-bottom p {
    color: rgba(255, 255, 255, .72);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 22px 0;
}

.footer-content ul {
    justify-content: flex-end;
}

.footer-content a {
    color: rgba(255, 255, 255, .76);
    font-weight: 700;
}

.scrollUp,
#return-to-top,
.scrollup {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .88);
    color: #fff;
    box-shadow: var(--ui-shadow-soft);
    backdrop-filter: blur(14px);
}

/* Old Bootstrap 3 compatibility on Bootstrap 5 */
.row:before,
.row:after,
.container:before,
.container:after {
    display: table;
    content: " ";
}

.row:after,
.container:after {
    clear: both;
}

.col-md-offset-3 {
    margin-left: 25%;
}

.col-sm-offset-2 {
    margin-left: 16.666667%;
}

.col-sm-offset-3,
.col-md-offset-3 {
    margin-left: 25%;
}

.col-md-offset-6 {
    margin-left: 50%;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

/* Login forms inside dashboard pages */
.top-content {
    min-height: 100vh;
    padding: 88px 0;
    background:
        linear-gradient(135deg, rgba(0, 113, 227, .13), rgba(0, 163, 108, .1)),
        #f5f5f7;
}

.form-box {
    overflow: hidden;
    padding: 0;
}

.form-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #111827, #1d4ed8);
    color: #fff;
}

.form-top h3,
.form-top p {
    color: #fff;
}

.form-bottom {
    padding: 30px;
}

@media (max-width: 991px) {
    .container {
        width: min(100% - 28px, 920px);
    }

    .navbar .container,
    .main-menu .container {
        flex-wrap: wrap;
    }

    .navbar-toggle,
    .navbar-toggler {
        display: inline-grid;
        place-items: center;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        padding: 0 0 18px;
    }

    .navbar-collapse.collapse:not(.show) {
        display: none;
    }

    .navbar-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        padding-top: 14px;
    }

    .navbar-default .navbar-nav > li > a,
    .navbar-nav > li > a {
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, .78);
    }

    .header-top .row,
    .header-left,
    .header-right {
        justify-content: center;
        text-align: center;
    }

    .carousel-inner > .item,
    .carousel-inner > .carousel-item,
    .slider .item img,
    .slider .carousel-item img {
        min-height: 560px;
    }

    .col-sm-offset-2,
    .col-sm-offset-3,
    .col-md-offset-3,
    .col-md-offset-6 {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .section-padding,
    .about-section,
    .service-section,
    .pricing-plan,
    .contact-info,
    .message-section,
    .feature-section .overlay,
    .team-section .overlay,
    .counter-section .overlay,
    .client-section .overlay,
    .message-section .overlay {
        padding: 68px 0;
    }

    .carousel-control1,
    .carousel-control2 {
        display: none;
    }

    .banner-content {
        align-items: flex-end;
        padding-bottom: 70px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .banner-content h1,
    .banner-content h2 {
        font-size: 42px;
    }

    .footer-content ul,
    .contact-mathod ul,
    .social-icon ul {
        justify-content: center;
    }
}
