/**
* Website Stylesheet (Full & Merged)
* Version: 6.0 (BEYOND IMAGINATION UPDATE)
*/

/*--------------------------------------------------------------
# Table of Contents
--------------------------------------------------------------
1. General & Variables
2. Preloader & Animations
3. Back to top button
4. Header & Navigation
5. Hero Section
6. Sections General
7. About Us Section (NEURAL NEBULA)
8. Services Section (BEYOND IMAGINATION)
9. Features Section (BEYOND IMAGINATION)
10. Project Section (BEYOND IMAGINATION)
11. Team Section (BEYOND IMAGINATION)
12. Contact Section
13. Footer
14. RTL Specific Adjustments
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# 1.1. Custom Font Definitions
--------------------------------------------------------------*/
@font-face {
  font-family: 'English';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/English/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'English';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/English/Inter-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'English';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/English/Inter-Black.ttf') format('truetype');
}

@font-face {
  font-family: 'Arabic';
  src: url('../fonts/Arabic/TheYearofHandicrafts-Regular.woff2') format('woff2'),
    url('../fonts/Arabic/TheYearofHandicrafts-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'English1';
  src: url('../fonts/English/pafigo-regular-webfont.woff2') format('woff2'),
    url('../fonts/English/pafigo-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/*--------------------------------------------------------------
# 1. General & Variables
--------------------------------------------------------------*/
:root {
  --primary-dark: #18122B;
  --secondary-dark: #21183C;
  --accent-purple: #8A4FFF;
  --accent-purple-darker: #6A3DD2;
  --text-light: #FFFFFF;
  --text-muted: #B0B0B0;
  --nav-link-color: #B0B0B0;
  --primary-dark-rgb: 24, 18, 43;
}

body {
  font-family: 'English', sans-serif;
  color: var(--text-light);
  background-color: #0d0915;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
}

a:hover {
  color: var(--accent-purple-darker);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'English1', sans-serif;
  color: var(--text-light);
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Arabic', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-family: 'Arabic', sans-serif;
}




/*--------------------------------------------------------------
# 2. Preloader & Animations (SVG Line Drawing)
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0px;
  bottom: 0px;
  z-index: 9999;
  background: var(--primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
  opacity: 1;
  visibility: visible;

}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;

}

.preloader-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
}

.preloader-logo-container svg {
  width: 100%;
  overflow: visible;
  position: fixed;
  top: 200px;
  left: 0;
  right: 0px;
  bottom: 0px;


}

.logo-path,
.light-flare-path {
  stroke: var(--accent-purple);
  stroke-width: 2;
  fill: transparent;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill-logo {
  to {
    fill: var(--accent-purple);
  }
}

#preloader:not(.preloader-hidden) .logo-path {
  animation:
    draw-path 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards,
    fill-logo 0.5s ease-in forwards 1.6s;
}

.light-flare-path {
  stroke: url(#light-flare);
  stroke-width: 6;
  opacity: 0;
}

@keyframes light-flare-anim {
  0% {
    stroke-dashoffset: 1000;
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

#preloader:not(.preloader-hidden) .light-flare-path {
  animation: light-flare-anim 1.8s ease-in-out forwards 0.2s;
}

/*--------------------------------------------------------------
# 3. Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent-purple);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--accent-purple-darker);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# 4. Header & Navigation (Corrected & Merged)
--------------------------------------------------------------*/
#header {
  background: rgba(var(--primary-dark-rgb), 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 30px;
  left: 20%;
  right: 20%;
  z-index: 997;
  transition: all 0.3s ease;
  width: 60%;
}

#header .container-fluid {
  height: 60px;
  padding: 0 25px;
}

#header.header-scrolled {
  top: 10px;
  background: rgba(var(--primary-dark-rgb), 0.9);
}

#header .logo {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  width: 60px;
}

#header .logo a {
  color: var(--text-light);
}

.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar>ul>li {
  padding-left: 12px;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-link-color);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i {
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar li:hover>a {
  color: var(--text-light);
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 14px;
  top: calc(100% + 20px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--primary-dark);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
  border-radius: 8px;
  min-width: 200px;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown ul li {
  min-width: 200px;

}

.navbar .dropdown ul a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}

.navbar .dropdown ul a i {
  font-size: 12px;
 
}
.navbar .dropdown ul a:hover {
  background: var(--accent-purple);
border-radius: 10px;
}

.navbar .dropdown .icon-lun{
  color: var(--accent-purple);
  text-shadow: 0 0 20px var(--text-light);
}
.mobile-nav-active {
  overflow: hidden;
}

.navbar-mobile {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--secondary-dark);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
}

body.mobile-nav-active .navbar-mobile {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-mobile-content ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-mobile-content li {
  width: 100%;
  text-align: center;
}

.navbar-mobile-content a {
  display: block;
  color: var(--text-muted);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
  opacity: 0;
  transform: translateY(-10px);
  transition: color 0.3s, opacity 0.3s ease-out, transform 0.3s ease-out;
}

body.mobile-nav-active .navbar-mobile-content a {
  opacity: 1;
  transform: translateY(0);
}

body.mobile-nav-active .navbar-mobile-content li:nth-child(1) a {
  transition-delay: 0.1s;
}

body.mobile-nav-active .navbar-mobile-content li:nth-child(2) a {
  transition-delay: 0.2s;
}

body.mobile-nav-active .navbar-mobile-content li:nth-child(3) a {
  transition-delay: 0.3s;
}

body.mobile-nav-active .navbar-mobile-content li:nth-child(4) a {
  transition-delay: 0.4s;
}

body.mobile-nav-active .navbar-mobile-content li:nth-child(5) a {
  transition-delay: 0.5s;
}



.navbar-mobile-content a:hover,
.navbar-mobile-content .active {
  color: var(--text-light);
}

.navbar-mobile-content .dropdown ul {
  display: none;
}

.language-toggle-mobile {
  display: none;
  position: relative;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  z-index: 999;
}

.language-dropdown-mobile {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background: var(--secondary-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 15px;
  list-style: none;
  min-width: 120px;
}

html[dir="rtl"] .language-dropdown-mobile {
  right: auto;
  left: 0;
}

.language-toggle-mobile.active .language-dropdown-mobile {
  display: block;
}

.language-dropdown-mobile a {
  padding: 8px 20px;
  font-size: 14px;
  color: var(--text-light);
  display: block;
  white-space: nowrap;
}

.language-dropdown-mobile a:hover {
  background-color: var(--accent-purple);
}

@media (max-width: 991px) {
  #header {
    left: 0;
    right: 0;
    top: 0 !important;
    border-radius: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .navbar>ul {
    display: none;
  }

  .language-toggle-mobile {
    display: block;
  }

  #mobile-menu-toggle-logo img {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }

  body.mobile-nav-active #mobile-menu-toggle-logo img {
    transform: rotate(180deg);
  }
}

/*--------------------------------------------------------------
# Final & Corrected Logo Animation - V10
--------------------------------------------------------------*/

.logo-container {
  padding: 10px;
  perspective: 300px;
}

.header-logo-svg {
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.header-logo-svg .flipper {
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.6, 0, 0.4, 1);
}

.logo-wrapper,
.menu-icon-wrapper {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.menu-icon-wrapper {
  transform: rotateY(180deg);
}

.header-logo-svg .menu-line {
  stroke: var(--accent-purple);
  stroke-width: 35;
  stroke-linecap: round;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
}

.logo-container.is-flipped .flipper {
  transform: rotateY(180deg);
}

@media (min-width: 992px) {
  .logo-container:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
  }
}

@media (max-width: 991px) {

  body.mobile-nav-active .header-logo-svg .flipper {
    transform: rotateY(180deg);
  }

  body.mobile-nav-active .header-logo-svg .line-2 {
    opacity: 0;
  }


}

/*--------------------------------------------------------------
# Hero Section - V2 Polished Styling
--------------------------------------------------------------*/
#hero {
  padding-top: 80px;
  min-height: 100vh;

  display: flex;
  align-items: center;
}

