/* Consistent, joyful palette */

:root {
    --primary: #46b8da;
    --secondary: #0d6efd;
    --accent: #5C636A;
    --dark: #2d2d2d;
    --light-bg: #fafafa;
    --text-muted: #555;
}

body {
    font-family: "Segoe UI", sans-serif;
    color: var(--dark);
    background: var(--light-bg);
    line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .float-start {
    float: right !important;
}

[dir="rtl"] .float-end {
    float: left !important;
}

[dir="rtl"] .dropdown-menu-end {
    left: 0 !important;
    right: auto !important;
}

.row>* {
    padding: 0px !important;
}

a {
    text-decoration: none;
}

.navbar {
    background: #fff;
    max-width: 100vw;
    /* overflow-x: hidden; */
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.nav-link {
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    height: auto;
    line-height: normal;
}


/* --- BUTTONS --- */

.btn-custom {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.btn-primary,
.btn-light,
.btn-outline-secondary {
    border-radius: 0.5rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    color: #fff;
}

.btn-primary:hover,
.btn-light:hover,
.btn-outline-secondary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary);
    color: #fff;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000;
    border: none;
}


/* .login-btn {} - removed empty ruleset */


/* --- SECTION TITLES --- */

.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000000;
}


/* Removed composes property as it's not standard CSS */

.hero-title {
    color: rgb(200, 239, 255);
}

.highlight-section-title {
    color: rgb(200, 239, 255);
}

.pricing-section-title {
    color: white;
}


/* --- CARDS/BOXES --- */

.custom-card,
.feature-box.bg-white,
.discover-card,
.gradient-border {
    border-radius: 10px;
    box-shadow: 0 0 10px #46b8da;
    background: #fff;
}

.feature-box.bg-white {
    background: rgba(70, 184, 218, 0.5) !important;
    padding: 0.8rem !important;
    border-radius: 0.9rem !important;
    border: 1.5px solid #0d6efd;
    box-shadow: 0 0 10px #46b8da !important;
}

.feature-card {
    background-color: #fff;
    color: #000;
    padding: 15px;
    border-radius: 10px;
    opacity: 0.7;
}

.discover-card {
    /*box-shadow: 0 8px 32px rgba(70, 184, 218, 0.18), 0 2.5px 0 #46b8da;*/
    border: 2px solid #e3f6fc;
    padding: 20px;
    /*margin-bottom: 32px;*/
    position: relative;
}

.pro-card-shadow {
    box-shadow: 0 0 20px #46b8da !important;
}


/* --- IMAGES --- */

img,
.discover-section-img,
.footer-logo,
.highlight-section-logo {
    max-width: auto;
    height: auto;
}

.highlight-section-logo {
    width: 200px;
    margin-top: 20px;
}

.footer-logo {
    width: 150px;
}

#integrations img {
    max-height: 50px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#integrations img:hover {
    opacity: 1;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.nav-link {
    color: var(--dark) !important;
    display: flex;
    align-items: center;
    height: auto;
    line-height: normal;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
}

.btn-primary:hover {
    background-color: #e25555;
}

.btn-outline-secondary {
    border-color: #46b8da;
    color: #46b8da;
}

.btn-outline-secondary:hover {
    background-color: #46b8da;
    color: #fff;
}


/* Navbar specific button alignment */

.navbar .btn {
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    height: auto;
    line-height: normal;
}


/* Ensure all nav items are vertically aligned */

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link,
.navbar-nav .btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
}


/* Hero */

.heroindex {
    padding: 5rem 1rem 5rem 1rem;
}

.hero {
    color: #fff;
    background-image: url('../images/sky_high.webp');
    background-repeat: repeat;
    background-size: auto;
}

.hero .btn-light {
    color: var(--primary);
    background: #fff;
    border: none;
}

.hero .btn-light:hover {
    opacity: 0.9;
}

.hero img.screenshot {
    max-width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}


/* Highlight */

.highlight-section {
    background-color: var(--primary);
    padding: 3rem 0;
    color: var(--dark);
}


/* Features */

#features .feature-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-box.bg-white {
    background: rgba(70, 184, 218, 0.5) !important;
    padding: 0.8rem !important;
    border-radius: 0.9rem !important;
    border: 1.5px solid #0d6efd;
    box-shadow: 0 0 10px #46b8da !important;
}

.feature-card {
    background-color: #fff;
    color: #000;
    padding: 15px;
    border-radius: 10px;
    opacity: 0.7;
}


/* Testimonials */

