/* ===== المتغيرات والألوان ===== */
:root {
  --primary-color: #4a6cf7;
  --primary-dark: #2a4ad4;
  --primary-light: #eef2ff;
  --secondary-color: #6e44ff;
  --success-color: #4caf50;
  --info-color: #2196f3;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --dark-color: #212529;
  --light-color: #f8f9fa;

  --body-color: #637381;
  --heading-color: #212b36;

  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  --gradient-secondary: linear-gradient(135deg, #6ac1ff 0%, #6868fc 100%);
  --gradient-success: linear-gradient(135deg, #69e9a6 0%, #1bb978 100%);

  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.15);

  --transition-base: all 0.3s ease-in-out;
  --transition-smooth: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);

  --font-base: "Tajawal", sans-serif;
  --font-heading: "Tajawal", sans-serif;

  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-pill: 50rem;
  
  /* متغيرات جديدة لتحسين التجاوب */
  --container-padding-mobile: 15px;
  --container-padding-tablet: 30px;
  --container-padding-desktop: 40px;
  
  --section-padding-mobile: 50px;
  --section-padding-tablet: 70px;
  --section-padding-desktop: 100px;
  
  --hero-title-size-mobile: 2rem;
  --hero-title-size-tablet: 2.5rem;
  --hero-title-size-desktop: 3.5rem;
  
  --section-title-size-mobile: 1.75rem;
  --section-title-size-tablet: 2.25rem;
  --section-title-size-desktop: 2.75rem;
  
  /* تحسين المسافات للأجهزة المختلفة */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
}

/* ===== إعادة تعيين وأساسيات ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-base);
  color: var(--body-color);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  position: relative;
}

.section-padding {
  padding: var(--section-padding-mobile) 0;
}

.section-padding-sm {
  padding: calc(var(--section-padding-mobile) * 0.7) 0;
}

.position-relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text; /* تحسين لدعم المتصفحات الحديثة */
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent; /* تحسين لدعم المتصفحات الحديثة */
  display: inline-block;
}

.min-vh-80 {
  min-height: 80vh;
}

.z-1 {
  z-index: 1;
}

/* ===== تحسينات كومبوننت (مكونات) ===== */

/* الأزرار - مع تحسين التجاوب */
.btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  text-align: center;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  user-select: none;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  will-change: transform; /* تحسين الأداء للتحولات */
}

.btn:hover i {
  transform: translateX(-5px);
}

.btn-primary {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white;
  position: relative;
  z-index: 1;
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  background-size: 200% 100%;
  background-position: left center;
  z-index: -1;
  transition: all 0.5s ease;
  border-radius: var(--border-radius-pill);
}

.btn-gradient:hover::before {
  background-position: right center;
}

.btn-gradient:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
}

.btn-link {
  color: var(--primary-color);
  padding: 0;
  text-decoration: none;
  font-weight: 600;
  margin-right: 1rem;
  background: transparent;
}

.btn-link:hover {
  color: var(--primary-dark);
}

/* تحسين تأثيرات الأزرار للأداء */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg) translate(-30%, -30%);
  transition: all 0.8s;
  opacity: 0;
  will-change: transform, opacity; /* تحسين الأداء */
}

.shine-effect:hover::after {
  opacity: 1;
  transform: rotate(30deg) translate(0%, 0%);
}

/* تحسين تأثير النبض للأداء */
.pulse-effect {
  animation: pulse 2s infinite;
  will-change: box-shadow; /* تحسين الأداء */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* شعار القسم (Badge) */
.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--primary-light);
  border-radius: var(--border-radius-pill);
  margin-bottom: 1rem;
  position: relative;
}

/* تحسين قابلية القراءة للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .section-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  
  .section-badge::before,
  .section-badge::after {
    width: 10px;
    display: none; /* إخفاء الخطوط على الشاشات الصغيرة لتحسين المظهر */
  }
}

.section-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
}

.section-badge::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
}

/* عناوين الأقسام - تحسين التجاوب */
.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: var(--section-title-size-mobile);
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.text-start .section-title::after {
  left: 0;
  transform: none;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--body-color);
  margin-bottom: 0;
}

