:root {
    --primary-color: #75B79F;
    --secondary-color: #2C3E50;
}

.text-main {
    color: var(--primary-color) !important;
}

body {
    margin-top: 140px;
}

html[lang="ar"] body {
    font-family: "Cairo", sans-serif;
}

html[lang="he"] body {
    font-family: "Heebo", serif;
}

.hero-section {
    background-color: #F6F6F6;
    overflow: hidden;
}

.btn-custom-green {
    background: rgb(106, 226, 131) linear-gradient(to right, #6ce381, #52c69b, #6ce381, #52c69b);
    background-size: 400% 100%;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.05);
    color: white;
    padding: 12px 30px;
    font-size: 20px;
    border: 2px solid #6ce381;
    font-weight: 800;
}

.btn-custom-green:hover {
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    font-size: 20px;
    font-weight: 800;
}

.btn-outline-custom:hover {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.fw-bold {
    font-weight: 800 !important;
}

.bg-light {
    background-color: #F6F6F6 !important;
}

.logo-caption {
    text-align: center;
    color: #5D7F96;
    font-size: 11.2px;
    font-style: normal;
    line-height: 1.5em;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1140px;
    }
}

.navbar .auth-button {
    background: rgb(106, 226, 131) linear-gradient(to right, #6ce381, #52c69b, #6ce381, #52c69b);
    background-size: 400% 100%;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.05);
    transition: 1.2s ease background !important;
    padding: 12px 24px;
    font-size: 17px;
    fill: #FFFFFF;
    color: #FFFFFF;
    border-radius: 50px 50px 50px 50px;
    text-decoration: none;
    font-weight: 800;
}

.nav-link {
    color: #000000;
    fill: #000000;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 17px;
    font-weight: 400;
}

footer p {
    color: #555;
    font-size: 16px;
}

footer p a {
    color: #555;
    text-decoration: none;
}

footer p a:hover {
    color: #555;
}

.title-border {
    border-right: 8px solid #71D2D7;
    padding-right: 15px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image {
    max-width: 115px;
    height: auto;
    margin-top: -40px;
}

.bg-light-custom {
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}



.pricing-card {
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    background-image: linear-gradient(150deg, #6DE381 0%, #31D19E 100%);
    color: white;
}

.pricing-card.secondary {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.floating-element {
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

#contact {
    background-image: linear-gradient(0deg, #F6F6F6 0%, #f8f9fa 100%);
}

#contact .contact-card {
    background: white;
    padding: 80px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0px 100px 0px 0px;
}

#contact .form-control {
    border: 0;
    border-radius: 0;
    padding: 12px;
    border-bottom: 2px solid #000000;
    margin-bottom: 15px;
}


#contact .btn-submit {
    background: #75B79F;
    color: white;
    font-weight: 800;
    transition: all 0.3s ease;
    font-size: 24px;
    border-style: solid;
    border-width: 0 0 0 0;
    border-radius: 0 0 50px 0;
    padding: 15px 50px 15px 35px;
}

#contact .btn-submit:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

#contact .illustration {
    position: absolute;
    top: -50px;
    left: 50px;
    width: 200px;
}


.screenshots-wrap {
    position: relative;
    margin-bottom: 100px;
}

#screens-1 .screenshots-wrap {
    margin-top: 78px;
}

.slick-slide {
    width: 298px;
}

.slick-item {
    opacity: 0.75;
    -webkit-transition: all 450ms ease-in-out;
    -moz-transition: all 450ms ease-in-out;
    -o-transition: all 450ms ease-in-out;
    -ms-transition: all 450ms ease-in-out;
    transition: all 450ms ease-in-out;
}

.slick-item img {
    max-height: 650px;
    padding-left: 20px;
    margin-top: -10px;
}


.slick-item.slick-current {
    opacity: 1;
}

