/* ========================================
   نخبة المنافذ - Ports Elite
   نمط شامل احترافي - نسخة محدثة
   ======================================== */

/* ========== إعادة تعيين عامة ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ========== متغيرات الألوان والخطوط ========== */
:root {
    --purple-dark: #3d4172;        /* أزرق/بنفسجي غامق */
    --purple-medium: #5458a2;      /* أزرق/بنفسجي متوسط (اللون الأساسي) */
    --purple-light: #6d72b5;       /* أزرق/بنفسجي فاتح */
    --purple-accent: #8e93c8;      /* أزرق/بنفسجي خفيف */
    --purple-very-light: #b5b9e0;  /* أزرق/بنفسجي خفيف جداً */
    --slate-dark: #1E293B;         /* رصاصي غامق جداً */
    --slate-medium: #334155;       /* رصاصي غامق */
    --slate-light: #475569;        /* رصاصي متوسط */
    --white: #FFFFFF;              /* أبيض */
    --white-off: #F8FAFC;          /* أبيض مائل للرصاصي */
    --text-dark: #0F172A;          /* نص غامق */
    --text-light: #64748B;         /* نص فاتح */
    --border-color: #E2E8F0;       /* لون الحدود */
    --shadow-sm: 0 2px 8px rgba(84, 88, 162, 0.1);
    --shadow: 0 10px 30px rgba(84, 88, 162, 0.15);
    --shadow-lg: 0 20px 50px rgba(84, 88, 162, 0.2);
    --shadow-purple: 0 10px 40px rgba(84, 88, 162, 0.3);
    
    --font-primary: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Cairo', 'Droid Arabic Kufi', sans-serif;
    
    /* حركات */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== إعادة تعيين عام ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    direction: rtl;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, var(--white) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(181, 185, 224, 0.02) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(109, 114, 181, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

body[dir="ltr"] {
    direction: ltr;
}

body[dir="ltr"] .header-container,
body[dir="ltr"] .container,
body[dir="ltr"] .footer-content {
    direction: ltr;
}

body[dir="ltr"] .nav-menu a::after {
    right: auto;
    left: 0;
}

body[dir="ltr"] .contact-item:hover {
    transform: translateX(8px);
}

body[dir="ltr"] .floating-actions {
    left: auto;
    right: 30px;
}

@media (max-width: 768px) {
    body[dir="ltr"] .floating-actions {
        right: 20px;
        left: auto;
    }
}

@media (max-width: 480px) {
    body[dir="ltr"] .floating-actions {
        right: 15px;
        left: auto;
    }
}

/* ========== الروابط والأزرار ========== */
a {
    color: var(--green-medium);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

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

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

/* ========== الأزرار الرئيسية ========== */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-medium) 0%, var(--green-light) 100%);
    color: var(--white) !important;
    box-shadow: 0 6px 20px rgba(67, 181, 129, 0.3);
    border: 2px solid transparent;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(67, 181, 129, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--slate-medium) 0%, var(--slate-light) 100%);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--green-dark) !important;
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* ========================================
   شريط التنقل + القسم الرئيسي - لون أخضر فاتح
   ======================================== */

.header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 4px 24px rgba(67, 160, 71, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border-bottom: 1px solid rgba(67, 160, 71, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    box-shadow: 0 8px 32px rgba(67, 160, 71, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-bottom: 1px solid rgba(67, 160, 71, 0.12);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 85px;
    gap: 50px;
}

@media (max-width: 1400px) {
    .header-container {
        padding: 0 40px;
        gap: 40px;
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 0 30px;
        gap: 30px;
        height: 80px;
    }
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.06) 0%, rgba(102, 187, 106, 0.08) 100%);
    color: #2E7D32;
    border-radius: 11px;
    font-size: 17px;
    font-weight: 600;
    border: 1px solid rgba(67, 160, 71, 0.12);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #43A047 0%, #66BB6A 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-btn:hover::before {
    opacity: 1;
}

.header-btn i,
.header-btn .lang-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