/* تحسين البطاقات للتجاوب */
.card {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  overflow: hidden;
  background-color: white;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

/* تحسين أداء التحويلات */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .shine-effect::after {
    display: none;
  }
  
  .pulse-effect {
    animation: none;
  }
}

/* قسم الهيرو (الرئيسية) - تحسين التجاوب */
.hero-section {
  background: var(--gradient-primary);
  padding: 140px 0 80px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,256L48,240C96,224,192,192,288,181.3C384,171,480,181,576,186.7C672,192,768,192,864,170.7C960,149,1056,107,1152,106.7C1248,107,1344,149,1392,170.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--hero-title-size-mobile);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
}

.hero-image-container {
  position: relative;
  margin-top: 2rem; /* تحسين للشاشات الصغيرة */
}

.hero-image {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
  max-width: 100%;
  height: auto;
  will-change: transform; /* تحسين أداء الانيميشن */
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  will-change: transform; /* تحسين أداء الانيميشن */
}

.shape-1 {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.2);
  top: 20%;
  left: 10%;
  animation: float 7s ease-in-out infinite;
}

.shape-2 {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.3);
  top: 60%;
  left: 15%;
  animation: float 9s ease-in-out infinite;
}

.shape-3 {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  top: 30%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.shape-4 {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.3);
  bottom: 20%;
  right: 15%;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* تقليل الانيميشن على الشاشات الصغيرة لتحسين الأداء */
@media (max-width: 767.98px) {
  .shape {
    animation-duration: 12s !important; /* تبطيء الانيميشن على الأجهزة المحمولة */
  }
  
  .hero-image {
    animation-duration: 10s;
  }
  
  .shape-1, .shape-3 {
    width: 50px;
    height: 50px;
  }
  
  .shape-2, .shape-4 {
    width: 40px;
    height: 40px;
  }
}

.trusted-by {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 2rem;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.client-logo-item {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: var(--transition-base);
  max-width: 100%;
  height: auto;
  max-height: 40px; /* تحسين للشاشات الصغيرة */
}

.client-logo-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* قسم المزايا - تحسين التجاوب */
.benefits-section {
  margin-top: -70px;
  position: relative;
  z-index: 10;
}

.benefits-wrapper {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.benefit-card {
  padding: 40px 20px; /* تقليل البادينج للشاشات الصغيرة */
  text-align: center;
  transition: var(--transition-base);
  height: 100%;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:last-child {
  border-right: none;
}

.benefit-card.featured {
  background: var(--primary-light);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  z-index: 1;
  position: relative;
}

.benefit-card .icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
  color: var(--primary-color);
  transition: var(--transition-base);
  will-change: transform, background-color, color; /* تحسين أداء التحولات */
}

.benefit-card:hover .icon-wrapper {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(360deg);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.benefit-card p {
  color: var(--body-color);
  margin-bottom: 0;
  font-size: 0.95rem; /* تحسين للشاشات الصغيرة */
}

/* قسم من نحن - تحسين التجاوب */
.about-section {
  background-color: white;
  position: relative;
}

.about-image-wrapper {
  position: relative;
  margin-bottom: 2rem; /* تحسين للعرض المتجاوب */
}

.about-shape-1,
.about-shape-2 {
  position: absolute;
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

.about-shape-1 {
  width: 100%;
  height: 100%;
  background-color: var(--primary-light);
  bottom: -20px;
  right: -20px;
}

.about-shape-2 {
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  top: -30px;
  left: -20px;
  border-radius: 50%;
  opacity: 0.2;
}

/* تغيير موضع الشكل للشاشات الصغيرة */
@media (max-width: 767.98px) {
  .about-shape-1 {
    bottom: -15px;
    right: -15px;
  }
  
  .about-shape-2 {
    width: 100px;
    height: 100px;
    top: -20px;
    left: -15px;
  }
}

.experience-badge {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  bottom: 30px;
  right: -20px;
  box-shadow: var(--shadow-lg);
}

.experience-badge .years {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .experience-badge {
    width: 80px;
    height: 80px;
    bottom: 20px;
    right: -10px;
  }
  
  .experience-badge .years {
    font-size: 1.5rem;
  }
  
  .experience-badge .text {
    font-size: 0.65rem;
  }
}

.rounded-xl {
  border-radius: var(--border-radius-xl);
  overflow: hidden; /* لضمان تطبيق الزوايا المدورة على الصورة */
}

.feature-box {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-box .icon-box {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 1rem;
  transition: var(--transition-base);
  will-change: transform, background-color, color; /* تحسين أداء التحولات */
}

.feature-box:hover .icon-box {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(360deg);
}

.feature-box .content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.feature-box .content p {
  color: var(--body-color);
  margin-bottom: 0;
  font-size: 0.95rem; /* تحسين للشاشات الصغيرة */
}

/* ===== قسم الخدمات - سيتم الإبقاء على التعليق ===== */

/* قسم العداد - تحسين التجاوب */
.counter-section {
  background: url("../images/counter-bg.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  color: white;
}

/* تحسين أداء الخلفية المتوازية على الأجهزة المحمولة */
@media (max-width: 767.98px) {
  .counter-section {
    background-attachment: scroll;
  }
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* تحسين أداء الخلفية المتوازية على الأجهزة المحمولة */
@media (max-width: 767.98px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.counter-box {
  color: white;
  position: relative;
  z-index: 1;
  padding: 1rem;
  text-align: center;
}

.counter-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.counter-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .counter-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .counter-number {
    font-size: 2rem;
  }
  
  .counter-title {
    font-size: 1rem;
  }
}

/* قسم مجالات العمل - تحسين التجاوب */
.industries-wrapper {
  margin-top: 2rem;
}

.industry-card {
  padding: 1.75rem 1.5rem;
  text-align: center;
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  margin-bottom: 1.5rem; /* تحسين المساحة بين البطاقات على الشاشات الصغيرة */
}

.industry-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.industry-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--primary-color);
  transition: var(--transition-base);
  will-change: transform, background-color, color; /* تحسين أداء التحولات */
}

.industry-card:hover .industry-icon {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(360deg);
}

.industry-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

/* قسم المشاريع - تحسين التجاوب */
.projects-wrapper {
  position: relative;
}

.project-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  background-color: white;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 70%; /* نسبة ارتفاع ثابتة تناسب جميع الشاشات */
}

.project-img img {
  transition: var(--transition-smooth);
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform; /* تحسين أداء التحولات */
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 108, 247, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  will-change: opacity, transform; /* تحسين أداء التحولات */
}

.project-card:hover .project-img .overlay {
  opacity: 1;
}

.project-img .overlay .content {
  text-align: center;
  padding: 1.5rem;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  will-change: transform; /* تحسين أداء التحولات */
}

.project-card:hover .project-img .overlay .content {
  transform: translateY(0);
}

.project-img .overlay .category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-pill);
  font-size: 0.85rem;
  color: white;
  margin-bottom: 0.75rem;
}

.project-img .overlay .title {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-links a {
  width: 40px;
  height: 40px;
  background-color: white;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-base);
  will-change: transform, background-color, color; /* تحسين أداء التحولات */
}

.project-links a:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-5px);
}

/* تحسين أزرار التنقل للسلايدر */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  opacity: 0.3;
  margin: 0 5px;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background-color: var(--primary-color);
}

