/* -------------------------------
   FONTS & BASE
----------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Muli:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Segoe UI:wght@300;400;600;700&display=swap');

body {
  font-family: 'Muli', sans-serif;
  letter-spacing: 0.3px;
  font-weight: 400;
  background: #F9F9FA;
  color: #343434;
}

h1,
h2,
h3 {
  font-weight: 700;
}

.text-gold,
.text-warning {
  text-align: left;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 0px;
  color: #D1B089 !important;
  opacity: 1;
}

p,
li {
  font-family: 'Segoe UI', sans-serif !important;
  color: #343434 !important;
  font-size: 18px;
  font-weight: 400;
  text-shadow: none !important;
}

/* -------------------------------
   NAVBAR
----------------------------------*/
nav.navbar {
  top: 0;
  position: fixed;
  width: 97%;
  border-radius: 0 0 20px 20px;
  background: #343434 !important;
  border: none !important;
  margin: auto;
}

nav.navbar li a {
  color: #ffffff;
  font-size: 15px !important;
  padding-left: 17px;
  padding-right: 17px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

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

nav.navbar ul.dropdown-menu li a:hover {
  color: #d4af37 !important;
  background-color: transparent !important;
}

/* -------------------------------
   HERO SECTION
----------------------------------*/
#hero {
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.hero-img {
  width: 460px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: inline-block;
  border: 2px solid #d4af37;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(1.2);
}

@media (max-width: 767.98px) {
  .hero-img {
    max-height: 200px;
    width: auto;
    height: auto;
  }
}
.our-services.card-services{
    box-shadow: 5px 10px #888888;
    border-radius: 25px;
    margin: 10px;
}
.our-services.card-services .price-card{
  height: 100% !important;
}
@media (max-width: 480px) {
  .card-services {
    display: flex;
    justify-content: center;
  }
  [dir="rtl"] .navbar-nav{
    gap: 5px !important;
  }
}

/*
body.devtools-detected {
  filter: blur(10px);
  pointer-events: none;
}
*/
/* -------------------------------
   VIDEO SECTION
----------------------------------*/
#video {
  padding: 20px;
  text-align: center;
}

#video video.rounded {
  max-height: 80vh;
  max-width: 100%;
  width: max-content !important;
  border-radius: 25px !important;
}

.engagement-img {
  width: 460px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  display: inline-block;
}

@media (max-width: 767.98px) {
  .engagement-img {
    max-height: 200px;
    width: 100%;
    height: auto;
  }
}

.text-violet {
  color: #7a00ff;
}

.bg-violet {
  background: #7a00ff;
}

.bg-turquoise {
  background: #00c4b3;
}

.text-turquoise {
  color: #00c4b3;
}

/* -------------------------------
   INFINITE SCROLLING CAROUSEL
----------------------------------*/
#pricing {
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
  padding: 40px 0;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 0;
}

.carousel-track {
  display: flex;
  animation: scroll-infinite 60s linear infinite;
  width: fit-content;
  padding-inline-start: 0;
  padding-inline-end: 20px;
}
.our-services.carousel-track{
  gap: 20px;
}
.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }

  100% {
    /* In LTR, moves left. In RTL, moves right. */
    transform: translateX(calc(-33.3333% * var(--scroll-dir, 1)));
  }
}

[dir="rtl"] .carousel-track {
  --scroll-dir: -1;
}

.card-services {
  flex: 0 0 auto;
  width: 292px;
}

.price-card {
  width: 292px;
  height: auto !important;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  padding: 20px;
  border-radius: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.price-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(209, 176, 137, 0.3) !important;
}

.price-card-img-container {
  position: relative;
  perspective: 1000px;
  width: 100%;
  margin-bottom: 15px;
}

.price-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  display: block;
  transform: rotateX(10deg) rotateY(0deg);
  transition: transform 0.5s ease;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.price-card:hover img {
  transform: rotateX(0deg) scale(1.05);
}

.card-body {
  padding: 0 !important;
  margin-top: 10px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.badge {
  color: #D1B089 !important;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.badge:hover {
  color: #7a00ff !important;
}

.modal-content {
  border-radius: 14px;
  background-color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
  z-index: 1055;
  /* Ensure above backdrop */
}

/* Modal Backdrop Blur */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7) !important;
  /* Opacity 0.7 */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1050 !important;
}

/* Ensure modal container is above backdrop */
.modal {
  z-index: 1055 !important;
}

.description-pricing {
  color: #000000;
}

.btn-warning {
  background: #d4af37;
  border: none;
  color: #000;
  font-weight: 600;
}

.btn-warning:hover {
  background: #c19a2b;
}

/* -------------------------------
   CHAT WIDGET
----------------------------------*/
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #7a00ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: 0.3s;
  z-index: 999999;
}

.chat-toggle:hover {
  background: #5d00c9;
}

.chat-box {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 340px;
  height: 450px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: all 0.25s ease;
}

.chat-box.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 99999;
}

.chat-box.minimized {
  height: 45px;
  overflow: hidden;
}