.hero-content {
  min-width: 100vh;
  padding: 0 15px;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;

  background: linear-gradient(45deg, #ffffff 60%, var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

}

@media (min-width: 991px) {
  html[dir="rtl"] .hero-content h1 {
    padding-right: 80px;
  }

  html[dir="rtl"] .hero-content-disc {
    padding-right: 80px;
  }

}

.hero-content-disc {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 700px;
}

.hero-content .btn-get-started {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 20px rgba(var(--primary-dark-rgb), 0.4);
}

.hero-content .btn-get-started:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(138, 79, 255, 0.4);
}

/*--------------------------------------------------------------
# Hero Section - V2 Linked SVG Drawing Animation
--------------------------------------------------------------*/

.hero-logo-container {
  position: relative;
  max-width: 500px;
  margin: auto;
}

.hero-animated-svg {
  width: 100%;
  padding: 0;
}

.hero-logo-path {
  fill: transparent;
  stroke: var(--accent-purple);
  stroke-width: 5;
  stroke-dasharray: 2500;
  stroke-dashoffset: 2500;
  animation: none;
}

.hero-logo-container.animate .hero-logo-path {
  animation: draw-and-fade 6s ease-in-out infinite;
}


#light-projectile {
  position: fixed;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(138, 79, 255, 0.5) 70%);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: top 1.2s cubic-bezier(0.6, -0.28, 0.73, 0.04),
    left 1.2s cubic-bezier(0.3, 0.5, 0.8, 1),
    opacity 0.5s;
}

@keyframes draw-and-fade {

  0% {
    stroke-dashoffset: 2500;
    fill: transparent;
  }

  40% {
    stroke-dashoffset: 0;
    fill: transparent;
  }

  50% {
    stroke-dashoffset: 0;
    fill: var(--accent-purple);
  }

  80% {
    stroke-dashoffset: 0;
    fill: var(--accent-purple);
  }

  90% {
    fill: transparent;
  }

  100% {
    stroke-dashoffset: 2500;
    fill: transparent;
  }
}


/*--------------------------------------------------------------
# RTL (Arabic) Specific Adjustments
--------------------------------------------------------------*/
html[dir="rtl"] .hero-content-disc {
  line-height: 1.8;
}

html[dir="rtl"] [data-aos="fade-left"] {
  transform: translate3d(100px, 0, 0);
}

html[dir="rtl"] [data-aos="fade-right"] {
  transform: translate3d(-100px, 0, 0);
}


/*--------------------------------------------------------------
# Responsive Design for Mobile
--------------------------------------------------------------*/
@media (max-width: 991px) {
  #hero {
    text-align: center;
  }



  .animated-hero-logo {
    max-width: 60%;
    min-width: 280px;
  }

  .hero-content {
    min-width: 20vh;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content-disc {
    font-size: 16px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .text-lg-start {
    text-align: center !important;
  }

  html[dir="rtl"] .text-lg-start {
    text-align: center !important;
  }
}

#hero .btn-get-started {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin-top: 80px;
  color: #fff;
  background: var(--accent-purple);
  border: 2px solid var(--accent-purple);
}



#hero .btn-get-started:hover {
  background: transparent;
}

@media (min-width: 991px) {
  html[dir="rtl"] .btn-get-started {
    margin-right: 80px;
  }

}

.hero-tag {
  background-color: var(--accent-purple);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  position: absolute;
  box-shadow: 0 5px 15px rgba(138, 79, 255, 0.3);
  z-index: 1;
  animation: floatTag 10s ease-in-out infinite alternate;
}

.hero-tag-pos-1 {
  top: 30%;
  left: 10%;
}

.hero-tag-pos-2 {
  top: 50%;
  right: 15%;
  animation-delay: 1.5s;
}

.hero-tag-pos-3 {
  bottom: 20%;
  left: 25%;
  animation-delay: 3s;
}

.hero-tag-pos-4 {
  top: 70%;
  right: 20%;
  animation-delay: 2.5s;
}

.hero-tag-pos-5 {
  bottom: 35%;
  left: 5%;
  animation-delay: 4s;
}

@keyframes floatTag {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-15px);
  }
}

@media (max-width: 991px) {

  #hero {
    padding-top: 68px;
  }

  #hero h1 {
    font-size: 35px;
  }

  #hero h2 {
    font-size: 20px;
  }

  .hero-tag {
    display: none;
  }
}

/*--------------------------------------------------------------
# Hero Section - V3 Final Text Alignment
--------------------------------------------------------------*/
@media (min-width: 992px) {

  html[dir="ltr"] .hero-content {
    padding-left: 40px;

  }

  html[dir="rtl"] .hero-content {
    padding-right: 40px;
    text-align: right !important;
    margin-right: 2px;
  }

  html[dir="rtl"] .hero-content h2 {
    margin-left: auto;

  }

}

@media (max-width: 991px) {

  .hero-animated-svg {

    margin-left: 40px;
  }

  html[dir="rtl"] .hero-animated-svg {

    margin-right: -40px;
  }
}

/* ===================================================================
   THE ULTIMATE SCROLL INDICATOR (The Lightfall Beacon)
   =================================================================== */
.scroll-down-indicator {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
}

.indicator-body {
  position: relative;
  width: 40px;
  height: 60px;
}

.indicator-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
  opacity: 0;
  transform-origin: top;
  animation: draw-line 3.5s ease-in-out infinite;
}

.indicator-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0);
  border-top: 0;
  border-left: 0;
  transform: translateX(-50%) rotate(45deg);
  animation: show-chevron 3.5s ease-in-out infinite;
}

