:root {
    /* ... ('-*A8 (CD 'DE*:J1'* 'D#.1I CE' GJ) ... */

    --primary-dark: #1B1B44;
    --secondary-dark: #191942;
    --medium-dark: #2C2D4D;
    --light-dark: #39375A;
    --dark-step-1: #1B1A44;
    --dark-step-2: #1E1D47;
    --dark-step-3: #27254C;
    --dark-step-4: #323055;
    --dark-step-5: #3C395C;
    --dark-step-6: #454363;
    --dark-step-7: #504C69;
    --primary-light: #FFFFFF;
    --secondary-light: #FDFDFD;
    --text-on-dark: #FFFFFF;
    --text-on-light: #1B1B44;
    --text-medium: #2C2D4D;
    --text-light-muted: rgba(255, 255, 255, 0.9);
    --accent-color: #56BB66;
    --accent-hover: #4E9460;
    --accent-light: #74C16F;
    --green-light-1: #93CC78;
    --green-light-2: #AFD482;
    --green-light-3: #BFDB89;
    --whatsapp-green: #25D366;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    --silver-gradient: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--green-light-1) 100%);
    /* 3F:J1 G0G 'DE*:J1'* D'3*./'EG' AJ 'D*-1JC */
    --gradient-dark-original: linear-gradient(to bottom,
            var(--dark-step-1) 0%,
            var(--dark-step-2) 16.6%,
            var(--dark-step-3) 33.2%,
            var(--dark-step-4) 49.8%,
            var(--dark-step-5) 66.4%,
            var(--dark-step-6) 83%,
            var(--dark-step-7) 100%);
    --gradient-hero: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --box-bg: #93CC78;
    /* #H 'DDHF 'DDJ JF'3(C */
    --box-flip-bg: rgba(255, 255, 255, 0.08);
    --box-shadow-200: rgba(0, 0, 0, 0.3);
    --Num-clr: #FFFFFF;

    /* E*:J1'* ,/J/) D#-,'E 'D.7H7 ('3*./'E clamp */
    --h1-min: 2.5rem;
    --h1-preferred: 8vw;
    /* 8% EF 916 F'A0) 'D916 */
    --h1-max: 4.5rem;

    --p-min: 1.1rem;
    --p-preferred: 3.5vw;
    /* 3.5% EF 916 F'A0) 'D916 */
    --p-max: 1.6rem;

    --section-h2-min: 2rem;
    --section-h2-preferred: 6vw;
    --section-h2-max: 3.8rem;

    --section-p-min: 1rem;
    --section-p-preferred: 3vw;
    --section-p-max: 1.4rem;

    --conclusion-title-min: 2rem;
    --conclusion-title-preferred: 7vw;
    --conclusion-title-max: 2.8rem;

    --conclusion-text-min: 1.2rem;
    --conclusion-text-preferred: 4vw;
    --conclusion-text-max: 1.6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Adjust if header height changes */
}

body {
    /* *:JJ1 'D.DAJ) D'3*./'E 'D13HE 'DE*-1C) */
    background: var(--gradient-dark-original);
    /* '3*./E 'DBJE) 'D#5DJ) C.DAJ) 'A*1'6J) */
    background-size: 300% 300%;
    /* ',9D 'D.DAJ) #C(1 DD3E'- ('D*-1JC */
    background-attachment: fixed;
    color: var(--text-on-dark);
    /* ,9D DHF 'DF5 J*F'3( E9 'D.DAJ) 'D/'CF) */
    line-height: 1.8;

    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    /* *7(JB 'D13HE 'DE*-1C) */
    animation: animateGradient 7s ease-out infinite alternate;
    /* 15 +'FJ) -1C) 3D3) **C11 DD#(/ H*F9C3 */
}

/* *91JA 'D13HE 'DE*-1C) */
@keyframes animateGradient {
    0% {
        background-position: 0% 0%;
        /* #9DI J3'1 */
    }

    25% {
        background-position: 100% 0%;
        /* #9DI JEJF */
    }

    50% {
        background-position: 100% 100%;
        /* #3AD JEJF */
    }

    75% {
        background-position: 0% 100%;
        /* #3AD J3'1 */
    }

    100% {
        background-position: 0% 0%;
        /* 9H/) %DI #9DI J3'1 */
    }
}