.iphone-frame {
    position: absolute;
    top: -21px;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.iphone-frame img {
    max-width: 350px;
    max-height: 665px;
    margin: 0 auto;
    display: block;
}

.features-img-bg {
    margin: 50px 50px 50px 0px;
}

@media (max-width: 1024px) {
    body {
        margin-top: 80px;
    }

    .btn-outline-custom,
    .btn-custom-green {
        font-size: 15px;
    }

    .navbar-brand img {
        width: 90px;
    }

    .features-img-bg {
        margin: 0;
        height: 370px;
    }

    #contact .illustration {
        width: 200px;
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
    }
}


.py-container {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}


.btn-primary {

    background: linear-gradient(to right, #6ce381, #52c69b, #6ce381, #52c69b);
    background-size: 400% 100%;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.05);
    transition: background 1.2s ease, box-shadow 0.3s ease;
    padding: 12px 24px;
    font-size: 17px;
    color: #FFFFFF;
    border-radius: 50px;
    font-weight: 800;
    border: 2px solid #6ce381;
}

.btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #6ce381;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
    background-position: 100% 0;
    box-shadow: 0 0 10px rgba(106, 226, 131, 0.5);
    border: 2px solid #6ce381;
    outline: none;
    border-color: #6ce381 !important;
}

.navbar {
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

.navbar-hidden {
    transform: translateY(-100%);
}

.mobile-nav-close,
.site-navigation-backdrop,
.mobile-customer-actions {
    display: none;
}

/* Floating shapes in designs section */
#designs .position-absolute {
    transition: all 0.3s ease;
    z-index: 10;
}

#designs .position-absolute img {
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
}

#designs .position-absolute.animating {
    pointer-events: none;
    z-index: 1000;
}

#designs .position-absolute:hover img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.btn-outline-secondary {
    border: 2px solid #52c69b;
    color: #52c69b;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 800;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: linear-gradient(to right, #6ce381, #52c69b);
    color: #ffffff;
    border-color: #52c69b;
}

.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background: linear-gradient(to right, #6ce381, #52c69b);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(106, 226, 131, 0.5);
    outline: none;
    border-color: #52c69b;
}


.form-control:not(.form-control) {
    padding: 14px .75rem;
    border: none;
    border-bottom: 3px solid;
    border-color: #52c69b;
    border-radius: 0px;
}

.form-control:not(.form-control):hover {
    border-bottom-color: #6ce381;
}


.form-control:not(.form-control):focus,
.form-control:not(.form-control):active {
    border-bottom-color: #6ce381;
    box-shadow: none;
    outline: none;
}

.nav {
    --bs-nav-link-color: #6ce381;
    --bs-nav-link-hover-color: #6ce381;
}

.nav-pills .nav-link.active {
    color: #ffffff;
    background: linear-gradient(to right, #6ce381, #52c69b);
    background-color: #6ce381 !important;
    box-shadow: 0 0 10px rgba(106, 226, 131, 0.5);
    font-weight: 800;
}


.nav-pills .nav-link {
    border-radius: 50px;
}

.white-space-wrap {
    white-space: pre-wrap;
}

.swiper-slide.swiper-slide-prev img {
    transform: perspective(900px) rotateY(30deg) scale(0.9);
}

.swiper-slide.swiper-slide-next img {
    transform: perspective(900px) rotateY(-30deg) scale(0.9);
}

.swiper-slide img {
    border-radius: 10px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    transition: transform 0.5s ease-in-out;

}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* Improved Why Us Section */
.why-us-section {
    background-color: #F6F6F6;
    padding: 80px 0;
}

/* Feature Card */
.why-us-section .feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    min-height: 160px;
    position: relative;
    overflow: visible;
}

.why-us-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(117, 183, 159, 0.25);
}

/* Feature Image (no shadow inside card) */
.why-us-section .feature-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    flex-shrink: 0;
    box-shadow: none !important;  /* remove shadow */
    transition: all 0.3s ease;
}

.why-us-section .feature-card:hover .feature-image {
    transform: scale(1.05);
    box-shadow: none !important;
}

/* Text */
.why-us-section .feature-text {
    flex: 1;
    padding-right: 15px;
}

