:root {
    --main-bg: #FAF8F5;
    --accent-brown: #986B52;
    --light-brown: #A67D65;
    --text-dark: #3D2E26;
    --soft-beige: #E0D0C5;
    --white: #FFFFFF;
    --petal-light: #F2E9E1; 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Cairo', sans-serif !important;
}

.rtl { direction: rtl; text-align: right; }
.force-ltr { direction: ltr !important; unicode-bidi: bidi-override; }

/* --- الهيدر الأساسي --- */
.main-header {
    background-color: transparent;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.header-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    z-index: 1001;
}

.mobile-toggle {
    display: none; 
}

/* --- القائمة والروابط --- */
.header-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-nav ul li { margin: 0 12px; display: flex; align-items: center; }
.header-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
}

.divider { color: var(--soft-beige); margin: 0 5px; }

/* --- ستايل سويتشر اللغة المحدث (Uiverse Modified) --- */
.checkbox-wrapper-41 {
    --size: 50px; /* تم تصغير الحجم ليناسب الهيدر */
    position: relative;
    display: flex;
    align-items: center;
}

.checkbox-wrapper-41 input[type="checkbox"] {
    -webkit-appearance: none;
    width: var(--size);
    height: calc(var(--size) / 2);
    background-color: #fff;
    border: 2px solid #222;
    border-radius: 15px 50px 50px 50px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.5s;
    margin: 0;
}

.checkbox-wrapper-41 input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: calc(var(--size) / 2);
    height: calc(var(--size) / 2);
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    border: 2px solid #222;
    border-radius: 15px 50px 50px 50px;
    background-color: var(--soft-beige);
    box-sizing: border-box;
    transition: all 0.5s;
    z-index: 2;
}

.checkbox-wrapper-41 input[type="checkbox"]:checked {
    background-color: var(--soft-beige);
    border-radius: 50px 50px 15px 50px;
}

.checkbox-wrapper-41 input[type="checkbox"]:checked::before {
    left: 50%;
    background-color: #fff;
    border-radius: 50px 50px 15px 50px;
}

/* إضافة تسمية اللغة بجانب السويتشر */
.lang-label {
    font-size: 10px;
    font-weight: 800;
    margin: 0 5px;
    color: var(--text-dark);
}

/* --- استايل زر "تواصل معي" --- */
.btn { 
    height: 4em; 
    width: 11em; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: transparent; 
    border: 0; 
    cursor: pointer; 
    position: relative; 
}

.btn .text { 
    font-family: 'Cairo', sans-serif;
    font-size: 13px; 
    font-weight: 800; 
    z-index: 2; 
    color: #fff; 
    padding: 10px 20px; 
    border-radius: 20px; 
    background: var(--accent-brown); 
    transition: all 0.5s ease; 
    margin: 0;
    border: 1px solid var(--text-dark);
}

.flower { 
    display: grid; 
    grid-template-columns: 1em 1em; 
    position: absolute; 
    pointer-events: none; 
    z-index: 1; 
    animation: flowerPulse 3s ease-in-out infinite; 
}

.petal { 
    height: 0.8em; 
    width: 0.8em; 
    border-radius: 40% 70% / 7% 90%; 
    background: linear-gradient(var(--soft-beige), var(--petal-light)); 
    border: 0.5px solid var(--soft-beige); 
}

.flower1 { top: -14px; left: -10px; animation-delay: 0s; } 
.flower2 { bottom: -8px; left: 5px; animation-delay: 0.5s; } 
.flower3 { bottom: -15px; left: 50%; transform: translateX(-50%); animation-delay: 1s; } 
.flower4 { top: -16px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; } 
.flower5 { right: 8px; top: -5px; animation-delay: 2s; } 
.flower6 { right: -12px; bottom: -12px; animation-delay: 2.5s; }

.two { transform: rotate(90deg); } 
.three { transform: rotate(270deg); } 
.four { transform: rotate(180deg); }

@keyframes flowerPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

@media (max-width: 992px) {
    .main-header { padding: 10px 2%; }
    .header-nav { display: block !important; position: static !important; width: auto !important; }
    .header-nav ul { flex-direction: row !important; gap: 2px !important; justify-content: flex-end; }
    .header-nav ul li { margin: 0 2px !important; }
    .header-nav ul li a { font-size: 9px; }
    .btn { width: 7em; height: 2.5em; }
    .btn .text { font-size: 9px; padding: 4px 8px; }
    .divider { font-size: 9px; }
    .header-logo { max-height: 30px; }
    .checkbox-wrapper-41 { transform: scale(0.8); }
}