@keyframes draw-line {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }

  85% {
    opacity: 0;
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

@keyframes show-chevron {

  0%,
  40% {
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: none;
  }

  50% {
    opacity: 1;
  }

  60% {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px var(--accent-purple), 0 0 25px var(--accent-purple);
  }

  85%,
  100% {
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .indicator-body {
    height: 50px;
  }
}



/*--------------------------------------------------------------
# 6. Sections General
--------------------------------------------------------------*/
section {
  padding: 95px 0;
  overflow: hidden;
}

.section-bg {
  background-color: transparent;
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 38px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 70px;
  height: 4px;
  background: var(--accent-purple);
  bottom: 0;
  left: calc(50% - 35px);
}

.section-title p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
}

#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}


/*--------------------------------------------------------------
# Hero Section - Animated Logo
--------------------------------------------------------------*/
.hero-logo-animation {
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 120px;
  z-index: 1;
  opacity: 0.3;
}

.hero-logo-animation svg {
  width: 100%;
}

.hero-logo-animation .logo-path {
  stroke: var(--accent-purple);
  stroke-width: 2;
  fill: transparent;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation:
    draw-path-loop 8s ease-in-out infinite,
    fill-logo-loop 8s ease-in-out infinite;
}

.hero-logo-animation .light-flare-path {
  stroke: url(#light-flare);
  stroke-width: 6;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: light-flare-loop 8s ease-in-out infinite;
}

@keyframes draw-path-loop {
  0% {
    stroke-dashoffset: 1000;
  }

  25% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 0;
  }

}

@keyframes fill-logo-loop {
  0% {
    fill: transparent;
  }

  25% {
    fill: transparent;
  }

  40% {
    fill: var(--accent-purple);
  }

  80% {
    fill: var(--accent-purple);
  }

  100% {
    fill: transparent;
  }

}

@keyframes light-flare-loop {
  0% {
    stroke-dashoffset: 1000;
    opacity: 1;
  }

  30% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  100% {
    opacity: 0;
  }

}

/*--------------------------------------------------------------
# Floating Animated Logo
--------------------------------------------------------------*/
.floating-logo-animation {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 80px;
  z-index: 995;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  animation: float-effect 6s ease-in-out infinite;
}

html[dir="rtl"] .floating-logo-animation {
  left: auto;
  right: 20px;
}

.floating-logo-animation:hover {
  opacity: 1;
}

.floating-logo-animation svg {
  width: 100%;
}

.floating-logo-animation .logo-path {
  stroke: var(--accent-purple);
  stroke-width: 2;
  fill: transparent;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation:
    draw-path-loop 8s ease-in-out infinite,
    fill-logo-loop 8s ease-in-out infinite;
}

.floating-logo-animation .light-flare-path {
  stroke: url(#light-flare);
  stroke-width: 6;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: light-flare-loop 8s ease-in-out infinite;
}

@keyframes draw-path-loop {
  0% {
    stroke-dashoffset: 1000;
  }

  25% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fill-logo-loop {
  0% {
    fill: transparent;
  }

  25% {
    fill: transparent;
  }

  40% {
    fill: var(--accent-purple);
  }

  80% {
    fill: var(--accent-purple);
  }

  100% {
    fill: transparent;
  }
}

@keyframes light-flare-loop {
  0% {
    stroke-dashoffset: 1000;
    opacity: 1;
  }

  30% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes float-effect {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }

}


#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


/*--------------------------------------------------------------
# 7 About Us Section (Company Infographic - Refined Edition)
--------------------------------------------------------------*/


.company-infographic-container {
  padding: 80px 20px;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.company-infographic-container::before {
  display: none;
}

@keyframes rotateBackground {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.infographic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  animation: subtle-glow 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
  position: relative;
}

@keyframes subtle-glow {

  0%,
  100% {
    box-shadow: 0 0 60px -20px rgba(138, 79, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 75px -15px rgba(138, 79, 255, 0.5);
  }
}

@keyframes node-enter-animation {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.infographic-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y),
      rgba(138, 79, 255, 0.2),
      transparent 80%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.infographic-grid:hover::before {
  opacity: 1;
}

.infographic-node {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  z-index: 2;
}

.company-infographic-container.visible .infographic-node {
  animation: node-enter-animation 0.6s ease forwards;
  animation-delay: var(--animation-delay, 0s);
}

.node-main-plate {
  position: relative;
  padding: 25px;
  background: var(--plate-bg);
  border: 1px solid var(--arrow-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
  color: var(--text-light);
  height: 100%;
  transition: background 0.3s ease;
}

.infographic-node:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 12px 35px rgba(138, 79, 255, 0.5);
}

.infographic-node:hover .node-main-plate {
  background: #2a204a;
}

.infographic-node:hover .node-number-label {
  color: #fff;
}

.infographic-node:hover .node-arrow-background {
  transform: translateX(0);
}

.node-brief-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: calc(1.7 * 15px * 3);
  transition: max-height 0.5s ease-in-out;
}

.node-brief-description.expanded {
  -webkit-line-clamp: unset;
  max-height: 300px;
  overflow-y: auto;
}

.node-brief-description.expanded::-webkit-scrollbar {
  width: 8px;
}

.node-brief-description.expanded::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

.node-brief-description.expanded::-webkit-scrollbar-thumb {
  background-color: var(--accent-purple);
  border-radius: 10px;
  border: 2px solid var(--primary-dark);
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--accent-purple);
  font-weight: 600;
  cursor: pointer;
  padding: 10px 0 0;
  font-size: 14px;
  transition: color 0.3s ease;
}

.read-more-btn:hover {
  color: var(--accent-purple-darker);
}

.show-less-btn {
  display: none;
}

/*--------------------------------------------------------------
# 7.5. About Us Section (Company Infographic - Final Touches)
--------------------------------------------------------------*/

@keyframes float-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

.background-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.background-particles span {
  position: absolute;
  bottom: -20px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  opacity: 0.2;
  animation: float-up 10s linear infinite;
}

.background-particles span:nth-child(1) {
  width: 5px;
  height: 5px;
  left: 10%;
  animation-duration: 15s;
  animation-delay: 1s;
}

.background-particles span:nth-child(2) {
  width: 8px;
  height: 8px;
  left: 20%;
  animation-duration: 12s;
  animation-delay: 3s;
}

.background-particles span:nth-child(3) {
  width: 3px;
  height: 3px;
  left: 30%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.background-particles span:nth-child(4) {
  width: 6px;
  height: 6px;
  left: 40%;
  animation-duration: 10s;
  animation-delay: 5s;
}

.background-particles span:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 50%;
  animation-duration: 14s;
  animation-delay: 2s;
}

.background-particles span:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 60%;
  animation-duration: 16s;
  animation-delay: 6s;
}

.background-particles span:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 70%;
  animation-duration: 11s;
  animation-delay: 8s;
}

.background-particles span:nth-child(8) {
  width: 5px;
  height: 5px;
  left: 80%;
  animation-duration: 19s;
  animation-delay: 4s;
}

.background-particles span:nth-child(9) {
  width: 8px;
  height: 8px;
  left: 90%;
  animation-duration: 13s;
  animation-delay: 1s;
}

.background-particles span:nth-child(10) {
  width: 4px;
  height: 4px;
  left: 95%;
  animation-duration: 17s;
  animation-delay: 7s;
}

.background-particles span:nth-child(11) {
  width: 3px;
  height: 3px;
  left: 5%;
  animation-duration: 14s;
  animation-delay: 9s;
}

.background-particles span:nth-child(12) {
  width: 6px;
  height: 6px;
  left: 25%;
  animation-duration: 16s;
  animation-delay: 2s;
}

.background-particles span:nth-child(13) {
  width: 5px;
  height: 5px;
  left: 45%;
  animation-duration: 11s;
  animation-delay: 5s;
}

.background-particles span:nth-child(14) {
  width: 7px;
  height: 7px;
  left: 65%;
  animation-duration: 18s;
  animation-delay: 1s;
}

.background-particles span:nth-child(15) {
  width: 4px;
  height: 4px;
  left: 85%;
  animation-duration: 12s;
  animation-delay: 6s;
}

.node-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(0.8);
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(138, 79, 255, 0) 70%);
  opacity: 0;
  z-index: 2;
  filter: blur(25px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.infographic-node:hover .node-glow-effect {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1.3);
}

