/* --- المتغيرات الأساسية --- */
:root {
    --dark-bg: #222;
    --orange: #ffaa00;
    --white: #fff;
    --light-gray: #f8f8f8;
    --gray-text: #333;
}

/* --- الستايل الأساسي --- */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--dark-bg);
    color: var(--gray-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* مهم للقائمة ديال التيليفون */
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--orange);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 1.2em;
}

/* --- Hero Carousel (Slider) --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 450px; /* ارتفاع ثابت باش المحتوى لي تحت منو ميتخربقش */
    overflow: hidden;
}

.carousel-images-container {
    width: 100%;
    height: 100%;
}

.carousel-images-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-images-container img.active {
    opacity: 1;
}

/* --- Why Choose Us Section --- */
.why-choose-us-section {
    background-color: var(--light-gray);
    padding: 40px 20px;
    text-align: center;
}

.why-choose-us-section h2 {
    font-size: 2.1em;
    margin-bottom: 30px;
}

.features-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* باش يهبطو لتحت فالشاشات المتوسطة */
}

.feature-item {
    flex-basis: 200px; /* عرض أساسي لكل عنصر */
}

.feature-item i {
    font-size: 3em;
    color: var(--orange);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.1em;
    font-weight: bold;
}
body.login-page {
    background-color: #4a356a; /* الخلفية البنفسجية خاصة غير بهاد الصفحة */
}


body.login-page .nav-links a.active {
    color: var(--orange);
}

.login-page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 40px 0;
}

.login-illustration { max-width: 500px; }
.login-illustration img { max-width: 100%; }

.login-container {
    background-color: #2c2c2c;
    border-radius: 15px;
    padding: 40px;
    width: 400px;
    color: #fff;
}

.login-logo { text-align: center; margin-bottom: 10px; }
.login-logo img { width: 80px; }
.login-header { text-align: center; margin-bottom: 25px; }
.login-header h2 { margin: 0 0 5px 0; font-size: 2em; }
.login-header p { margin: 0; color: #ccc; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input { width: 100%; padding: 12px; border: none; border-radius: 5px; box-sizing: border-box; }
.password-input-container { position: relative; }
.password-input-container i { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); cursor: pointer; color: #888; }
.forgot-password { display: block; text-align: right; font-size: 0.9em; color: #ccc; text-decoration: none; margin-top: 8px; }
.login-button { display: block; width: 100%; padding: 12px; background-color: #ffa500; color: #fff; border: none; border-radius: 5px; font-size: 1.1em; font-weight: bold; cursor: pointer; margin-top: 30px; }
/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: var(--orange);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    font-size: 0.9em;
    background-color: #1a1a1a;
}

/* --- بداية الكود ديال Responsive Menu --- */

.hamburger-menu {
    display: none; /* مخفي فالشاشات الكبيرة */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.error-message {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}
/* الكود الخاص بالشاشات الصغيرة (أقل من 768px) */
@media (max-width: 768px) {

    .header-container .nav-links,
    .header-container .social-icons {
        display: none;
    }

    .hamburger-menu {
        display: flex; /* كيولي باين */
    }

    .nav-links.active {
        display: flex;
        position: absolute;
        top: 100%; /* كيجي تحت الهيدر مباشرة */
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .nav-links.active ul {
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-links.active li {
        width: 100%;
        text-align: center;
    }

    .nav-links.active li a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active li:last-child a {
        border-bottom: none;
    }

    .features-list {
        flex-direction: column;
        align-items: center;
    }
     .login-illustration {
        display: none; /* كنخبيو الصورة فالتيليفون */
    }
    .login-page-content {
        justify-content: center;
    }
}