/* --- ستايل سكشن About Me --- */
.about-section {
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--main-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section.rtl .about-grid {
    direction: rtl;
}

/* --- تنسيق الصورة --- */
.about-image-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-shape {
    position: absolute;
    width: 110%;
    max-width: 450px;
    aspect-ratio: 1/1;
    background-color: var(--soft-beige);
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    z-index: 1;
    animation: morphBlob 10s linear infinite alternate;
}

.arch-container {
    position: relative;
    z-index: 2;
    width: 350px;
    height: 400px;
    background-color: var(--white);
    border-radius: 50% 50% 10% 90% / 60% 60% 20% 80%;
    border: 8px solid var(--white);
    box-shadow: 0 25px 50px rgba(152, 107, 82, 0.1);
    animation: floatImage 3s ease-in-out infinite;
    overflow: hidden; 
}

.arch-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- تأثير الآلة الكاتبة --- */
.main-heading {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.typing-text {
    display: block; 
    width: 0;
    max-width: max-content;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent-brown);
    animation: 
        typing-loop 4s steps(30, end) infinite,
        blink-caret 0.75s step-end infinite;
}

.rtl .typing-text {
    border-right: none;
    border-left: 3px solid var(--accent-brown);
    margin-right: 0;
    margin-left: auto;
}

@keyframes typing-loop {
    0%, 10% { width: 0; }
    60%, 80% { width: 100%; }
    90%, 100% { width: 0; }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-brown); }
}

/* --- ستايل الزر الكبير المحدث --- */
.about-cta {
    display: flex;
    justify-content: flex-start;
}

.rtl .about-cta {
    justify-content: flex-start;
}

.large-btn {
    height: 5em !important;
    width: 15em !important;
    font-size: 1rem;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
}

.large-btn .text {
    font-family: 'Cairo', sans-serif;
    padding: 10px 25px !important;
    font-size: 15px !important;
    background: var(--accent-brown); /* خلفية داكنة */
    color: var(--white); /* نص فاتح */
    margin: 0 !important;
    width: 100%;
    text-align: center;
    border-radius: 25px;
    border: 1px solid var(--text-dark);
    font-weight: 800; /* بولد ثقيل */
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.force-ltr {
    direction: ltr !important;
    unicode-bidi: bidi-override;
}

/* البتلات والأنميشن المستمر */
.large-btn .flower { 
    position: absolute; 
    z-index: 1;
    display: grid;
    grid-template-columns: 1em 1em;
    animation: flowerPulse 3s ease-in-out infinite;
}

.large-btn .flower1 { top: -18px; left: -15px; animation-delay: 0s; }
.large-btn .flower2 { bottom: -10px; left: 10px; animation-delay: 0.5s; }
.large-btn .flower3 { bottom: -20px; left: 50%; transform: translateX(-50%); animation-delay: 1s; }
.large-btn .flower4 { top: -20px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.large-btn .flower5 { right: 15px; top: -5px; animation-delay: 2s; }
.large-btn .flower6 { right: -20px; bottom: -20px; animation-delay: 2.5s; }

.petal { 
    height: 0.8em; 
    width: 0.8em; 
    border-radius: 40% 70% / 7% 90%; 
    background: linear-gradient(var(--soft-beige), var(--petal-light)); 
    border: 0.5px solid var(--soft-beige); 
}

.two { transform: rotate(90deg); } 
.three { transform: rotate(270deg); } 
.four { transform: rotate(180deg); }

@keyframes flowerPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

.large-btn:hover .text {
    background: var(--text-dark);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
}

/* أنميشن Morph & Float */
@keyframes morphBlob {
    0% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- موبايل ريسبونسيف --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-cta { justify-content: center !important; }
    .typing-text { width: 100% !important; max-width: 100% !important; white-space: normal; border: none !important; animation: none; margin: 0 auto; }
}











.global-floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* تأكدي أن z-index أقل من محتوى الصفحة لتكون خلفية */
    overflow: hidden;
}

.global-floating-icons i {
    position: absolute;
    opacity: 0.08; /* خففت الشفافية قليلاً لأن العدد زاد لكي لا تزعج العين */
    color: var(--accent-brown);
    filter: blur(0.5px);
    animation: floatAnimation 15s infinite ease-in-out;
}

/* توزيع الأيقونات العشرين */
.icon-1  { top: 5%;   left: 10%;  font-size: 3rem;  }
.icon-2  { top: 15%;  right: 15%; font-size: 2.5rem; }
.icon-3  { top: 25%;  left: 30%;  font-size: 4rem;   animation-delay: 2s; }
.icon-4  { top: 35%;  right: 5%;  font-size: 3.5rem; }
.icon-5  { top: 45%;  left: 15%;  font-size: 2.8rem; animation-delay: 4s; }

.icon-6  { top: 55%;  right: 25%; font-size: 3rem;   }
.icon-7  { top: 65%;  left: 40%;  font-size: 4.5rem; animation-delay: 1s; }
.icon-8  { top: 75%;  right: 10%; font-size: 2.2rem; }
.icon-9  { top: 85%;  left: 20%;  font-size: 3.2rem; animation-delay: 3s; }
.icon-10 { top: 92%;  right: 35%; font-size: 2.5rem; }

.icon-11 { bottom: 10%; left: 5%;   font-size: 3.8rem; animation-delay: 5s; }
.icon-12 { bottom: 20%; right: 45%; font-size: 2.4rem; }
.icon-13 { bottom: 30%; left: 50%;  font-size: 3.5rem; animation-delay: 2.5s; }
.icon-14 { bottom: 45%; right: 15%; font-size: 2.9rem; }
.icon-15 { bottom: 55%; left: 5%;   font-size: 3.1rem; animation-delay: 0.5s; }

.icon-16 { top: 10%;  left: 60%;  font-size: 2.6rem; }
.icon-17 { top: 50%;  right: 50%; font-size: 4rem;   animation-delay: 6s; }
.icon-18 { bottom: 5%; right: 5%;   font-size: 3.3rem; }
.icon-19 { bottom: 40%; left: 35%;  font-size: 2.2rem; animation-delay: 1.5s; }
.icon-20 { top: 80%;  left: 80%;  font-size: 3.6rem; }

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(15deg); }
}

























