/* ===============================================
   CSS Variables & Reset
   =============================================== */
:root {
    /* Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-blue-800: #1e40af;
    --color-blue-900: #1e3a8a;
    --color-blue-950: #172554;
    --color-cyan-500: #06b6d4;
    --color-teal-500: #14b8a6;
    --color-indigo-500: #6366f1;
    --color-purple-500: #a855f7;
    --color-purple-600: #9333ea;
    --color-pink-500: #ec4899;
    --color-green-500: #22c55e;
    --color-emerald-500: #10b981;

    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    --color-white: #ffffff;
    --color-black: #000000;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--color-gray-900);
    background: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ===============================================
   Container & Layout
   =============================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--spacing-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-8);
    }
}

/* ===============================================
   Basic Variables (لضمان عمل الألوان)
   =============================================== */

/* ===============================================
   Navbar
   =============================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    /* زيادة التعتيم قليلاً */
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;

}

/* --- 1. تعديل حاوية اللوجو (لتحريكه لليمين) --- */
.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    /* تحريك اللوجو لليمين قليلاً (كل ما تزود الرقم يبعد عن الحافة) */
    margin-right: -10px;
    /* جرب -15px لو عايزه يروح يمين أكتر */
    padding-left: 10px;
    /* وسع بسيط عشان ما يلزقش */
}

.logo-img {
    height: 150px;
    width: auto;
    display: block;
}

/* --- 2. تصميم زر الهاتف (أزرق وبوردر شيك) --- */
.nav-center-phone {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.phone-btn {
    display: flex;
    align-items: center;
    gap: 8px;

    /* اللون الأزرق الأساسي */
    background: var(--color-blue-600);
    color: #ffffff;

    /* البوردر الجميل */
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* بوردر أبيض شفاف داخلي */
    outline: 2px solid var(--color-blue-600);
    /* بوردر خارجي أزرق */
    border-radius: 50px;
    /* تدوير الحواف */

    padding: 8px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    /* ظل أزرق ناعم */
    transition: all 0.3s ease;
}

.phone-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    /* الأيقونة بيضاء */

    /* حركة اهتزاز مستمرة */
}

/* تأثير عند الوقوف عليه (في الكمبيوتر) */
.phone-btn:hover {
    background: var(--color-blue-700);
    transform: translate(-10%, -15%);
    /* يترفع لفوق سنة وهو في النص */
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
}

/* --- 3. ضبط الشكل في الموبايل (Responsive) --- */
@media (max-width: 768px) {

    /* اللوجو في الموبايل نصغره سنة ونظبط مكانه */
    .logo {
        margin-right: -5px;
    }

    .logo-img {
        height: 100px;
    }

    /* زر التليفون في الموبايل */
    .phone-btn {
        padding: 6px 14px;
        /* تصغير الحجم شوية عشان الشاشة */
        font-size: 0.9rem;
        /* تصغير الخط */
        gap: 5px;
        /* تقليل المسافة بين الأيقونة والرقم */
        border-width: 1px;
        /* تخفيف البوردر */
        outline-width: 1px;
    }

    /* ممكن نخفي كلمة الرقم ونسيب الأيقونة بس لو الشاشة ضيقة جداً (اختياري) */
    /* .phone-btn span { display: none; } */
}

/* أنيميشن اهتزاز السماعة */





/* تعديل بسيط عشان الزراير الجانبية تيجي في الآخر */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- تعديل اللوجو للصورة --- */


/* --- Desktop Menu --- */
.desktop-menu {
    display: none;
    align-items: center;
    gap: var(--spacing-8);
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--color-gray-700);
    font-weight: 500;
    transition: all var(--transition-base);
    font-family: sans-serif;
    /* تأكد من وجود خط */
}

.nav-link:hover {
    color: var(--color-blue-600);
    transform: translateY(-2px);
}

/* --- Mobile Menu Button (تصحيح الظهور) --- */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-gray-900);
    /* لون غامق للأيقونة */
    padding: 5px;
    z-index: 1001;
}