.chat-header {
  background: #7a00ff;
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-controls {
  display: flex;
  gap: 4px;
}

.chat-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.chat-btn:hover {
  color: #ffd700;
}

.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f5f6fa;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-form {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-form input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.chat-form button {
  background: #00c4b3;
  color: #fff;
  border: none;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.chat-form button:hover {
  background: #009b8e;
}

.msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.msg.client {
  align-self: flex-end;
  background: #7a00ff;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.msg.admin {
  align-self: flex-start;
  background: #e5e5ea;
  color: #000;
  border-bottom-left-radius: 2px;
}

/* -------------------------------
   MOBILE APP SECTION
----------------------------------*/
#mobile-app {
  background: #f0dccc !important;
  padding: 80px !important;
  position: relative;
  overflow: hidden;
}

.app-blur {
  filter: blur(2px);
  opacity: 1;
  transition: 0.4s ease;
  pointer-events: none;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(219, 211, 228, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 10;
}

.coming-soon-text {
  text-align: center;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulseText 2s infinite;
  line-height: 1.6;
}

.coming-soon-text span {
  display: block;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.03);
  }
}

.app-title {
  text-align: left;
  letter-spacing: 0;
  color: #D1B089;
  opacity: 1;
  font-size: 30px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif !important;
}

.app-list {
  list-style-type: disc;
  padding-left: 20px;
}

.app-list li {
  color: #343434;
  font-family: 'Segoe UI', sans-serif !important;
  margin-bottom: 8px;
  font-size: 16px;
}

.app-text {
  color: #343434;
  font-family: 'Segoe UI', sans-serif !important;
  font-size: 15px;
}

.app-image {
  max-width: 420px;
  height: auto;
}

/* -------------------------------
   FOOTER
----------------------------------*/
footer {
  background-color: #343434 !important;
  color: #ffffff !important;
  text-align: center;
  font-weight: 600;
}



/* =======================
   RTL (Arabic) Support
======================= */
[dir="rtl"] {
  direction: rtl;
  text-align: right !important;
}

[dir="rtl"] .text-start {
  text-align: right !important;
}

[dir="rtl"] .text-end {
  text-align: left !important;
}

[dir="rtl"] ul,
[dir="rtl"] ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] li {
  font-family: 'Tajawal', 'Amiri', sans-serif !important;
  letter-spacing: 0 !important;
  text-align: right !important;
}

[dir="rtl"] .hero-img,
[dir="rtl"] .engagement-img {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .carousel-control-prev-icon {
  transform: rotate(180deg);
}

[dir="rtl"] .carousel-control-next-icon {
  transform: rotate(180deg);
}

[dir="rtl"] footer {
  text-align: center;
}

/* RTL fix */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .navbar-nav {
  margin-right: auto;
  margin-left: 0;
  gap: 20px !important;
}

[dir="rtl"] .dropdown-menu {
  text-align: right;
  left: 0 !important;
  right: auto !important;
}

[dir="rtl"] .nav-link {
  text-align: right;
}

[dir="rtl"] .navbar-brand img {
  margin-left: 15px;
  margin-right: 0;
}

/* -------------------------------
   VIDEO REEL STYLE
----------------------------------*/
.video-reel-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  /* Mobile width */
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 16;
  border: 4px solid #343434;
}

.video-reel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------------------
   ANIMATIONS
----------------------------------*/
@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

.video-reel-container {
  animation: float 6s ease-in-out infinite;
}

/* Fade in up animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

section {
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-name: fadeInUp;
}

/* Gradient text animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.text-gradient {
  background: linear-gradient(90deg, #D1B089, #FFD700, #D1B089);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1.5s ease-in;
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease-out;
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1s ease-out;
}

/* Pulse animation for emphasis */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Typing animation */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Video section title centering */
#video h2,
#video-reel h2 {
  text-align: center !important;
}

/* Enhanced hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Video Box Shadow */
.video-box-shadow {
  /* Base shadow for "light box" feel - deep inset + soft outer */
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease-in-out;
  border-radius: 15px;
  width: 100%;
  max-width: 100%;
  /* Ensure it doesn't overflow, user asked for 100% or max-content */
  display: block;
}

/* Mobile: Simplified shadow (no strong side effects) */
@media (max-width: 767.98px) {
  .video-box-shadow {
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Desktop: Directional Shadow based on RTL/LTR */
@media (min-width: 768px) {

  /* LTR: Shadow emphasizes depth to the RIGHT (like image 2) */
  html:not([dir="rtl"]) .video-box-shadow {
    /* box-shadow: inset [horizontal] [vertical] [blur] [spread] [color] */
    /* We want a shadow that looks like it's cast to the right */
    box-shadow:
      inset 0 0 30px rgba(0, 0, 0, 0.5),
      /* Inner depth */
      25px 25px 50px rgba(0, 0, 0, 0.5),
      /* Big shadow to bottom-right */
      10px 0 20px rgba(0, 0, 0, 0.3);
    /* Harder shadow on right edge */
  }

  /* RTL: Shadow emphasizes depth to the LEFT (like image 1) */
  html[dir="rtl"] .video-box-shadow {
    /* We want a shadow that looks like it's cast to the left */
    box-shadow:
      inset 0 0 30px rgba(0, 0, 0, 0.5),
      /* Inner depth */
      -25px 25px 50px rgba(0, 0, 0, 0.5),
      /* Big shadow to bottom-left */
      -10px 0 20px rgba(0, 0, 0, 0.3);
    /* Harder shadow on left edge */
  }
}

/* Spacing between text and video */
.video-text-spacing {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .video-text-spacing {
    margin-bottom: 0;
  }
  
}

/* Desktop-only 3D Video Styles */
@media (min-width: 992px) {
  .video-3d-container {
    transform: rotateY(0deg) rotateX(-35deg);
    transform-style: preserve-3d;
    filter: drop-shadow(30px 40px 20px rgba(0, 0, 0, 0.3));
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  [dir="rtl"] .navbar-nav{
    gap: 5px !important;
  }
  #hero{
    margin-top: 0 !important;
  }
  
}
html,
.hide-overf{
    overflow-x: clip !important;
  }

/* -------------------------------
   PARTNERS SECTION
----------------------------------*/
#partners h2 {
  text-align: center !important;
}

[dir="rtl"] #partners h2 {
  text-align: center !important;
}

/* Ensure partner section is always centered */
#partners {
  text-align: center;
}