#testimonials {
    padding: 4rem 0;
}

#testimonialCarousel .carousel-item {
    text-align: center;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: perspective(1000px) rotateY(0deg) translateZ(0px);
}

#testimonialCarousel .carousel-item p {
    max-width: 500px;
    margin: 1rem auto;
    font-size: 1.1rem;
    color: var(--text-muted);
    background: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateZ(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(70, 184, 218, 0.2);
}

#testimonialCarousel .carousel-item small {
    display: block;
    margin-top: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: rgba(70, 184, 218, 0.9);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(70, 184, 218, 0.4), inset 0 2px 8px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(5px);
}

#testimonialCarousel .carousel-control-prev-icon:hover,
#testimonialCarousel .carousel-control-next-icon:hover {
    background-color: rgba(13, 110, 253, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.6), inset 0 2px 12px rgba(255, 255, 255, 0.4), 0 0 20px rgba(70, 184, 218, 0.8);
    border-color: rgba(255, 255, 255, 1);
}

#testimonialCarousel .carousel-control-prev-icon::before,
#testimonialCarousel .carousel-control-next-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    animation: rotateGlow 2s linear infinite;
    transition: opacity 0.3s ease;
}

#testimonialCarousel .carousel-control-prev-icon:hover::before,
#testimonialCarousel .carousel-control-next-icon:hover::before {
    opacity: 1;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* 3D Carousel transitions */

.carousel-fade .carousel-item {
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: perspective(1000px) rotateY(90deg) translateZ(-200px);
    backface-visibility: hidden;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg) translateZ(0px);
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    position: absolute;
    top: 0;
}

.carousel-fade .carousel-item-next:not(.carousel-item-start) {
    transform: perspective(1000px) rotateY(90deg) translateZ(-200px);
}

.carousel-fade .carousel-item-prev:not(.carousel-item-end) {
    transform: perspective(1000px) rotateY(-90deg) translateZ(-200px);
}

.carousel-fade .carousel-item-next:not(.carousel-item-start).active,
.carousel-fade .carousel-item-prev:not(.carousel-item-end).active {
    transform: perspective(1000px) rotateY(0deg) translateZ(0px);
}


/* 3D Hardware acceleration */

#testimonialCarousel {
    perspective: 1200px;
    transform-style: preserve-3d;
    will-change: transform;
}

#testimonialCarousel .carousel-inner {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.carousel-control-next,
.carousel-control-prev {
    top: 50% !important;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control-next:hover,
.carousel-control-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(70, 184, 218, 0.5);
    transform: translateY(-50%) scale(1.05);
}


/* Pricing */

#pricing .card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px !important;
    padding: 45px 10px 10px 10px !important;
    position: relative;
    overflow: visible;
}

#pricing .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* Enterprise Solution Card */

.enterprise-solution-card {
    border: 2px solid #e3f6fc;
    border-radius: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #ffffff 0%, #f8fcff 100%);
}

.enterprise-solution-card:hover {
    border-color: #46b8da;
    box-shadow: 0 10px 30px rgba(70, 184, 218, 0.2);
    transform: translateY(-2px);
}

.enterprise-solution-card .card-title {
    font-size: 1.5rem;
    line-height: 1.3;
}

.enterprise-solution-card .card-text {
    font-size: 1rem;
    line-height: 1.6;
}

.enterprise-solution-card .btn {
    white-space: nowrap;
    padding: 0.75rem 2rem;
    font-weight: 600;
}


/* Tablet responsive (768px - 1024px) */

@media (min-width: 768px) and (max-width: 1024px) {
    .enterprise-solution-card .card-body {
        padding: 2rem !important;
    }

    .enterprise-solution-card .card-title {
        font-size: 1.35rem;
    }

    .enterprise-solution-card .card-text {
        font-size: 0.95rem;
    }

    .enterprise-solution-card .btn {
        padding: 0.65rem 1.5rem;
    }
}


/* Desktop optimization */

@media (min-width: 1025px) {
    .enterprise-solution-card .row {
        align-items: center;
    }

    .enterprise-solution-card .card-title {
        margin-bottom: 0 !important;
    }

    .enterprise-solution-card .card-text {
        margin-bottom: 0 !important;
        padding-right: 1rem;
    }
}


/* FAQ */

.faq .accordion-button {
    background: #fff;
}


/* Footer */

footer {
    background: var(--dark);
    color: #ccc;
    padding: 2rem 0;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: #fff;
}

img {
    max-width: 100%;
}