/* التحكم في حجم الـ SVG داخل الزر */
.mobile-menu-btn svg {
    width: 32px;
    /* تكبير الأيقونة للموبايل */
    height: 32px;
    stroke: currentColor;
    /* يأخذ اللون من الأب */
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* --- Mobile Menu Content --- */
.mobile-menu {
    display: none;
    padding-bottom: var(--spacing-4);
    background: transparent;
    border-top: 1px solid #eee;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.nav-link-mobile {
    display: block;
    text-decoration: none;
    padding: var(--spacing-3) 0;
    color: var(--color-gray-700);
    text-align: right;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    transition: color var(--transition-base);
}

.nav-link-mobile:hover {
    color: var(--color-blue-600);
    padding-right: 10px;
    /* حركة بسيطة عند اللمس */
}

/* ===============================================
   Buttons
   =============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    font-size: 1rem;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--color-blue-600);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-blue-700);
}

.btn-block {
    width: 100%;
    margin-top: var(--spacing-3);
}


/* --- إخفاء القائمة القديمة --- */
.desktop-menu {
    display: none !important;
    /* التأكد من إخفاء اللينكات القديمة */
}

/* --- تنسيق الجزء الخاص بالديسكتوب --- */
.desktop-actions {
    display: none;
    /* مخفي في الموبايل */
    align-items: center;
    gap: 20px;
}

@media (min-width: 992px) {

    /* يظهر فقط في الشاشات الكبيرة */
    .desktop-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
        /* إخفاء زر الموبايل في الشاشات الكبيرة */
    }
}

/* --- تصميم زر "القائمة" --- */
.menu-trigger {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
}

.menu-text {
    font-weight: 700;
    color: var(--color-gray-900);
    font-size: 1rem;
}

.hamburger-icon {
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    /* لون الخطوط */
    transition: width 0.3s;
}

.menu-trigger:hover .hamburger-icon span:nth-child(2) {
    width: 70%;
}

/* --- Sidebar (القائمة الجانبية) --- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    /* مخفية يمين الشاشة */
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1002;
    padding: 30px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.active {
    right: 0;
    /* تظهر */
}

/* --- محتوى القائمة --- */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-link {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    transition: 0.3s;
}

.sidebar-link:hover {
    color: var(--color-blue-600);
    transform: translateX(-5px);
}

.sidebar-cta {
    margin-top: 20px;
    text-decoration: none;
    display: flex;
    justify-content: center;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

/* ===============================================
   Hero Section
   =============================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}



.hero-background {
    position: absolute;
    inset: 0;
    animation: parallaxZoom 20s ease infinite;
}

@keyframes parallaxZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* التعديل هنا ليشمل الفيديو والصورة */
.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* في بعض المتصفحات قد تحتاج لإضافة هذا السطر لضمان التمركز */
    /* position: absolute; top: 0; left: 0; */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(30, 58, 138, 0.7),
            rgba(30, 64, 175, 0.6),
            rgba(30, 58, 138, 0.8));
}

.water-drops {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-4);
}