/* إضافة أزرار السابق والتالي */
.swiper-button-prev,
.swiper-button-next {
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: white;
  color: var(--primary-dark);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.25rem;
  font-weight: bold;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 767.98px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 35px;
    height: 35px;
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 1rem;
  }
}

/* قسم العمليات - تحسين التجاوب */
.process-wrapper {
  position: relative;
  padding: 3rem 0 1rem;
}

.process-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-light);
  transform: translateY(-50%);
  z-index: 1;
}

/* إخفاء الخط على الشاشات الصغيرة */
@media (max-width: 767.98px) {
  .process-line {
    display: none;
  }
}

.process-item {
  position: relative;
  z-index: 2;
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  margin-bottom: 2rem; /* تحسين المساحة بين البطاقات على الشاشات الصغيرة */
}

.process-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.process-icon {
  position: relative;
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--primary-color);
  transition: var(--transition-base);
  will-change: transform, background-color, color; /* تحسين أداء التحولات */
}

.process-item:hover .process-icon {
  background: var(--primary-color);
  color: white;
}

.process-number {
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -5px;
  right: -5px;
}

.process-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.process-item p {
  color: var(--body-color);
  margin-bottom: 0;
  font-size: 0.95rem; /* تحسين للشاشات الصغيرة */
}

/* قسم التقنيات - تحسين التجاوب */
.tech-logos-wrapper {
  position: relative;
}