body.dark-theme .header-btn {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.15) 0%, rgba(165, 214, 167, 0.2) 100%);
    color: #A5D6A7;
    border-color: rgba(67, 160, 71, 0.2);
}

body.dark-theme .header-btn:hover::before {
    background: linear-gradient(135deg, #66BB6A 0%, #A5D6A7 100%);
}

body.dark-theme .hamburger {
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.12) 0%, rgba(165, 214, 167, 0.15) 100%);
    border-radius: 8px;
    padding: 8px;
}

body.dark-theme .hamburger span {
    background: linear-gradient(90deg, #66BB6A 0%, #A5D6A7 100%);
}

.btn-cta {
    padding: 13px 30px !important;
    font-size: 15.5px !important;
    font-weight: 700;
    border-radius: 11px;
    white-space: nowrap;
    color: var(--white) !important;
    background: linear-gradient(135deg, #43A047 0%, #66BB6A 100%) !important;
    box-shadow: 0 6px 18px rgba(67, 160, 71, 0.35), 0 3px 8px rgba(67, 160, 71, 0.15) !important;
    border: none !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease !important;
}

.btn-cta:hover {
    color: var(--white) !important;
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(67, 160, 71, 0.45), 0 4px 12px rgba(67, 160, 71, 0.25) !important;
}

.logo img {
    height: 100px;
    filter: drop-shadow(0 2px 8px rgba(67, 160, 71, 0.12));
}

.logo:hover img {
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(67, 160, 71, 0.25));
}

.nav-menu {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.05) 0%, rgba(102, 187, 106, 0.03) 100%);
    border: 1px solid rgba(67, 160, 71, 0.1);
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.04) inset;
}

.nav-menu a::before {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.08) 0%, rgba(102, 187, 106, 0.12) 100%);
}

.nav-menu a:hover {
    color: #2E7D32;
}

.nav-menu a.active {
    background: linear-gradient(135deg, #43A047 0%, #66BB6A 100%);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3), 0 2px 6px rgba(67, 160, 71, 0.15);
}

.hamburger span {
    background: linear-gradient(90deg, #2E7D32 0%, #43A047 100%);
}

/* ========== القسم الرئيسي (Hero Section) - FULLY RESPONSIVE ========== */
/* ===== HERO SECTION STYLE ===== */
.hero {
  background: #522269 url('');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}



/* طبقة ضباب خفيف وشفافية ناعمة */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  pointer-events: none;
  z-index: 1;
}

/* خطوط شفافة أفقية متحركة */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.25;
  animation: moveLines 18s linear infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes moveLines {
  0% { background-position: 0 0; }
  100% { background-position: 200px 0; }
}

.hero::marker,
.hero::selection {
  background: none;
}

.hero .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  font-weight: 700; /* كل النصوص تخينة */
}

.hero h1 {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 900; /* العنوان يبقى تخين جداً */
  margin-bottom: 24px;
  line-height: 1.15;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6),
               0 4px 20px rgba(84, 88, 162, 0.4);
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -1px;
  color: #ffffff; /* أبيض صافي */
  text-fill-color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none !important;
  position: relative;
}


.hero p {
  font-size: clamp(15px, 2.5vw, 20px);
  margin-bottom: 40px;
  line-height: 1.75;
  opacity: 0.94;
  animation: fadeInUp 1s ease-out 0.2s both;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5),
               0 1px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons .btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  min-width: 180px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* === أزرار بنفسجية دائمة === */