/* --- Why Work With Me Section --- */
.why-me-section {
    padding: 120px 0;
    background: var(--main-bg);
    position: relative;
    overflow: hidden;
}

/* توسيط وتنسيق الهيدر */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 100px; /* زيادة الهامش السفلي ليعطي مساحة للكروت */
    position: relative;
    z-index: 10;
}



/* --- شبكة الكروت (توسيط ومنع الالتصاق بالحواف) --- */
.features-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 80px 40px; /* مساحة عمودية وأفقية كبيرة */
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- استايل الكروت الجديد (The Box) --- */
.feature-box {
    position: relative;
    width: 300px; /* عرض مناسب للكلام */
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}

/* الخلفية الملونة المتوهجة */
.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: linear-gradient(315deg, var(--accent-brown), var(--soft-beige));
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
}

.feature-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: linear-gradient(315deg, var(--accent-brown), var(--soft-beige));
    border-radius: 8px;
    transform: skewX(15deg);
    transition: 0.5s;
    filter: blur(30px); /* التوهج */
}

.feature-box:hover:before,
.feature-box:hover:after {
    transform: skewX(0deg) scaleX(1.4);
}

@keyframes animate {
    0%, 100% { transform: translateY(10px); }
    50% { transform: translateY(-10px); }
}

/* محتوى الكارد الزجاجي */
.feature-box .card-content {
    position: relative;
    width: 260px;
    height: 320px;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.7); /* زجاجي شفاف */
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 10;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.feature-box:hover .card-content {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

.card-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.card-text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* --- دعم RTL --- */
.rtl { direction: rtl; }
.rtl .card-content { text-align: right; }











/* --- My Approach Section --- */
.approach-section {
    padding: 100px 0;
    background-color: var(--main-bg);
    position: relative;
    overflow: hidden; /* لضمان عدم خروج الأرقام الكبيرة عن حدود الصفحة */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.approach-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    position: relative;
    text-align: center; /* تمركز النص دائماً بكل اللغات */
    padding: 20px;
    transition: 0.3s;
}

/* الرقم الكبير في خلفية كل خطوة */
.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 90px;
    font-weight: 900;
    color: var(--accent-brown);
    opacity: 0.1; /* خففت الشفافية ليعطي لمسة جمالية هادئة */
    z-index: 1;
    font-family: 'Arial', sans-serif;
    pointer-events: none;
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 75px;
    height: 75px;
    background: var(--main-bg);
    color: var(--accent-brown);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px; /* يضمن بقاء الأيقونة في المنتصف تماماً */
    font-size: 32px;
    border: 1px solid var(--soft-beige);
    box-shadow: 0 10px 20px rgba(152, 107, 82, 0.08);
    transition: 0.4s ease;
}

