/*========================= VARIABLES =========================*/
:root {
    /*========================= الألوان =========================*/
    --primary-color: #1a365d;
    --primary-black: #000000;
    --primary-dark: #2d3748;
    --primary-light: #4a5568;
    --secondary-color: #e53e3e;
    --secondary-dark: #c53030;
    --accent-color: #2b6cb0;
    --info-color: #3182ce;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --my-code: #006c86;
    --secondary-baby: #2d4a7c;
    --accent-color: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-radius: 8px;
    --primary-rgb: 26, 54, 93;
    --border-radius-lg: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    /*========================= التباعد =========================*/
    --section-padding: 5rem 0;
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /*========================= الخطوط =========================*/
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 3rem;
}

/*========================= RESET & BASE =========================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    direction: rtl;
    min-height: 100vh;
    background-color: #f5f7fa;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

/*========================= UTILITY CLASSES =========================*/
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}





/*========================= RESPONSIVE DESIGN =========================*/

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--primary-dark);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
        border: none;
        border-radius: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding-right: 2.5rem;
        color: white;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-item i {
        color: white;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-img {
        height: 100px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }



    .search-box {
        left: -200px;
        min-width: 280px;
    }
}

@media (max-width: 576px) {
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-links {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .logo-img {
        height: 80px;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    /*
    .stats-grid {
        grid-template-columns: 1fr;
    } */
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 70px;
    }

    .search-box {
        left: -150px;
        min-width: 250px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 300px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 70px;
    }

    .search-box {
        left: -150px;
        min-width: 250px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/*========================= End RESPONSIVE DESIGN =========================*/