.node-arrow-background {
  z-index: 3;
}

.node-main-plate {
  z-index: 10;
}

@media (max-width: 768px) {
  .infographic-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .infographic-node.pos-1,
  .infographic-node.pos-2,
  .infographic-node.pos-3,
  .infographic-node.pos-4 {
    grid-column: auto;
    grid-row: auto;
  }

  .node-arrow-background {
    display: none;
  }

  .infographic-node .node-number-label,
  .infographic-node .node-title,
  .infographic-node .node-brief-description {
    text-align: left;
  }

  .infographic-node.pos-2 .node-number-label,
  .infographic-node.pos-3 .node-number-label,
  .infographic-node.pos-2 .node-title,
  .infographic-node.pos-3 .node-title {
    text-align: left;
  }

  .infographic-grid::before {
    display: none;
  }

  .central-hub-animation {
    display: none;
  }
}

@keyframes pulse-and-radiate {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
}

@keyframes radiate-lines {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.central-hub-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.hub-sparkle {
  position: relative;
  width: 100%;
  height: 100%;
}

.hub-sparkle::before,
.hub-sparkle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
  animation: pulse-and-radiate 3s ease-in-out infinite;
}

.hub-sparkle::before {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.hub-sparkle::after {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-purple), transparent);
  transform: translate(-50%, -50%);
}

html[dir="rtl"] .infographic-node .node-title,
.node-brief-description .node-content-body .node-number-label {

  text-align: right;
}

/*==============================================================
# 7.6 About Us Section - RTL Text Alignment Fix
==============================================================*/

html[dir="rtl"] #about .section-title div {
  text-align: right;
}


html[dir="rtl"] #about .node-main-plate .node-brief-description{
  text-align: right;
}

/*--------------------------------------------------------------
# Services Section - Luminous Touch v3 (Constant Stardust)
--------------------------------------------------------------*/
.services-v-luminous {
  padding: 80px 0;
  position: relative;
  background-color: transparent;
  overflow: hidden;
}

.animated-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 79, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(138, 79, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: pan-grid-slow 120s linear infinite;
  z-index: 1;
}

@keyframes pan-grid-slow {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 1000px 1000px;
  }
}

.services-v-luminous .container {
  position: relative;
  z-index: 2;
}

.luminous-card {
  position: relative;
  padding: 40px 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--secondary-dark);
  height: 320px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.luminous-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.luminous-card .spotlight {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(138, 79, 255, 0) 65%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 2;
  top: var(--y);
  left: var(--x);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.4s, transform 0.4s;
}

.luminous-card:hover .spotlight {
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(1);
}

.stardust-burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 15px;
  z-index: 1;
}

.stardust-burst::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 25px 25px;
  opacity: 0.15;
  animation: drift-particles 90s linear infinite;
}

@keyframes drift-particles {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  100% {
    transform: rotate(360deg) translate(-100px, 100px);
  }
}

.luminous-content {
  position: absolute;
  inset: 0;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.luminous-content .icon {
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  transition: transform 0.4s ease;
}

.luminous-content .icon img {
  max-width: 40px;
}

.luminous-content h4 {
  font-size: 22px;
  margin-bottom: 15px;
}

.luminous-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  transition: color 0.3s;
}

.luminous-content.default {
  z-index: 5;
}

.luminous-content.default h4 {
  color: #fff;
}

.luminous-content.glowing {
  z-index: 6;
  clip-path: circle(0px at var(--x-rel) var(--y-rel));
  transition: clip-path 0.3s ease;
}

.luminous-card:hover .luminous-content.glowing {
  clip-path: circle(125px at var(--x-rel) var(--y-rel));
}

.luminous-content.glowing h4 {
  color: #fff;
  text-shadow: 0 0 10px #fff;
}

.luminous-content.glowing .icon {
  filter: drop-shadow(0 0 10px var(--accent-purple));
}

.luminous-content.glowing p {
  color: #fff;
}

/*--------------------------------------------------------------
# Features Section - Interactive Holograms
--------------------------------------------------------------*/
.features-v-hologram {
  background-color: transparent;
  padding: 80px 0;
}

.hologram-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(var(--primary-dark-rgb), 0.4);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(138, 79, 255, 0.2);
  transition: all 0.4s ease;
  height: 100%;
}

.hologram-card:hover {
  border-color: var(--accent-purple);
  background: rgba(var(--primary-dark-rgb), 0.7);
}

.hologram-emitter {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hologram-emitter::before {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: #111;
  border-radius: 5px;
  box-shadow: 0 0 15px #000;
}

.hologram-light {
  position: absolute;
  bottom: 10px;
  width: 10px;
  height: 60px;
  background: linear-gradient(to top, var(--accent-purple), transparent);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
  opacity: 0.5;
  transition: opacity 0.4s;
}

.hologram-card:hover .hologram-light {
  opacity: 1;
}

.hologram-icon {
  position: relative;
  font-size: 48px;
  color: var(--accent-purple);
  text-shadow: 0 0 15px var(--accent-purple), 0 0 25px var(--accent-purple);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
  animation: hologram-float 4s infinite ease-in-out;
}

.hologram-card:hover .hologram-icon {
  transform: rotateY(180deg) translateZ(20px) scale(1.1);
  color: #fff;
}

@keyframes hologram-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hologram-content h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}

.hologram-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

html[dir="rtl"] .hologram-card {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hologram-emitter {
  gap: 0;
}

html[dir="rtl"] .hologram-content {
  text-align: right;
}

/*--------------------------------------------------------------
# 10. Project Section (THE KINETIC WALL v20.0 - MODAL VIEW)
--------------------------------------------------------------*/

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.portal-card {
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.portal-card:hover .card-background {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--primary-dark-rgb), 0.8) 0%, transparent 60%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  color: #fff;
}

.card-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
}

.portal-slideshow {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-dark);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: opacity 0.4s ease, visibility 0s linear 0.4s, transform 0.4s ease;
}

html.slideshow-open .portal-slideshow {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.4s ease, visibility 0s linear 0s, transform 0.4s ease;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr;
}

.slideshow-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg-container {
  grid-area: 1 / 1;
  overflow: hidden;
}

.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slide-bg-zoom-in 0.8s ease-out forwards;
}

