 :root {
            --primary-color: #00bcd4;
            --primary-dark: #0288a7;
            --secondary-color: #ff4081;
            --dark-bg: #0f172a;
            --darker-bg: #0a0e1a;
            --header-bg: #111827;
            --text-color: #ffffff;
            --text-muted: #94a3b8;
            --gradient: linear-gradient(135deg, #00bcd4 0%, #0288a7 100%);
            --gold: #ffd700;
            --transition: all 0.3s ease;

            /* متغيرات التناسق التلقائي */
            --base-size: 16px;
            --scale: 1.25;
            --h1: calc(var(--h2) * var(--scale));
            --h2: calc(var(--h3) * var(--scale));
            --h3: calc(var(--h4) * var(--scale));
            --h4: calc(var(--h5) * var(--scale));
            --h5: calc(var(--h6) * var(--scale));
            --h6: var(--base-size);
            --spacing: 1rem;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            font-size: var(--base-size);
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Tajawal', sans-serif;
            background: var(--dark-bg);
            color: var(--text-color);
            line-height: 1.6;
            overflow-x: hidden;
            font-size: 1rem;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* نظام التناسق التلقائي للخطوط */
        h1 { font-size: var(--h1); line-height: 1.2; }
        h2 { font-size: var(--h2); line-height: 1.3; }
        h3 { font-size: var(--h3); line-height: 1.4; }
        h4 { font-size: var(--h4); line-height: 1.5; }
        h5 { font-size: var(--h5); line-height: 1.6; }
        h6 { font-size: var(--h6); line-height: 1.6; }

        /* شريط التمرير المخصص */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--darker-bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* الهيدر الفاخر */
        header {
            background: rgba(17, 24, 39, 0.95);
            padding: 1rem 5%;
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            border-bottom: 1px solid rgba(0, 188, 212, 0.1);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            font-size: clamp(1.5rem, 4vw, 2rem);
            font-weight: 900;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
            white-space: nowrap;
        }

        .logo i {
            margin-left: 10px;
            color: var(--gold);
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: clamp(15px, 3vw, 30px);
            align-items: center;
        }

        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding: 5px 10px;
            transition: var(--transition);
            white-space: nowrap;
            font-size: clamp(0.9rem, 2vw, 1rem);
        }

        .nav-links a:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            right: 50%;
            background: var(--gradient);
            transition: var(--transition);
        }

        .nav-links a:hover:after,
        .nav-links a.active:after {
            width: 100%;
            right: 0;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary-color);
        }

        /* زر القائمة للموبايل */
        .menu-toggle {
            font-size: 1.8rem;
            cursor: pointer;
            display: none;
            color: var(--primary-color);
            transition: var(--transition);
            padding: 12px;
            border: 2px solid var(--primary-color);
            background: rgba(0, 188, 212, 0.1);
            border-radius: 8px;
            min-width: 50px;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 999;
        }

        .menu-toggle:hover {
            color: var(--text-color);
            background: var(--primary-color);
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
        }

        .menu-toggle:active {
            transform: scale(0.95);
        }

        .menu-toggle i {
            transition: var(--transition);
        }

        .menu-toggle.active i {
            transform: rotate(90deg);
        }

        /* المحتوى الرئيسي */
        .page-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            min-height: calc(100vh - 200px);
            padding: clamp(2rem, 8vw, 5rem) 5%;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }

        .page-content:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
            z-index: -1;
        }

        .page-content h2 {
            font-size: clamp(2rem, 6vw, 3rem);
            margin-bottom: clamp(1rem, 4vw, 2rem);
            background: linear-gradient(45deg, #00bcd4, #00ff95);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 900;
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .page-content h2:after {
            content: '';
            position: absolute;
            width: 60%;
            height: 3px;
            background: var(--gradient);
            bottom: -15px;
            left: 20%;
            border-radius: 3px;
            animation: glow 2s infinite alternate;
        }

        .page-content p {
            font-size: clamp(1rem, 3vw, 1.3rem);
            margin-bottom: clamp(1.5rem, 5vw, 3rem);
            color: var(--text-muted);
            max-width: 600px;
            line-height: 1.8;
        }

        /* الأزرار المحسنة */
        .btn {
            background: var(--gradient);
            color: #fff;
            padding: clamp(15px, 4vw, 20px) clamp(30px, 6vw, 50px);
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
            position: relative;
            overflow: hidden;
            z-index: 1;
            font-size: clamp(1rem, 3vw, 1.2rem);
            border: none;
            cursor: pointer;
            margin: 1rem 0;
            transform-origin: center;
        }

        .btn:before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: var(--transition);
            z-index: -1;
        }

        .btn:hover:before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 40px rgba(0, 188, 212, 0.6);
        }

        .btn:active {
            transform: translateY(-2px) scale(1.02);
        }

        .btn i {
            font-size: 1.2em;
            filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
        }

        /* الفوتر الفاخر */
        footer {
            background: var(--header-bg);
            padding: 2rem 5%;
            text-align: center;
            margin-top: auto;
            position: relative;
            border-top: 1px solid rgba(0, 188, 212, 0.1);
        }

        footer:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: var(--gradient);
        }

        .copyright {
            color: var(--text-muted);
            font-size: clamp(0.8rem, 2vw, 0.9rem);
            margin: 0;
        }

        /* تأثيرات للعناصر */
        .glow {
            animation: glow 2s infinite alternate;
        }

        @keyframes glow {
            from {
                text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
            }
            to {
                text-shadow: 0 0 20px rgba(0, 188, 212, 0.8), 0 0 30px rgba(0, 188, 212, 0.6);
            }
        }

        /* القائمة الجانبية للهواتف */
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: min(300px, 80vw);
            height: 100vh;
            background: var(--header-bg);
            z-index: 1001;
            padding: 5rem 1.5rem 2rem;
            transition: var(--transition);
            box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu .close-btn {
            position: absolute;
            top: 1rem;
            left: 1rem;
            font-size: 1.5rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: var(--transition);
            padding: 0.5rem;
            background: transparent;
            border: none;
        }

        .mobile-menu .close-btn:hover {
            color: var(--secondary-color);
            transform: rotate(90deg);
        }

        .mobile-menu ul {
            list-style: none;
            margin-top: 2rem;
        }

        .mobile-menu ul li {
            margin-bottom: 1rem;
        }

        .mobile-menu ul li a {
            color: var(--text-color);
            text-decoration: none;
            font-size: 1.1rem;
            display: block;
            padding: 0.8rem;
            border-radius: 8px;
            transition: var(--transition);
        }

        .mobile-menu ul li a:hover,
        .mobile-menu ul li a.active {
            background: rgba(0, 188, 212, 0.1);
            color: var(--primary-color);
        }

        .mobile-menu ul li a i {
            margin-left: 10px;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* نظام التناسق التلقائي للشاشات المختلفة */
        
        /* شاشات كبيرة جداً */
        @media (min-width: 1400px) {
            :root {
                --base-size: 18px;
            }
        }

        /* شاشات كبيرة */
        @media (max-width: 1200px) {
            :root {
                --base-size: 16px;
            }
            
            .navbar {
                padding: 0 2rem;
            }
        }

        /* تابلت */
        @media (max-width: 992px) {
            :root {
                --base-size: 15px;
                --scale: 1.2;
            }

            .nav-links {
                gap: 20px;
            }

            .page-content {
                min-height: calc(100vh - 180px);
            }
        }

        /* هواتف كبيرة وتابلت صغير */
        @media (max-width: 768px) {
            :root {
                --base-size: 14px;
                --scale: 1.15;
            }

            .menu-toggle {
                display: flex !important;
            }

            .nav-links {
                display: none !important;
            }

            .navbar {
                position: relative;
            }

            .page-content {
                min-height: calc(100vh - 160px);
                padding: 2rem 1rem;
            }

            header {
                padding: 0.8rem 5%;
            }

            .btn {
                padding: 12px 25px;
                font-size: 1rem;
            }
        }

        /* هواتف متوسطة */
        @media (max-width: 576px) {
            :root {
                --base-size: 13px;
                --scale: 1.1;
            }

            .page-content {
                min-height: calc(100vh - 140px);
                padding: 1.5rem 3%;
            }

            header {
                padding: 0.5rem 3%;
            }

            .btn {
                padding: 10px 20px;
                font-size: 0.9rem;
            }

            footer {
                padding: 1.5rem 3%;
            }
        }

        /* هواتف صغيرة */
        @media (max-width: 400px) {
            :root {
                --base-size: 12px;
            }

            .page-content {
                min-height: calc(100vh - 120px);
            }

            .mobile-menu {
                width: 90vw;
            }

            .btn {
                padding: 8px 16px;
                font-size: 0.85rem;
            }
        }

        /* تحسينات إضافية للشاشات الطويلة */
        @media (max-height: 600px) and (orientation: landscape) {
            .page-content {
                min-height: auto;
                padding: 1rem;
            }

            .page-content h2 {
                font-size: clamp(1.5rem, 4vw, 2rem);
            }
        }

        /* تحسين الطباعة */
        @media print {
            .menu-toggle,
            .mobile-menu,
            .overlay,
            footer {
                display: none !important;
            }

            body {
                background: white !important;
                color: black !important;
            }

            .page-content {
                background: white !important;
                color: black !important;
            }
        }

        /* تحسينات للأداء */
        .btn,
        .nav-links a {
            will-change: transform;
        }

        /* تأثيرات الحركة المتقدمة */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .page-content > * {
            animation: fadeIn 0.6s ease-out forwards;
        }

        .page-content p {
            animation-delay: 0.2s;
        }

        .page-content .btn {
            animation-delay: 0.4s;
        }

        /* تحسينات إمكانية الوصول */
        .btn:focus,
        .nav-links a:focus,
        .menu-toggle:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* تحسين النص للشاشات عالية الدقة */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            body {
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
            }
        }

        /* تحسينات للحركة المخفضة */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }