* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* تفعيل السكرول السلس */
html {
    scroll-behavior: smooth;
}
a{
    text-decoration: none;

}
.back1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; 
}

.back1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الهيدر والمنيو */
.Menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    font-family: "Cairo", sans-serif;
    position: relative;
    z-index: 100;
}

.logo {
    width: clamp(60px, 8vw, 80px);
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.Menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(15px, 2.5vw, 30px);
}

/* روابط المنيو والخط السفلي */
.Menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    transition: color 0.3s ease;
}

.Menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background-color: #e12020;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.Menu ul li a:hover {
    color: #e12020;
}

.Menu ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #e12020;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* أنيميشن تحول المنيو إلى X عند الفتح */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* قسم الهوم الرئيسية */
.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
    text-align: center;
    color: #e12020;
    font-family: "Lalezar", sans-serif;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.title1 {
    font-size: clamp(2.2rem, 10vw, 10rem);
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

.o, .t {
    color: #fce08b;
}

.btn {
    background-color: #e12020;
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: clamp(1rem, 1.5vw, 2rem);
    cursor: pointer;
    border-radius: 8px;
    font-family: "Lalezar", sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(225, 32, 32, 0.3);
}
.btn a {
    color: #fff;
    text-decoration: none;
}
.btn:hover {
    background-color: #871b1b;
    color: #ffffff;
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 222, 123, 0.5);
}

/* ========================================================
   تأثير الظهور (Scroll Reveal)
   ======================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* قسم من نحن */
