/* استيراد خط تجوال العربي */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f9f9f9;
    --text-color: #333;
    --main-color: #00b4d8; /* لون سماوي طبي */
    --second-color: #0077b6; /* لون أزرق داكن */
    --white-color: #fff;
    --shadow: 0 5px 25px rgba(0,0,0,0.1);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* --- الهيدر (القائمة العلوية) --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 10%;
    background: transparent;
    transition: all 0.4s ease;
}

header.sticky {
    background: var(--white-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 15px 10%;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo i {
    color: var(--main-color);
    font-size: 30px;
}

.navbar {
    display: flex;
}

.navbar a {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.4s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    background: rgba(0, 180, 216, 0.1);
}

#menu-icon {
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* --- القسم الرئيسي (Hero) --- */
.home {
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 0 10%;
    position: relative;
    /* خلفية متدرجة ناعمة */
    background: linear-gradient(to left, #e0f7fa, #ffffff); 
}

.home-text h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 10px;
}

.home-text h1 {
    font-size: 55px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #222;
}

.home-text h1 span {
    color: var(--second-color);
}

.home-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.home-img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    /* تأثير طفو الصورة */
    animation: float 4s linear infinite; 
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.main-btn {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--main-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.4s ease;
    margin-left: 20px;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn:hover {
    background: var(--second-color);
    transform: translateY(-5px);
}

.btn2 {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    box-shadow: none;
}

.btn2:hover {
    background: var(--text-color);
    color: var(--white-color);
    border: 2px solid var(--text-color);
    transform: translateY(-5px);
}

/* --- شريط الأرقام --- */
.stats {
    padding: 30px 10%;
    background: var(--second-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    color: white;
    text-align: center;
}

.stat-box i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #8cefff;
}

.stat-box h3 {
    font-size: 35px;
    font-weight: 700;
}

/* --- الخدمات --- */
.services, .contact {
    padding: 80px 10%;
}

.heading {
    text-align: center;
    margin-bottom: 60px;
}

.heading span {
    color: var(--main-color);
    font-weight: 600;
    font-size: 18px;
}

.heading h2 {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-top: 10px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.box {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.box:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--main-color);
}

.box i {
    font-size: 50px;
    color: var(--main-color);
    margin-bottom: 20px;
    display: inline-block;
}

.box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.box p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.read-more:hover {
    color: var(--main-color);
    gap: 10px; /* تحريك السهم */
}

/* --- تواصل معنا --- */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--main-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact form input, 
.contact form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: #fff;
    font-size: 16px;
    transition: 0.3s;
}

.contact form input:focus, 
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.1);
}

.contact form .btn {
    cursor: pointer;
    border: none;
    margin: 0;
}

/* --- الفوتر المبسط --- */
.footer {
    background: #24262b;
    padding: 20px 10%;
    color: #fff;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social a {
    color: #fff;
    margin-right: 15px;
    font-size: 20px;
    transition: 0.3s;
}

.social a:hover {
    color: var(--main-color);
}

/* --- التجاوب مع الموبايل (Responsive) --- */
@media (max-width: 991px) {
    header { padding: 15px 5%; }
    section { padding: 50px 5%; }
    .home { padding: 0 5%; }
    .footer { padding: 20px 5%; }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0; /* لأن الموقع RTL، نستخدم left أو right حسب الرغبة */
        right: 0;
        width: 100%;
        background: var(--white-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; /* مخفي افتراضياً */
    }
    
    .navbar.open {
        display: flex; /* يظهر عند الضغط */
    }

    .navbar a {
        display: block;
        margin: 10px 0;
        padding: 10px;
        background: #f4f4f4;
    }

    .home {
        grid-template-columns: 1fr;
        height: auto;
        padding-top: 100px;
        text-align: center;
    }

    .home-img {
        order: 1; /* الصورة تظهر أولاً في الموبايل */
        margin-bottom: 20px;
    }
    .home-text {
        order: 2;
    }

    .home-text h1 { font-size: 40px; }

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

    .contact-container {
        grid-template-columns: 1fr;
    }
}