.gradient-border {
    /*padding: 25px;*/
    background: transparent;
    background: rgba(50, 67, 154, 0.1);
    background-clip: padding-box;
    border-radius: 10px;
    box-shadow: 0 0 70px #46b8da;
    border: 2px solid #0d6efd;
    margin-top: 50px;
}

@keyframes flipRight3D {
    0% {
        transform: perspective(1000px) rotateY(0deg) translateZ(0px) scale(1);
        opacity: 1;
        filter: brightness(1);
    }

    25% {
        transform: perspective(1000px) rotateY(22deg) translateZ(-50px) scale(0.95);
        opacity: 0.8;
        filter: brightness(0.9);
    }

    50% {
        transform: perspective(1000px) rotateY(45deg) translateZ(-100px) scale(0.9);
        opacity: 0.6;
        filter: brightness(0.8);
    }

    75% {
        transform: perspective(1000px) rotateY(67deg) translateZ(-150px) scale(0.85);
        opacity: 0.4;
        filter: brightness(0.7);
    }

    100% {
        transform: perspective(1000px) rotateY(90deg) translateZ(-200px) scale(0.8);
        opacity: 0.2;
        filter: brightness(0.6);
    }
}

.carousel-item.flip-right {
    animation: flipRight3D 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity, filter;
}

@media (max-width: 576px) {
    .p-4 {
        padding: 10px 0px 5px 0px !important;
        margin: 0px !important;
    }

    .navbar .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Mobile spacing for navigation buttons */
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }

    .navbar-nav .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
}

.navbar.fixed-top {
    z-index: 1050;
}

#pricing {
    background: linear-gradient(90deg, #46b8da, #5bc0de, #0d6efd);
}


/* Discover Section Custom Styles */

/* Discover Section Refined Styles */
#discover {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#discover::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(70, 184, 218, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.discover-section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #2d2d2d;
    letter-spacing: -1px;
}

.discover-section-p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 5rem auto;
    color: #6c757d !important;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .discover-section-title {
        margin-bottom: 1rem;
    }

    .discover-section-p {
        font-size: 1.1rem;
        margin-bottom: 2rem !important;
    }
}


.discover-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    /*padding: 50px;*/
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

#discover .nav-tabs {
    border: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px !important;
    padding: 8px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#discover .nav-tabs .nav-link {
    background: transparent;
    color: #5C636A;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

#discover .nav-tabs .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

#discover .nav-tabs .nav-link:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

#discover .nav-tabs .nav-link.active {
    background: #ffffff;
    color: #0d6efd !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}

#discover .nav-tabs .nav-link.active i {
    color: #46b8da;
}

.image-overlay-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    /*aspect-ratio: 16 / 9;*/
    width: 100%;
}


.image-overlay-container img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-overlay-container:hover img {
    transform: scale(1.04);
}

.image-text-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .discover-card {
        padding: 15px;
    }

    #discover .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-center;
        width: 100%;
        scrollbar-width: none;
        background: transparent;
        padding: 4px 0;
        gap: 6px;
        margin-bottom: 15px !important;
    }

    #discover .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    #discover .nav-tabs .nav-link {
        background: rgba(0, 0, 0, 0.04);
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    #discover .nav-tabs .nav-link.active {
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
}



@media (max-width: 768px) {
    #discover {
        padding: 40px 0;
    }

    .discover-section-title {
        font-size: 1.8rem;
    }

    .discover-card {
        padding: 10px 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    #discover .nav-tabs .nav-link {
        font-size: 0;
        padding: 10px 20px;
        min-width: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #discover .nav-tabs .nav-link i {
        font-size: 1.25rem;
        margin: 0 !important;
    }


    .image-overlay-container {
        aspect-ratio: 1 / 1;
        min-height: 280px;
        border-radius: 20px;
    }

    .image-text-overlay {
        padding: 15px;
        font-size: 0.85rem;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0 0 20px 20px;
        /* background: linear-gradient(to top, rgba(13, 110, 253, 0.98), rgba(13, 110, 253, 0.85)); */
        backdrop-filter: blur(8px);
        border: none;
        text-align: center;
        line-height: 1.4;
    }

    .image-overlay-container {
        aspect-ratio: 16 / 9;
    }

}





/* specific mobile range (max-width: 768px) */

@media (max-width: 768px) {

    #discover .discover-card,
    #discover .tab-content {
        padding: 18px 6px;
    }

    #discover .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0;
    }

    /* Mobile navigation improvements */
    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    /*
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    */
    .navbar-nav .btn {
        margin: 0.5rem 0;
        /*min-width: 120px;*/
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
}