@keyframes slide-bg-zoom-in {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.slide-details {
  grid-area: 1 / 1;
  position: relative;
  background: linear-gradient(90deg, rgba(var(--primary-dark-rgb), 0.8) 0%, rgba(var(--primary-dark-rgb), 0.4) 50%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5%;
  padding-bottom: 120px;
}

html[dir="rtl"] .slide-details {
  background: linear-gradient(-90deg, rgba(var(--primary-dark-rgb), 0.8) 0%, rgba(var(--primary-dark-rgb), 0.4) 50%, transparent 100%);
  text-align: right;
}

.slide-category,
.slide-title,
.slide-description,
.slide-link {
  opacity: 0;
  transform: translateY(30px);
  animation: slide-content-fade-in 0.6s ease-out forwards;
}

.slideshow-slide.is-active .slide-category {
  animation-delay: 0.3s;
}

.slideshow-slide.is-active .slide-title {
  animation-delay: 0.4s;
}

.slideshow-slide.is-active .slide-description {
  animation-delay: 0.5s;
}

.slideshow-slide.is-active .slide-link {
  animation-delay: 0.6s;
}

@keyframes slide-content-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-category {
  color: var(--accent-purple);
  font-weight: 500;
}

.slide-title {
  font-size: 4rem;
  font-weight: 700;
  margin: 15px 0;
}

.slide-description {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.slide-link {
  margin-top: 30px;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  padding: 14px 35px;
  border-radius: 50px;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.3s ease;
}

html[dir="rtl"] .slide-link {
  align-self: flex-end;
}

.slide-link:hover {
  background: var(--accent-purple);
  color: #fff;
}

.slideshow-close-btn,
.slideshow-nav {
  position: absolute;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}


.slideshow-close-btn:hover,
.slideshow-nav:hover {
  background: var(--accent-purple);
  transform: scale(1.1) translateY(-50%);
}

.slideshow-close-btn {
  top: 30px;
  right: 30px;
}

html[dir="rtl"] .slideshow-close-btn {
  right: auto;
  left: 30px;
}

.slideshow-nav {
  top: 50%;
  transform: translateY(-50%);
}

.slideshow-nav.prev {
  left: 30px;
}

.slideshow-nav.next {
  right: 30px;
}

html[dir="rtl"] .slideshow-nav.prev {
  left: auto;
  right: 30px;
}

html[dir="rtl"] .slideshow-nav.next {
  right: auto;
  left: 30px;
}

/* --- FIX: Correctly flip slideshow arrow icons for RTL --- */
html[dir="rtl"] .slideshow-nav.next i,
html[dir="rtl"] .slideshow-nav.prev i {
  transform: scaleX(-1);
}
.slideshow-slide.slide-in-next {
  animation: slide-in-next 0.6s ease-out forwards;
}

.slideshow-slide.slide-out-next {
  animation: slide-out-next 0.6s ease-out forwards;
}

.slideshow-slide.slide-in-prev {
  animation: slide-in-prev 0.6s ease-out forwards;
}

.slideshow-slide.slide-out-prev {
  animation: slide-out-prev 0.6s ease-out forwards;
}

@keyframes slide-in-next {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slide-out-next {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes slide-in-prev {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slide-out-prev {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

.slide-thumbnails-container {
  position: absolute;
  bottom: 30px;
  left: 5%;
  right: 5%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide-thumbnails-container::-webkit-scrollbar {
  display: none;
}

.thumbnail-item {
  width: 100px;
  height: 75px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  cursor: pointer;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail-item:hover {
  border-color: var(--accent-purple);
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail-item.is-active {
  border-color: var(--accent-purple);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .slide-details {
    background: rgba(var(--primary-dark-rgb), 0.7);
    text-align: center;
    padding-bottom: 150px;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .slide-description {
    margin-left: auto;
    margin-right: auto;
  }

  .slide-link {
    align-self: center;
  }
}

.modal-link {
  font-weight: bold;
  border: 2px solid var(--accent-purple);
  padding: 10px 25px;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }

  .modal-image {
    width: 45%;
    height: auto;
  }

  .modal-details {
    width: 55%;
  }
}

.modal_btn_see {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  ;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  align-items: center;
  justify-items: center;

}

.portal-card {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.portal-card:hover .card-background {
  transform: scale(1.05);
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}
/*==============================================================
# 10.1 Project Section - "See All Projects" Button Style
==============================================================*/
.project_see_more {
  display: inline-block;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(45deg, var(--accent-purple), var(--accent-purple-darker));
  border: none; /* This will override the previous border */
  border-radius: 50px; /* Creates the pill shape */
  box-shadow: 0 5px 25px rgba(138, 79, 255, 0.4); /* The purple glow */
  transition: all 0.4s ease; /* Smooth transition for all effects */
  position: relative;
  overflow: hidden; /* Important for the shine effect */
}

.project_see_more:hover,
.project_see_more:focus {
  transform: translateY(-5px) scale(1.05); 
  box-shadow: 0 10px 35px rgba(138, 79, 255, 0.6); 
  color: #fff; 
}

.project_see_more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.project_see_more:hover::before {
  left: 100%;
}
/*--------------------------------------------------------------
# 11. Team Section (Celestial Profiles)
--------------------------------------------------------------*/
#team .swiper-slide {
  height: auto;
  padding: 40px 0;

}

.celestial-profile {
  text-align: center;
  position: relative;
  padding: 30px 20px;
  background: rgba(33, 24, 60, 0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(158, 79, 255, 0.2);
  border-radius: 20px;
  transition: all 0.4s ease;
}

.celestial-profile:hover {
  border-color: var(--accent-cyan);
  background: rgba(33, 24, 60, 0.6);
}

.profile-image-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 25px auto;
}

.orbital-ring {
  position: absolute;
  inset: -5px;
  border: 2px solid transparent;
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-cyan);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.celestial-profile:hover .orbital-ring {
  animation: spin 2s linear infinite;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-dark);
}

.member-info h4 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 5px;
}

.member-info span {
  font-size: 13px;
  color: var(--accent-purple);
  display: block;
}

.social-links {
  margin-top: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.celestial-profile:hover .social-links {
  opacity: 1;
  transform: translateY(0);
}

.social-links a {
  color: var(--text-muted);
  font-size: 18px;
  margin: 0 10px;
}


/*--------------------------------------------------------------
# 12. Contact Section (Integrated Animated Swap Style)
--------------------------------------------------------------*/
.contact-page-container {
  position: relative;
  width: 100%;
  min-height: 650px;
  overflow: hidden;
  border-radius: 20px;
}

.contact-page-container:before {
  content: '';
  position: absolute;
  width: 2000px;
  height: 2000px;
  border-radius: 50%;
  background: linear-gradient(-45deg, var(--accent-purple), var(--accent-purple-darker));
  top: -10%;
  right: 48%;
  transform: translateY(-50%);
  z-index: 6;
  transition: 1.8s ease-in-out;
}

.forms-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.contact-info-swap {
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 50%;
  display: grid;
  grid-template-columns: 1fr;
  z-index: 5;
  transition: 1s 0.7s ease-in-out;
}


.contact-info-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: 0.2s 0.7s ease-in-out;
}

.contact-form-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: 0.2s 0.7s ease-in-out;
}

.contact-form-main {
  z-index: 2;
}

.contact-info-panel {
  z-index: 1;
  opacity: 0;
}

.title {
  color: var(--text-light);
  margin-bottom: 20px;
}

.input-field {
  max-width: 380px;
  width: 100%;
  height: 55px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 10px 0;
  border-radius: 55px;
  display: grid;
  grid-template-columns: 12% 90%;
  padding: 0 .4rem;
  display: flex;
  align-items: center;
  justify-items: center;
}

.input-field i {
  text-align: center;

  line-height: 55px;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 20px;
}

.input-field input,
.input-field textarea {
  background: none;
  outline: none;
  padding: 10px;
  border: none;
  line-height: 1;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-light);
  width: 100%;
  height: 100%;
}

.input-field textarea {
  resize: none;
  padding-top: 30px;
}

.input-field.textarea-field {
  height: 80px;
}

.input-field input::placeholder,
.input-field textarea::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.contact-info-panel .title {
  color: #ffffff;
}

.contact-info-panel .info-item {
  display: flex;
  align-items: center;
  text-align: left;
  max-width: 380px;
  width: 100%;
  margin: 15px 0;
  color: #ffffff;
}

.contact-info-panel .info-item i {
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-right: 15px;
}

.contact-info-panel .info-item p {
  margin: 0;
  font-size: 1rem;
  color: #ffffff;
}

.info-social-links {
  margin-top: 20px;
}

.info-social-links .social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border: 1px solid #555;
  border-radius: 50%;
  text-decoration: none;
  color: #ffffff;
  margin: 0 5px;
  transition: 0.3s;
}

.info-social-links .social-icon:hover {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.btns {
  width: 150px;
  height: 49px;
  border: none;
  outline: none;
  border-radius: 49px;
  cursor: pointer;
  background-color: var(--accent-purple);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  margin: 10px 0;
  transition: .5s;
}

.btns:hover {
  background-color: var(--accent-purple-darker);
}

.panels-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
  text-align: center;
  z-index: 7;
}

.left-panel {
  pointer-events: all;
  padding: 3rem 17% 2rem 12%;
}

.right-panel {
  pointer-events: none;
  padding: 3rem 12% 2rem 17%;
}

.panel .content {
  color: #fff;
  transition: .9s .6s ease-in-out;
  
}

.panel h3 {
  font-weight: 600;
  line-height: 1;
  font-size: 1.5rem;
}

.panel p {
  font-size: 0.95rem;
  padding: 0.7rem 0;
}

.btns.transparent {
  margin-bottom: 0;
  background: none;
  border: 2px solid #fff;
  width: 130px;
  height: 41px;
  font-weight: 600;
  font-size: 0.8rem;
}

.btns.transparent:hover {
  background-color: #fff;
  color: var(--accent-purple);
}

.image {
  width: 90%;
  transition: 1.1s .4s ease-in-out;
  color: #fff;
}

.right-panel .content,
.right-panel .image {
  transform: translateX(800px);
}

.contact-page-container.show-info-mode:before {
  transform: translate(100%, -50%);
  right: 52%;
}

.contact-page-container.show-info-mode .left-panel .image,
.contact-page-container.show-info-mode .left-panel .content {
  transform: translateX(-800px);
}

.contact-page-container.show-info-mode .right-panel .content,
.contact-page-container.show-info-mode .right-panel .image {
  transform: translateX(0px);
}

.contact-page-container.show-info-mode .left-panel {
  pointer-events: none;
}

.contact-page-container.show-info-mode .right-panel {
  pointer-events: all;
}

.contact-page-container.show-info-mode .contact-info-swap {
  left: 25%;
}

.contact-page-container.show-info-mode .contact-form-main {
  z-index: 1;
  opacity: 0;
}

.contact-page-container.show-info-mode .contact-info-panel {
  z-index: 2;
  opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 870px) {
  .contact-page-container {
    min-height: 770px;
  }

  .contact-page-container:before {
    width: 1500px;
    height: 1500px;
    left: 30%;
    bottom: 68%;
    transform: translateX(-50%);
    right: initial;
    top: initial;
    transition: 2s ease-in-out;
  }

  .contact-info-swap {
    width: 100%;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -100%);
    transition: 1s 0.8s ease-in-out;
  }

  .panels-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 2fr 1fr;
  }

  .panel {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 2.5rem 8%;
  }

  .image {
    width: 200px;
    transition: 0.9s 0.6s ease-in-out;
  }

  .panel .content {
    padding-right: 15%;
    transition: 0.9s 0.8s ease-in-out;
  }

  .panel h3 {
    font-size: 1.2rem;
  }

  .panel p {
    font-size: 0.7rem;
    padding: 0.5rem 0;
  }

  .btns.transparent {
    width: 110px;
    height: 35px;
    font-size: 0.7rem;
  }

  .left-panel {
    grid-row: 1 / 2;
  }

  .right-panel {
    grid-row: 3 / 4;
  }

  .right-panel .content,
  .right-panel .image {
    transform: translateY(300px);
  }

  .contact-page-container.show-info-mode:before {
    transform: translate(-50%, 100%);
    bottom: 32%;
    right: initial;
  }

  .contact-page-container.show-info-mode .left-panel .image,
  .contact-page-container.show-info-mode .left-panel .content {
    transform: translateY(-300px);
  }

  .contact-page-container.show-info-mode .contact-info-swap {
    top: 5%;
    transform: translate(-50%, 0);
    left: 50%;
  }

  .contact-page-container.show-info-mode .right-panel .content,
  .contact-page-container.show-info-mode .right-panel .image {
    transform: translateY(0);
  }
}

@media (max-width: 570px) {


  .image {
    display: none;
  }

  .panel .content {
    padding: 0.5rem 1rem;
  }

  .contact-page-container:before {
    bottom: 72%;
    left: 50%;
  }

  .contact-page-container.show-info-mode:before {
    bottom: 28%;
    left: 50%;
  }
}

.animated-contact-form .my-3 {
  min-height: 24px;
}

.animated-contact-form .loading,
.animated-contact-form .error-message,
.animated-contact-form .sent-message {
  display: none;
  padding: 8px 15px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.animated-contact-form .sent-message {
  background-color: #059669;
}

.animated-contact-form .error-message {
  background-color: #dc2626;
}

/*--------------------------------------------------------------
# 12. Contact Section (Advanced News Panel v2.0)
--------------------------------------------------------------*/

/* --- اللوحة الرئيسية --- */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  overflow: hidden;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: opacity 0.2s 0.7s ease-in-out;
  z-index: 1;
  opacity: 0;
}

.contact-page-container.show-info-mode .contact-info-panel {
  z-index: 2;
  opacity: 1;
}

.contact-info-panel .title {
  color: #ffffff;
  width: 100%;
  max-width: 450px;
  text-align: left;
  padding: 0 15px;
  margin-bottom: 15px;
}

html[dir="rtl"] .contact-info-panel .title {
  text-align: right;
}

/* --- حاوية الأخبار القابلة للتمرير (تحسين) --- */
.news-panel-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 380px;
  max-height: 320px;
  /* زيادة الارتفاع قليلاً للتصميم الجديد */
  overflow-y: auto;
  padding: 5px 15px;
  /* تعديل الـ padding */
  position: relative;
}

/* ... (أنماط شريط التمرير تبقى كما هي) ... */
.news-panel-container::-webkit-scrollbar {
  width: 8px;
}

.news-panel-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.news-panel-container::-webkit-scrollbar-thumb {
  background-color: var(--accent-purple);
  border-radius: 10px;
}

.news-panel-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-purple-darker, #6A3DD2);
}

/* --- النمط العام لكل خبر --- */
.news-item {
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  /* مهم جداً لتأثيرات الصور */
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;

}

/* --- تصميم الخبر المميز (البطل) --- */
.news-item-featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* يضمن تجاوب الصورة مع الحفاظ على النسبة */
  display: flex;
  /* لمحاذاة المحتوى الداخلي */
  flex-direction: column;
  justify-content: flex-end;
  /* وضع المحتوى في الأسفل */
}

