* { font-family: 'Noto Kufi Arabic', sans-serif; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 4px; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(220,38,38,0.3); }
    50% { box-shadow: 0 0 40px rgba(220,38,38,0.6); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}
@keyframes borderDraw {
    from { width: 0; }
    to { width: 100%; }
}

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.visible.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.visible.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.visible.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.visible.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.visible.delay-5 { transition-delay: 0.5s; }

.hero-loaded .hero-title { animation: fadeInUp 1s 0.3s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.hero-loaded .hero-subtitle { animation: fadeInUp 1s 0.5s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.hero-loaded .hero-desc { animation: fadeInUp 1s 0.7s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.hero-loaded .hero-btns { animation: fadeInUp 1s 0.9s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.hero-loaded .hero-stats { animation: fadeInUp 1s 1.1s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.hero-loaded .hero-scroll { animation: fadeInUp 1s 1.3s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }

.service-card:hover .service-icon {
    transform: rotateY(180deg);
    background: #dc2626;
}
.service-icon {
    transition: all 0.6s cubic-bezier(0.16,1,0.3,1);
    transform-style: preserve-3d;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(220,38,38,0.15);
}
.service-card { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }

.brand-card:hover img { transform: scale(1.1); }
.brand-card:hover .brand-overlay { opacity: 1; }
.brand-card img { transition: transform 0.7s ease-out; }
.brand-overlay { transition: opacity 0.4s ease; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.stat-card:hover .stat-number { color: #dc2626; }
.stat-number { transition: color 0.3s ease; }

.why-card:hover .why-icon { 
    background: #dc2626; 
    color: white;
    transform: scale(1.1);
}
.why-icon { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }

.floating { animation: float 3s ease-in-out infinite; }
.floating-delay { animation: float 3s ease-in-out 1.5s infinite; }

.gradient-text {
    background: linear-gradient(135deg, #dc2626, #f87171, #dc2626);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.process-line { 
    position: relative; 
}
.process-line::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to left, #dc2626, transparent);
    transition: width 1s ease;
}
.process-line.visible::before { width: 100%; }

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.mobile-menu.open { transform: translateX(0); }

/* Toast */
.toast {
    animation: slideDown 0.5s ease forwards, fadeInUp 0.5s 3s ease reverse forwards;
}

/* Parallax */
.parallax-bg { transition: transform 0.1s linear; }

/* Image reveal */
.img-reveal { 
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.8s cubic-bezier(0.16,1,0.3,1);
}
.img-reveal.visible { clip-path: inset(0 0 0 0); }

.glow-red { box-shadow: 0 0 30px rgba(220,38,38,0.4); }
