
:root {
        --primary-color: #000;
        --text-color: #333;
        --border-color: #ddd;
        --bg-color: #fff;
        --card-bg: #f9f9f9;
        --accent-color-1: rgba(52, 152, 219, 0.2);
        --accent-color-2: rgba(155, 89, 182, 0.2);
        --accent-color-3: rgba(46, 204, 113, 0.2);
        --sidebar-width: 250px;
        --sidebar-collapsed-width: 70px;
    }

        .dark-mode {
            --primary-color: #5dade2;
            --text-color: #f5f5f5;
            --border-color: #555;
            --bg-color: #222;
            --card-bg: #333;
            --accent-color-1: rgba(52, 152, 219, 0.4);
            --accent-color-2: rgba(155, 89, 182, 0.4);
            --accent-color-3: rgba(46, 204, 113, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Vazirmatn', 'Rubik', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: all 0.3s ease;
            margin: 0;
            position: relative;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Rubik', 'Vazirmatn', sans-serif;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 10px;
        }

        /* Floating Elements */
        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        .floating-element {
            position: absolute;
            bottom: -100px;
            border-radius: 50%;
            opacity: 0.3;
            animation: floatUp 15s infinite linear;
        }

        .floating-element.square {
            border-radius: 0;
        }

@keyframes floatUp {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.3;
            }
            90% {
                opacity: 0.2;
            }
            100% {
                transform: translateY(-100vh) rotate(360deg);
                opacity: 0;
            }
        }
        /* Header - مُحدّث */
        header {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            background-color: var(--bg-color);
            border-bottom: 1px solid var(--border-color);
            padding: 10px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            height: 60px;
        }

        .logo {
            width: 150px;
            display: block;
            margin: 0 auto;
        }

        .header-actions {
            display: flex;
            gap: 5px;
        }

        .header-actions button {
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-color);
            transition: all 0.2s ease;
        }

        .header-actions button:hover {
            background-color: var(--card-bg);
        }

        .menu-toggle {
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--text-color);
            transition: all 0.2s ease;
        }

        .menu-toggle:hover {
            background-color: var(--card-bg);
        }

        .sidebar {
            position: fixed;
            top: 0px;
            right: 0;
            height: 100%;
            background-color: var(--bg-color);
            border-left: 1px solid var(--border-color);
            z-index: 999;
            transition: all 0.3s ease;
            overflow-y: auto;
        }

        .sidebar-menu {
            list-style: none;
            padding: 10px 0;
        }

        .sidebar-menu li {
            margin-bottom: 5px;
        }

        .sidebar-menu a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            margin: 0 5px;
            color: var(--text-color);
            text-decoration: none;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .sidebar-menu a:hover {
            background-color: var(--card-bg);
            color: var(--primary-color);
            border-radius: 10px;
        }

        .sidebar-menu .menu-icon {
            margin-left: 10px;
            width: 20px;
            text-align: center;
            font-size: 1.2rem;
        }

        .sidebar-menu .menu-text {
            opacity: 1;
            transition: opacity 0.3s ease;
        }
        .sidebar-header {
            display: none;
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .close-sidebar {
            background: none;
            border: none;
            color: var(--text-color);
            font-size: 1.2rem;
            cursor: pointer;
        }

        /* تعديلات للجوال */
        /* إضافة هذه الأكواد للـ CSS */
@media (max-width: 767px) {
            .sidebar-header {
                display: block;
            }
            .sidebar-menu .submenu-title{display: none;}

            /* إضافة مسافة أعلى القائمة لتناسب وجود زر الإغلاق */
            .sidebar-menu {
                padding-top: 5px;
            }
            .sidebar {
                transform: translateX(100%);
                width: 75%;
                top: 0;
                z-index: 1001;
                /* رقم أعلى من الهيدر */
                transition: all 0.3s ease;
                height: 100vh;
                padding-top: 15px;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            /* خلفية ضبابية عند فتح القائمة */
            .sidebar-backdrop {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                backdrop-filter: blur(5px);
                z-index: 1000;
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
            }
      
            .sidebar-backdrop.active {
                opacity: 1;
                visibility: visible;
            }

            .logo-container {
                display: flex;
                justify-content: center;
                flex-grow: 1;
            }
        }

        /* أنماط الأكورديون */
        .has-submenu .submenu {
            display: none;
            list-style: none;
            padding-right: 30px;
        }

        .has-submenu .submenu-arrow {
            margin-right: auto;
            transition: transform 0.3s;
        }

        .has-submenu.open .submenu-arrow {
            transform: rotate(180deg);
        }

        .has-submenu.open .submenu {
            display: block;
        }

        .submenu li a {
            padding: 8px 15px;
            font-size: 0.9rem;
        }

@media (min-width: 768px) {
            body {
                padding-right: var(--sidebar-collapsed-width);
            }

            .sidebar {
                width: var(--sidebar-collapsed-width);
            }

            .sidebar-menu a {
                justify-content: center;
                position: relative;
            }

            .sidebar-menu .menu-text {
                display: none;
            }

            /* القائمة المنبثقة */
            .sidebar-menu li a .tooltip {
                position: fixed;
                right: 70px;
                background-color: var(--bg-color);
                color: var(--text-color);
                padding: 5px 10px;
                border-radius: 5px;
                box-shadow: 0 0 10px rgba(0,0,0,0.1);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                white-space: nowrap;
                z-index: 1002;
                border: 1px solid var(--border-color);
            }

            .sidebar-menu li a:hover .tooltip {
                opacity: 1;
                visibility: visible;
                right: 60px;
            }

            /* تعديل عرض القوائم الفرعية في وضع سطح المكتب */
            .has-submenu .submenu-arrow {
                display: none;
            }

            /* تعديل سلوك القوائم الفرعية في وضع سطح المكتب */
            .has-submenu .submenu {
                position: fixed;
                right: var(--sidebar-collapsed-width);
                top: 0;
                background-color: var(--bg-color);
                border: 1px solid var(--border-color);
                border-radius: 5px;
                box-shadow: 0 0 10px rgba(0,0,0,0.1);
                min-width: 220px;
                display: none;
                z-index: 1002;
                padding: 10px 0;
            }

            .has-submenu:hover .submenu {
                display: block;
            }

            /* إضافة عنوان القائمة الفرعية */
            .submenu-title {
                display: block;
                padding: 8px 15px;
                font-weight: 600;
                color: var(--primary-color);
                border-bottom: 1px solid var(--border-color);
                margin-bottom: 5px;
                pointer-events: none;
                /* منع التفاعل مع العنوان */
            }

            /* تنسيق عناصر القائمة الفرعية */
            .submenu li a {
                padding: 8px 15px;
                display: block;
                color: var(--text-color);
                text-decoration: none;
                transition: all 0.2s ease;
            }

            .submenu li a:hover {
                background-color: var(--card-bg);
                color: var(--primary-color);
            }


            .menu-toggle {
                display: none;
            }

            header {
                right: var(--sidebar-collapsed-width);
                left: 0;
                transition: all 0.3s ease;
            }



            .logo {
                margin: 0;
            }
        }

        /* Hero Section */
        .hero {
            padding-top: 80px;
            text-align: center;
            margin-bottom: 60px;
        }

        .hero-logo {
            width: 150px;
            margin-bottom: 20px;
        }

        .hero h1 {
            margin-bottom: 20px;
            font-size: 1.5rem;
        }

        .hero p {
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        .buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .btn {
            height: 55px;
            padding: 12px 24px;
            border: 1px solid var(--border-color);
            border-radius: 50px;
            font-family: 'Rubik', 'Vazirmatn', sans-serif;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            background-color: var(--bg-color);
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }


        /* Features Section */
        .features {
            margin-bottom: 60px;
        }

        .features h2 {
            text-align: right;
            margin-bottom: 40px;
            font-size: 1.2rem;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

@media (min-width: 992px) {
            .features-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .feature-card {
            border: 1px solid var(--border-color);
            background-color: var(--bg-color);
            border-radius: 15px;
            margin: 0px 10px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-content {
            padding: 20px;
        }

        .feature-content h3 {
            margin-bottom: 10px;
        }

        .feature-content p {
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .feature-image {
            width: auto;
            height: auto;
        }

        /* Stats Section */
        .stats {
            margin: 80px 0;
            padding: 40px 0;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);

        }

        .stats h2 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 2rem;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            text-align: center;
        }

@media (min-width: 992px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .stat-item {
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 30px 20px;
            transition: transform 0.3s ease;
            background-color: var(--bg-color);
        }

        .stat-item:hover {
            transform: translateY(-5px);
        }

        .stat-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 1.1rem;
            color: var(--text-color);
            opacity: 0.8;
        }

        /* Footer */
        footer {
            border-top: 1px solid var(--border-color);
            padding: 30px 0;
            margin-top: 60px;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .footer-links {
            display: flex;
            gap: 20px;
        }

        .footer-links a {
            color: var(--text-color);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .footer-links a:hover {
            color: var(--primary-color);
        }

        .social-icons {
            display: flex;
            gap: 15px;
        }

        .social-icons a {
            color: var(--text-color);
            font-size: 1.2rem;
            transition: color 0.2s ease;
        }

        .social-icons a:hover {
            color: var(--primary-color);
        }

@media (max-width: 768px) {
            .footer-content {
                flex-direction: column;
                text-align: center;
            }
        }

        /* Desktop Optimizations */
@media (min-width: 992px) {
            .container {
                padding: 0 20px;
            }

            .hero {
                padding-top: 120px;
                padding-bottom: 40px;
            }

            .hero-logo {
                width: 180px;
            }

            .hero h1 {
                font-size: 3rem;
            }

            .hero p {
                font-size: 1.2rem;
                max-width: 800px;
            }

            .buttons {
                margin-top: 40px;
            }

            .btn {
                padding: 15px 30px;
                font-size: 1.1rem;
            }

            /* تحسينات إضافية لقسم الإحصائيات على سطح المكتب */
            .stats h2 {
                font-size: 3rem;
            }

            .stat-number {
                font-size: 3.5rem;
            }

            .stat-label {
                font-size: 1.2rem;
            }
        }

        .circles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index:-1;
        }

        .circles li {
            position: absolute;
            display: block;
            list-style: none;
            background: rgba(128, 128, 128, 0.1);
            animation: animate 25s linear infinite;
            bottom: -150px;
        }

@keyframes animate {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 1;
                border-radius: 0;
            }
            100% {
                transform: translateY(-1000px) rotate(720deg);
                opacity: 0;
                border-radius: 50%;
            }
        }