/********** Template CSS **********/
:root {
    --primary: #ff8a00;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}


/*** Images Border Radius ***/
img {
    border-radius: 15px;
}

.rounded,
.rounded-circle,
.img-fluid {
    border-radius: 15px !important;
}

/* Remove border radius from carousel images */
.carousel-item img {
    border-radius: 0 !important;
}

/* Feature Icons Styling */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 32px;
    color: #ff8a00;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
    color: #e67a00;
}

.feature-content h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-content p {
    color: #666;
    line-height: 1.5;
}

/* Hero Image Responsive Height */
#header-hero img {
    border-radius: 0 !important;
    object-fit: cover;
    height: 400px; /* Mobile default */
    margin-top: 20px;
}

@media (min-width: 768px) {
    #header-hero img {
        height: 800px; /* Normal monitors/Desktop/tablet */
    }
}

@media (min-width: 1920px) {
    #header-hero img {
        height: 950px; /* Wide monitors */
    }
}


/*** Forms Border Radius ***/
.form-control,
.form-select,
input[type="text"],
input[type="email"],
textarea,
select {
    border-radius: 15px !important;
}

.input-group .form-control:first-child {
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
}

.input-group .btn:last-child {
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    border-radius: 15px !important;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

/* Gradient for all primary buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%) !important;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #df7902 0%, #ff8a00 100%) !important;
    box-shadow: 0 0 20px rgba(255, 138, 0, 0.5);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
    border-radius: 15px !important;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
    border-radius: 15px !important;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    border-radius: 15px !important;
}

/* Gradient for square buttons */
.btn-primary.btn-square,
.btn-primary.btn-sm-square,
.btn-primary.btn-lg-square {
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%) !important;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar {
    border-bottom: 1px solid #ff8a00;
    background-image: url(../img/hbg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}

.navbar-brand {
    margin-right: auto;
    padding-left: 0;
}

.navbar-brand img {
    height: 80px;
    max-width: 250px;
    object-fit: contain;
    transition: .3s;
}

.navbar-toggler {
    margin-left: auto;
}

/* Mobile navbar flexbox layout */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 90px;
    }
    
    .navbar-brand {
        margin-right: auto !important;
        padding-left: 0 !important;
        order: 1;
    }
    
    .navbar-toggler {
        margin-left: 0 !important;
        order: 3;
    }
    
    .language-switcher-mobile {
        order: 2;
        margin-left: 0 !important;
        margin-right: 10px;
    }
    
    .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* RTL adjustments for mobile - keep exact same visual order as LTR */
    [dir="rtl"] .navbar-brand {
        margin-right: auto !important;
        margin-left: 0 !important;
        order: 1;
    }
    
    [dir="rtl"] .navbar-toggler {
        margin-left: auto !important;
        margin-right: 0 !important;
        order: 3;
    }
    
    [dir="rtl"] .language-switcher-mobile {
        order: 2;
        margin-left: 0 !important;
        margin-right: 10px !important;
    }
    
    /* Force RTL navbar to behave like LTR */
    [dir="rtl"] .navbar {
        direction: ltr !important;
    }
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 20px !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background-image: url(../img/hbg.png);
        background-size: cover;
        background-position: center;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
    
    .navbar-toggler {
        border-radius: 20px !important;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: fixed !important;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid #ff8a00;
        z-index: 1000;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
#header-carousel {
    margin-top: 0;
}

/* Ensure first section after navbar has proper spacing */
.container-fluid.position-relative.p-0 {
    padding-top: 120px !important;
}

@media (max-width: 991.98px) {
    .container-fluid.position-relative.p-0 {
        padding-top: 100px !important;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 0 30px;
    transition: .5s;
    border-radius: 15px !important;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%);
    border-radius: 15px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

/* Removed hover arrow button effect */
.service-item a.btn {
    display: none;
}

.service-item:hover a.btn {
    display: none;
}


/*** Testimonial ***/
.testimonial-item {
    border-radius: 15px !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
    border-radius: 15px !important;
    overflow: hidden;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Blog Items ***/
.blog-item {
    border-radius: 15px !important;
    overflow: hidden;
}


/*** Miscellaneous ***/
.bg-light,
.bg-white {
    border-radius: 15px;
}

.bg-primary {
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%) !important;
    border-radius: 15px;
}

/* Features boxes gradient */
.features .bg-primary {
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%) !important;
}

/* Footer primary section gradient */
.footer-about .bg-primary {
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%) !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%) !important;
}