.news-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.news-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* هذا هو مفتاح تجاوب الصورة: تملأ المساحة وتقص الزائد */
  transition: transform 0.4s ease;
}

.news-content-overlay {
  position: relative;
  z-index: 2;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

.news-content-overlay h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 5px 0;
}

/* --- اللوحة الرئيسية --- */
.contact-info-panel .title {
  color: #ffffff;
  width: 100%;
  max-width: 450px;
  /* تعديل: زيادة العرض من 380px إلى 450px */
  text-align: left;
  padding: 0 15px;
  margin-bottom: 20px;
  /* زيادة الهامش السفلي */
  font-size: 1.8rem;
  /* جديد: تكبير حجم العنوان الرئيسي */
}

html[dir="rtl"] .contact-info-panel .title {
  text-align: right;
}

/* --- حاوية الأخبار القابلة للتمرير --- */
.news-panel-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* تعديل: زيادة المسافة بين العناصر */
  width: 100%;
  max-width: 450px;
  /* تعديل: زيادة العرض من 380px إلى 450px */
  max-height: 400px;
  /* تعديل: زيادة ارتفاع منطقة التمرير من 320px إلى 400px */
  overflow-y: auto;
  padding: 5px 15px;
  position: relative;
}

/* --- تصميم الخبر المميز (البطل) --- */
.news-content-overlay h4 {
  font-size: 1.2rem;
  /* تعديل: تكبير خط العنوان المميز */
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 S8px;
  /* زيادة الهامش */
}

