
/* إعدادات الصفحة العامة */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f8f7f4;
    color: #26352f;
    line-height: 1.8;
}

/* القائمة العلوية */

.header {
    background-color: #ffffff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1100px;
    margin: auto;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    color: #315b49;
    font-size: 23px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #394a42;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #b28b54;
}

/* القسم الرئيسي */

.hero {
    min-height: 480px;
    padding: 90px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #e9eee9, #f8f7f4);
}

.hero-content {
    max-width: 750px;
}

.welcome {
    color: #b28b54;
    font-weight: 700;
    font-size: 18px;
}

.hero h1 {
    color: #315b49;
    font-size: 48px;
    font-weight: 800;
    margin: 5px 0;
}

.hero h2 {
    color: #596b60;
    font-size: 22px;
    margin-bottom: 20px;
}

.intro {
    color: #65736b;
    font-size: 16px;
    margin-bottom: 30px;
}

.main-button {
    display: inline-block;
    background-color: #315b49;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.main-button:hover {
    background-color: #b28b54;
    transform: translateY(-3px);
}

/* الأقسام العامة */

.section {
    max-width: 1100px;
    margin: auto;
    padding: 75px 25px;
}

.section-title {
    text-align: center;
    color: #315b49;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    color: #7a867e;
    margin-bottom: 35px;
    font-size: 15px;
}

/* قسم المهارات */

.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
}

.skill-card span {
    color: #b28b54;
    font-size: 14px;
    font-weight: 800;
}

.skill-card h3 {
    color: #315b49;
    font-size: 18px;
    margin: 10px 0;
}

.skill-card p {
    color: #7a867e;
    font-size: 13px;
}

/* قسم المشاريع */

.projects-section {
    max-width: none;
    background-color: #edf1ed;
}

.projects-section .section-title,
.projects-section .section-description {
    max-width: 1050px;
    margin-right: auto;
    margin-left: auto;
}

.projects-container {
    max-width: 1050px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.project-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border-right: 4px solid #b28b54;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.project-card h3 {
    color: #315b49;
    font-size: 20px;
    margin-bottom: 12px;
}

.project-card p {
    color: #748078;
    font-size: 14px;
    margin-bottom: 18px;
}

.project-type {
    display: inline-block;
    background-color: #edf1ed;
    color: #315b49;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* قسم التعليم */

.education-card {
    max-width: 700px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.education-icon {
    font-size: 40px;
}

.education-card h3 {
    color: #315b49;
    font-size: 19px;
}

.education-card p {
    color: #748078;
    font-size: 14px;
}

.education-note {
    margin-top: 8px;
}

/* قسم التواصل */

.contact-section {
    text-align: center;
}

.contact-card {
    max-width: 550px;
    margin: auto;
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-label {
    color: #748078;
    font-size: 14px;
    margin-bottom: 5px;
}

.email-link {
    display: block;
    color: #315b49;
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    margin-bottom: 25px;
    overflow-wrap: anywhere;
}

.email-link:hover {
    color: #b28b54;
}

.whatsapp-button {
    display: inline-block;
    background-color: #218c57;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    padding: 13px 25px;
    border-radius: 8px;
    transition: 0.3s;
}

.whatsapp-button:hover {
    background-color: #176c42;
    transform: translateY(-3px);
}

/* نهاية الصفحة */

.footer {
    background-color: #263f34;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* تنسيق الشاشات المتوسطة */

@media (max-width: 850px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* تنسيق الجوال */

@media (max-width: 550px) {
    .hero {
        min-height: 420px;
        padding: 65px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .section {
        padding: 55px 18px;
    }

    .section-title {
        font-size: 25px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .nav-links a {
        font-size: 12px;
    }

    .email-link {
        font-size: 14px;
    }
}