/************ QR Code Mobile ************/
.qr-code-mobile {
    display: none;
}

@media (max-width: 991.98px) {
    .qr-code-mobile {
        display: block;
        position: absolute;
        bottom: 5px;
        right: 10px;
        background: transparent;
        padding: 8px;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
        z-index: 10;
    }
    
    .qr-code-mobile img {
        width: 80px;
        height: 80px;
        display: block;
        border-radius: 8px;
    }
    
    /* RTL positioning for QR code in Arabic */
    [dir="rtl"] .qr-code-mobile {
        right: auto;
        left: 10px;
    }
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/* Smooth scrolling for navigation links */
html {
    scroll-behavior: smooth;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ff8a00 !important;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

.footer-logo {
    height: 100px;
    max-width: 300px;
    object-fit: contain;
}


/*** Language Switcher ***/
.language-switcher-mobile {
    position: relative;
}

.language-switcher-mobile .btn {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 45px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher-mobile .dropdown-menu {
    min-width: 70px;
    border-radius: 12px;
    padding: 3px;
    font-size: 12px;
}

.language-switcher-mobile .dropdown-item {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    transition: .3s;
    border-radius: 8px;
    text-align: center;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switcher-mobile .dropdown-item:hover {
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%);
    color: #FFFFFF;
}

.language-switcher-mobile .dropdown-item.active {
    background: linear-gradient(135deg, #ff8a00 0%, #df7902 100%);
    color: #FFFFFF;
}

.language-switcher-mobile .dropdown-toggle::after {
    margin-left: .3em;
    font-size: 8px;
}

/* RTL fixes for Arabic - keep same positioning as LTR */
[dir="rtl"] .language-switcher-mobile {
    margin-left: 0 !important;
    margin-right: 10px !important;
}

[dir="rtl"] .language-switcher-mobile .dropdown-toggle::after {
    margin-left: 0;
    margin-right: .3em;
}

/* Ensure proper spacing in RTL */
[dir="rtl"] .navbar-toggler {
    margin-left: 0 !important;
    
}


/*** About Us Section Custom Padding ***/
/* Reduce padding for About Us section */
#about.container-fluid.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

#about .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*** Services Section Custom Padding ***/
/* Reduce padding for Services section */
#services.container-fluid.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

#services .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/*** Admin Panel Section Custom Padding ***/
/* Reduce padding for Admin Panel section */
#admin.container-fluid.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

#admin .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Admin Panel Image Neon Effect */
#admin img {
    animation: neonGlow 2s ease-in-out infinite;
}

#admin img:hover {
    animation: neonGlowHover 1.5s ease-in-out infinite;
}

/* PostApp ID Color Animation */
.postapp-id-animation {
    background: linear-gradient(90deg, #ff8a00, #df7902, #ff8a00, #df7902);
    background-size: 400% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorMove 3s ease-in-out infinite;
    font-weight: bold;
}

@keyframes colorMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Service Box Neon Drop Shadow Animation */
.service-icon,
.features .bg-primary,
.container-fluid:has(.section-title h5[data-translate="features_title"]) .bg-primary,
.container-fluid:has(.section-title h5[data-translate="pricing_title"]) img {
    animation: neonGlow 2.5s ease-in-out infinite alternate;
    transition: all 0.3s ease;
}

/* Reduce animation intensity on mobile for better performance */
@media (max-width: 768px) {
    .service-icon,
    .features .bg-primary,
    .container-fluid:has(.section-title h5[data-translate="features_title"]) .bg-primary,
    .container-fluid:has(.section-title h5[data-translate="pricing_title"]) img {
        animation: neonGlowMobile 3s ease-in-out infinite alternate;
    }
}

/* Quote section image white neon effect */
.container-fluid:has(.section-title h5[data-translate="quote_title"]) img {
    animation: whiteNeonGlow 2s ease-in-out infinite alternate;
    transition: opacity 0.5s ease-in-out;
}

/* Quote section text styling */
.container-fluid:has(.section-title h5[data-translate="quote_title"]) h3 {
    color: white !important;
    font-weight: bold !important;
    transition: opacity 0.5s ease-in-out;
}

.container-fluid:has(.section-title h5[data-translate="quote_title"]) p {
    transition: opacity 0.5s ease-in-out;
}

/* Timer circle styling */
.timer-circle {
    filter: drop-shadow(0 0 8px rgba(255, 138, 0, 0.6));
}

#timer-progress {
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(255, 138, 0, 0.8));
}

/* Video section styling */
#play-video-btn {
    transition: all 0.3s ease;
    animation: pulseGlow 2s ease-in-out infinite !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    width: 60px !important;
    height: 60px !important;
}