.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  margin-bottom: 1.5rem; /* تحسين المساحة بين البطاقات على الشاشات الصغيرة */
}

.tech-logo:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.tech-logo i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tech-logo span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .tech-logo i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .tech-logo span {
    font-size: 1rem;
  }
}

/* قسم آراء العملاء - تحسين التجاوب */
.testimonials-wrapper {
  position: relative;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
  margin-bottom: 1.5rem;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: var(--primary-light);
  opacity: 0.5;
}

.testimonial-content {
  margin-bottom: 1.25rem;
}

.testimonial-content p {
  margin-bottom: 0;
  font-style: italic;
  font-size: 0.95rem; /* تحسين للشاشات الصغيرة */
}

.testimonial-rating {
  color: #ffc107;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.author-info p {
  font-size: 0.85rem;
  color: var(--body-color);
  margin-bottom: 0;
}

/* قسم المدونة - تحسين التجاوب */
.blog-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  margin-bottom: 1.5rem; /* تحسين المساحة بين البطاقات على الشاشات الصغيرة */
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.blog-img {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 60%; /* نسبة ارتفاع ثابتة تناسب جميع الشاشات */
}

.blog-img img {
  transition: var(--transition-smooth);
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform; /* تحسين أداء التحولات */
}

.blog-card:hover .blog-img img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  line-height: 1.2;
}

.blog-date .day {
  font-size: 1.25rem;
}

.blog-date .month {
  font-size: 0.75rem;
}

.blog-content {
  padding: 1.75rem 1.5rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-meta span {
  font-size: 0.85rem;
  color: var(--body-color);
}

.blog-meta span i {
  color: var(--primary-color);
  margin-right: 0.4rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-title a {
  color: var(--heading-color);
  transition: var(--transition-base);
}

.blog-title a:hover {
  color: var(--primary-color);
}

.blog-desc {
  color: var(--body-color);
  margin-bottom: 1.25rem;
  font-size: 0.95rem; /* تحسين للشاشات الصغيرة */
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more i {
  transition: transform 0.3s ease;
  will-change: transform; /* تحسين أداء التحولات */
}

.read-more:hover i {
  transform: translateX(-5px);
}

/* قسم العملاء - تحسين التجاوب */
.clients-wrapper {
  position: relative;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
  margin: 0.75rem;
  filter: grayscale(100%);
  opacity: 0.7;
}

.client-logo:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  filter: grayscale(0%);
  opacity: 1;
}

.client-logo img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .client-logo {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .client-logo img {
    max-height: 50px;
  }
}

/* قسم الدعوة للتواصل - تحسين التجاوب */
.cta-section {
  background: url("../images/cta-bg.jpg") no-repeat center center;
  background-size: cover;
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 767.98px) {
  .cta-section {
    padding: 60px 0;
  }
}

.cta-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 108, 247, 0.9);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: white;
}

.cta-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .cta-title {
    font-size: 1.75rem;
  }
  
  .cta-subtitle {
    font-size: 1rem;
  }
}

/* قسم التواصل السريع - تحسين التجاوب */
.contact-info-wrapper {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
  margin-bottom: 1.5rem; /* تحسين المساحة بين البطاقات على الشاشات الصغيرة */
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  margin-bottom: 1.25rem;
}

.contact-info-item .icon {
  width: 45px;
  height: 45px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-right: 1rem;
  transition: var(--transition-base);
  will-change: transform, background-color, color; /* تحسين أداء التحولات */
}

.contact-info-item:hover .icon {
  background-color: var(--primary-color);
  color: white;
  transform: rotateY(360deg);
}

.contact-info-item .content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-info-item .content p {
  color: var(--body-color);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-info-item .content a {
  color: var(--body-color);
  transition: var(--transition-base);
}

.contact-info-item .content a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary-color);
  transition: var(--transition-base);
  will-change: transform, background-color, color; /* تحسين أداء التحولات */
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