.hero-text {
    max-width: 1280px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-6);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.animate-glow {
    animation: textGlow 2s ease infinite;
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #dbeafe;
    margin-bottom: var(--spacing-4);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #bfdbfe;
    margin-bottom: var(--spacing-8);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.5s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-buttons .btn-primary {
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
}

.hero-buttons .btn:hover {
    transform: scale(1.05) rotate(2deg);
}

.scroll-indicator {
    margin-top: var(--spacing-16);
    animation: bounce 1.5s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.scroll-indicator i {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-wave path {
    animation: waveMotion 4s ease-in-out infinite;
}

@keyframes waveMotion {

    0%,
    100% {
        d: path("M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,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");
    }

    50% {
        d: path("M0,128L48,144C96,160,192,192,288,197.3C384,203,480,181,576,165.3C672,149,768,139,864,154.7C960,171,1056,213,1152,213.3C1248,213,1344,171,1392,149.3L1440,128L1440,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");
    }
}

/* ===============================================
   Services Section
   =============================================== */
/* --- تنسيقات السيكشن والشبكة --- */
.services-section {
    padding: 80px 20px;
    background-color: #f9fafb;
    /* خلفية فاتحة */
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
}

.srv-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
}

.services-grid {
    display: grid;
    /* شبكة متجاوبة */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- تنسيقات الكارت الأساسية --- */
.service-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* تأثير التكبير للصورة عند الهوفر */
.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.gradient-teal {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.gradient-purple {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.floating-icon {
    position: absolute;
    /* التغيير هنا: بدلاً من -25px جعلناها 20px لتكون فوق الصورة */
    bottom: 20px;
    left: 30px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* لجعلها دائرية */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* ظل أقوى قليلاً لتبرز فوق الصورة */
    z-index: 2;
    transition: all 0.3s ease;
}

.service-content {
    padding: 40px 30px 30px;
}

.service-content h3 {
    margin: 0 0 15px;
    color: #1e293b;
    font-size: 1.5rem;
}

.service-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    display: flex;
    gap: 15px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
}

/* الأزرار */
.btn-professional {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.blue-theme {
    background: #eff6ff;
    color: #2563eb;
}

.blue-theme:hover {
    background: #2563eb;
    color: #fff;
}

.teal-theme {
    background: #f0fdfa;
    color: #0d9488;
}

.teal-theme:hover {
    background: #0d9488;
    color: #fff;
}

.purple-theme {
    background: #f5f3ff;
    color: #7c3aed;
}

.purple-theme:hover {
    background: #7c3aed;
    color: #fff;
}

/* ------------------------------------------- */
/* --- كود الأنيميشن (الجزء المهم) --- */
/* ------------------------------------------- */

/* الحالة الابتدائية: مخفي ومزاح للأسفل ومشوش قليلاً */
.srv-animate-box {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(5px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* حركة ناعمة */
}

/* الحالة النهائية: ظاهر */
.srv-animate-box.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* تأخير الحركات لعمل تأثير التتابع (Staggered Effect) */
/* العنوان يظهر أولاً */
.section-header .srv-animate-box:nth-child(1) {
    transition-delay: 0.1s;
}

.section-header .srv-animate-box:nth-child(2) {
    transition-delay: 0.2s;
}

/* الكروت تظهر بعدها بالترتيب */
.service-card:nth-child(1) {
    transition-delay: 0.2s;
}

.service-card:nth-child(2) {
    transition-delay: 0.4s;
}

.service-card:nth-child(3) {
    transition-delay: 0.6s;
}

/* ===============================================
   Stats Section
   =============================================== */
.stats {
    position: relative;
    padding: var(--spacing-20) 0;
    background: linear-gradient(to bottom, var(--color-blue-900), var(--color-blue-950));
    overflow: hidden;
}

.stats-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    position: relative;
    padding: var(--spacing-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    text-align: right;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: fadeInScale 0.6s ease;
    transition: all var(--transition-slow);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5) rotateY(-90deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.3s;
}

.stat-card:hover {
    transform: scale(1.1) rotateY(10deg) rotateX(10deg) translateZ(50px);
}

.gradient-blue-stat {
    background: linear-gradient(to bottom right, var(--color-blue-500), var(--color-cyan-500));
}

.gradient-teal-stat {
    background: linear-gradient(to bottom right, var(--color-teal-500), var(--color-blue-500));
}

.gradient-indigo-stat {
    background: linear-gradient(to bottom right, var(--color-indigo-500), var(--color-purple-500));
}

.gradient-pink-stat {
    background: linear-gradient(to bottom right, var(--color-purple-500), var(--color-pink-500));
}

.stat-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 20px 20px;
    animation: patternMove 10s linear infinite;
}

@keyframes patternMove {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 100% 100%;
    }
}

.stat-icon {
    display: inline-block;
    margin-bottom: var(--spacing-4);
    animation: rotateScale 3s ease infinite;
}

@keyframes rotateScale {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(360deg) scale(1.2);
    }
}

/* التعديل: إضافة svg للكود عشان الأيقونة تظهر وتتلوّن */
.service-icon svg,
.service-icon i {
    width: 32px;
    height: 32px;
    color: var(--color-blue-600);
    /* ده اللي بيدي اللون الأزرق */
    stroke: currentColor;
    /* مهم عشان الـ svg ياخد اللون */
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-2);
}

.stat-label {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stat-glow {
    position: absolute;
    inset: -4px;
    background: var(--color-white);
    opacity: 0;
    border-radius: var(--radius-2xl);
    z-index: -1;
    filter: blur(20px);
    animation: glowPulse 2s ease infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.2);
    }
}

/* الحالة الافتراضية: العنصر مخفي ومزاح للأسفل */
.stat-animate-box {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(5px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* حالة الظهور: العنصر يظهر ويعود لمكانه */
.stat-animate-box.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* تأخير بسيط للكروت لتعطي شكل التتابع */
.stats-grid .stat-card:nth-child(1) {
    transition-delay: 0.1s;
}

.stats-grid .stat-card:nth-child(2) {
    transition-delay: 0.2s;
}

.stats-grid .stat-card:nth-child(3) {
    transition-delay: 0.3s;
}

.stats-grid .stat-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* تنسيق الرقم */
.stat-number {
    font-weight: bold;
    font-size: 2.5rem;
    font-family: sans-serif;
    margin: 10px 0;
}

/* ===============================================
   About Section
   =============================================== */
.about {
    position: relative;
    padding: var(--spacing-20) 0;
    background: var(--color-white);
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-16);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
    padding: var(--spacing-6);
    background: linear-gradient(to bottom right, var(--color-blue-50), var(--color-white));
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-card:nth-child(even) {
    animation: slideInRight 0.6s ease;
}

.feature-card:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-2xl);
}

.feature-card:nth-child(even):hover {
    transform: scale(1.05) rotate(-2deg);
}

.feature-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    /* استبدل background-color: #0d9488; بالكود ده */
    background-image: linear-gradient(135deg, #40e0d0 0%, #0d9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg);
}

.feature-icon i {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.feature-content {
    flex: 1;
    text-align: right;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2);
}

.feature-content p {
    color: var(--color-gray-600);
    line-height: 1.8;
}

/* CTA Card */
.cta-card {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    background: linear-gradient(to bottom right,
            var(--color-blue-600),
            var(--color-blue-700),
            var(--color-blue-900));
    padding: var(--spacing-12);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    perspective: 1000px;
    animation: fadeInUp 0.8s ease;
    transition: all var(--transition-slow);
}

.cta-card:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

.cta-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: gradientMove 20s linear infinite;
}