.navbar {
    box-shadow: none;
    position: relative;
    z-index: 1000;
    padding: 30px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-nav {
    display: flex;
    align-items: center;
}

.logo-nav img {
    height: 50px;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin: 0 8px;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.nav-links li a i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.nav-links li a:hover {
    background-color: var(--accent-light);
    color: white;
}

.nav-links li a.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(204, 165, 86, 0.4);
}

.nav-links li a.active:hover {
    background: var(--accent-light);
}

.nav-btn {
    background: var(--secondary);
    padding: 10px 25px !important;
    box-shadow: 0 4px 15px rgba(204, 165, 86, 0.4);
}

.nav-btn:hover {

    transform: translateY(-3px);
}

.mobile-menu {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

header {
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    margin-top: 0;
}

.main-content {
    display: flex;

}

.login-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}


.hidden {
    display: none !important;
}

#profile-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-dark);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 350px;

    text-align: right;
    direction: rtl;
}

.image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: white;
    text-align: center;
}

.login-form {
    background-color: var(--secondary-dark);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease;

}

.login-form h2 {
    color: var(--accent-hover);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.login-form h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(204, 165, 86, 0.3);
}

.btn {
    display: block;
    width: 100%;
    background: linear-gradient(to right, var(--secondary), var(--secondary-light));
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(204, 165, 86, 0.4);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 165, 86, 0.6);
    background: linear-gradient(to right, var(--secondary-light), var(--secondary));
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-footer p {
    margin-bottom: 10px;
    color: var(--mid);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.welcome-message {
    max-width: 600px;
    animation: fadeIn 1s ease;
}

.welcome-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

footer {
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 10px 0;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin: 0 8px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    /* للشاشات الصغيرة فقط */
    @media (max-width: 992px) {
        .nav-links {
            position: fixed;
            top: 0;
            right: -250px;
            /* Sidebar مخفية على اليمين */
            width: 250px;
            /* عرض الشريط */
            height: 100vh;
            /* طول الشاشة كامل */
            background-color: var(--primary-dark);
            flex-direction: column;
            align-items: center;
            padding: 20px 0;

            transition: right 0.3s ease-in-out;
            z-index: 999;
        }

        .nav-links.active {
            right: 0;
            /* يظهر من اليمين */
        }
    }


    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: none;
    }

    .main-content {
        flex-direction: column;
    }

    .image-section,
    .login-section {
        flex: none;
        width: 100%;
    }

    .image-section {
        padding: 40px 20px;
    }

    .login-form {
        max-width: 600px;
    }

    .welcome-message h2 {
        font-size: 2rem;
    }

    .welcome-message p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .login-form {
        padding: 30px 20px;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }

    .welcome-message h2 {
        font-size: 1.8rem;
    }

    .mobile-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -250px;
        /* Sidebar مخفية على اليمين */
        width: 250px;
        /* عرض الشريط */
        height: 100vh;
        /* طول الشاشة كامل */
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;

        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
        /* يظهر من اليمين */
    }

    .logo-nav img {
        height: 30px;

    }
}

@media (max-width: 480px) {
    .logo-nav img {
        height: 30px;

    }

    .navbar-container {
        display: flex;
        justify-content: space-around;
    }

    .mobile-menu {
        font-size: 1.5rem;
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -250px;
        /* Sidebar مخفية على اليمين */
        width: 250px;
        /* عرض الشريط */
        height: 100vh;
        /* طول الشاشة كامل */
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;

        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
        /* يظهر من اليمين */
    }

    .logo-nav img {
        height: 30px;

    }

    .nav-links {
        top: 60px;
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .login-section,
    .image-section {
        padding: 20px 10px;

    }

    .welcome-message h2 {
        font-size: 1.5rem;
    }

    .welcome-message p {
        font-size: 0.9rem;
    }

    .login-form h2 {
        font-size: 1.3rem;
    }

    .form-group label,
    .form-group input,
    .form-footer a {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}