#play-video-btn:hover {
    transform: scale(1.1);
    animation: pulseGlowHover 1.5s ease-in-out infinite !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

#play-video-btn i {
    color: white !important;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 
            0 0 10px rgba(255, 138, 0, 0.6),
            0 0 20px rgba(255, 138, 0, 0.4),
            0 0 30px rgba(255, 138, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(255, 138, 0, 0.8),
            0 0 40px rgba(255, 138, 0, 0.6),
            0 0 60px rgba(255, 138, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 10px rgba(255, 138, 0, 0.6),
            0 0 20px rgba(255, 138, 0, 0.4),
            0 0 30px rgba(255, 138, 0, 0.2);
    }
}

@keyframes pulseGlowHover {
    0% {
        box-shadow: 
            0 0 15px rgba(255, 138, 0, 0.8),
            0 0 30px rgba(255, 138, 0, 0.6),
            0 0 45px rgba(255, 138, 0, 0.4);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 138, 0, 1),
            0 0 50px rgba(255, 138, 0, 0.8),
            0 0 75px rgba(255, 138, 0, 0.6);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(255, 138, 0, 0.8),
            0 0 30px rgba(255, 138, 0, 0.6),
            0 0 45px rgba(255, 138, 0, 0.4);
    }
}

#video-thumbnail {
    transition: all 0.3s ease;
    border-radius: 15px;
    max-width: 85% !important;
    height: auto;
    animation: thumbnailPulse 3s ease-in-out infinite;
}

#video-thumbnail:hover {
    transform: scale(1.02);
    animation: thumbnailPulseHover 2s ease-in-out infinite;
}

@keyframes thumbnailPulse {
    0% {
        box-shadow: 
            0 0 15px rgba(255, 138, 0, 0.4),
            0 0 30px rgba(255, 138, 0, 0.2),
            0 0 45px rgba(255, 138, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 138, 0, 0.6),
            0 0 50px rgba(255, 138, 0, 0.4),
            0 0 75px rgba(255, 138, 0, 0.2);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(255, 138, 0, 0.4),
            0 0 30px rgba(255, 138, 0, 0.2),
            0 0 45px rgba(255, 138, 0, 0.1);
    }
}

@keyframes thumbnailPulseHover {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 138, 0, 0.6),
            0 0 40px rgba(255, 138, 0, 0.4),
            0 0 60px rgba(255, 138, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(255, 138, 0, 0.8),
            0 0 70px rgba(255, 138, 0, 0.6),
            0 0 105px rgba(255, 138, 0, 0.4);
    }
    100% {
        box-shadow: 
            0 0 20px rgba(255, 138, 0, 0.6),
            0 0 40px rgba(255, 138, 0, 0.4),
            0 0 60px rgba(255, 138, 0, 0.2);
    }
}

/* Video modal styling */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: #ff8a00 !important;
    border-bottom: none !important;
}

.modal-title {
    color: white !important;
    font-weight: bold !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#modal-video {
    border-radius: 0 0 15px 15px;
}

@keyframes neonGlow {
    0% {
        box-shadow: 
            0 0 8px rgba(255, 138, 0, 0.7),
            0 0 16px rgba(255, 138, 0, 0.5),
            0 0 24px rgba(255, 138, 0, 0.3),
            0 0 32px rgba(255, 138, 0, 0.2),
            0 0 40px rgba(255, 138, 0, 0.1);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(255, 138, 0, 1),
            0 0 30px rgba(255, 138, 0, 0.8),
            0 0 45px rgba(255, 138, 0, 0.6),
            0 0 60px rgba(255, 138, 0, 0.4),
            0 0 75px rgba(255, 138, 0, 0.2);
    }
}