.about {
    direction: rtl;
    background-color: #fcf8f2; 
    padding: clamp(40px, 6vw, 80px) 20px;
    color: #2b1810;
    font-family: Arial, sans-serif;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(25px, 4vw, 50px);
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.yellow-frame {
    background-color: #fecb4e; 
    padding: 15px;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.yellow-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(254, 203, 78, 0.3);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.about-content {
    flex: 1.2;
    font-family: "Cairo", sans-serif;
}

.about-title {
    color: #d12222; 
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: "Lalezar", sans-serif;
}

.sub-title {
    color: #333;
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.about-description {
    line-height: 1.8;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    margin-bottom: 15px;
    color: #333;
}

.services-list {
    list-style-type: disc;
    padding-right: 20px;
    margin: 0 0 20px 0;
}

.services-list li {
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #333;
}

/* بنر الخدمات المتميزة */
.services-banner {
    background-color: #fecb4e;
    padding: clamp(60px, 10vw, 150px) 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.services-banner .red-box {
    background-color: #d12222;
    padding: clamp(20px, 4vw, 40px) clamp(30px, 8vw, 80px);
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.services-banner .red-box:hover {
    transform: scale(1.03);
}

.services-banner .red-box h2 {
    color: #fcf8f2; 
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: bold;
    margin: 0;
    font-family: "Readex Pro", sans-serif;
    letter-spacing: 1px;
}

/* المعرض */
.gallery {
    background-color: #fecb4e;
    padding: clamp(40px, 6vw, 60px) 20px clamp(50px, 8vw, 80px);
    text-align: center;
    direction: rtl;
}

.gallery-title {
    color: #d12222; 
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: bold;
    margin-top: 0;
    margin-bottom: clamp(20px, 4vw, 40px);
    font-family: "Lalezar", sans-serif;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track {
    display: flex;
    gap: clamp(15px, 2.5vw, 25px);
    align-items: center;
}

.card {
    flex: 0 0 clamp(240px, 30vw, 300px);
    height: clamp(300px, 38vw, 380px);
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}



/* قسم الخدمات التفصيلية */
.services {
    background-color: #fcf8f2; 
    padding: clamp(40px, 6vw, 60px) 20px;
    direction: rtl;
    font-family: Arial, sans-serif;
}

.services-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: right;
}

.services-title {
    color: #d12222; 
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 30px;
    font-family: "Lalezar", sans-serif;
}

.services-details-list {
    list-style-type: disc;
    padding-right: 25px;
    margin: 0;
    font-family: "Cairo", sans-serif;
}

.services-details-list li {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.8;
    color: #2b1810; 
    margin-bottom: 18px;
}

.services-details-list li strong {
    font-weight: bold;
    color: #000;
}

/* الفوتر وتواصل معنا */
.contact-section {
    width: 100%;
    direction: rtl;
    font-family: Arial, sans-serif;
}

.contact-section .pattern-bg {
    width: 100%;
    height: clamp(120px, 20vw, 220px);
    background-color: #fecb4e;
    background-image: 
        linear-gradient(to bottom, 
            transparent 0%, transparent 20%, 
            #d12222 20%, #d12222 32%, 
            transparent 32%, transparent 58%, 
            #d12222 58%, #d12222 70%, 
            transparent 70%, transparent 100%
        ),
        linear-gradient(to right, 
            transparent 0%, transparent 8%, 
            #d12222 8%, #d12222 10.5%, 
            transparent 10.5%, transparent 12.5%, 
            #d12222 12.5%, #d12222 15%, 
            transparent 15%, transparent 17%, 
            #d12222 17%, #d12222 19.5%, 
            transparent 19.5%, transparent 100%
        );
}

.contact-content {
    background-color: #d12222;
    color: #fcf8f2;
    padding: 30px 20px 15px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.contact-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: bold;
    color: #fecb4e;
    margin: 0;
    font-family: "Lalezar", sans-serif;
}

.social-icon {
    color: #fcf8f2;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
    color: #fecb4e;
}

.contact-details {
    display: flex;
    gap: clamp(20px, 6vw, 80px);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
}

.info-value {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    direction: ltr;
    text-align: right;
    transition: color 0.3s ease;
}

.info-value:hover {
    text-decoration: underline;
    color: #fecb4e;
}

.contact-footer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    padding-top: 10px;
}

.copyright {
    font-size: 0.85rem;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

.footer-logo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

/* ========================================================
   تجاوب المنيو والأبعاد للجوال والأيباد (Media Queries)
   ======================================================== */
@media (max-width: 992px) {
    /* تفعيل زر المنيو */
    .menu-toggle {
        display: flex;
    }

    /* تحويل المنيو إلى قائمة منسدلة أنيقة */
    .Menu ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(252, 248, 242, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .Menu ul.open {
        max-height: 320px;
        padding: 20px 0;
    }

    .Menu ul li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .Menu ul li a {
        font-size: 1.2rem;
    }

    /* تحسين طريقة العرض في قسم من نحن */
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .services-list {
        text-align: right;
        display: inline-block;
    }

    .services-title {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .contact-footer {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-logo {
        position: static;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-value {
        text-align: center;
    }
}
@media (max-width: 992px) {
    .back1 {
        display: none !important;
    }

    header {
        background: linear-gradient(to right, #fce08b 57%, #a61c1c 57%);
    }
    .title1 {
        font: size 4rem;
    }
    .btn{
        font-size: clamp(2rem, 5vw, 5rem);
    }
    .about-image-wrapper{
        display: none;
    }
}
/* أنيميشن دخول فخم وسلس للعبارة بالكامل فور فتح الصفحة */
.home{
    opacity: 0;
    transform: translateY(35px) scale(0.96);
    filter: blur(10px);
    animation: heroTitleEntrance 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    will-change: transform, opacity, filter;
}

/* حركة الظهور الإحترافية: صعود + وضوح تدريجي + إزالة الضبابية */
@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}
/* ========================================================*/
@media (max-width: 992px) {
    .back1 {
        display: none !important;
    }

    body {
        background-color: #fcf8f2;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        color: #fafafa;
    }

    .Menu ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: #e12020;
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .Menu ul.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .Menu ul li a {
        color: #ffffff;
        font-size: 1.6rem;
        font-family: "Lalezar", sans-serif;
    }

    .Menu ul li a::after {
        background-color: #fecb4e;
    }

    .menu-toggle.active span {
        background-color: #ffffff;
    }

    header {
        background: #b61a1a;
        padding-bottom: 60px;
        clip-path: ellipse(150% 100% at 50% 0%);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

    .home {
        min-height: 60vh;
        color: #ffffff;
    }

    .title1 {
        text-align: center;
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        color: #ffffff;
    }

    .o, .t {
        color: #fecb4e;
    }

    .btn {
        background-color: #fecb4e;
        color: #d12222;
    }

    .btn a {
        color: #d12222;
    }

    .about {
        background: #ffffff;
        border-radius: 40px 0 50px 0;
        margin: 20px 15px;
        padding: 40px 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image-wrapper {
        display: none;
    }
    .yellow-frame {
        border-radius: 30px 10px 30px 10px;
    }

    /* 4. بنر الخدمات الأصفر المتموج */
    .services-banner {
        background-color: #fecb4e;
        padding: 60px 20px;
        clip-path: polygon(0 15%, 100% 0%, 100% 85%, 0% 100%);
        margin: 20px 0;
    }

    .services-banner .red-box {
        border-radius: 20px;
    }

    /* 5. المعرض ببطاقات منحنية وقماشية */
    .gallery {
        background-color: transparent;
        padding: 40px 10px;
    }

    .card {
        border-radius: 24px;
    }

    .services {
        background: #b61a1a;
        color: #ffffff;
        border-radius: 40px 40px 0 0;
        padding: 50px 20px;
        margin-top: 30px;
    }

    .services-title {
        color: #fecb4e;
        text-align: center;
    }

    .services-details-list li {
        color: #ffffff;
    }

    .services-details-list li strong {
        color: #fecb4e;
    }
}
/* ========================================================
   Floating Action Button (FAB)
   ======================================================== */
.fab-container {
    position: fixed !important;
    bottom: 0 !important;   /* ملتصق بأسفل الصفحة تماماً */
    left: 20px !important;   /* يسار الشاشة */
    z-index: 99999;
    display: flex;
    flex-direction: column; /* ترتيب العناصر عمودياً ليصعد للأعلى */
    align-items: center;
    gap: 12px;
    padding-bottom: 30px;    /* مسافة بسيطة جداً لئلا يختفي أطرافه */
}

/* الزر الرئيسي الأصفر */
.fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fecb4e;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    /* تحريك الدوران بطريقة سلسة وفخمة */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.fab-main-img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    border-radius: 50%;
    pointer-events: none; /* لتفادي مشاكل النقر على الصورة */
}

/* تأثير الدوران 360 درجة عند النقر/التفعيل */
.fab-container.active .fab-main-btn {
    transform: rotate(70deg) !important;
}

/* عند مرور الماوس وهو مفعّل يحافظ على دوران 360 مع تكبير بسيط */
.fab-container.active .fab-main-btn:hover {
    transform: rotate(70deg) scale(1.08) !important;
}

.fab-main-btn:hover {
    transform: scale(1.08);
    background-color: #fce08b;
}

/* الخيارات الفرعية (تخرج للأعلى) */
.fab-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    /* يبدأ من أسفل ليتحرك متصاعداً للأعلى عند الفتح */
    transform: translateY(20px) scale(0.8);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* إظهار العناصر للأعلى */
.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* تصميم الأزرار الفرعية */
.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
}

.fab-btn:hover {
    transform: scale(1.12);
}

.fab-whatsapp {
    background-color: #25D366;
}

.fab-extra {
    background-color: #d12222;
}

.fab-custom-img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}