/* iPad and tablet devices (768px to 1024px) */

@media (min-width: 768px) and (max-width: 1024px) {
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-nav .btn {
        margin: 0.5rem 0.25rem;
        /*min-width: 130px;*/
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
}


/* iPad Pro and larger tablets (1024px to 1366px) */

@media (min-width: 1024px) and (max-width: 1366px) {
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-nav .btn {
        margin: 0.25rem 0.5rem;
        min-width: 120px;
    }
}


/* تحسين انتقالات التابز */

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smoother Tab Transitions */
#discover .tab-pane.fade {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
    opacity: 0;
}

#discover .tab-pane.fade.show.active {
    transform: translateY(0);
    opacity: 1;
}


.accordion-button {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    margin-bottom: 8px;
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: white;
    background-color: #46b8da;
    border: 1px solid #46b8da;
    box-shadow: 0 4px 12px rgba(70, 184, 218, 0.3);
}

.accordion-button:hover {
    background-color: #e3f2fd;
    border-color: #46b8da;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed):hover {
    background-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(70, 184, 218, 0.4);
}

.accordion-button:focus {
    border: 1px solid #46b8da;
    box-shadow: 0 0 0 3px rgba(70, 184, 218, 0.25);
    outline: none;
}

.accordion-body {
    background-color: rgba(54, 169, 216, 0.05);
    border: 1px solid #e3f2fd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px;
    margin-top: -8px;
    margin-bottom: 8px;
}


/* تخصيص أسهم accordion */

.accordion-button::after {
    background-image: none;
    content: "▼";
    font-size: 16px;
    font-weight: bold;
    color: #46b8da;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg) scale(1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.accordion-button:not(.collapsed)::after {
    background-image: none;
    content: "▲";
    color: white;
    transform: rotate(0deg) scale(1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.accordion-button:hover::after {
    color: #0d6efd;
    transform: scale(1.3) rotate(5deg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.accordion-button:not(.collapsed):hover::after {
    color: #ffffff;
    transform: scale(1.3) rotate(-5deg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


/* تأثير إضافي للأسهم عند النقر */

.accordion-button:active::after {
    transform: scale(0.9);
}

.accordion-button:not(.collapsed):active::after {
    transform: scale(0.9);
}

/* RTL Accordion Adjustments */

[dir="rtl"] .accordion-button {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .accordion-body {
    text-align: right;
    direction: rtl;
}

/* RTL Accordion mobile adjustments */
@media (max-width: 768px) {
    [dir="rtl"] #faq .accordion-button {
        text-align: right;
        direction: rtl;
        padding: 15px 20px;
    }

    [dir="rtl"] #faq .accordion-button::after {
        margin-left: 0;
        margin-right: auto;
    }

    [dir="rtl"] #faq .accordion-body {
        text-align: right;
        direction: rtl;
    }

    [dir="rtl"] #faq .section-title {
        direction: rtl;
    }
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000000;
}

.btn-primary:hover,
.btn-light:hover {
    background-color: #0d6efd;
    color: white;
}

.nav-link:hover {
    color: gray !important;
}

#header-massejli {
    top: 4px;
    position: relative;
}

.hero-lead {
    text-shadow: 0.5px 0.5px 0.5px rgb(0, 0, 0);
}

.highlight-section-border {
    border-bottom: 2px solid rgb(200, 239, 255);
    border-top: 2px solid rgb(200, 239, 255);
}

.highlight-section-subtitle {
    color: rgb(200, 239, 255);
}

.features-section-title {
    color: rgb(200, 239, 255);
}

.pricing-section-title {
    color: white;
}

.pro-card-shadow {
    box-shadow: 0 0 18px #ff8559 !important;
    border: 1px solid #ff8559 !important;
}





/* .faq-section-title - removed empty ruleset */

.footer-logo {
    width: 150px;
}

.bg-sky-high {
    background-image: url('../images/sky_high.webp');
}

.gradient-border-video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#testimonialCarousel .carousel-item img.rounded-circle {
    border-radius: 50% !important;
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: inline-block;
    transform: translateZ(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(70, 184, 218, 0.3);
    border: 3px solid rgba(70, 184, 218, 0.2);
}

.btn {
    margin-bottom: 15px !important;
}


/* Navbar specific button alignment */

.navbar .btn {
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    height: auto;
    line-height: normal;
}


/* Ensure all nav items are vertically aligned */

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link,
.navbar-nav .btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
}

.black-white-text {
    /*text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);*/
    text-shadow: 1px 1px 1px rgb(0, 156, 202);
}


/* Pro card light blue border on hover/touch */

.pro-card-light-border:hover,
.pro-card-light-border.touch-active {
    border-color: rgb(165, 165, 165) !important;
    box-shadow: hsl(223, 44.90%, 52.40%) 5px 5px 18px 18px !important;
    border-width: 2px !important;
    transition: border-color 0.3s ease;
}


/* Billing Toggle Styles */

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(70, 184, 218, 0.2);
}

