/*
 * Copyright (c) 2025-2026, lnc
 * All rights reserved.
 * Developer : Mohammed Al-Baqer
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0078d4;
    --primary-dark: #005a9e;
    --primary-light: #e3f2fd;
    --secondary: #1a1a2e;
    --dark: #0d1117;
    --darker: #161b22;
    --light: #f8f9fa;
    --gray: #8b949e;
    --gray-dark: #30363d;
    --success: #238636;
    --warning: #d2991d;
    --danger: #da3633;
    --white: #ffffff;
    --black: #000000;
    --border: #30363d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --font-cairo: 'Cairo', sans-serif;
    --font-tajawal: 'Tajawal', sans-serif;
    --font-changa: 'Changa', sans-serif;
    --font-code: 'Consolas', 'Courier New', monospace;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-tajawal);
    background: var(--light);
    color: var(--secondary);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-cairo);
    font-weight: 700;
}

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-changa);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    color: var(--secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a i {
    font-size: 12px;
    color: var(--gray);
}

.nav-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-menu a:hover i {
    color: var(--primary);
}

.nav-download {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.nav-download i {
    color: var(--white) !important;
}

.nav-download:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

.hero {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a1a2e 100%);
    color: var(--white);
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,120,212,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,120,212,0.15);
    border: 1px solid rgba(0,120,212,0.3);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: var(--font-cairo);
}

.hero h1 {
    font-family: var(--font-changa);
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0078d4, #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description {
    font-size: 24px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 10px;
    font-family: var(--font-cairo);
}

.sub-description {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: var(--font-cairo);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,120,212,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray-dark);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-changa);
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--gray);
}

.hero-preview {
    position: relative;
    z-index: 1;
}

.code-window {
    background: #1e1e1e;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    width: 500px;
    border: 1px solid var(--gray-dark);
}

.window-header {
    background: #2d2d2d;
    padding: 12px 16px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--gray-dark);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
    color: var(--gray);
    font-size: 12px;
    margin-right: auto;
    font-family: var(--font-code);
}

.window-body {
    padding: 20px;
    overflow-x: auto;
}

.window-body pre {
    margin: 0;
}

.window-body code {
    font-family: var(--font-code);
    font-size: 13px;
    line-height: 1.8;
}

.line-number {
    color: #858585;
    margin-left: 15px;
    user-select: none;
}

.keyword { color: #569cd6; font-weight: bold; }
.module { color: #9cdcfe; }
.class-name { color: #4ec9b0; }
.variable { color: #d4d4d4; }
.string { color: #ce9178; }
.function { color: #dcdcaa; }

.section {
    padding: 100px 20px;
}

.section-dark {
    background: var(--secondary);
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.section-dark .section-icon {
    color: #4fc3f7;
}

.section-title {
    font-family: var(--font-changa);
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-dark .section-title {
    color: var(--white);
}

.section-description {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.overview-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon {
    font-size: 28px;
    color: var(--primary);
}

.overview-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.overview-card p {
    color: var(--gray);
    font-size: 14px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid var(--gray-dark);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 28px;
    color: var(--primary);
    min-width: 40px;
}

.feature-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--gray);
    font-size: 14px;
}

.structure-container {
    margin-top: 40px;
}

.file-tree {
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--gray-dark);
    overflow: hidden;
}

.file-tree-header {
    background: var(--gray-dark);
    padding: 12px 20px;
    color: var(--white);
    font-family: var(--font-code);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-tree pre {
    padding: 25px;
    margin: 0;
    overflow-x: auto;
}

.file-tree code {
    font-family: var(--font-code);
    font-size: 13px;
    color: #d4d4d4;
    line-height: 2;
}

.tree-file { color: #9cdcfe; }
.tree-dir { color: #dcdcaa; }
.tree-sub { color: #808080; }
.comment { color: #6a9955; }

.installation-steps {
    max-width: 800px;
    margin: 50px auto 0;
}

.step {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-changa);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.step-content h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 20px;
}

.code-block {
    background: #1e1e1e;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-dark);
    overflow: hidden;
}

.code-header {
    background: #2d2d2d;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 12px;
    font-family: var(--font-code);
}

.copy-btn {
    background: var(--gray-dark);
    border: none;
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-btn:hover {
    background: var(--primary);
}

.code-block pre {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-code);
    font-size: 13px;
    color: #d4d4d4;
}

.subsection-title {
    font-family: var(--font-cairo);
    font-size: 22px;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--primary);
    color: var(--white);
}

th {
    padding: 14px 16px;
    text-align: right;
    font-family: var(--font-cairo);
    font-weight: 700;
    font-size: 14px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

tbody tr:hover {
    background: var(--primary-light);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-code);
}

.badge-blue { background: #e3f2fd; color: #1565c0; }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-orange { background: #fff3e0; color: #e65100; }
.badge-purple { background: #f3e5f5; color: #7b1fa2; }
.badge-red { background: #ffebee; color: #c62828; }
.badge-teal { background: #e0f2f1; color: #00695c; }

kbd {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: var(--font-code);
    font-size: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.protection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.protection-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-cairo);
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.protection-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.protection-item i {
    color: var(--primary);
    font-size: 18px;
}

.syntax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.syntax-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-dark);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.syntax-item:hover {
    border-color: var(--primary);
}

.color-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.1);
}

.syntax-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.syntax-name {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.syntax-hex {
    color: var(--gray);
    font-family: var(--font-code);
    font-size: 12px;
}

.syntax-example {
    color: var(--gray);
    font-size: 12px;
    font-family: var(--font-code);
    direction: ltr;
    text-align: left;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.download-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.download-card p {
    color: var(--gray);
    margin-bottom: 8px;
}

.version-info {
    font-family: var(--font-cairo);
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 16px !important;
}

.size-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px !important;
}

.download-btn {
    width: 100%;
    justify-content: center;
}

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 20px 30px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-changa);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-description {
    color: var(--gray);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-copyright {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-copyright strong {
    color: var(--white);
}

.footer-license {
    color: var(--gray);
    font-size: 13px;
}

.footer-license a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .code-window {
        width: 100%;
        max-width: 500px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .syntax-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* إضافة إلى نهاية ملف style.css */

