
.hero-dynamic {
  position: relative;
  width: 100%;
  height: 100vh; 
  overflow: hidden;
  background-color: #ffffff; 
}

.hero-slider {
  display: flex; 
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%; 
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--dashboard-bg);
  visibility: visible; 
  opacity: 1;
}

.hero-ambient-glow {
    position: absolute;
    bottom: -150px; 
    left: -100px; 
    width: 650px; 
    height: 650px;
    background: radial-gradient(circle, rgba(237, 119, 27, 0.35) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    filter: blur(50px); 
    
    z-index: 0; 
    pointer-events: none; 
    animation: pulseGlowLeft 6s ease-in-out infinite alternate;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
}

@keyframes pulseGlowLeft {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.1) translate(20px, -20px); 
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-ambient-glow {
        width: 350px;
        height: 350px;
        bottom: 40%; 
        left: 50%;
        transform: translateX(-50%);
    }
    @keyframes pulseGlowLeft {
        0% { transform: translateX(-50%) scale(1) translateY(0); opacity: 0.7; }
        100% { transform: translateX(-50%) scale(1.1) translateY(-20px); opacity: 1; }
    }
}

body[dir="rtl"] .hero-ambient-glow {
    left: auto;
    right: -100px;
}


.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 5%;
}

.center-content {
  justify-content: center;
}

.right-area {
  position: relative;
  width: 700px;
  height: 600px;
  overflow: hidden;
}


.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 600px; 
    overflow: hidden;
}

.before-image {
    clip-path: inset(0 47% 0 0); 
    z-index: 1;
}

.after-image {
    clip-path: inset(0 0 0 53%); 
    z-index: 2;
}

.divider {
    position: absolute;
    left: 53%; 
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.before-after-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}


.scroll-btn {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 20px;
  background-color: #ED771B; 
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease; 
  text-decoration: none;
}

.scroll-btn:hover {
  opacity: 0.8; 
  transform: translateY(-1px); 
}



.image-area,
.divider {
  display: block;
}

.hero-slide .text-area h1,
.hero-slide .text-area p,
.hero-slide .handwritten-highlight {
  color: #041424f2;
  background-color: transparent;
}

.hero-dynamic .handwritten-highlight, 
.services-section .handwritten-highlight {
    background-image: none !important;
    background-color: transparent !important; 
    background-size: auto !important;
    color: inherit !important; 
    padding: 0 !important; 
    border: none !important;
    transition: none !important;
    line-height: inherit !important;
    display: inline !important;
}

body[dir="rtl"] .hero-dynamic .handwritten-highlight {
    border: none !important;
    padding: 0 !important;
}

.robot-container {
  position: relative;
  width: 250px;
  height: 250px;
  margin-right: 30px;
}

.lang-en-only { display: block; }
.lang-ar-only { display: none; }

body[dir="rtl"] .lang-en-only { display: none; }
body[dir="rtl"] .lang-ar-only { display: block; }

.animated-char {
  display: inline-block;
  animation: bounceChar 0.6s infinite alternate;
}

@keyframes bounceChar {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}


.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  color: #002366; 
  border: 1px solid rgba(0, 35, 102, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 35, 102, 0.08); 
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-arrow:hover {
  background-color: #ED771B; 
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(237, 119, 27, 0.3);
  transform: translateY(-50%) scale(1.05); 
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

body[dir="rtl"] .prev-btn {
  left: auto;
  right: 30px;
  transform: translateY(-50%) rotate(180deg);
}

body[dir="rtl"] .next-btn {
  right: auto;
  left: 30px;
  transform: translateY(-50%) rotate(180deg);
}


.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 100;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(0, 35, 102, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dot.active {
  width: 35px;
  background-color: #ED771B;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(237, 119, 27, 0.3);
}


@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .right-area .media-wrapper {
    width: 90%;
    height: 300px;
    margin-top: 20px;
  }
  .robot-container {
    margin: 20px auto;
  }
}


.services-section {
  position: relative; 
  padding: 100px 5%;
  background-color: #f8f9fa;
  overflow: hidden; 
  z-index: 1;
}

.services-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(21, 126, 251, 0.1); 
  animation: floatCircle 20s linear infinite;
  z-index: 0; 
}

.services-bg-circle:nth-child(1) {
  width: 200px; height: 200px;
  top: 10%; left: 5%;
  animation-duration: 25s;
}
.services-bg-circle:nth-child(2) {
  width: 150px; height: 150px;
  top: 55%; left: 80%;
  animation-duration: 30s;
}
.services-bg-circle:nth-child(3) {
  width: 100px; height: 100px;
  top: 80%; left: 30%;
  animation-duration: 35s;
}