.billing-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.billing-label.active {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 5px auto;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-discount 10s infinite;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff8559, #ffed4e);
    color: #2d2d2d;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: popular-pulse 2s ease-in-out infinite;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #fff;
}

.popular-badge i {
    font-size: 0.9rem;
    animation: star-twinkle 1.5s ease-in-out infinite;
}

@keyframes popular-pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    }
}

@keyframes star-twinkle {

    0%,
    100% {
        opacity: 1;
        transform: rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: rotate(20deg);
    }
}

.faqAccordion {
    min-height: 300px;
}

.pricing_ul {
    text-align: left;
    margin: auto;
}

[dir="rtl"] .pricing_ul {
    text-align: right;
}

.pricing_ul li {
    line-height: 2;
}

.pricing_item {
    font-weight: bold;
}

.pricing_credits {
    font-size: 1.5rem;
    font-weight: bold;
}

.princing_small {
    font-size: 0.8rem;
}


/* Fix for multiline discount badge text on tablets */

@media (min-width: 768px) and (max-width: 1024px) {
    .discount-badge {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        padding: 6px 10px;
        line-height: 1.3;
        border-radius: 8px;
        max-width: 180px;
        text-align: center;
    }
}


/* Additional fix for smaller tablets */

@media (min-width: 576px) and (max-width: 767px) {
    .discount-badge {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        border-radius: 6px;
        max-width: 150px;
        font-size: 0.7rem;
        text-align: center;
    }
}

@keyframes pulse-discount {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
    }
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-input {
    display: none;
}

.toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #46b8da, #0d6efd);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked+.toggle-label {
    background: rgba(70, 184, 218, 0.3);
    border-color: rgba(70, 184, 218, 0.5);
}

.toggle-input:checked+.toggle-label .toggle-slider {
    transform: translateX(30px);
    background: linear-gradient(135deg, #0d6efd, #46b8da);
    box-shadow: 0 4px 12px rgba(70, 184, 218, 0.4);
}

.toggle-label:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.toggle-input:checked+.toggle-label:hover {
    background: rgba(70, 184, 218, 0.4);
    border-color: rgba(70, 184, 218, 0.7);
}


/* Price transition animations */

.price-amount {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.billing-period {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#pwa-nav-install-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: gray;
}


/* ============================================
   MOBILE NAVBAR & LANGUAGE SUBMENU
   ============================================ */

/* Hide back button by default (desktop) */
.dropdown-back-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    /* Clean navbar collapse panel */
    .navbar-collapse {
        background: #fff;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 0.75rem 1rem 1.25rem;
        margin-top: 0.5rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
    }

    .navbar-nav .nav-link {
        justify-content: center;
        padding: 0.6rem 1rem;
        border-radius: 0.5rem;
        transition: background 0.2s;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(70, 184, 218, 0.08);
    }

    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
        margin: 0.25rem 0 !important;
    }

    .navbar-collapse .dropdown {
        width: 100%;
    }

    .navbar-collapse .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    /* Normal inline dropdown (when submenu is NOT active) */
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        border: 1px solid rgba(70, 184, 218, 0.2);
        box-shadow: none;
        border-radius: 0.5rem;
        max-height: 220px;
        overflow-y: auto;
        transform: none !important;
    }

    .navbar-collapse .dropdown-menu.show {
        display: block;
    }

    .navbar-collapse .dropdown-item {
        text-align: center;
        padding: 0.5rem 1rem;
        border-radius: 0.35rem;
    }

    .navbar-collapse .dropdown-item.active {
        background: linear-gradient(135deg, #46b8da, #0d6efd);
        color: #fff;
    }

    [dir="rtl"] .navbar-collapse .dropdown-menu {
        left: auto !important;
        right: auto !important;
    }

    .navbar-nav .nav-item a[href*="referral"] {
        justify-content: center;
    }

    /* ========== LANGUAGE SUBMENU MODE ========== */

    /* Hide all nav items except the language one */
    .navbar-collapse.lang-submenu-active .nav-item {
        display: none !important;
    }

    .navbar-collapse.lang-submenu-active .nav-item.nav-item-lang {
        display: flex !important;
    }

    /* Hide the language toggle button in submenu mode */
    .navbar-collapse.lang-submenu-active .nav-item.nav-item-lang .dropdown-toggle {
        display: none !important;
    }

    /* Expand the dropdown menu to fill the submenu */
    .navbar-collapse.lang-submenu-active .nav-item.nav-item-lang .dropdown-menu {
        display: block !important;
        position: static;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
        max-height: none;
        overflow: visible;
    }

    /* Back button (mobile only) */
    .dropdown-back-mobile {
        display: list-item;
    }

    .dropdown-back-mobile .back-btn {
        font-weight: 600;
        color: var(--dark);
        background: rgba(70, 184, 218, 0.08);
        border-bottom: 1px solid rgba(70, 184, 218, 0.15);
        border-radius: 0.5rem;
        margin-bottom: 0.35rem;
        text-align: left;
        padding: 0.65rem 1rem;
    }

    .dropdown-back-mobile .back-btn:hover {
        background: rgba(70, 184, 218, 0.18);
    }

    [dir="rtl"] .dropdown-back-mobile .back-btn {
        text-align: right;
    }

    [dir="rtl"] .dropdown-back-mobile .fa-arrow-left {
        transform: scaleX(-1);
        display: inline-block;
    }
}

