/* VEXA RTL Stylesheet */

html[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

/* Header - Keep layout fixed like LTR */
html[dir="rtl"] .header-area .main-nav .logo {
  left: 30px !important;
  right: auto !important;
}

html[dir="rtl"] .header-area .main-nav .nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

html[dir="rtl"] .header-area .main-nav .nav li {
  padding: 0 0 0 40px;
}

html[dir="rtl"] .header-area .main-nav .nav li:last-child {
  padding: 0;
}

/* Language switcher - keep on right side */
html[dir="rtl"] .language-switcher {
  right: 20px !important;
  left: auto !important;
}

html[dir="rtl"] .header-area .main-nav .menu-trigger {
  left: 40px;
  right: auto;
}

/* Hero Section */
html[dir="rtl"] .welcome-area .offset-xl-3 {
  margin-right: auto;
  margin-left: auto;
}

html[dir="rtl"] .offset-xl-3 {
  margin-right: 25%;
  margin-left: 0;
}

html[dir="rtl"] .offset-lg-2 {
  margin-right: 16.666667%;
  margin-left: 0;
}

/* Services Section */
html[dir="rtl"] .left-heading,
html[dir="rtl"] .left-text {
  text-align: right;
}

html[dir="rtl"] [data-scroll-reveal*="enter left"] {
  transform: translate3d(30px, 0, 0);
}

html[dir="rtl"] [data-scroll-reveal*="enter right"] {
  transform: translate3d(-30px, 0, 0);
}

/* Testimonials */
html[dir="rtl"] .team-item .team-content {
  text-align: right;
}

html[dir="rtl"] .team-item .user-image {
  float: right;
  margin-right: 0;
  margin-left: 25px;
}

html[dir="rtl"] .team-item .team-content .team-info {
  float: right;
  margin-right: 0;
  margin-left: 20px;
}

/* Contact Form */
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea {
  text-align: right;
}

/* Language Selector */
html[dir="rtl"] .language-selector {
  left: 30px;
  right: auto;
}

html[dir="rtl"] .language-selector .lang-dropdown {
  right: auto;
  left: 0;
  transform-origin: left top;
}

/* Language Switcher RTL Support */
html[dir="rtl"] .language-switcher-wrapper {
  margin-left: 0;
  margin-right: 30px;
}

html[dir="rtl"] .language-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .language-option {
  border-left: none;
  border-right: none;
}

html[dir="rtl"] .language-option:hover {
  border-left: none;
  border-right: none;
  transform: translateX(-4px);
}


/* Image Border */
.border-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.border-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Feature Boxes */
.feature-box {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 8px;
  padding: 30px 25px;
  text-align: center;
  color: #000;
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 25, 41, 0.05) 0%, rgba(10, 25, 41, 0.02) 100%);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(10, 25, 41, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  color: #0a1929;
  transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
  background: rgba(10, 25, 41, 0.25);
  transform: scale(1.1);
}

.feature-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000;
}

.feature-content p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.8);
}

/* Services List */
.services-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.right-text p[data-translate="services.include"] {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  line-height: 1.3 !important;
}

.left-heading .section-title {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
  margin-top: -40px !important;
}

.left-text p {
  color: #fff !important;
  margin-top: 100px !important;
}

.services-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.services-list li:before {
  content: "•";
  color: #0a1929;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* VEXA Blue Color */
.vexa-blue {
  color: #04CED9 !important; /* New VEXA Blue */
}

/* Footer */
html[dir="rtl"] footer .social li:first-child {
  margin-left: 16px;
  margin-right: 0;
}

/* Portfolio Section RTL Support */
html[dir="rtl"] .portfolio-slider-wrapper {
  direction: ltr !important; /* Force LTR to prevent layout issues */
  unicode-bidi: embed; /* Prevent bidi interference */
}

html[dir="rtl"] .slider-track {
  direction: ltr !important; /* Force LTR for slider track */
  unicode-bidi: embed; /* Prevent bidi interference */
}

html[dir="rtl"] .slider-container {
  direction: ltr !important; /* Force LTR for container */
  unicode-bidi: embed; /* Prevent bidi interference */
}

html[dir="rtl"] .portfolio-projects {
  direction: rtl; /* Allow text content to be RTL */
}

html[dir="rtl"] .portfolio-projects .row {
  direction: rtl; /* Allow project layout to follow RTL */
}

html[dir="rtl"] .portfolio-projects h3 {
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .portfolio-demo-btn {
  direction: rtl;
}

/* Ensure icons display properly in all languages */
.fa {
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
}

html[dir="rtl"] .fa {
  display: inline-block !important;
}