.services-bg-circle:nth-child(4) {
  width: 180px; height: 180px;
  top: 32%; left: 65%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.services-bg-circle:nth-child(5) {
  width: 120px; height: 120px;
  top: 68%; left: 15%;
  animation-duration: 28s;
  animation-delay: -10s;
}


@keyframes floatCircle {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-50px) translateX(50px); }
  100% { transform: translateY(0) translateX(0); }
}


.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 140px;
  height: 5px;
  margin: 10px auto 30px auto;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-blue));
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}


.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin: 80px 0;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1 1 50%; 
}

.service-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.service-image {
  flex: 1 1 45%; 
}

.service-image img {
  width: 100%;
  max-width: 600px; 
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-image img:hover {
  transform: scale(1.03);
}


.service-cards {
  display: flex;
  flex-direction: column; 
  gap: 15px;
  margin-top: 20px;
}

.service-card-box {
  background-color: #fff;
  border-radius: 15px;
  padding: 20px 15px;
  display: flex;
  align-items: center;
  gap: 15px; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card-box img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.service-card-box span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.service-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
  .service-card-box {
    justify-content: center;
  }
}


body[dir="rtl"] .service-row {
  flex-direction: row-reverse;
}

body[dir="rtl"] .service-row.reverse {
  flex-direction: row;
}

@media (max-width: 992px) {
  .service-row,
  .service-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    margin: 60px 0;
  }

  .service-image img {
    max-width: 90%;
    margin-bottom: 20px;
  }

  .service-text {
    flex: 1 1 100%;
  }
}




.hero-slide[data-index="1"] {
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(rgba(0, 35, 102, 0.12) 1.5px, transparent 1.5px);
    background-size: 35px 35px;
}

.hero-slide[data-index="1"] .hero-content {
    position: relative;
    z-index: 2;
}

.device-mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smartphone {
    position: relative;
    width: 180px;
    height: 380px;
    background: #222;
    border-radius: 30px;
    border: 8px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    z-index: 10;
    overflow: hidden;
    animation: floatPhone 4s ease-in-out infinite alternate;
}

.smartphone .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.browser-window {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 450px;
    height: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    z-index: 5;
    overflow: hidden;
    border: 1px solid #eee;
    animation: floatBrowser 5s ease-in-out infinite alternate-reverse;
}

.browser-header { height: 25px; background: #f1f1f1; display: flex; align-items: center; padding: 0 10px; gap: 5px; }
.browser-header span { width: 6px; height: 6px; background: #ddd; border-radius: 50%; }
.browser-content img { width: 100%; height: 100%; object-fit: cover; }

@keyframes floatPhone { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-20px) rotate(2deg); } }
@keyframes floatBrowser { from { transform: translateY(-40%) translateX(0); } to { transform: translateY(-60%) translateX(-20px); } }

.hero-slide[data-index="1"]::before,
.hero-slide[data-index="1"]::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px); 
    z-index: 1;
    pointer-events: none;
    animation: pulseOrbs 8s ease-in-out infinite alternate;
}

.hero-slide[data-index="1"]::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(21, 126, 251, 0.20) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.hero-slide[data-index="1"]::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 35, 102, 0.12) 0%, transparent 70%);
    bottom: -150px;
    right: -50px;
    animation-delay: -4s;
}

@keyframes pulseOrbs {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(50px, 50px) scale(1.15); opacity: 1; }
}





.hero-slide[data-index="2"] {
    background-color: #ffffff !important;
    position: relative;
    overflow: hidden;
}

.tech-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: radial-gradient(rgba(14, 165, 233, 0.08) 1.2px, transparent 1.2px);
    background-size: 50px 50px;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 50%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 50%);
}

.grid-node {
    position: absolute;
    width: 7px; 
    height: 7px;
    background-color: rgba(14, 165, 233, 0.5); 
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4); 
    animation: nodePulseClear 4s infinite ease-in-out;
}

.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { bottom: 35%; left: 20%; animation-delay: 2s; }


body[dir="rtl"] .tech-grid-bg {
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 50%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 50%);
}

body[dir="rtl"] .node-1 { left: auto; right: 10%; }
body[dir="rtl"] .node-2 { left: auto; right: 20%; }

@keyframes nodePulseClear {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.4; 
        box-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
    }
    50% { 
        transform: scale(1.5); 
        opacity: 1; 
        box-shadow: 0 0 18px rgba(14, 165, 233, 0.6);
    }
}

.corner-hand-area {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%; 
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ai-hand-huge {
    width: 1100px; 
    height: auto;
    
    position: absolute;
    right: -80px; 
    
    bottom: -10px; 
    
    object-fit: contain;
    transform-origin: bottom right;
    z-index: 10;
    
    animation: refinedWave 7s ease-in-out infinite;
}

@keyframes refinedWave {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-4deg) translateY(-5px); }
    100% { transform: rotate(0deg); }
}



