/********** Template CSS **********/
:root {
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #A78BFA;
  --secondary: #6D28D9;
  --accent: #C4B5FD;
  --gradient-start: #7C3AED;
  --gradient-end: #5B21B6;
  --light: #ffffff;
  --dark: #1E1B4B;
  --text-dark: #312E81;
  --bg-light: #F5F3FF;
}

/*** RTL Direction & Font ***/
body {
  direction: rtl;
  font-family: "Cairo", sans-serif;
  background: linear-gradient(180deg, #F5F3FF 0%, #EDE9FE 50%, #E9D5FF 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/*** Top Security Bar ***/
.bg-gradient-purple {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%) !important;
  padding: 10px 20px !important;
}

.bg-gradient-purple marquee {
  font-size: 14px;
  font-weight: 500;
}

/*** Gradient Backgrounds ***/
.bg-gradient-light {
  background: linear-gradient(135deg, var(--bg-light) 0%, #EDE9FE 100%);
}

.text-purple {
  color: var(--primary) !important;
}

.text-purple-dark {
  color: var(--primary-dark) !important;
}

/*** Spinner ***/
.spinner {
  width: 40px;
  height: 40px;
  background: var(--primary);
  margin: 100px auto;
  animation: sk-rotateplane 1.2s infinite ease-in-out;
  margin: auto 0px;
}
.change_color {
  color: var(--primary) !important;
  font-weight: 500;
}
.change_color:hover {
  color: var(--primary-dark) !important;
}

@keyframes sk-rotateplane {
  0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
  100% { 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;
}

/*** Headings ***/
h1, h2, h3, h4, h5, h6 {
  font-family: "Cairo", sans-serif !important;
  font-weight: 700;
}

/*** Logo ***/
.navbar-brand img {
  transition: transform 0.3s ease;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}

/*** Buttons ***/
.btn {
  font-family: "Cairo", sans-serif;
  font-weight: 400;
  transition: .5s;
  border-radius: 0 !important;
}
.btn-primary, .btn-secondary {
  color: #fff;
  box-shadow: inset 0 0 0 50px transparent;
}
.btn-primary:hover {
  box-shadow: inset 0 0 0 0 var(--primary);
}
.btn-secondary:hover {
  box-shadow: inset 0 0 0 0 var(--secondary);
}
.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 30px; height: 30px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-square, .btn-sm-square, .btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
  font-family: "Cairo", sans-serif;
  position: relative;
  margin-left: 25px;
  padding: 35px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  transition: .5s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary);
}
.navbar-dark .navbar-brand h1 {
  color: #fff;
}
.navbar-dark .navbar-toggler {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
  .sticky-top.navbar-dark {
    position: relative;
    background: #fff;
  }
  .navbar-dark .navbar-nav .nav-link {
    padding: 10px 0;
    color: var(--dark);
  }
  .navbar-dark .navbar-brand h1 {
    color: var(--primary);
  }
}

@media (min-width: 992px) {
  .navbar-dark {
    position: absolute;
    width: 100%;
    top: 50;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
  }
  .sticky-top.navbar-dark {
    position: fixed;
    background: #fff;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .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;
  }
}

/*** Carousel ***/
.carousel-caption {
  top: 50;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(233, 203, 229, 0.164);
  z-index: 1;
}
.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}
@media (max-width: 576px) {
  .carousel-caption h5 {
    font-size: 14px;
    font-weight: 400 !important;
  }
  .carousel-caption h1 {
    font-size: 30px;
    font-weight: 400 !important;
  }
}
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 36px;
  }
  .carousel-caption h5 {
    font-size: 16px;
  }
}

