/* Global Reset & Basic */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f8fafc; color: #333; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }

.bg-light { background-color: #ffffff; }
.bg-light-blue { background-color: #f1f5f9; }
.text-center { text-align: center; margin-bottom: 40px; }
.badge { display: inline-block; background-color: #e2e8f0; color: #1e293b; padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 15px; }
.badge-blue { background-color: #2563eb; color: white; }

/* PROPER HEADER */
.main-header { background-color: #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; max-width: 1400px; margin: 0 auto; }
.logo { font-size: 1.6rem; font-weight: 800; color: #0f172a; text-decoration: none; display: flex; align-items: center; gap: 8px; }

.nav-menu ul { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-menu a { text-decoration: none; color: #475569; font-weight: 600; font-size: 1rem; transition: color 0.3s; position: relative; padding: 10px 0; }
.nav-menu a:hover, .nav-menu a.active { color: #2563eb; }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background-color: #ffffff; min-width: 250px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; display: flex; flex-direction: column; padding: 10px 0; z-index: 100; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { width: 100%; }
.dropdown-menu a { padding: 12px 20px; display: block; color: #333; font-weight: 500; border-bottom: 1px solid #f1f5f9; }
.dropdown-menu a:hover { background-color: #f8fafc; color: #2563eb; padding-left: 25px; }

/* HEADER BUTTONS */
.header-actions { display: flex; align-items: center; gap: 15px; }
.lang-btn { background: transparent; color: #0f172a; border: 1px solid #cbd5e1; padding: 8px 15px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.lang-btn:hover { background: #f1f5f9; }
.btn-primary { background-color: #2563eb; color: white; text-decoration: none; padding: 10px 24px; border-radius: 6px; font-weight: bold; transition: 0.3s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background-color: #1d4ed8; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); transform: translateY(-2px); }

/* HERO */
.hero-section { display: flex; align-items: center; justify-content: space-between; padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.hero-text { flex: 1; max-width: 50%; }
.hero-text h1 { font-size: 3.2rem; color: #0f172a; line-height: 1.2; margin-bottom: 20px; }
.hero-text p { color: #475569; font-size: 1.1rem; line-height: 1.7; margin-bottom: 30px; max-width: 90%; }
.hero-image { flex: 1; text-align: right; }
.hero-image img { max-width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* BRANDS & TRUST */
.brands-section { text-align: center; padding: 40px 5%; background-color: #ffffff; border-top: 1px solid #e2e8f0; }
.brands-section h2 { color: #0f172a; font-size: 1.4rem; margin-bottom: 30px; }
.brands-logos { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; }
.brands-logos img { height: 35px; object-fit: contain; opacity: 0.8; transition: transform 0.3s; }
.brands-logos img:hover { transform: scale(1.1); }

.trust-section { display: flex; align-items: center; gap: 50px; padding: 80px 5%; background-color: #ffffff; max-width: 1400px; margin: 0 auto; }
.trust-text { flex: 1; }
.trust-text h2 { font-size: 2.5rem; color: #0f172a; margin-bottom: 20px; line-height: 1.2; }
.trust-text p { color: #475569; line-height: 1.8; margin-bottom: 20px; font-size: 1.05rem; }
.trust-images { flex: 1; display: flex; flex-direction: column; align-items: center; }
.trust-img-box img { width: 100%; border-radius: 12px; }
.satisfaction-badge { text-align: center; margin-top: 20px; }
.satisfaction-badge h3 { font-size: 3.5rem; color: #0f172a; margin-bottom: -10px; }

/* SERVICES GRID */
.services-section { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.services-section h2 { font-size: 2.5rem; color: #0f172a; margin-top: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; display: flex; flex-direction: column; transition: 0.4s; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-color: #cbd5e1; }
.service-card img { width: 100%; height: 260px; object-fit: cover; }
.card-content { padding: 30px; position: relative; flex-grow: 1; }
.card-content .icon { position: absolute; top: -25px; right: 25px; background: #2563eb; color: white; padding: 15px; border-radius: 10px; font-size: 1.5rem; box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2); }
.card-content h3 { color: #0f172a; margin-bottom: 12px; font-size: 1.3rem; }
.card-content p { color: #475569; font-size: 0.95rem; line-height: 1.6; }

/* PROBLEMS SECTION */
.problems-section { padding: 80px 5%; }
.problems-section h2 { font-size: 2.2rem; color: #0f172a; margin-top: 10px; max-width: 500px; margin-left: auto; margin-right: auto; }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.problem-box { background: #ffffff; padding: 30px 20px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); text-align: center; font-weight: 600; color: #0f172a; font-size: 1.05rem; border: 1px solid #e2e8f0; transition: 0.3s; }
.problem-box:hover { box-shadow: 0 6px 25px rgba(0,0,0,0.08); transform: translateY(-5px); color: #2563eb; border-color: #2563eb; }

/* FOOTER */
footer { background-color: #0f172a; color: #94a3b8; padding: 30px 5%; text-align: center; margin-top: auto; }

/* ====================================
   SCROLL ANIMATIONS (NEW)
==================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-section, .trust-section { flex-direction: column; text-align: center; }
    .hero-text, .trust-text { max-width: 100%; }
    .hero-text h1 { font-size: 2.8rem; }
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
}
@media (max-width: 768px) {
    .services-grid, .problems-grid { grid-template-columns: 1fr; }
}

/* RTL (Arabic) */
[dir="rtl"] .dropdown-menu { right: 0; left: auto; }
[dir="rtl"] .dropdown-menu a:hover { padding-right: 25px; padding-left: 20px; }
[dir="rtl"] .card-content .icon { right: auto; left: 25px; }
[dir="rtl"] .hero-text, [dir="rtl"] .trust-text { text-align: right; }