.step-item:hover .step-icon {
    background: var(--accent-brown);
    color: #fff;
    transform: translateY(-8px) rotate(10deg);
}

.step-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.step-text {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0 auto;
}

/* السهم بين الخطوات - التمركز الافتراضي (LTR) */
.step-arrow {
    position: absolute;
    top: 45px;
    right: -20px; 
    font-size: 24px;
    color: var(--soft-beige);
    z-index: 5;
}

/* --- دعم الشاشات الصغيرة --- */
@media (max-width: 992px) {
    .approach-steps {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        display: none; /* إخفاء السهم في الموبايل لمنع تداخل العناصر عمودياً */
    }
    .step-item {
        margin-bottom: 40px;
        max-width: 100%;
    }
    .step-number {
        font-size: 70px;
    }
}

/* --- إعدادات اللغة العربية (RTL) --- */
.rtl .step-item {
    text-align: center; /* نضمن البقاء في المنتصف */
}

.rtl .step-icon {
    margin-left: auto;
    margin-right: auto;
}

.rtl .step-arrow {
    right: auto; /* إلغاء مكان السهم الإنجليزي */
    left: -20px;  /* وضع السهم في الجهة المقابلة للعربي */
}








/* --- Portfolio Section General --- */
.portfolio-section {
    padding: 80px 0;
    background-color: #FAF8F5;
    overflow: hidden;
}

.main-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
}

.section-main-title {
    color: #3D2E26;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.main-title-underline {
    width: 150px;
    height: 6px;
    background-color: #986B52;
    border-radius: 3px;
}

.category-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    color: #3D2E26;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: #986B52;
    border-radius: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 15px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.stack-item {
    display: flex;
    justify-content: center;
}

.phone-container {
    position: relative;
    display: flex;
    justify-content: center;
    height: 380px;
    width: 200px;
    border: 5px solid #3D2E26;
    border-radius: 1.8rem;
    background-color: #FAF8F5;
    box-shadow: 6px 6px 0px 2px rgba(61, 46, 38, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
}

.phone-container:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: 10px 15px 25px rgba(61, 46, 38, 0.2);
}

.phone-notch {
    position: absolute;
    top: -1px;
    background-color: #3D2E26;
    width: 100px;
    height: 12px;
    border-bottom-right-radius: 0.8rem;
    border-bottom-left-radius: 0.8rem;
    z-index: 10;
}

.phone-button {
    position: absolute;
    right: -8px;
    background-color: #3D2E26;
    width: 5px;
    border-radius: 4px;
    z-index: 1;
}

.power-btn { top: 60px; height: 35px; }
.volume-btn { bottom: 120px; height: 50px; }

.phone-content {
    position: absolute;
    inset: 8px;
    border-radius: 1.4rem;
    overflow: hidden;
    background: #000;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: 0.3s;
}

.play-button-central {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 55px;
    height: 55px;
    background: #986B52;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    border: 3px solid white;
}

.video-title-phone {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(61, 46, 38, 0.9);
    color: #fff;
    font-size: 0.85rem;
    padding: 12px 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 6;
}

/* التحسينات لظهور الفيديو */
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.reveal {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 992px) {
    .portfolio-grid { gap: 15px 10px; }
    .phone-container { height: 300px; width: 160px; }
}

@media (max-width: 768px) {
    .section-main-title { font-size: 1.8rem; }
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px 5px;
    }
    .phone-container {
        height: 180px;
        width: 100%;
        border-width: 2px;
        border-radius: 0.8rem;
    }
    .phone-notch { width: 45px; height: 6px; }
    .phone-button { display: none; }
    .play-button-central { width: 28px; height: 28px; font-size: 14px; border-width: 1.5px; }
    .video-title-phone { font-size: 0.45rem; padding: 4px; }
}






/* --- Brands Section --- */
.brands-section {
    
    padding: 60px 0;
    background-color:  var(--main-bg);
    overflow: hidden;
}

