:root {
--royal-red: #1E2B56;
--gold: #E1632D;
--gold-light: rgba(254, 214, 108, 0.12);
--white: #FFFFFF;
--off-white: #FAFAF8;
--text-muted: #9A8F8F;
--divider: rgba(142, 25, 20, 0.1);
}
.stats-section {
position: relative;
width: 100%;
background: var(--white);
overflow: hidden;
direction: rtl;
}
stats-section::after {
content: '';
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 100%; height: 100%;
background: radial-gradient(ellipse at center, rgba(142,25,20,0.04) 0%, transparent 70%);
pointer-events: none;
}
.section-eyebrow {
text-align: center;
margin-bottom: 12px;
}
.eyebrow-line {
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 11px;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--text-muted);
font-weight: 400;
}
.eyebrow-line::before,
.eyebrow-line::after {
content: '';
width: 32px; height: 1px;
background: var(--gold);
opacity: 0.7;
}
.section-title {
text-align: center;
font-size: clamp(28px, 4vw, 42px);
font-weight: 600;
color: var(--royal-red);
line-height: 1.25;
margin-bottom: 64px;
letter-spacing: -0.01em;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 100%;
position: relative;
z-index: 1;
background: #fff9f2;
border-radius: 15px;
}
.stat-card:not(:last-child) {
border-left: 1px solid var(--divider);
}
.stat-card {
padding: 60px 40px;
text-align: center;
position: relative;
cursor: default;
transition: background 0.4s ease;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.stat-card:hover {
background: var(--gold-light);
}
.stat-card:hover .icon-wrapper {
transform: translateY(-4px) scale(1.08);
}
.stat-card:hover .stat-number {
color: var(--royal-red);
}
.icon-wrapper {
width: 56px; height: 56px;
margin: 0 auto 28px;
transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(142,25,20,0.06) 0%, rgba(254,214,108,0.08) 100%);
border-radius: 16px;
}
.icon-wrapper svg {
width: 32px; height: 32px;
stroke: var(--royal-red);
stroke-width: 1.6;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}
.stat-number-row {
display: flex;
align-items: baseline;
justify-content: center;
gap: 3px;
margin-bottom: 12px;
min-height: clamp(44px, 5.5vw, 64px);
}
.stat-number {
font-size: clamp(44px, 5.5vw, 64px);
font-weight: 700;
color: var(--royal-red);
line-height: 1;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
transition: color 0.3s ease;
direction: ltr;
}
.stat-suffix {
font-size: clamp(28px, 3.5vw, 40px);
font-weight: 600;
color: var(--gold);
line-height: 1;
letter-spacing: -0.01em;
}
.stat-label-primary {
font-size: 15px;
font-weight: 600;
color: #2C1A1A;
margin-bottom: 6px;
letter-spacing: 0.02em;
}
.stat-label-secondary {
font-size: 12.5px;
font-weight: 400;
color: var(--text-muted);
line-height: 1.6;
letter-spacing: 0.03em;
}
.stat-card {
opacity: 0;
transform: translateY(28px);
transition: opacity 0.7s ease, transform 0.7s ease, background 0.4s ease;
}
.stat-card.visible {
opacity: 1;
transform: translateY(0);
}
.stat-card:nth-child(1) { transition-delay: 0s; }
.stat-card:nth-child(2) { transition-delay: 0.12s; }
.stat-card:nth-child(3) { transition-delay: 0.24s; }
@media (max-width: 680px) {
.stats-grid {
grid-template-columns: 1fr;
gap: 0;
}
.stat-card:not(:last-child) {
border-left: none;
border-bottom: 1px solid var(--divider);
}
.stat-card {
padding: 40px 24px;
}
}
0
+
دورة تدريبية
برامج تعليمية متخصصة
0
+
trained people
قصص نجاح ملهمة
0
+
client
شراكات عمل مستدامة
function easeOutQuart(t) {
return 1 - Math.pow(1 - t, 4);
}
function animateCounter(el, target, duration = 2200) {
const start = performance.now();
function formatNum(val) {
if (val >= 1000) return Math.round(val).toLocaleString('en-US');
return Math.round(val).toString();
}
function tick(now) {
const elapsed = now - start;
const progress = Math.min(elapsed / duration, 1);
const eased = easeOutQuart(progress);
const current = eased * target;
el.textContent = formatNum(current);
if (progress {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
const section = document.getElementById('stats');
const rect = section.getBoundingClientRect();
if (!animated && rect.top {
const target = parseInt(el.dataset.count, 10);
animateCounter(el, target);
});
}
}, { threshold: 0.15 });
cards.forEach(c => observer.observe(c));
window.addEventListener('scroll', () => {
if (animated) return;
const section = document.getElementById('stats');
const rect = section.getBoundingClientRect();
if (rect.top {
animateCounter(el, parseInt(el.dataset.count, 10));
});
}
}, { passive: true });