.hero-buttons .btn-primary,
.hero-buttons .btn-outline,
.hero .btn-contact,
.hero a.btn-contact {
  background: #522269 !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-outline:hover,
.hero .btn-contact:hover,
.hero a.btn-contact:hover {
  background: #5a4fa3 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.25),
              0 8px 24px rgba(255, 255, 255, 0.15);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ========== الحاوية الرئيسية ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== الأقسام ========== */
section {
    padding: 100px 20px;
    position: relative;
}

section h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 70px;
    text-align: center;
    /* 🔮 تعديل اللون إلى بنفسجي */
    background: linear-gradient(135deg, #5A4FA3 0%, #6C5BB0 50%, #7D6DB4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #5A4FA3; /* لون احتياطي إذا لم يدعم المتصفح background-clip */
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(90, 79, 163, 0.2);
}

section h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, #6C5BB0 50%, transparent 100%);
    border-radius: 3px;
    opacity: 0.3;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #5A4FA3 0%, #6C5BB0 50%, #7D6DB4 100%);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(90, 79, 163, 0.3);
}

/* ========== قسم الخدمات ========== */
.services {
    background: linear-gradient(180deg, var(--white-off) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(248, 250, 252, 0.25) 100%),
        radial-gradient(circle at 20% 30%, rgba(165, 214, 167, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(102, 187, 106, 0.04) 0%, transparent 50%);
    backdrop-filter: blur(3px) saturate(110%);
    -webkit-backdrop-filter: blur(3px) saturate(110%);
    pointer-events: none;
    z-index: 0;
}

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

.services[style*="background-image"] {
    background-blend-mode: overlay;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.services[style*="background-image"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(248, 250, 252, 0.4) 25%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(248, 250, 252, 0.4) 75%,
        rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.75) 100%);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(67, 160, 71, 0.15), 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(67, 160, 71, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.05) 0%, rgba(67, 160, 71, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 24px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #43A047 0%, #66BB6A 50%, #A5D6A7 100%);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
    border-radius: 24px 24px 0 0;
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 64px rgba(67, 160, 71, 0.18), 0 12px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(67, 160, 71, 0.2);
    border-color: rgba(67, 160, 71, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 64px;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.1) 0%, rgba(102, 187, 106, 0.15) 100%);
    border-radius: 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon i {
    background: #522269;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}


.service-card:hover .service-icon {
    transform: translateY(-8px) rotate(-5deg);
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.15) 0%, rgba(102, 187, 106, 0.2) 100%);
    box-shadow: 0 12px 32px rgba(67, 160, 71, 0.25);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--slate-dark);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.service-card:hover h3 {
    color: var(--green-dark);
}

.service-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.75;
    font-weight: 400;
}

.service-card .btn {
    width: 100%;
}