body[dir="rtl"] .hero-slide[data-index="2"] .corner-hand-area {
    right: auto;
    left: 0;
}

body[dir="rtl"] .ai-hand-huge {
    right: auto;
    left: -80px; 
    
    bottom: -10px; 
    
    transform: scaleX(-1); 
    
    transform-origin: bottom left;
}



/* =========================================
   ========================================= */
@media (max-width: 768px) {
  .hero-slide .ai-hand-huge {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    width: 600px !important; 
    height: auto !important;
    bottom: -20px !important;
    right: -120px !important; 
    left: auto !important;
    opacity: 0.9 !important;
    z-index: 9999 !important; 
    pointer-events: none;
    animation: refinedWaveMobile 7s ease-in-out infinite !important;
  }

  body[dir="rtl"] .hero-slide .ai-hand-huge {
    right: auto !important;
    left: -120px !important; 
    display: block !important;
    opacity: 1 !important; 
  }

  @keyframes refinedWaveMobile {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-5deg) translateY(-15px); }
    100% { transform: rotate(0deg); }
  }

  @keyframes refinedWaveMobileRTL {
    0% { transform: scaleX(-1) rotate(0deg); }
    50% { transform: scaleX(-1) rotate(5deg) translateY(-15px); }
    100% { transform: scaleX(-1) rotate(0deg); }
  }
  
  .hero-dynamic .hero-slide {
    align-items: flex-start !important;
  }

  .hero-dynamic .hero-content {
    flex-direction: column;
    text-align: left; 
    align-items: flex-start; 
    justify-content: flex-start !important; 
    padding-top: 110px; 
    height: 100%;
    position: relative;
    z-index: 20; 
    width: 100%;
  }

body[dir="rtl"] .hero-dynamic .hero-content {
    text-align: right;
    align-items: center; 
}

  .hero-dynamic .text-area {
    width: 100%;
    flex: none !important; 
  }
  
  .hero-dynamic .text-area h1 {
    font-size: 2.1rem !important; 
    line-height: 1.1;
    margin-bottom: 15px;
    max-width: min-content; 
    white-space: normal;
  }

 body[dir="ltr"] .hero-dynamic .text-area h1 {
        font-size: 2rem !important; 
        letter-spacing: -0.5px !important; 
    }

    body[dir="ltr"] .hero-dynamic .text-area h1 span {
        white-space: normal !important;
    }

  .hero-dynamic .text-area p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .hero-dynamic .scroll-btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 14px;
    align-self: flex-start; 
  }

  /* =========================================
     ========================================= */
  .hero-dynamic .right-area {
    width: 100%;
    height: auto !important; 
    margin-top: 60px; 
    display: flex;
    justify-content: center;
  }
  .before-after-wrapper {
    width: 75%; 
    height: 300px; 
    margin: 0 auto;
    border-radius: 10px; 
  }

  .device-mockup-container {
    transform: scale(0.5); 
    transform-origin: top center;
    margin-top: 35px; 
  }

  .ai-hand-huge {
    width: 250px !important; 
    right: -20px;
    bottom: -10px;
    opacity: 0.35; 
    z-index: 1 !important; 
  }

  body[dir="rtl"] .ai-hand-huge {
    left: -20px;
    right: auto;
  }

  .hero-dynamic .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.85); 
    z-index: 100;
  }
  .hero-dynamic .prev-btn { left: 10px; }
  .hero-dynamic .next-btn { right: 10px; }
  
  body[dir="rtl"] .hero-dynamic .prev-btn { right: 10px; left: auto; }
  body[dir="rtl"] .hero-dynamic .next-btn { left: 10px; right: auto; }
}

body[dir="rtl"] .hero-dynamic .hero-content {
    text-align: right;
    align-items: flex-start; 
  }

@media (min-width: 769px) {
    body[dir="rtl"] .hero-dynamic .hero-slide {
        align-items: center !important;
    }
    
    body[dir="rtl"] .hero-dynamic .hero-content {
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        height: auto !important;
    }
    
    body[dir="rtl"] .hero-dynamic .text-area {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important; 
    }
}


/* =========================================
   ========================================= */
.hero-dynamic .text-area h1,
.hero-dynamic .text-area p {
    text-align: left !important;
    width: 100% !important;
}

body[dir="rtl"] .hero-dynamic .text-area h1,
body[dir="rtl"] .hero-dynamic .text-area p {
    text-align: right !important;
}

@media (max-width: 768px) {
    .hero-dynamic .hero-content,
    .hero-dynamic .text-area {
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    body[dir="rtl"] .hero-dynamic .hero-content,
    body[dir="rtl"] .hero-dynamic .text-area {
        align-items: flex-start !important;
        text-align: right !important;
    }
}


.services-section .section-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #002366 !important;
    margin-bottom: 20px !important;
}

.services-section .section-title span {
    color: #E65100 !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}