
/* الإعدادات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f7f8fc;
    color: #26344a;
    line-height: 1.8;
}

/* القائمة الرئيسية */
header {
    background-color: #ffffff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1150px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #246b83;
    font-size: 30px;
    font-weight: 800;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    text-decoration: none;
    color: #26344a;
    font-weight: 600;
    transition: 0.3s;
}

.navbar a:hover {
    color: #2695a5;
}

/* القسم الرئيسي */
.hero {
    min-height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 20px;

    background: linear-gradient(135deg, #153b59, #287d91);
    color: white;
}

.hero-content {
    max-width: 750px;
}

.welcome {
    color: #a8e4e7;
    font-size: 18px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.hero h1 span {
    color: #a8e4e7;
}

.hero h3 {
    font-size: 21px;
    margin-bottom: 18px;
}

.hero-content > p:last-of-type {
    font-size: 17px;
    margin-bottom: 30px;
}

/* الأزرار */
.btn {
    display: inline-block;
    background-color: #a8e4e7;
    color: #153b59;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn:hover {
    background-color: white;
    transform: translateY(-3px);
}

/* الأقسام العامة */
.section {
    max-width: 1100px;
    margin: auto;
    padding: 75px 25px;
}

.section-title {
    text-align: center;
    color: #246b83;
    font-size: 30px;
    margin-bottom: 35px;
}

.section-title::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    background-color: #55b7bd;
    margin: 10px auto;
    border-radius: 5px;
}

/* من أنا */
.about-box {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.about-box p {
    margin-bottom: 15px;
    font-size: 17px;
}

/* المهارات */
.skills-section {
    background-color: #eef6f8;
    max-width: 100%;
}

.skills-container {
    max-width: 1000px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #246b83;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-7px);
    background-color: #246b83;
    color: white;
}

/* الخبرات */
.experience-box {
    background: white;
    text-align: center;
    padding: 40px;
    border-radius: 18px;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.experience-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.experience-box h3 {
    color: #246b83;
    font-size: 23px;
}

.experience-time {
    color: #2695a5;
    font-weight: 700;
    margin-bottom: 15px;
}

/* التواصل */
.contact-section {
    text-align: center;
    background-color: #eef6f8;
    max-width: 100%;
}

.contact-section p {
    margin-bottom: 20px;
}

.contact-section .email {
    margin-top: 15px;
    color: #246b83;
    font-weight: 700;
}

/* أسفل الموقع */
footer {
    background-color: #153b59;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* توافق الموقع مع الجوال */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        gap: 12px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero h3 {
        font-size: 17px;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 50px 20px;
    }
}

@media (max-width: 450px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}