.why-us-section .feature-text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 700;
}

/* Add short description for first 3 cards only */
.feature-card.with-desc .feature-text p::after {
    content: "هذا النص عبارة عن شرح مختصر يوضح الفائدة الرئيسية لهذه الميزة بشكل بسيط وسريع.";
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* Title styling */
.why-us-section .section-title {
    margin-bottom: 20px;
}

.why-us-section .section-subtitle {
    color: #666;
    margin-bottom: 50px;
}

/* Make right column start higher */
@media (min-width: 992px) {
    .why-us-section .col-lg-6:nth-child(3) {
        margin-top: -40px;
    }
}

/* Accent line */
.why-us-section .feature-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6ce381 0%, #52c69b 100%);
    border-radius: 0 20px 20px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-us-section .feature-card:hover::before {
    opacity: 1;
}

/* RTL support */
html[dir="rtl"] .why-us-section .feature-card::before {
    right: auto;
    left: 0;
    border-radius: 20px 0 0 20px;
}

html[dir="rtl"] .why-us-section .feature-text {
    padding-left: 15px;
    padding-right: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .why-us-section .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        min-height: auto;
    }
    .why-us-section .feature-image {
        margin-bottom: 20px;
        width: 100px;
        height: 100px;
    }
    .why-us-section .feature-text {
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .why-us-section {
        padding: 50px 0;
    }
    .why-us-section .feature-card {
        padding: 25px 15px;
    }
    .why-us-section .feature-image {
        width: 90px;
        height: 90px;
    }
    .why-us-section .feature-text p {
        font-size: 16px;
    }
}

/* Mobile navigation: keep page content stable and present navigation as an accessible side sheet. */
@media (max-width: 991px) {
    body {
        margin-top: 76px;
        overflow-x: clip;
    }

    body.site-navigation-open {
        overflow: hidden;
    }

    .navbar {
        min-height: 76px;
        padding: 8px 0;
        z-index: 1050;
    }

    .navbar .container {
        min-height: 60px;
    }

    .navbar-brand img {
        width: 106px;
    }

    .navbar-toggler {
        width: 44px;
        height: 44px;
        padding: 0;
        display: inline-grid;
        place-items: center;
        border: 1px solid #d9e2e8;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(44, 62, 80, .08);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 .25rem rgba(82, 198, 155, .22);
    }

    .navbar-collapse.collapse.show,
    .navbar-collapse.collapsing {
        position: fixed;
        z-index: 1052;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        height: 100dvh !important;
        min-height: 100dvh;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: calc(env(safe-area-inset-top) + 5.4rem) 1rem calc(env(safe-area-inset-bottom) + 1.25rem);
        background: #fff;
        box-shadow: -18px 0 42px rgba(30, 50, 66, .20);
    }

    html[dir="ltr"] .navbar-collapse.collapse.show,
    html[dir="ltr"] .navbar-collapse.collapsing {
        right: auto;
        left: 0;
        box-shadow: 18px 0 42px rgba(30, 50, 66, .20);
    }

    .navbar-collapse .navbar-nav {
        width: 100%;
        margin: 0 !important;
    }

    .navbar-collapse .nav-item {
        margin: 0 !important;
    }

    .navbar-collapse .nav-link {
        display: flex;
        align-items: center;
        min-height: 50px;
        padding: .75rem 1rem;
        border-bottom: 1px solid #edf1f3;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 700;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:focus-visible {
        color: #2c3e50;
        background: #f3faf7;
    }

    .navbar-collapse .dropdown-menu {
        position: static;
        margin: .25rem 0 .5rem;
        border: 0;
        background: #f8fafb;
    }

    .navbar-collapse .auth-button {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 52px;
        margin-top: 1rem;
        padding: .75rem 1rem;
        font-size: 16px;
    }

    .navbar-collapse .customer-menu-dropdown {
        display: none;
    }

    .mobile-customer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .65rem;
        width: 100%;
        margin-top: 1.25rem;
        padding: .9rem;
        border: 1px solid #e2ece8;
        border-radius: 16px;
        background: #f6fbf9;
    }

    .mobile-customer-name {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: .65rem;
        min-width: 0;
        padding-bottom: .2rem;
        color: #263b4a;
        font-size: 16px;
        font-weight: 800;
    }

    .mobile-customer-name > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-customer-avatar {
        display: inline-grid;
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        place-items: center;
        border-radius: 50%;
        color: #fff;
        background: linear-gradient(135deg, #52c69b, #75b79f);
        font-size: 14px;
    }

    .mobile-customer-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        min-height: 44px;
        padding: .65rem .5rem;
        border-radius: 10px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
    }

    .mobile-customer-profile {
        color: #226c5b;
        border: 1px solid #bce5d7;
        background: #fff;
    }

    .mobile-customer-logout {
        color: #a73f48;
        border: 1px solid #f0c8cc;
        background: #fff;
    }

    .mobile-nav-close {
        position: absolute;
        top: calc(env(safe-area-inset-top) + 1rem);
        left: 1rem;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 50%;
        color: #2c3e50;
        background: #f0f5f6;
        font-size: 20px;
        display: inline-grid;
        place-items: center;
    }

    .site-navigation-backdrop {
        position: fixed;
        /* The navbar creates its own stacking context; keep the backdrop below it so the side sheet remains interactive. */
        z-index: 1049;
        inset: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        background: rgba(22, 38, 50, .46);
        transition: opacity .2s ease, visibility .2s ease;
    }

    .site-navigation-backdrop.is-visible {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-hidden {
        transform: translateY(0);
    }

    footer {
        padding-top: 2.25rem !important;
    }

footer .row > .col {
        padding-top: .35rem;
        padding-bottom: .35rem;
    }
}

/* Site footer */
.site-footer {
    position: relative;
    overflow: hidden;
    color: #d9e7e9;
    background: #102c3a;
    padding: 2.75rem 0 1rem;
}

.site-footer::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -300px;
    left: -150px;
    border-radius: 50%;
    background: rgba(82, 198, 155, .12);
    filter: blur(4px);
    pointer-events: none;
}