.news-content-overlay {
  padding: 20px;
  /* زيادة الحشوة الداخلية */
}

/* --- تصميم الأخبار الثانوية (القائمة) --- */
.news-item-secondary {
  padding: 15px;
  /* زيادة الحشوة الداخلية */
}

.news-thumb-secondary {
  width: 65px;
  /* تعديل: تكبير الصورة المصغرة من 55px */
  height: 65px;
  /* تعديل: تكبير الصورة المصغرة من 55px */
  border-radius: 10px;
  /* زيادة استدارة الحواف */
  object-fit: cover;
  flex-shrink: 0;
}

.news-content h4 {
  font-size: 0.95rem;
  /* تعديل: تكبير خط العنوان الثانوي */
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 5px 0;
}

/* --- فاصل و روابط التواصل --- */
hr.news-separator {
  width: 100%;
  max-width: 450px;
  /* تعديل: زيادة العرض ليتناسب مع الحاوية */
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 20px 0;
  /* زيادة الهامش */
}

.news-content-overlay span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-item-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.news-item-featured:hover .news-image-bg img {
  transform: scale(1.05);
  /* تأثير تقريب الصورة عند التمرير */
}

/* --- تصميم الأخبار الثانوية (القائمة) --- */
.news-item-secondary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid transparent;
}

.news-thumb-secondary {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
  /* يضمن تجاوب الصورة المصغرة أيضاً */
  flex-shrink: 0;
}

.news-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

.news-content span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-item-secondary:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent-purple);
}

/*--------------------------------------------------------------
# 13. RTL Adjustments
--------------------------------------------------------------*/

html[dir="rtl"] {

  .panels-container {
    direction: ltr;
  }

  .contact-info-panel .info-item i {
    margin-right: 0;
    margin-left: 15px;
  }
}

/*--------------------------------------------------------------
# 14. RTL Specific Adjustments
--------------------------------------------------------------*/

html[dir="rtl"] .neural-node.active {
  transform: translateX(50%) scale(1);
}



/*
      CRITICAL FIX: This rule is essential to prevent scrollbars from
      interfering when the slideshow is active.
    */
html.slideshow-open {
  overflow: hidden;
}



/*--------------------------------------------------------------
# Cosmic Data Stream Footer - Astonishing Level
--------------------------------------------------------------*/
.cosmic-footer {
  position: relative;
  background-color: transparent;
  overflow: hidden;
  padding: 50px 0 30px;
  max-height: max-content;
}



.footer-content-layer {
  position: relative;
  z-index: 3;
  animation: fade-in-content 2s ease-out 1s forwards;
  opacity: 0;
}

@keyframes fade-in-content {
  to {
    opacity: 1;
  }
}

.energy-core {
  position: absolute;
  bottom: -50px;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-purple) 0%, rgba(138, 79, 255, 0) 60%);
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(30px);
  z-index: 2;
  animation: pulse-core 5s infinite ease-in-out;
}

@keyframes pulse-core {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }
}

.cosmic-footer .footer-col {
  margin-bottom: 40px;
}

.cosmic-footer .footer-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(138, 79, 255, 0.5);
 
}

.cosmic-footer p,
.cosmic-footer span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 15px;

}

.cosmic-footer .footer-links-list a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;

}

.cosmic-footer .footer-links-list a:hover {
  color: #fff;
  text-shadow: 0 0 10px #fff;
  transform: translateX(5px);
}

html[dir="rtl"] .cosmic-footer .footer-links-list a:hover {
  transform: translateX(-5px);
}

html[dir="rtl"] .footer-links-list {

  margin-right: -40px;
}

.cosmic-footer .footer-contact-info i {
  color: var(--accent-purple);
  margin-right: 10px;
  font-size: 20px;
}

html[dir="rtl"] .cosmic-footer .footer-contact-info i {
  margin-right: 0;
  margin-left: 10px;
}

.cosmic-footer .footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cosmic-footer .neon-social-links {
  margin-bottom: 20px;
}

.neon-social-links a {
  font-size: 24px;
  margin: 0 10px;
  color: #fff;
  transition: all 0.3s ease;
}

.neon-social-links a.facebook:hover {
  color: #1877F2;
  text-shadow: 0 0 15px #1877F2;
}

.neon-social-links a.instagram:hover {
  color: #E4405F;
  text-shadow: 0 0 15px #E4405F;
}

.neon-social-links a.linkedin:hover {
  color: #0A66C2;
  text-shadow: 0 0 15px #0A66C2;
}

.neon-social-links a.whatsapp:hover {
  color: #25D366;
  text-shadow: 0 0 15px #25D366;
}

.cosmic-footer .copyright {
  color: rgba(255, 255, 255, 0.6);
}

.cosmic-footer .copyright strong {
  color: #fff;
}

.neon-social-links a,
.celestial-profile .social-links a {
  font-size: 24px;
  margin: 0 10px;
  color: #fff; 
  transition: all 0.3s ease;
}

.neon-social-links a.facebook:hover,
.celestial-profile .social-links a.facebook:hover {
  color: #1877F2;
  text-shadow: 0 0 15px #1877F2;
}

.neon-social-links a.instagram:hover,
.celestial-profile .social-links a.instagram:hover {
  color: #E4405F;
  text-shadow: 0 0 15px #E4405F;
}

.neon-social-links a.linkedin:hover,
.celestial-profile .social-links a.linkedin:hover {
  color: #0A66C2;
  text-shadow: 0 0 15px #0A66C2;
}

.celestial-profile .social-links a:hover {
  color: var(--accent-purple); 
  text-shadow: 0 0 15px var(--accent-purple);
}

.neon-social-links a.whatsapp:hover,
.celestial-profile .social-links a.whatsapp:hover {
  color: #25D366;
  text-shadow: 0 0 15px #25D366;
}