.brands-carousel-wrapper {
    width: 100%;
    padding: 30px 0;
    border-top: 1px solid var(--soft-beige, #e2d1c3); 
    border-bottom: 1px solid var(--soft-beige, #e2d1c3);
    position: relative;
}

.brandsSwiper {
    width: 100%;
}

/* ضروري جداً للحركة المستمرة */
.brandsSwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.brand-card {
    /* العرض الثابت الذي طلبته لضمان التقارب */
    width: 140px !important; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.brand-logo-box {
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 2px solid var(--soft-beige, #e2d1c3); 
    cursor: grab;
    transition: all 0.3s ease;
}

.brand-logo-box:active {
    cursor: grabbing;
}

.brand-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 15px;
    /*opacity: 0.9;*/
    transition: all 0.4s ease;
}

.brand-card:hover .brand-logo-box {
    border-color: #3D2E26;
}

.brand-card:hover .brand-logo-box img {
    opacity: 1;
    transform: scale(1.05);
}

.brand-name-title {
    color: #3D2E26;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    white-space: nowrap;
}

/* تعديلات الموبايل */
@media (max-width: 768px) {
    .brands-section { padding: 40px 0; }
    .brand-logo-box {
        width: 90px;
        height: 90px;
    }
}















/* --- Footer & Contact Section --- */
.footer-section {
    padding: 40px 0 20px;
    background-color: var(--main-bg);
    text-align: center;
    border-top: 1px solid var(--soft-beige);
}

.footer-flex-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap; /* إجبار المجموعات على البقاء بجانب بعضها */
}

.contact-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-brown);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap; /* منع نزول الأيقونات لسطر جديد */
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--main-bg);
    color: var(--accent-brown);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid var(--soft-beige);
    flex-shrink: 0; /* منع انكماش الأيقونة */
}

/* --- Contact Methods --- */
.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* منع النزول لسطر جديد */
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--white);
    border: 1px solid var(--soft-beige);
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    white-space: nowrap; /* منع كسر النص بداخل الزر */
}

/* --- Footer Bottom --- */
.footer-divider {
    max-width: 80%;
    margin: 30px auto 15px;
    opacity: 0.2;
    border-color: var(--accent-brown);
}

.copyright {
    font-size: 11px;
    color: #888;
}

/* --- تعديلات الموبايل الإجبارية (Desktop Look) --- */
@media (max-width: 768px) {
    .footer-section {
        padding: 30px 5px 15px;
    }

    .footer-flex-row {
        gap: 10px;
        align-items: center;
    }

    .contact-heading {
        font-size: 12px; /* تصغير العنوان ليناسب العرض */
        margin-bottom: 12px;
    }

    .social-link {
        width: 32px; /* تصغير الأيقونات لتناسب عرض الشاشة */
        height: 32px;
        font-size: 16px;
    }

    .social-icons {
        gap: 8px;
    }

    .contact-item {
        padding: 5px 10px;
        font-size: 10px; /* تصغير النص */
        gap: 5px;
    }

    .contact-item i {
        font-size: 12px;
    }

    .footer-divider {
        margin: 20px auto 10px;
    }
}

/* --- WhatsApp Floating Button (Keep as is or slight shrink) --- */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }
}


/* حاوية الأيقونات العائمة */
.floating-social-sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

/* تنسيق الأيقونة: الخلفية فاتحة والأيقونة بنية */
.float-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    
    /* الخلفية بيج فاتح جداً لتندمج مع الموقع */
    background-color: #3D2E26 !important;
    
    /* لون الأيقونة نفسه بني */
    color:  #FAF8F5;
    
    font-size: 22px;
    
    /* إطار بني رفيع ليعطي تحديد للأيقونة */
    border: 1px solid #3D2E26; 
    
    box-shadow: 0 4px 12px rgba(61, 46, 38, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

/* تأثير الـ Hover: نعكس الألوان ليصير بروز */
.float-icon:hover {
    /* الخلفية بتصير بني */
    background-color: #3D2E26; 
    
    /* الأيقونة بتصير فاتحة */
    color: #FAF8F5 !important; 
    
    transform: scale(1.1) translateX(-5px);
    box-shadow: 0 6px 15px rgba(61, 46, 38, 0.2);
}

/* دعم اتجاه اللغة العربية (RTL) */
[dir="rtl"] .floating-social-sidebar {
    right: auto;
    left: 20px;
}

[dir="rtl"] .float-icon:hover {
    transform: scale(1.1) translateX(5px);
}

/* تعديلات الموبايل لضمان المظهر كأنه واجهة لابتوب مصغرة */
@media screen and (max-width: 768px) {
    .floating-social-sidebar {
        right: 10px;
        gap: 8px;
    }
    
    .float-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        /* تقليل سماكة الإطار بالموبايل */
        border-width: 1px; 
        background-color: rgba(250, 248, 245, 0.9); /* شفافية بسيطة */
    }
    
    [dir="rtl"] .floating-social-sidebar {
        left: 10px;
    }
}