/* Mobile responsive adjustments */

@media (max-width: 768px) {
    .billing-toggle {
        gap: 10px;
        padding: 12px 20px;
    }

    .billing-label {
        font-size: 0.9rem;
    }

    .discount-badge {
        font-size: 0.8rem;
    }

    .popular-badge {
        top: -12px;
        padding: 6px 16px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .popular-badge i {
        font-size: 0.8rem;
    }

    .toggle-switch {
        width: 50px;
        height: 26px;
    }

    .toggle-slider {
        width: 18px;
        height: 18px;
        top: 2px;
        left: 2px;
    }

    .toggle-input:checked+.toggle-label .toggle-slider {
        transform: translateX(24px);
    }
}


/* demo section */

.demo-form-container {
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-btn {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #46b8da 0%, #0d6efd 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(70, 184, 218, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0px !important;
    margin-left: 5px;
}

[dir="rtl"] .demo-btn {
    margin-left: 0;
    margin-right: 5px;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(70, 184, 218, 0.6);
    background: linear-gradient(135deg, #0d6efd 0%, #46b8da 100%) !important;
}

.demo-btn:active {
    transform: translateY(0);
}

.demo-features .badge {
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem !important;
    padding: 0.6rem 1rem !important;
    border-radius: 25px;
}

.demo-features .badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.demo-features .bg-success {
    background: linear-gradient(135deg, #28a745, #46b8da) !important;
}

.demo-features .bg-info {
    background: linear-gradient(135deg, #46b8da, #0d6efd) !important;
}

.demo-features .bg-warning {
    background: linear-gradient(135deg, #ffc107, #46b8da) !important;
    color: #fff !important;
}

.demo-features .bg-danger {
    background: linear-gradient(135deg, #dc3545, #0d6efd) !important;
}

.demo-examples button {
    transition: all 0.2s ease;
    border-radius: 20px;
    font-weight: 500;
    border: 2px solid #46b8da;
    color: #0d6efd !important;
    background: rgba(255, 255, 255, 0.8);
}

.demo-examples button:hover {
    background: linear-gradient(135deg, #46b8da, #0d6efd) !important;
    color: white !important;
    transform: translateY(-1px);
    border-color: #0d6efd;
    box-shadow: 0 3px 10px rgba(70, 184, 218, 0.3);
}

.demo-examples small {
    color: #6c757d !important;
    font-weight: 500;
}

.cta-text .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 0.75rem 2rem;
}

.cta-text .btn-light {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #46b8da !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-text .btn-light:hover {
    background: white !important;
    color: #764ba2 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

.cta-text .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
}

.cta-text .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: white !important;
}

.form-control {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

@media (max-width: 768px) {
    .demo-form-container {
        padding: 1.5rem !important;
    }

    .input-group-lg .form-control {
        font-size: 0.9rem;
    }

    .demo-features {
        gap: 0.5rem !important;
    }

    .demo-features .badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .cta-text .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
}