/* ========== قسم من نحن ========== */
.about {
    background: linear-gradient(180deg, var(--white) 0%, rgba(248, 250, 252, 0.5) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(165, 214, 167, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(102, 187, 106, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.about-text h3 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #43A047 0%, #66BB6A 50%, #A5D6A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.about-text p {
    font-size: 18px;
    margin-bottom: 22px;
    line-height: 1.85;
    color: var(--slate-light);
    font-weight: 400;
}

.about-image {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(67, 160, 71, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(67, 160, 71, 0.1);
    position: relative;
    transition: all var(--transition-base);
    background: linear-gradient(135deg, rgba(165, 214, 167, 0.02) 0%, rgba(102, 187, 106, 0.03) 100%);
    padding: 4px;
}

.about-image:hover {
    transform: scale(1.03) rotate(0.5deg);
    box-shadow: 0 20px 60px rgba(67, 160, 71, 0.25), 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(67, 160, 71, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.1);
}
/* ========== قسم الإحصائيات ========== */
.stats {
    background: radial-gradient(
  circle at 30% 50%,
  rgba(120, 80, 170, 0.9) 0%,
  rgba(100, 65, 155, 0.85) 35%,
  rgba(85, 55, 140, 0.8) 60%,
  rgba(70, 45, 125, 0.75) 100%
        );
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 120px 20px;
}

/* الخطوط الأفقية الشفافة */
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.05) 0px,
        rgba(255, 255, 255, 0.05) 12px,
        transparent 12px,
        transparent 40px
    );
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* لمسة ضباب وعمق ناعم */
.stats::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 45%, rgba(255, 255, 255, 0.05), transparent 70%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

/* ====== عنوان قسم الإحصائيات باللون الأبيض ====== */
.stats h2 {
    color: #ffffff !important;
    position: relative;
    z-index: 3;
}


.stats h2::after {
    background: rgba(255, 255, 255, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.stat-item {
    padding: 48px 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
                0 8px 24px rgba(140, 90, 200, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-item h4 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #efe5f9 50%, #dac7f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.stat-item:hover h4 {
    transform: scale(1.08);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.stat-item p {
    font-size: 17px;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}


/* ========== قسم التواصل (نسخة بالأخضر) ========== */
.contact {
    background: linear-gradient(180deg, #f8f7fc 0%, #f4f2fa 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(245, 240, 255, 0.45) 50%, rgba(255, 255, 255, 0.35) 100%),
        radial-gradient(circle at 30% 40%, rgba(175, 140, 255, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(150, 120, 255, 0.08) 0%, transparent 55%);
    backdrop-filter: blur(5px) saturate(120%);
    -webkit-backdrop-filter: blur(5px) saturate(120%);
    pointer-events: none;
    z-index: 0;
}

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

.contact[style*="background-image"] {
    background-blend-mode: overlay;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.contact[style*="background-image"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(248, 250, 252, 0.4) 25%, rgba(255, 255, 255, 0.35) 50%, rgba(248, 250, 252, 0.4) 75%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.75) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(90, 79, 163, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(90, 79, 163, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #5A4FA3 0%, #6658A9 100%);
    transition: height var(--transition-base);
    border-radius: 0 16px 16px 0;
}

.contact-item:hover {
    transform: translateX(-10px) translateY(-2px);
    box-shadow: 0 12px 40px rgba(90, 79, 163, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(90, 79, 163, 0.25);
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 1) 100%);
}

.contact-item:hover::before {
    height: 100%;
}

.contact-item-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #5A4FA3 0%, #6658A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #5A4FA3; /* fallback */
    flex-shrink: 0;
    transition: transform var(--transition-base);
    position: relative;
    z-index: 1;
}

.contact-item h4 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--slate-dark);
}

.contact-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item a {
    color: #6658A9;
    transition: all var(--transition-base);
}

.contact-item a:hover {
    color: #5A4FA3;
    text-decoration: underline;
}

/* أرقام الهاتف */
.contact-item a[dir="ltr"] {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    padding: 52px 48px;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(90, 79, 163, 0.15), 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(90, 79, 163, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5A4FA3 0%, #6658A9 50%, #7263AF 100%);
    border-radius: 24px 24px 0 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--slate-dark);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 18px 24px;
    border: 2px solid rgba(90, 79, 163, 0.2);
    border-radius: 16px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, rgba(248, 250, 252, 0.9) 0%, var(--white) 100%);
    box-shadow: 0 2px 8px rgba(90, 79, 163, 0.05) inset;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #5A4FA3;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(90, 79, 163, 0.15), 0 6px 16px rgba(102, 88, 169, 0.1);
    transform: translateY(-2px);
    border-width: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}



/* ========== تذييل الصفحة (Footer) ========== */
.footer {
    background: linear-gradient(180deg, var(--slate-dark) 0%, var(--slate-medium) 100%);
    color: var(--white);
    padding: 70px 20px 30px;
    position: relative;
    border-top: 1px solid rgba(84, 88, 162, 0.2);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple-medium) 50%, var(--purple-light) 100%);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/footer-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--white) 0%, var(--purple-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    transition: transform var(--transition-base);
}

.footer-section ul li:hover {
    transform: translateX(-5px);
}

.footer-section ul li a {
    color: #CBD5E1;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--purple-accent);
    text-decoration: underline;
}

.footer-section ul li a[dir="ltr"] {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: #94A3B8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-medium) 100%);
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--purple-medium) 0%, var(--purple-dark) 100%);
    transform: translateY(-5px) rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-purple);
}

/* ========== تحسينات الأداء للهاتف ========== */
* {
    -webkit-tap-highlight-color: transparent;
}

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

