:root {
    --primary-color: #531B24;
    --secondery-color: #E7D8C3;
    --red: #6A2931;
    --bg-color: #E7D8C3;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

.text-primary {
    color: #E7D8C3;
}

.btn-primary {
    background-color: #E7D8C3;
    color: #531B24;
    font-size: 15px;
    border-radius: 5px;
    padding: 10px 20px; /* إضافة حشو مريح للزر */
    border: none;
    cursor: pointer;
    display: inline-block;
}

/* --- Header & Navbar --- */
header {
    background-color: var(--primary-color);
    min-height: 100vh; /* تم تحويلها إلى min-height لضمان عدم قص المحتوى في الشاشات الصغيرة */
    display: flex;
    flex-direction: column;
}

header .navbar {
    background-color: #E7D8C3;
    border-bottom: 1px solid #ccc;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000; /* لضمان بقاء شريط التنقل فوق كل العناصر عند التمرير */
}

header .navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

#home #logo {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
}

header .navbar nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

header .navbar nav ul a {
    margin: 0 15px;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

header .navbar nav ul a:hover {
    color: var(--red);
}

header .header-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: 1100px;
    padding: 8rem 2rem 2rem; /* زيادة الـ padding العلوي لكي لا يختفي المحتوى خلف الـ Navbar الثابت */
    margin: auto;
    flex: 1;
    align-items: center;
    gap: 2rem;
}

header .header-content img {
    width: 100%;
    height: auto;
    max-width: 450px; /* تحديد حجم أقصى منطقي للصورة */
    justify-self: center; /* توسيط الصورة في عمودها */
}

#home .header-content p span {
    font-weight: 700; /* تعديل الخطأ الإملائي من 70 إلى 700 */
    font-size: 20px;
    color: #E7D8C3;
}

#home .header-content h1 {
    font-size: 50px;
    color: #E7D8C3;
    margin: 15px 0;
}

#home .header-content .title {
    font-weight: 600; /* تعديل من 60 إلى 600 */
    font-size: 16px; /* تكبير الخط قليلاً ليكون مقروءاً */
    color: #E7D8C3;
    padding-bottom: 10px;
}

/* --- Sections General --- */
#about, #skills, #Services, #Portfoilo {
    padding: 6rem 0;
}

#about h2, #skills h2, #Services h2, #Portfoilo h2 {
    text-align: center;
    font-size: 38px;
    color: #531B24;
    font-weight: 600;
}

/* --- About Section --- */
#about .about-content {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 3rem;
}

#about .about-content .col1 h3 {
    font-size: 28px;
    color: #531B24;
    margin-bottom: 20px;
}

#about .about-content .col1 p, 
#about .about-content .col-2 p {
    color: gray;
    margin-bottom: 20px;
    line-height: 1.8;
}

#about .about-content .col-2 p b {
    color: #531B24;
}

/* --- Skills Section --- */
#skills {
    background-color: #531B24;
}

#skills h2 {
    color: aliceblue;
}

#skills hr, #Services hr {
    width: 200px; /* جعل الخطوط الفاصلة متناسبة أكثر */
    background-color: #E7D8C3;
    height: 2px;
    border: none;
    margin: 10px auto;
}

#skills .skills-content {
    margin-top: 3rem;
}

#skills .skills-content .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

#skills .skills-content .row .item {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

#skills .row .icon {
    font-size: 70px; /* حجم أيقونة أنسب للشاشات */
    color: #E7D8C3;
    margin-bottom: 10px;
}

/* --- Services Section --- */
#Services .heading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* ترتيب العناصر عمودياً */
}

#Services .heading img {
    width: 80px;
    margin-bottom: 10px;
}

#Services .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
    text-align: center;
    gap: 2rem;
}

#Services .row .item {
    background-color: #E7D8C3;
    padding: 30px 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

#Services .row .item:hover {
    transform: translateY(-5px); /* تأثير ارتفاع ناعم بدل الـ scale التضخيمي */
}

#Services .row .item h3, 
#Services .row .item p {
    color: #531B24;
}

#Services .row .item h3 {
    margin: 15px 0;
}

#Services .item img {
    width: 85px;
}

/* --- Portfolio Section --- */
#Portfoilo {
    background-color: #531B24;
}

#Portfoilo .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 30px;
}

#Portfoilo .row .item {
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden; /* لضمان عدم خروج الصورة عن زوايا البوردر الدائرية */
}

#Portfoilo .row .item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* جعل الصور منسقة وثابتة الأبعاد */
    border-bottom: 2px solid #ccc;
}

#Portfoilo .row .item .item-content {
    padding: 20px 15px;
}

#Portfoilo .row .item .item-content h3 {
    font-size: 20px;
    color: #531B24;
    margin-bottom: 10px;
}

#Portfoilo .row .item .item-content a {
    font-size: 14px;
    color: #6A2931;
    font-weight: 500;
}

/* --- Footer Section --- */
.footer {
    margin-top: 100px;
    background: #E7D8C3;
    color: #531B24; /* تعديل لون الخط ليتناسب مع الخلفية الفاتحة */
    padding: 60px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* تقسيم مرن بديل لـ flex العشوائي */
    max-width: 1100px;
    margin: auto;
    gap: 40px;
}

.footer-booking {
    width: 100%;
}

.footer-booking h3 {
    margin-bottom: 20px;
    color: #531B24;
}

.footer-booking form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* إزالة الـ margin-left الكبيرة لضبط الحقول */
.footer-booking input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #531B24;
    background: #fff;
}

.footer-booking button {
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 6px;
    background: #531B24;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.footer-booking button:hover {
    background: #6A2931;
}

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h3, .footer-social h3 {
    color: #531B24;
    margin-bottom: 10px;
}

.footer a {
    color: #6A2931;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: #531B24;
    text-shadow: 0 0 1px #531B24;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #cbbdaf;
    padding-top: 20px;
    color: #6a2931;
    font-size: 14px;
}

/* تحسين تجربة تحميل الصفحة لتبدو حركات GSAP ناعمة وبدون وميض عشوائي */













/* =========================================
   RESPONSIVE DESIGN (شاشات التابلت والأجهزة المتوسطة)
========================================= */
@media (max-width: 992px) {
    header .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 9rem;
    }

    header .header-content img {
        max-width: 350px;
    }

    #about .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #skills .skills-content .row {
        grid-template-columns: repeat(2, 1fr);
    }

    #Services .row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr; /* تحويل الفوتر لعمود واحد لتجنب التداخل */
        text-align: center;
    }
    
    .footer-links, .footer-social {
        align-items: center;
    }
}

/* =========================================
   RESPONSIVE DESIGN (شاشات الهواتف الذكية)
========================================= */
@media (max-width: 600px) {
    header .navbar nav ul {
        display: none; /* إخفاء القائمة في الهواتف لحين برمجة زر مخصص لها */
    }

    #home .header-content h1 {
        font-size: 34px;
    }

    #about h2, #skills h2, #Services h2, #Portfoilo h2 {
        font-size: 30px;
    }

    #skills .skills-content .row,
    #Services .row,
    #Portfoilo .row {
        grid-template-columns: 1fr; /* تحويل كافة الأقسام لعمود واحد ليناسب عرض الهاتف */
    }

    .container {
        padding: 0 1.5rem;
    }
}