.site-footer .container {
    position: relative;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 1.5rem;
}

.site-footer-brand img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: .65rem;
    filter: brightness(0) invert(1);
}

.site-footer-brand p {
    max-width: 300px;
    margin: 0;
    color: #afc5ca;
    font-size: 13px;
    line-height: 1.7;
}

.site-footer-section h2 {
    margin: .15rem 0 .7rem;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.site-footer-link,
.site-footer-website {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: fit-content;
    margin: 0 0 .5rem;
    color: #c6d8dc;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.site-footer-link i {
    width: 18px;
    color: #6ce381;
    text-align: center;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
    color: #fff;
}

.site-footer-website {
    padding: .7rem .85rem;
    border: 1px solid rgba(137, 209, 189, .36);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    transition: background .2s ease, border-color .2s ease;
}

.site-footer-website:hover,
.site-footer-website:focus-visible {
    color: #fff;
    border-color: #6ce381;
    background: rgba(108, 227, 129, .16);
}

.site-footer-website i {
    color: #6ce381;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(202, 225, 225, .16);
    color: #a7c0c4;
    font-size: 13px;
}

.site-footer-development {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #dcebed;
}

.site-footer-development img {
    width: 27px;
    height: 27px;
}

@media (max-width: 991px) {
    .site-footer {
        padding: 2rem 0 .9rem !important;
    }

    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1rem;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 1rem;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-section h2 {
        margin-top: 0;
    }

    .site-footer-web {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding-top: .1rem;
    }

    .site-footer-web h2 {
        margin: 0;
        font-size: 14px;
        white-space: nowrap;
    }

    .site-footer-web .site-footer-website {
        margin: 0;
        padding: .5rem .65rem;
        font-size: 12px;
    }

    .site-footer-bottom {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 1.25rem;
        font-size: 12px;
    }
}