/*--------------------------------------------------------------
# Cosmic Footer - Mobile Optimization
--------------------------------------------------------------*/
@media (max-width: 768px) {


  .cosmic-footer {
    padding: 30px 0 20px;
  }

  .energy-core {
    width: 150px;
    height: 150px;
    bottom: -75px;
    filter: blur(20px);
  }

  .cosmic-footer .footer-col {
    text-align: center;
    margin-bottom: 30px;
  }

  .cosmic-footer .footer-contact-info p {
    justify-content: center;
  }

  html[dir="ltr"] .cosmic-footer .footer-links-list a:hover {
    transform: translateX(0);
  }

  html[dir="rtl"] .cosmic-footer .footer-links-list a:hover {
    transform: translateX(0);
  }

  .cosmic-footer .footer-bottom {
    margin-top: 20px;
  }
}




/*--------------------------------------------------------------
# Quantum Interactive Services & Features - Astonishing Level
--------------------------------------------------------------*/
.quantum-section {
  padding: 80px 0;
  position: relative;
  background-color: var(--secondary-dark);
  overflow: hidden;
}

.quantum-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138, 79, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to right, rgba(138, 79, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.quantum-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 500px at var(--mouse-x) var(--mouse-y), rgba(138, 79, 255, 0.1), transparent 80%);
  pointer-events: none;
}

.quantum-card {
  perspective: 1000px;
}

.quantum-card-inner {
  position: relative;
  padding: 30px;
  background: rgba(var(--primary-dark-rgb), 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(138, 79, 255, 0.2);
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  height: 280px;
}

.quantum-card:hover .quantum-card-inner {
  border-color: rgba(138, 79, 255, 0.8);
  box-shadow: 0 10px 40px rgba(138, 79, 255, 0.3);
  height: 450px;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(145deg, var(--accent-purple), var(--accent-purple-darker));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(138, 79, 255, 0.5);
  animation: pulse-icon 4s infinite ease-in-out;
}

.service-icon {
  max-width: 40px;
  max-height: 40px;
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.card-front {
  text-align: center;
}

.card-front h4 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 15px;
  transition: color 0.3s;
}

.card-front p {
  color: var(--text-muted);
  line-height: 1.7;
}

.quantum-card:hover .card-front h4 {
  color: var(--accent-purple);
}

.card-hidden-features {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.2s;
}

.quantum-card:hover .card-hidden-features {
  opacity: 1;
  transform: translateY(0);
}

.card-hidden-features h5 {
  font-size: 16px;
  color: var(--accent-purple);
  margin-bottom: 15px;
  text-align: center;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  color: var(--text-muted);
  margin-bottom: 10px;
  font-size: 15px;
}

.features-list i {
  margin-right: 10px;
  color: #fff;
  width: 20px;
  text-align: center;
}

.btn-see-all {
  display: inline-block;
  padding: 12px 35px;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-see-all:hover {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 20px rgba(138, 79, 255, 0.5);
}

/*--------------------------------------------------------------
# 15. Custom Global Scrollbar
--------------------------------------------------------------*/

::-webkit-scrollbar {
  width: 12px; 
}

::-webkit-scrollbar-track {
  background: #0d0915; 
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent-purple); 
  border-radius: 20px; 
  border: 3px solid #0d0915; 
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-purple-darker); 
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) #0d0915; 
}

/*--------------------------------------------------------------
# Hero Section - Desktop RTL Alignment Fix
--------------------------------------------------------------*/
@media (min-width: 992px) {

  /* For the Arabic (RTL) layout on desktop screens */

  .hero-content {
    /* Remove the old spacing on the right side that was pushing the text too far left */
    padding-right: 0;
    margin-right: 0;
   

    /* Add padding on the LEFT side. In an RTL layout, this pushes the content block
       to the RIGHT, aligning it correctly with the navbar.
       You can adjust the 8% value as needed. */
    padding-left: 0%; 
  }
   html[dir="ltr"]  .hero-content h1,
 html[dir="ltr"]  .hero-content-disc {
    /* Remove the old spacing on the left side that was pushing the text too far right */
  
    margin-left: 30%;
    

    /* Add padding on the RIGHT side. In an LTR layout, this pushes the content block
       to the LEFT, aligning it correctly with the navbar.
       You can adjust the 8% value as needed. */
    }
 html[dir="ltr"]  .hero-content h1{
  font-size: 3rem;
 }
 html[dir="rtl"] .hero-content h1,
  html[dir="rtl"] .hero-content-disc {
    /* This prevents the old padding from interfering with the new alignment */
    padding: 0;
    margin-right: 35%;
  }

  /* 3. Nudge the logo slightly to the right to balance the new layout */
.hero-logo-container {
  padding: 0;
  margin: 0;
    /* This moves the logo slightly towards the center, creating a more balanced look.
       You can adjust the 40px value. */
    /* transform: translateX(40px); */
  }
}

/* ==============================================================
   PROJECT MODAL - HYBRID LAYOUT (Photo 2 Style)
   ============================================================== */

/* 1. Full Screen Background (Blurry/Dark) */
.slide-bg {
    position: fixed; /* Fixed so it doesn't scroll with content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: blur(8px) brightness(0.4); /* Blur effect for background */
    transform: scale(1.1); /* Prevents blur edges showing */
    transition: background-image 0.5s ease;
}

/* 2. Scrollable Wrapper (Contains Text + Main Frame + Thumbnails) */
.slide-content-wrapper {
    position: absolute;
    inset: 0;
    z-index: 10;
    overflow-y: auto; /* Allows scrolling */
    padding: 80px 20px 40px; /* Space for Close button */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Important: Allow clicks to pass through empty space to buttons */
    pointer-events: none; 
}

/* 3. Text Section */
.slide-text-container {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
    pointer-events: auto; /* Re-enable clicks */
    animation: slide-in-down 0.6s ease forwards;
}

.slide-category {
    color: var(--accent-purple);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0,0,0,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(138, 79, 255, 0.3);
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 15px 0;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.slide-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.slide-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 35px;
    background: var(--accent-purple);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(138, 79, 255, 0.4);
    pointer-events: auto;
}

/* 4. VISUALS CONTAINER (The "Photo 2" Look) */
.slide-visuals-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events: auto; /* Re-enable clicks */
    animation: slide-in-up 0.8s ease forwards;
    padding-bottom: 50px;
}

/* The Central Image Frame */
.main-display-frame {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-size: contain; /* Show full image without cropping */
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0,0,0,0.5); /* Dark background for transparent PNGs */
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Deep shadow to pop out */
    border: 1px solid rgba(255,255,255,0.1);
    transition: background-image 0.4s ease;
}

/* Thumbnails (Below the frame) */
.slide-thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.thumbnail-item {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumbnail-item:hover, .thumbnail-item.is-active {
    opacity: 1;
    border-color: var(--accent-purple);
    transform: scale(1.1);
}

/* 5. Navigation Buttons Fix (Z-Index is Key) */
.slideshow-close-btn,
.slideshow-nav {
    z-index: 1000 !important;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.slideshow-close-btn:hover, .slideshow-nav:hover {
    background: var(--accent-purple);
}

/* Animations */
@keyframes slide-in-down {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .slide-title { font-size: 2rem; }
    .main-display-frame {
        padding-bottom: 75%; /* Taller aspect ratio for mobile */
        background-size: contain;
    }
}