@keyframes gradientMove {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: 100% 100%;
    }
}

.cta-particles {
    position: absolute;
    inset: 0;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--spacing-6);
    animation: textGlow 2s ease infinite;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: #bfdbfe;
    margin-bottom: var(--spacing-8);
}




/* --- تنسيقات السيكشن الأساسية --- */
.about {
    padding: 80px 20px;
    background: #f9f9f9;
    /* لون خلفية خفيف */
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: #007bff;
    /* لون أزرق */
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 20px;
    color: #007bff;
}

/* تنسيق كارت التواصل */
.cta-card {
    background: linear-gradient(135deg, #0061f2 0%, #00c6f7 100%);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
}

.btn-white {
    background: white;
    color: #0061f2;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-white:hover {
    transform: scale(1.05);
}

/* -------------------------------------- */
/* --- كود الأنيميشن (الجزء المهم) --- */
/* -------------------------------------- */

/* 1. الحالة الابتدائية (مخفي) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    /* نازل لتحت شوية */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* حركة ناعمة */
}

/* 2. الحالة النشطة (ظاهر) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3. التتابع الزمني (عشان يظهروا ورا بعض) */
.features-grid .feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.features-grid .feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* تأخير بسيط للزر الأخير */
.cta-card.reveal {
    transition-delay: 0.2s;
}















/* ===============================================
   Contact Section
   =============================================== */
.contact {
    position: relative;
    padding: var(--spacing-20) 0;
    background: linear-gradient(to bottom, var(--color-blue-50), var(--color-white));
    overflow: hidden;
}

.contact-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    text-align: right;
    margin-bottom: var(--spacing-6);
    animation: slideInLeft 0.6s ease;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    padding: var(--spacing-6);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-6);
    perspective: 1000px;
    animation: slideInLeft 0.6s ease;
    transition: all var(--transition-slow);
}

.contact-card:hover {
    transform: scale(1.05) rotateY(5deg) translateX(-10px);
    box-shadow: var(--shadow-2xl);
}

.contact-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.contact-card:hover .contact-icon {
    transform: rotate(360deg);
}

.contact-icon i {
    width: 32px;
    height: 32px;
    color: var(--color-white);
}

.gradient-green .contact-icon {
    background: linear-gradient(to bottom right, var(--color-green-500), var(--color-emerald-500));
}

.gradient-blue .contact-icon {
    background: linear-gradient(to bottom right, var(--color-blue-500), var(--color-cyan-500));
}

.gradient-purple .contact-icon {
    background: linear-gradient(to bottom right, var(--color-purple-500), var(--color-pink-500));
}