/* ========== استجابة الجوال ========== */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        background-attachment: scroll;
    }
    
    .hero {
        background-attachment: scroll;
        background-size: 100% 100%;
        background-position: center center;
        min-height: 100vh;
        padding: 80px 15px 50px;
    }
    
    .hero-content {
        padding: 15px;
        max-width: 100%;
    }
    
    body.dark-theme .hero {
        background-attachment: scroll;
        background-size: 100% 100%;
        background-position: center center;
    }
    
    .header-container {
        padding: 12px 20px;
        height: 75px;
        gap: 12px;
        grid-template-columns: auto 1fr auto;
    }
    
    .logo img {
        height: 55px;
    }
    
    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 8px;
        border-radius: 0;
        border: none;
        border-left: 1px solid rgba(84, 88, 162, 0.15);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        justify-content: center;
    }
    
    .header-btn {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    
    .main-nav {
        order: 3;
    }
    
    .header-actions {
        order: 2;
        gap: 8px;
    }
    
    .header-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .header-btn i {
        font-size: 16px;
    }
    
    .lang-toggle-btn .lang-text {
        font-size: 15px;
    }
    
    .btn-cta {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
        padding: 8px;
    }
    
    .hamburger span {
        width: 24px;
        height: 3px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        gap: 10px;
        box-shadow: 0 8px 30px rgba(84, 88, 162, 0.15);
        display: none;
        border-radius: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 15px;
        text-align: center;
        font-size: 18px;
    }
    
    .nav-menu .btn {
        width: 100%;
        padding: 14px;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
        padding-left: 0;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero h1 {
        font-size: 38px;
        line-height: 1.2;
        margin-bottom: 24px;
        letter-spacing: -1px;
    }
    
    .hero p {
        font-size: 17px;
        line-height: 1.7;
        margin-bottom: 36px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 14px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 16px 32px;
        font-size: 20px;
        min-height: 54px;
        font-weight: 700;
        letter-spacing: 0.3px;
    }
    
    section {
        padding: 50px 15px;
    }
    
    .section-title,
    .section h2,
    h2 {
        font-size: 26px !important;
        margin-bottom: 30px !important;
        line-height: 1.3 !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 5px;
    }
    
    .service-card {
        padding: 28px 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .service-card h3 {
        font-size: 19px;
        margin-bottom: 14px;
        line-height: 1.4;
    }
    
    .service-card p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.7;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 42px;
        margin-bottom: 16px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 25px;
        padding: 0 5px;
    }
    
    .about-text h3 {
        font-size: 21px;
        margin-bottom: 14px;
        line-height: 1.4;
    }
    
    .about-text p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }
    
    .contact-form {
        padding: 25px 18px;
    }
    
    .form-group {
        gap: 8px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .stat-item {
        padding: 24px 20px;
        text-align: center;
    }
    
    .stat-item h4 {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .stat-item p {
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-size: 17px;
        margin-bottom: 14px;
        line-height: 1.4;
    }
    
    .footer-section ul li {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .contact-item {
        padding: 22px 18px;
        text-align: center;
    }
    
    .contact-item-icon {
        font-size: 28px;
    }
    
    .contact-item h3 {
        font-size: 17px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 14px;
        line-height: 1.6;
        word-break: break-word;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
        min-height: 70px;
    }
    
    .hero {
        padding: 70px 12px 40px;
    }
    
    .hero h1 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .hero-buttons .btn {
        padding: 17px 36px;
        font-size: 24px;
        min-height: 56px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    
    section {
        padding: 40px 12px;
    }
    
    .service-card {
        padding: 24px 16px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
    
    .contact-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .contact-btn i {
        font-size: 16px;
    }
    
    .logo img {
        height: 55px !important;
    }
    
    .nav-menu {
        top: 65px;
        padding: 15px;
    }
    
    .hero {
        padding: 80px 12px 50px;
    }
    
    .hero h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 18px;
    }
    
    section {
        padding: 40px 12px;
    }
    
    section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .service-card h3 {
        font-size: 18px;
    }
    
    .service-card p {
        font-size: 13px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .stat-item h4 {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .about-text h3 {
        font-size: 22px;
    }
    
    .about-text p {
        font-size: 14px;
    }
}

/* ========== الرسوم المتحركة ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

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

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

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* ========== تأثيرات إضافية ========== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

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

/* ========== فئات مساعدة ========== */
.text-center {
    text-align: center;
}

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

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

/* ========== تأثيرات التمرير ========== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== الوضع الليلي (Dark Mode) ========== */
body.dark-theme {
    background: linear-gradient(180deg, #0a0e1a 0%, #0F172A 50%, #1a1f35 100%);
    background-attachment: fixed;
    color: #F8FAFC;
}

body.dark-theme::before {
    background: radial-gradient(circle at 10% 20%, rgba(84, 88, 162, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(109, 114, 181, 0.06) 0%, transparent 40%);
}

body.dark-theme .header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    border-image: linear-gradient(90deg, transparent, rgba(142, 147, 200, 0.3), transparent) 1;
}

body.dark-theme .header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(84, 88, 162, 0.3);
}

body.dark-theme .nav-menu {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(84, 88, 162, 0.25);
}

body.dark-theme .nav-menu a {
    color: #F8FAFC;
}

body.dark-theme .nav-menu a::before {
    background: linear-gradient(135deg, rgba(109, 114, 181, 0.15) 0%, rgba(142, 147, 200, 0.2) 100%);
}

body.dark-theme .nav-menu a:hover {
    color: #F8FAFC;
}

body.dark-theme .nav-menu a.active {
    background: linear-gradient(135deg, #6d72b5 0%, #8e93c8 100%);
    box-shadow: 0 4px 16px rgba(109, 114, 181, 0.4);
}

/* Dark mode - Hero section */
body.dark-theme .hero {
    background: 
        linear-gradient(135deg, rgba(10, 14, 23, 0.85) 0%, rgba(15, 23, 42, 0.75) 25%, rgba(30, 41, 59, 0.65) 50%, rgba(51, 65, 85, 0.75) 75%, rgba(71, 85, 105, 0.85) 100%),
        url('https://ahmadtradingco.com/wp-content/uploads/2025/11/hero-new-bg.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}


body.dark-theme .hero::before {
    background: 
        linear-gradient(45deg, transparent 40%, rgba(84, 88, 162, 0.06) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(109, 114, 181, 0.05) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

body.dark-theme .hero::after {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(142, 147, 200, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(109, 114, 181, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(84, 88, 162, 0.06) 0%, transparent 40%);
}

body.dark-theme .hero h1 {
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 40%, #e8eaff 70%, #dfe2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(84, 88, 162, 0.4);
}

body.dark-theme .hero p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

body.dark-theme .services {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

body.dark-theme .service-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 88, 162, 0.25);
    color: #F8FAFC;
}

body.dark-theme .service-card:hover {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(71, 85, 105, 0.8) 100%);
    border-color: var(--purple-accent);
    box-shadow: 0 20px 50px rgba(84, 88, 162, 0.5), 0 0 0 1px rgba(84, 88, 162, 0.3);
}

body.dark-theme .service-card h3 {
    color: #F8FAFC;
}

body.dark-theme .service-card p {
    color: #CBD5E1;
}

body.dark-theme .about {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

body.dark-theme .about-image {
    border-color: rgba(84, 88, 162, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(84, 88, 162, 0.2);
}

body.dark-theme .about-image:hover {
    border-color: rgba(84, 88, 162, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(84, 88, 162, 0.3);
}

body.dark-theme .about-text p {
    color: #CBD5E1;
}

body.dark-theme section h2 {
    color: var(--purple-accent);
    -webkit-text-fill-color: var(--purple-accent);
}

body.dark-theme .contact {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
}

body.dark-theme .contact-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 88, 162, 0.25);
    color: #F8FAFC;
}

body.dark-theme .contact-item:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: var(--purple-accent);
    box-shadow: 0 12px 40px rgba(84, 88, 162, 0.3);
}

body.dark-theme .contact-item h4 {
    color: #F8FAFC;
}

body.dark-theme .contact-item p {
    color: #CBD5E1;
}

body.dark-theme .contact-item a {
    color: var(--purple-accent);
}

body.dark-theme .contact-item-icon {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .contact-form {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(84, 88, 162, 0.25);
}

body.dark-theme .form-group label {
    color: #F8FAFC;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(84, 88, 162, 0.3);
    color: #F8FAFC;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--purple-accent);
    color: #F8FAFC;
    box-shadow: 0 0 0 4px rgba(84, 88, 162, 0.2), 0 4px 12px rgba(84, 88, 162, 0.15);
}

body.dark-theme .form-group input::placeholder,
body.dark-theme .form-group textarea::placeholder {
    color: #94A3B8;
}

/* ========== RTL Placeholder Direction for Arabic ========== */
body[dir="rtl"] input::placeholder,
body[dir="rtl"] textarea::placeholder {
    text-align: right;
    direction: rtl;
}

body[dir="ltr"] input::placeholder,
body[dir="ltr"] textarea::placeholder {
    text-align: left;
    direction: ltr;
}

body.dark-theme .footer {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

/* Dark mode - Stats section */
body.dark-theme .stats {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1E293B 100%);
}

body.dark-theme .stat-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(84, 88, 162, 0.3);
}

body.dark-theme .stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(84, 88, 162, 0.5);
}

/* Dark mode - Better button visibility */
body.dark-theme .btn-primary {
    background: linear-gradient(135deg, #6d72b5 0%, #8e93c8 100%);
    box-shadow: 0 6px 20px rgba(84, 88, 162, 0.4);
}

body.dark-theme .btn-primary:hover {
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%);
    box-shadow: 0 12px 30px rgba(84, 88, 162, 0.7);
}

body.dark-theme .btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #64748B 100%);
}

body.dark-theme .btn-secondary:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

body.dark-theme .btn-outline {
    border-color: rgba(142, 147, 200, 0.6);
    color: var(--purple-accent) !important;
    background: rgba(84, 88, 162, 0.15);
}

body.dark-theme .btn-outline:hover {
    background: var(--purple-accent);
    color: #0F172A !important;
    border-color: var(--purple-accent);
}

/* ========== الأزرار العائمة (Floating Action Buttons) ========== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
    opacity: 1;
    transform: translateX(0);
    transition: all var(--transition-base);
    pointer-events: all;
}

.floating-actions.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-medium) 100%);
    color: var(--white) !important;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(84, 88, 162, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: visible;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.floating-btn i {
    position: relative;
    z-index: 1;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(84, 88, 162, 0.25);
    border-color: rgba(84, 88, 162, 0.2);
}

.header-btn:hover i,
.header-btn:hover .lang-text {
    color: var(--white);
    transform: scale(1.08);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(84, 88, 162, 0.6), 0 6px 16px rgba(0, 0, 0, 0.3);
    color: var(--white) !important;
}

.floating-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.action-whatsapp {
    background: #25D366 !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-whatsapp:hover {
    background: #1da851 !important;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.7), 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px) scale(1.1);
}

.action-whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.action-phone {
    background: linear-gradient(135deg, #5458a2 0%, #6d72b5 100%) !important;
    box-shadow: 0 8px 24px rgba(84, 88, 162, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-phone:hover {
    background: linear-gradient(135deg, #3d4178 0%, #5458a2 100%) !important;
    box-shadow: 0 12px 35px rgba(84, 88, 162, 0.7), 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px) scale(1.1);
}

body.dark-theme .floating-btn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(84, 88, 162, 0.3);
}

body.dark-theme .floating-btn:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(84, 88, 162, 0.5);
}

body.dark-theme .action-whatsapp {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .action-whatsapp:hover {
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark-theme .action-phone {
    box-shadow: 0 8px 24px rgba(84, 88, 162, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .action-phone:hover {
    box-shadow: 0 12px 35px rgba(84, 88, 162, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* زر العودة للأعلى */
.scroll-to-top {
    display: flex;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #3d4178 0%, #5458a2 100%) !important;
}

body.dark-theme .scroll-to-top {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(84, 88, 162, 0.3) !important;
}

body.dark-theme .scroll-to-top:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(84, 88, 162, 0.5) !important;
}

/* استجابة الجوال للأزرار العائمة */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .scroll-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .floating-actions {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