/* تصحيح اتجاه النصوص الإنجليزية */
code,
pre,
.code-block code,
.code-block pre,
.file-tree code,
.file-tree pre,
.window-body code,
.window-body pre,
.syntax-hex,
.syntax-example,
.badge,
kbd,
.terminal-output,
.version-info,
.size-info,
.logo span,
.window-title,
.code-header span {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
    display: inline-block;
}

pre,
code {
    direction: ltr;
    text-align: left;
    unicode-bidi: embed;
}

.code-block pre,
.code-block code,
.file-tree pre,
.file-tree code,
.window-body pre,
.window-body code {
    direction: ltr;
    text-align: left;
    display: block;
    width: 100%;
}

.file-tree pre code {
    display: block;
}

.hero-preview .code-window,
.code-block,
.file-tree {
    direction: ltr;
}

.window-header {
    direction: ltr;
}

.window-body {
    direction: ltr;
    text-align: left;
}

.syntax-item {
    direction: rtl;
}

.syntax-example {
    direction: ltr !important;
    text-align: left !important;
    display: block;
}

.badge {
    direction: ltr;
    text-align: left;
}

table {
    direction: rtl;
}

table td:first-child {
    direction: ltr;
    text-align: left;
}

kbd {
    direction: ltr;
    text-align: left;
    font-family: 'Consolas', 'Courier New', monospace;
}

.logo span {
    direction: ltr;
}

.version i,
.size-info i {
    margin-left: 5px;
}

.feature-content p {
    direction: rtl;
}

.overview-card p {
    direction: rtl;
}

.section-description {
    direction: rtl;
}

.tree-file,
.tree-dir,
.tree-sub {
    direction: ltr;
    display: inline;
}

.comment {
    direction: rtl;
    display: inline;
}

.step-content h3 i {
    margin-left: 8px;
}

.usage-table td:first-child,
.shortcuts-table td:first-child {
    text-align: center;
    direction: ltr;
}

.nav-menu a i {
    margin-left: 5px;
}

.btn i {
    margin-left: 5px;
}

.hero-preview .window-body {
    direction: ltr;
    text-align: left;
}

.hero-preview .line-number {
    direction: ltr;
    display: inline;
}

.hero-preview .keyword,
.hero-preview .module,
.hero-preview .class-name,
.hero-preview .variable,
.hero-preview .string,
.hero-preview .function {
    direction: ltr;
    unicode-bidi: embed;
}

.copy-btn {
    direction: ltr;
}

.copy-btn i {
    margin-left: 0;
    margin-right: 5px;
}

.footer-logo span {
    direction: ltr;
}

.footer-license a {
    direction: ltr;
    display: inline;
}