.contact-details {
    flex: 1;
    text-align: right;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-1);
}

.contact-details p {
    color: var(--color-gray-600);
}

/* Hours Card */
.hours-card {
    position: relative;
    background: linear-gradient(to bottom right, var(--color-blue-600), var(--color-blue-800));
    padding: var(--spacing-8);
    border-radius: var(--radius-2xl);
    color: var(--color-white);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hours-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 30px 30px;
    animation: rotatePattern 20s linear infinite;
}

@keyframes rotatePattern {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hours-content {
    position: relative;
    z-index: 10;
    text-align: right;
}

.hours-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-4);
}

.hours-content p {
    font-size: 1.125rem;
    color: #bfdbfe;
    margin-bottom: var(--spacing-2);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: var(--spacing-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.6s ease;
    transition: transform var(--transition-slow);
}

.contact-form-wrapper:hover {
    transform: scale(1.02);
}

.form-group {
    margin-bottom: var(--spacing-6);
}

.form-group label {
    display: block;
    text-align: right;
    color: var(--color-gray-700);
    font-weight: 500;
    margin-bottom: var(--spacing-2);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 1rem;
    text-align: right;
    transition: all var(--transition-base);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue-500);
    transform: scale(1.02);
}

.form-group textarea {
    resize: none;
}


/* --- كود الحركة والأنيميشن --- */

/* الحالة المخفية (الوضع الافتراضي) */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    /* العنصر يكون نازل لتحت */
    transition: all 0.8s ease-out;
    /* نعومة الحركة */
}

/* الحالة الظاهرة (لما يوصلها السكرول) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    /* يرجع لمكانه */
}

/* --- ترتيب الظهور (Staggering) --- */
/* هذا الجزء يجعل العناصر تظهر بتتابع زمني جميل */

/* تأخير كروت الاتصال */
.contact-info .contact-card:nth-of-type(1) {
    transition-delay: 0.1s;
}

.contact-info .contact-card:nth-of-type(2) {
    transition-delay: 0.2s;
}

.contact-info .contact-card:nth-of-type(3) {
    transition-delay: 0.3s;
}

/* تأخير كارت الساعات ليظهر بعدهم */
.hours-card.reveal {
    transition-delay: 0.4s;
}

/* تأخير الفورم ليظهر متأخراً قليلاً */
.contact-form-wrapper.reveal {
    transition-delay: 0.3s;
}

/* ===============================================
   Footer
   =============================================== */
/* --- إعدادات الفوتر العامة --- */
/* =========================================
   Footer Styling
   ========================================= */