/*** Section Title ***/
.section-title::before {
  position: absolute;
  content: "";
  width: 150px;
  height: 5px;
  left: 0;
  bottom: 0;
  background: var(--primary);
}
.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: 0;
  background: #fff;
  animation: section-title-run 5s infinite linear;
}
.section-title.text-center::after {
  animation: section-title-run-center 5s infinite linear;
}
.section-title.section-title-sm::after {
  animation: section-title-run-sm 5s infinite linear;
}
@keyframes section-title-run {
  0% { left: 0; } 50% { left: 145px; } 100% { left: 0; }
}
@keyframes section-title-run-center {
  0% { left: 50%; margin-left: -75px; }
  50% { left: 50%; margin-left: 45px; }
  100% { left: 50%; margin-left: -75px; }
}
@keyframes section-title-run-sm {
  0% { left: 0; } 50% { left: 85px; } 100% { left: 0; }
}

  .chatbot-box {
    width: 320px;
    z-index: 9999;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .chatbot-box.show {
    transform: translateY(0);
    opacity: 1;
  }

.
/* Enhanced background colors - Purple/Pink/Green palette */
 



/* Floating geometric shapes */
 .geometric-shapes {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
     overflow: hidden;
}
 .shape {
     position: absolute;
     border: 1px solid rgba(0, 255, 255, 0.3);
     animation: floatShape 20s linear infinite;
}
 .shape:nth-child(1) {
     width: 100px;
     height: 100px;
     left: 10%;
     animation-delay: 0s;
     border-color: rgba(255, 105, 180, 0.486);
}
 .shape:nth-child(2) {
     width: 60px;
     height: 60px;
     left: 70%;
     animation-delay: -5s;
     border-radius: 50%;
     border-color: rgba(147, 112, 219, 0.4);
}
 .shape:nth-child(3) {
     width: 80px;
     height: 80px;
     left: 30%;
     animation-delay: -10s;
     transform: rotate(45deg);
     border-color: rgba(224, 163, 255, 0.4);
}
 .shape:nth-child(4) {
     width: 120px;
     height: 120px;
     left: 50%;
     animation-delay: -15s;
     clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
     background: linear-gradient(45deg, rgba(255, 105, 180, 0.1), transparent);
}
 @keyframes floatShape {
     from {
         transform: translateY(100vh) rotate(0deg);
         opacity: 0;
    }
     10%, 90% {
         opacity: 1;
    }
     to {
         transform: translateY(-100px) rotate(360deg);
         opacity: 0;
    }
}

/* Glassmorphism styles */
 .glass {
     background: rgba(255, 255, 255, 0.05);
     backdrop-filter: blur(20px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 20px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
 .glass-strong {
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(25px);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 25px;
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/*** Facts Section (Service Cards) ***/
.facts .col-lg-4 a {
  display: block;
  height: 100%;
  text-decoration: none;
}

div.service-card,
.service-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 40px 25px !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15) !important;
  border: none !important;
  min-height: 180px;
  display: block;
}

.service-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3) !important;
}

.service-card .icon-box,
.service-card div.icon-box {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px !important;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4) !important;
}

.service-card .icon-box i,
.service-card .icon-box .fa {
  font-size: 32px !important;
  color: #ffffff !important;
}

.service-card h5 {
  color: #312E81 !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  margin: 0 !important;
}

.facts .bg-primary,
.facts .bg-light {
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.facts .bg-primary:hover,
.facts .bg-light:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}
.facts .bg-white {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.facts i {
  font-size: 24px;
  color: var(--primary);
}
.facts h5 {
  font-weight: 500;
  margin-top: 8px;
  transition: color 0.3s ease;
}
.facts a:hover h5 {
  text-decoration: none;
  color: var(--light);
}
@media (min-width: 991.98px) {
  .facts {
    position: relative;
    margin-top: -75px;
    z-index: 1;
  }
}
@media (max-width: 991.98px) {
  .facts {
    margin-top: 0;
  }
}

/*** Hero Section ***/
.hero-section {
  padding: 40px 0 60px;
  text-align: center;
  margin-top: 20px;
}

.hero-section h2 {
  color: #312E81;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.hero-section p {
  color: #4B5563;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 15px;
  line-height: 1.8;
}

/*** Navbar Improvements ***/
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
  position: relative !important;
}

.navbar-brand h1 {
  color: #8B5CF6 !important;
  font-weight: 800;
}

@media (min-width: 992px) {
  .navbar-dark {
    position: relative !important;
    width: 100%;
    top: auto;
    left: auto;
    border-bottom: none;
  }
}

/*** Footer Purple ***/
.footer-purple {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  padding: 40px 0;
}

.footer-purple a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-purple a:hover {
  color: white;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-shapes .shape {
    position: absolute;
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

.floating-shapes .shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-shapes .shape:nth-child(2) {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.floating-shapes .shape:nth-child(3) {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    border-radius: 50%;
    top: 70%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.floating-shapes .shape:nth-child(4) {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    border-radius: 50%;
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.floating-shapes .shape:nth-child(5) {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5B21B6, #4C1D95);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    top: 80%;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 19s;
}

.floating-shapes .shape:nth-child(6) {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border-radius: 50%;
    top: 10%;
    left: 50%;
    animation-delay: 5s;
    animation-duration: 17s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* Hero section needs position relative */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}