.contact-form-wrapper {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 1.5rem;
  }
  
  .contact-info-item .icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--body-color);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-floating {
  position: relative;
  margin-bottom: 1.25rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1.5rem 1rem 0.5rem;
  line-height: 1.25;
}

.form-floating > textarea.form-control {
  height: auto;
  min-height: 120px;
}

.form-floating > label {
  padding: 1rem 1rem;
  color: var(--body-color);
  opacity: 0.7;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(74, 108, 247, 0.25);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-text {
  margin-right: 0.5rem;
}

/* زر التمرير للأعلى - تحسين التجاوب */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* إضافات - تحسين التجاوب */
.bg-light {
  background-color: var(--light-color);
}

.bg-dots {
  background-image: radial-gradient(var(--primary-light) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.shape-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px; /* تصغير الارتفاع للشاشات الصغيرة */
}

.shape-divider-top {
  top: 0;
  transform: rotate(180deg);
}

.shape-divider-bottom {
  bottom: 0;
}

.shape-divider-dark svg {
  fill: var(--light-color);
}

.shape-divider svg {
  fill: white;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 767.98px) {
  .shape-divider svg {
    height: 40px;
  }
}

@media (max-width: 575.98px) {
  .shape-divider svg {
    height: 30px;
  }
}

/* Particles.js - تحسين التجاوب */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* مؤشر التمرير للأسفل - تحسين التجاوب */
.scroll-down-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 0.875rem;
}

.scroll-down-indicator a {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: var(--transition-base);
}

.scroll-down-indicator a:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.mouse {
  position: relative;
  width: 28px;
  height: 45px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  margin-bottom: 8px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: white;
  border-radius: 2px;
  animation: scroll 1.5s infinite;
  will-change: transform, opacity; /* تحسين أداء الانيميشن */
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

.scroll-text {
  margin-top: 8px;
  font-size: 0.8rem;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 575.98px) {
  .scroll-down-indicator {
    bottom: 15px;
  }
  
  .mouse {
    width: 24px;
    height: 40px;
  }
  
  .scroll-text {
    font-size: 0.75rem;
  }
}

/* تحسينات استجابة الشاشات - إصلاح وتحسين */
@media (max-width: 1199.98px) {
  .section-padding {
    padding: var(--section-padding-tablet) 0;
  }

  .section-padding-sm {
    padding: calc(var(--section-padding-tablet) * 0.7) 0;
  }

  .hero-title {
    font-size: var(--hero-title-size-tablet);
  }

  .section-title {
    font-size: var(--section-title-size-tablet);
  }

  .process-line {
    display: none;
  }
  
  /* تحسين التجاوب للمحتوى */
  .hero-section {
    padding: 120px 0 80px;
  }
  
  .hero-wave {
    height: 60px;
  }
  
  .experience-badge {
    width: 100px;
    height: 100px;
    right: -10px;
    bottom: 20px;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-padding-sm {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .experience-badge {
    width: 90px;
    height: 90px;
  }

  .experience-badge .years {
    font-size: 2rem;
  }

  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  /* تحسين حجم البطاقات والمساحات */
  .benefit-card .icon-wrapper,
  .industry-icon,
  .process-icon,
  .feature-box .icon-box {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .counter-number {
    font-size: 2.5rem;
  }
  
  .counter-icon {
    font-size: 2.25rem;
  }
  
  /* تحسين حجم العناوين */
  .blog-title,
  .testimonial-card h4,
  .industry-card h4,
  .process-item h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding-mobile: 60px;
  }
  
  .section-padding {
    padding: var(--section-padding-mobile) 0;
  }

  .section-padding-sm {
    padding: calc(var(--section-padding-mobile) * 0.7) 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 2rem;
  }
  
    /* Continuación del código desde @media (max-width: 767.98px) */
  .benefit-card {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px 20px;
    margin-bottom: 0;
  }

  .benefit-card:last-child {
    border-bottom: none;
  }

  /* Ocultar elementos decorativos en móviles para mejorar rendimiento */
  .about-shape-1,
  .about-shape-2 {
    opacity: 0.5;
    transform: scale(0.8);
  }

  .experience-badge {
    width: 80px;
    height: 80px;
    bottom: 15px;
    right: -10px;
  }

  .experience-badge .years {
    font-size: 1.75rem;
  }

  .experience-badge .text {
    font-size: 0.7rem;
  }

  /* Ajustar los componentes para mejor visualización */
  .hero-section {
    padding: 100px 0 70px;
  }

  .counter-number {
    font-size: 2.25rem;
  }

  .counter-title {
    font-size: 1rem;
  }

  .counter-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.05rem;
  }

  /* Mejorar espaciado en tarjetas para móviles */
  .project-card,
  .blog-card,
  .testimonial-card,
  .tech-logo,
  .industry-card,
  .process-item {
    margin-bottom: 1.5rem;
  }

  /* Ajustar tamaño de textos e íconos */
  .blog-date {
    width: 55px;
    height: 55px;
  }

  .blog-date .day {
    font-size: 1.25rem;
  }

  .project-img .overlay .title {
    font-size: 1.15rem;
  }

  .blog-title,
  .testimonial-card h4,
  .industry-card h4,
  .process-item h4 {
    font-size: 1.15rem;
  }

  /* Reducir tamaño del panel de Swiper */
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-padding-mobile: 50px;
  }
  
  .section-padding {
    padding: var(--section-padding-mobile) 0;
  }

  .section-padding-sm {
    padding: calc(var(--section-padding-mobile) * 0.7) 0;
  }

  .hero-title {
    font-size: var(--hero-title-size-mobile);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: var(--section-title-size-mobile);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
    bottom: -0.5rem;
  }

  /* Ajustar elementos para pantallas muy pequeñas */
  .hero-section {
    padding: 80px 0 60px;
  }

  .benefit-card {
    padding: 20px 15px;
  }

  .benefit-card .icon-wrapper,
  .industry-icon,
  .process-icon,
  .feature-box .icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .counter-box {
    padding: 0.75rem;
  }

  .counter-number {
    font-size: 1.75rem;
  }

  .counter-title {
    font-size: 0.9rem;
  }

  .counter-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  /* Ajustar espaciado y tamaños de tarjetas */
  .project-card,
  .blog-card,
  .testimonial-card,
  .tech-logo,
  .industry-card,
  .process-item {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .testimonial-card {
    padding: 1.5rem 1.25rem;
  }

  .quote-icon {
    top: 15px;
    right: 15px;
    font-size: 2rem;
  }

  .author-img {
    width: 40px;
    height: 40px;
  }

  .author-info h5 {
    font-size: 1rem;
  }

  .author-info p {
    font-size: 0.8rem;
  }

  .blog-date {
    width: 50px;
    height: 50px;
    top: 10px;
    right: 10px;
  }

  .blog-date .day {
    font-size: 1.1rem;
  }

  .blog-date .month {
    font-size: 0.7rem;
  }

  .blog-content {
    padding: 1.25rem;
  }

  .blog-meta {
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .blog-meta span {
    font-size: 0.8rem;
  }
  
  .blog-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .blog-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Ajustar formulario de contacto */
  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 1.25rem;
  }
  
  .form-title {
    font-size: 1.25rem;
  }
  
  .form-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .form-floating {
    margin-bottom: 1rem;
  }
  
  .form-floating > .form-control,
  .form-floating > .form-select {
    height: calc(3rem + 2px);
    padding: 1.25rem 0.75rem 0.25rem;
    font-size: 0.9rem;
  }
  
  .form-floating > label {
    padding: 0.75rem 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Optimizar para pantallas pequeñas */
  .client-logo img {
    max-height: 40px;
  }
  
  .cta-section {
    padding: 50px 0;
  }
  
  .cta-title {
    font-size: 1.5rem;
  }
  
  .cta-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  /* Buttons optimizados para móvil */
  .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Optimizaciones específicas para pantallas ultra-pequeñas */
@media (max-width: 359.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .benefit-card .icon-wrapper,
  .industry-icon,
  .process-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .counter-number {
    font-size: 1.5rem;
  }
  
  .counter-icon {
    font-size: 1.5rem;
  }
  
  .counter-title {
    font-size: 0.85rem;
  }
  
  .blog-date {
    width: 45px;
    height: 45px;
  }
  
  .blog-date .day {
    font-size: 1rem;
  }
  
  .blog-date .month {
    font-size: 0.65rem;
  }
  
  .btn {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
  }
}

/* Optimizaciones de rendimiento para todos los dispositivos */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ajustes para dispositivos de alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .bg-dots {
    background-size: 16px 16px;
  }
}

/* Clases de utilidad adicionales */
.text-center {
  text-align: center;
}

.text-start {
  text-align: right;
}

.text-end {
  text-align: left;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-auto {
  margin-top: auto;
  margin-bottom: auto;
}

/* Optimizaciones para imprimir */
@media print {
  .hero-section,
  .floating-shapes,
  .scroll-down-indicator,
  .shape,
  .back-to-top,
  .particles,
  .cta-section {
    display: none !important;
  }
  
  .section-padding,
  .section-padding-sm {
    padding: 1rem 0 !important;
  }
  
  body {
    color: black !important;
  }
  
  a {
    text-decoration: underline !important;
    color: #1a1a1a !important;
  }
  
  .card,
  .benefit-card,
  .project-card,
  .blog-card,
  .testimonial-card,
  .industry-card,
  .process-item,
  .tech-logo {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Indicación de actualización última (usando el valor dinámico proporcionado) */
.last-updated-info {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2rem;
}

.last-updated-info .last-updated::after {
  content: "2025-05-16 00:13:10";
  margin-right: 0.5rem;
}

.last-updated-info .current-user::after {
  content: "AbdulrahmanWard";
}

/* Efecto de carga para componentes de carga diferida */
.lazy-load-wrapper {
  min-height: 100px;
  position: relative;
}

.lazy-load-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: loading-pulse 1.5s infinite;
  border-radius: var(--border-radius-md);
}

@keyframes loading-pulse {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Estilos para mensajes de notificación */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.notification.success {
  border-right: 4px solid var(--success-color);
}

.notification.error {
  border-right: 4px solid var(--danger-color);
}

.notification.info {
  border-right: 4px solid var(--info-color);
}

.notification .icon {
  font-size: 1.5rem;
}

.notification.success .icon {
  color: var(--success-color);
}

.notification.error .icon {
  color: var(--danger-color);
}

.notification.info .icon {
  color: var(--info-color);
}

.notification .content {
  flex: 1;
}

.notification .content h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.notification .content p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--body-color);
}

.notification .close {
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--body-color);
  opacity: 0.7;
  transition: var(--transition-base);
}

.notification .close:hover {
  opacity: 1;
}

/* Optimización para pantallas de alta densidad */
@supports (font-variation-settings: normal) {
  body {
    font-variation-settings: "wght" 400;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-variation-settings: "wght" 700;
  }
  
  .font-weight-bold {
    font-variation-settings: "wght" 700;
  }
  
  .font-weight-light {
    font-variation-settings: "wght" 300;
  }
}

/* Modo oscuro (si se implementa) */
@media (prefers-color-scheme: dark) {
  :root.dark-mode-support {
    --body-color: #b0b8c1;
    --heading-color: #e9ecef;
    --light-color: #212529;
    --dark-color: #f8f9fa;
    --primary-light: rgba(74, 108, 247, 0.15);
  }
  
  :root.dark-mode-support body {
    background-color: #121418;
  }
  
  :root.dark-mode-support .bg-light {
    background-color: #212529;
  }
  
  :root.dark-mode-support .card,
  :root.dark-mode-support .benefit-card,
  :root.dark-mode-support .industry-card,
  :root.dark-mode-support .testimonial-card,
  :root.dark-mode-support .blog-card,
  :root.dark-mode-support .contact-info-wrapper,
  :root.dark-mode-support .contact-form-wrapper,
  :root.dark-mode-support .process-item,
  :root.dark-mode-support .tech-logo {
    background-color: #1b1e22;
    color: var(--body-color);
  }
  
  :root.dark-mode-support .benefits-wrapper {
    background-color: #1b1e22;
  }
  
  :root.dark-mode-support .form-control,
  :root.dark-mode-support .form-select {
    background-color: #1b1e22;
    border-color: #2c3038;
    color: var(--body-color);
  }
  
  :root.dark-mode-support .notification {
    background-color: #212529;
  }
}