.footer {
    position: relative;
    background: linear-gradient(to bottom, var(--color-gray-900, #0f172a), var(--color-black, #020617));
    color: var(--color-white, #fff);
    padding-top: 80px;
    padding-bottom: 30px;
    overflow: hidden;
    /* تأكد إن اتجاه الصفحة مضبوط، لو عربي */
    direction: rtl;
}

/* --- Background Pattern --- */
.footer-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}

/* --- Layout Grid --- */
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* --- Company Info --- */
.footer-company {
    text-align: right;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Logo White */
}

.footer-description {
    color: var(--color-gray-400, #94a3b8);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 400px;
}

/* --- Phone Number --- */
.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    transition: color 0.3s;
}

.phone-link svg {
    color: var(--color-blue-500, #3b82f6);
}

.phone-link:hover {
    color: var(--color-blue-400, #60a5fa);
}

/* --- Social Icons (Blue Circle with White Icon) --- */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--color-blue-600, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #ffffff !important;
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.social-link:hover {
    background: var(--color-blue-700, #1d4ed8);
    transform: translateY(-5px) rotate(360deg);
}

/* --- Quick Links --- */
.footer-links {
    text-align: right;
    animation: fadeInUp 0.8s ease;
}

.footer-links h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--color-blue-500, #3b82f6);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-gray-400, #94a3b8);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-blue-400, #60a5fa);
    transform: translateX(-5px);
}

/* =========================================
   NEW SECTION: Center Action (WhatsApp + Signature)
   ========================================= */
.footer-center-action {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

/* زر الواتساب */
.whatsapp-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-blue-600, #2563eb);
    color: #ffffff;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.whatsapp-footer-btn:hover {
    background: var(--color-blue-700, #1d4ed8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
}

/* توقيع التصميم */
.designer-credit {
    margin-top: 20px;
    color: var(--color-gray-400, #94a3b8);
    font-size: 0.9rem;
    opacity: 0.8;
}

.orbitadiv {
    color: #ffffff;
    font-weight: 700;
    font-family: sans-serif;
    letter-spacing: 1px;
    padding: 0 5px;
    position: relative;
}

/* =========================================
   Bottom Bar
   ========================================= */
.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: right;
    }
}

.footer-bottom p {
    color: var(--color-gray-400, #94a3b8);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--color-gray-400, #94a3b8);
    font-size: 0.875rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--color-blue-400, #60a5fa);
}

/* =========================================
   Bubbles Animation
   ========================================= */
.footer-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.footer-bubbles span {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: rise 15s infinite linear;
}

.footer-bubbles span:nth-child(1) {
    left: 10%;
    width: 40px;
    height: 40px;
    animation-duration: 10s;
}

.footer-bubbles span:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.footer-bubbles span:nth-child(3) {
    left: 35%;
    width: 50px;
    height: 50px;
    animation-duration: 15s;
    animation-delay: 4s;
}

.footer-bubbles span:nth-child(4) {
    left: 50%;
    width: 30px;
    height: 30px;
    animation-duration: 11s;
    animation-delay: 1s;
}

.footer-bubbles span:nth-child(5) {
    left: 65%;
    width: 25px;
    height: 25px;
    animation-duration: 13s;
    animation-delay: 3s;
}

.footer-bubbles span:nth-child(6) {
    left: 80%;
    width: 45px;
    height: 45px;
    animation-duration: 16s;
    animation-delay: 5s;
}




/* --- تتابع الحركة للفوتر (Footer Staggering) --- */

/* 1. ظهور عمود معلومات الشركة أولاً */
.footer-company.reveal {
    transition-delay: 0.1s;
}

/* 2. ظهور عمود "روابط سريعة" ثانياً */
/* نستخدم nth-of-type لاستهداف العنصر الأول من نوع footer-links */
.footer-content .footer-links.reveal:nth-of-type(1) {
    transition-delay: 0.2s;
}

/* 3. ظهور عمود "خدماتنا" ثالثاً */
.footer-content .footer-links.reveal:nth-of-type(2) {
    transition-delay: 0.3s;
}

/* 4. ظهور الزر الأوسط والمصمم رابعاً */
.footer-center-action.reveal {
    transition-delay: 0.4s;
}

/* 5. ظهور الحقوق في النهاية */
.footer-bottom.reveal {
    transition-delay: 0.5s;
}

@keyframes rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes patternMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}

/* ===============================================
   Responsive Typography
   =============================================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}

/* ===============================================
   Utilities
   =============================================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* ===============================================
   Animations for Page Load
   =============================================== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

.slide-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ===============================================
 start fedback
   =============================================== */





/* تعريف المتغيرات لهذا القسم فقط */
.reviews-section {
    --bg-dark: #0f172a;
    --card-glass: rgba(30, 41, 59, 0.7);
    --accent: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    padding: 60px 0;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    overflow: hidden;
}

.reviews-section * {
    box-sizing: border-box;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Section --- */
.reviews-section .section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.reviews-section .section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.reviews-section .section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Reviews Grid --- */
.reviews-section .reviews-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.reviews-section .review-card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInReviews 0.8s ease-out forwards;
}

@keyframes fadeInReviews {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-section .review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.reviews-section .review-card::before {
    content: '\f10e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.reviews-section .card-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.reviews-section .user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.reviews-section .user-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.reviews-section .stars {
    color: #fbbf24;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.reviews-section .card-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* --- Modern Form --- */
.reviews-section .form-section {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.reviews-section .form-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.reviews-section .form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.reviews-section .input-group {
    position: relative;
    margin-bottom: 25px;
}

.reviews-section .modern-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
    font-family: inherit;
}

.reviews-section .modern-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

/* Submit Button */
.reviews-section .btn-glow {
    width: 100%;
    padding: 16px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    font-family: inherit;
}

.reviews-section .btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.6);
}

/* Select Styling fix */
.reviews-section select.modern-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 15px;
}

/* خيار النجوم داخل الـ select */
.reviews-section option {
    background-color: #0f172a;
    color: #fff;
}





/* --- تتابع الحركة لقسم التقييمات --- */

/* تأخير ظهور الكروت (واحد ورا التاني) */
.reviews-wrapper .review-card:nth-of-type(1) {
    transition-delay: 0.1s;
}

.reviews-wrapper .review-card:nth-of-type(2) {
    transition-delay: 0.2s;
}

.reviews-wrapper .review-card:nth-of-type(3) {
    transition-delay: 0.3s;
}

/* تأخير ظهور الفورم ليظهر في النهاية */
.form-section.reveal {
    transition-delay: 0.3s;
}

/* ===============================================
 start ahyah
   =============================================== */
/* تعريف المتغيرات داخل السيكشن فقط لمنع التضارب */
.jl-section {
    --jl-main: #0056b3;
    --jl-accent: #00d4ff;
    --jl-card-bg: #ffffff;
    --jl-bg-gradient: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);

    padding: 80px 20px;
    background: var(--jl-bg-gradient);
    text-align: center;
    font-family: 'Cairo', sans-serif;
    overflow: hidden;
    /* لمنع ظهور شريط تمرير جانبي */
}

/* تنسيق العنوان المتدرج */
.jl-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 0 0 60px 0;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, var(--jl-accent), var(--jl-main), var(--jl-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 86, 179, 0.2));

    /* حالة البداية (مخفي) */
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.jl-title.show {
    opacity: 1;
    transform: translateY(0);
}

/* الشبكة (Grid) */
.jl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* الكروت */
.jl-card {
    background: var(--jl-card-bg);
    border-radius: 15px;
    padding: 20px 10px;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* حالة البداية (مخفي) */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    filter: blur(4px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.jl-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* الأيقونة والنص */
.jl-icon {
    font-style: normal;
    font-size: 1.8rem;
    margin-bottom: 8px;
    background: -webkit-linear-gradient(45deg, var(--jl-main), var(--jl-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.jl-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334e68;
    z-index: 2;
    transition: color 0.3s ease;
}

/* تأثيرات الهوفر (الماوس) */
.jl-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.2);
    border-color: var(--jl-accent);
}

/* لمعة الزجاج */
.jl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    transition: 0s;
}

.jl-card:hover::before {
    left: 100%;
    transition: 0.5s;
}

.jl-card:hover .jl-name {
    color: var(--jl-main);
}

.jl-card:hover .jl-icon {
    transform: scale(1.2);
}

/* تأخير الحركة لعمل شكل الموجة */
.jl-card:nth-child(2n) {
    transition-delay: 0.1s;
}

.jl-card:nth-child(3n) {
    transition-delay: 0.15s;
}

/* للموبايل */
@media (max-width: 600px) {
    .jl-section {
        padding: 50px 15px;
    }

    .jl-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .jl-grid {
        gap: 12px;
    }

    .jl-name {
        font-size: 0.95rem;
    }
}
.error-page {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            text-align: center;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }

        .error-content {
            position: relative;
            z-index: 10;
            max-width: 600px;
        }

        .error-code {
            font-size: 10rem;
            font-weight: 900;
            line-height: 1;
            background: linear-gradient(to bottom, #2563eb, #1e3a8a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 20px;
            position: relative;
        }

        .water-drop-animation {
            width: 80px;
            height: 80px;
            background: #2563eb;
            border-radius: 0 50% 50% 50%;
            transform: rotate(45deg);
            margin: 0 auto 30px;
            animation: drip 2s infinite ease-in;
            box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
        }

        @keyframes drip {
            0% { transform: rotate(45deg) translateY(-20px); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: rotate(45deg) translateY(100px); opacity: 0; }
        }

        .error-message {
            font-size: 2rem;
            color: #1e293b;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .error-description {
            color: #64748b;
            font-size: 1.1rem;
            margin-bottom: 35px;
        }

        .back-home-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #2563eb;
            color: white;
            padding: 15px 35px;
            border-radius: 50px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
        }

        .back-home-btn:hover {
            background: #1d4ed8;
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
        }

        .bubbles-container span {
            position: absolute;
            bottom: -50px;
            background: rgba(37, 99, 235, 0.1);
            border-radius: 50%;
            animation: float-up 10s infinite linear;
        }

        @keyframes float-up {
            to { transform: translateY(-120vh); opacity: 0; }
        }