/* Hover effect for service boxes and features */
.service-item:hover .service-icon,
.features .col-12:hover .bg-primary,
.container-fluid:has(.section-title h5[data-translate="features_title"]) .col-12:hover .bg-primary,
.container-fluid:has(.section-title h5[data-translate="pricing_title"]) .col-lg-4:hover img {
    animation: neonGlowHover 1.2s ease-in-out infinite alternate;
    transform: scale(1.08);
}

/* Quote section image hover effect */
.container-fluid:has(.section-title h5[data-translate="quote_title"]) .col-lg-6:hover img {
    animation: whiteNeonGlow 1.5s ease-in-out infinite alternate;
    transform: scale(1.05);
}

@keyframes neonGlowHover {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 138, 0, 1),
            0 0 40px rgba(255, 138, 0, 0.8),
            0 0 60px rgba(255, 138, 0, 0.6),
            0 0 80px rgba(255, 138, 0, 0.4),
            0 0 100px rgba(255, 138, 0, 0.2);
    }
    100% {
        box-shadow: 
            0 0 25px rgba(255, 138, 0, 1),
            0 0 50px rgba(255, 138, 0, 1),
            0 0 75px rgba(255, 138, 0, 0.8),
            0 0 100px rgba(255, 138, 0, 0.6),
            0 0 125px rgba(255, 138, 0, 0.4);
    }
}

/* Lighter animation for mobile performance */
@keyframes neonGlowMobile {
    0% {
        box-shadow: 
            0 0 5px rgba(255, 138, 0, 0.5),
            0 0 10px rgba(255, 138, 0, 0.3);
    }
    100% {
        box-shadow: 
            0 0 8px rgba(255, 138, 0, 0.7),
            0 0 15px rgba(255, 138, 0, 0.4);
    }
}

@keyframes whiteNeonGlow {
    0% {
        box-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4),
            0 0 40px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 45px rgba(255, 255, 255, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4);
    }
}


/*** RTL Support for Arabic ***/
[dir="rtl"] body {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .navbar {
    direction: rtl;
}

[dir="rtl"] .navbar-nav {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .navbar-dark .navbar-nav .nav-link {
    margin-right: 25px;
    margin-left: 0;
}

[dir="rtl"] .btn {
    direction: rtl;
}

/* Better RTL support for navbar elements */
[dir="rtl"] .navbar-brand {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .navbar-toggler {
    margin-left: 0;
    margin-right: auto;
}

/* RTL dropdown positioning */
[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
}

[dir="rtl"] .section-title::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .section-title.text-center::before {
    right: 50%;
    left: auto;
    margin-right: -75px;
    margin-left: 0;
}

[dir="rtl"] .fa,
[dir="rtl"] .fab,
[dir="rtl"] .far,
[dir="rtl"] .fas {
    margin-left: .5rem;
    margin-right: 0;
}

[dir="rtl"] .me-2,
[dir="rtl"] .me-3 {
    margin-left: .5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ps-4 {
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
}

[dir="rtl"] .carousel-control-prev {
    right: 0;
    left: auto;
}

[dir="rtl"] .carousel-control-next {
    left: 0;
    right: auto;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .footer .link-animated a {
    transition: .5s;
}

[dir="rtl"] .footer .link-animated a:hover {
    padding-right: 10px;
    padding-left: 0;
}

/* Quote section navigation buttons */
#prev-image, #next-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ff8a00;
    background: rgba(255, 255, 255, 0.9);
    color: #ff8a00;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#prev-image:hover, #next-image:hover {
    background: #ff8a00;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4);
}

#prev-image:focus, #next-image:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.3);
}

/* Quote section mobile responsive */
@media (max-width: 991.98px) {
    .container-fluid:has(.section-title h5[data-translate="quote_title"]) .row.g-5 {
        flex-direction: column;
    }
    
    .container-fluid:has(.section-title h5[data-translate="quote_title"]) .col-lg-6:first-child {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .container-fluid:has(.section-title h5[data-translate="quote_title"]) .col-lg-6:last-child {
        order: 2;
    }
    
    .container-fluid:has(.section-title h5[data-translate="quote_title"]) .bg-primary {
        text-align: center;
    }
    
    /* Adjust navigation buttons for mobile */
    #prev-image, #next-image {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    #prev-image {
        left: 10px !important;
    }
    
    #next-image {
        right: 10px !important;
    }
    
    /* Hide bottom tab buttons on mobile */
    .container-fluid:has(.section-title h5[data-translate="quote_title"]) .btn-group {
        display: none;
    }
}