
/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', Tahoma, sans-serif;
}

body {
    background-color: #fcfcfc;
    color: #333;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* القسم الرئيسي (Hero Section) بألوان الشعار (الكحلي والفوشيا) */
.hero-section {
    background: linear-gradient(135deg, #0c2340, #132b4f); /* تدرج كحلي أنيق */
    color: white;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 5px solid #d90368; /* خط فوشيا يفصل القسم */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

/* أزرار بالفوشيا المميز لشعار خيال جفت */
.store-btn {
    background-color: #d90368;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(217, 3, 104, 0.3);
}

.store-btn:hover {
    background-color: #b50255;
    transform: translateY(-2px);
}

/* قسم الخدمات والميزات */
.features-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #0c2340; /* لون كحلي */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(217, 3, 104, 0.1);
    border-color: #d90368;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #d90368; /* لون فوشيا العناوين الفرعية */
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* تذييل الصفحة (Footer) بالكحلي */
footer {
    background-color: #0c2340;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    border-top: 3px solid #d90368;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links a {
    color: #ff69b4; /* وردي فاتح للروابط */
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}
/* تنسيق شريط الشعار العلوي */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* تنسيق صورة الشعار الدائرية */
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d90368; /* إطار فوشيا متناسق مع الشعار */
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0c2340; /* لون كحلي */
    display: flex;
    flex-direction: column;
}

.brand-name small {
    font-size: 0.75rem;
    color: #d90368;
    letter-spacing: 1px;
}

/* زر التواصل السريع في الأعلى */
.nav-whatsapp-btn {
    background-color: #25d366; /* لون الواتساب الأخضر أو يمكنك جعله بالفوشيا */
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
}

.nav-whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}/* تنسيق حاضنة السلايدر */
.banner-slider-section {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px; /* ارتفاع البنر لسطح المكتب */
}

/* تنسيق البنر الواحد */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background: linear-gradient(135deg, #0c2340, #132b4f); /* تدرج كحلي الشعار */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 40px;
    border-bottom: 5px solid #d90368; /* خط فوشيا سفلي */
}

/* ظهور البنر النشط حالياً */
.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content h1 {
    font-size: 2.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* أزرار التقليب اليدوي */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(217, 3, 104, 0.7); /* فوشيا شفاف */
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background-color: #d90368;
}

.prev { left: 20px; }
.next { right: 20px; }

/* تجاوب السلايدر مع الهواتف الذكية */
@media (max-width: 768px) {
    .slider-container {
        height: 350px;
    }
    .slide-content h1 {
        font-size: 1.6rem;
    }
    .slide-content p {
        font-size: 0.95rem;
    }
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يمنع تشوه الصورة ويجعلها متناسقة */
    display: block;
}.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* تكبير بسيط عند تمرير الماوس */
}
.preview-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
}

.preview-container img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* الكوب فوق منطقة الصورة */
}

#preview-area {
    /* هذا هو المكان الدقيق داخل صورة الكوب لوضع الصورة */
    top: 50px; /* قم بتعديل هذه القيم حسب صورة الكوب لديك */
    left: 80px; /* قم بتعديل هذه القيم حسب صورة الكوب لديك */
    width: 230px; /* قم بتعديل هذه القيم حسب صورة الكوب لديك */
    height: 230px; /* قم بتعديل هذه القيم حسب صورة الكوب لديك */
    background-color: #f0f0f0; /* لون خلفية مؤقت قبل تحميل الصورة */
    z-index: 1;
    border-radius: 20px; /* إذا كان الكوب دائرياً */
    overflow: hidden;
}

#mugCanvas {
    width: 100%;
    height: 100%;
    object-fit: cover; /* لتغطية المساحة بالكامل */
    
}
#loading-spinner {
    display: none; /* إخفاء مؤشر التحميل افتراضياً */
}
.preview-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
}

/* صورة الكوب الأساسية */
.preview-container img.mug-base {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* الكوب في المقدمة */
    pointer-events-none; /* لكي لا تعيق النقر */
}

/* منطقة الصورة المرفوعة (المدمجة) */
#preview-area {
    position: absolute;
    top: 95px;    /* اضبطه حسب مكان الجسم الأوسط للكوب */
    left: 110px;   /* اضبطه حسب مكان البداية الأفقية */
    width: 180px;  /* عرض منطقة الطباعة */
    height: 180px; /* ارتفاع منطقة الطباعة */
    z-index: 2;    /* تحت الكوب مباشرة ولكن تظهر في مكانه */
    transform: rotate(0deg); /* يمكنك إمالة الصورة قليلاً إذا كان الكوب مائلاً مثل: rotate(-5deg) */
    border-radius: 15px; /* انحناء خفيف لكي لا تبدو حادة المربعات */
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2); /* يضيف ظلاً خفيفاً لتبدو واقعية */
}

#mugCanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* دمج إضاءة الصورة مع الكوب لتبدو مطبوعة وليست ملصقة */
    mix-blend-mode: multiply; 
    opacity: 0.9;
}