/* style.css - ملف التنسيقات الرئيسي لموقع النجمة */

/* المتغيرات العامة والألوان */
:root {
    --primary-bg: #0d0d0d;       /* خلفية سوداء */
    --secondary-bg: #1a1a1a;     /* خلفية الصناديق */
    --gold-gradient: linear-gradient(45deg, #ff8c00, #ffcc00); /* تدرج ذهبي */
    --text-color: #ffffff;       /* لون النص */
    --accent-color: #ffaa00;     /* لون التمييز (البرتقالي) */
}

/* تنسيقات الصفحة العامة */
body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative; 
}

/* الخلفية الثابتة */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, #070707, #000000 100%);
    z-index: -1;
    pointer-events: none;
}

/* --- الهيدر --- */
header {
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-bottom: 3px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.logo-container { display: flex; align-items: center; }
.logo-img {
    height: 95px; width: auto; margin-left: 15px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo-img:hover { transform: scale(1.1); }

.navbar { display: flex; gap: 20px; }
.navbar a {
    text-decoration: none; color: #ccc; font-weight: 700; font-size: 1.1rem;
    transition: all 0.3s; position: relative; margin: 0 5px;
}
.navbar a:hover, .navbar a.active {
    color: var(--accent-color); text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}
.navbar a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--accent-color); transition: width 0.3s ease-out;
    box-shadow: 0 0 5px var(--accent-color);
}
.navbar a:hover::after, .navbar a.active::after { width: 100%; }

/* --- الحاويات --- */
.container { max-width: 800px; margin: 0 auto; padding: 20px; }

.section-box {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 15px; padding: 25px; margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s;
}
.section-box:hover { transform: translateY(-2px); }

h2.section-title {
    color: var(--accent-color); text-align: center;
    border-bottom: 2px solid rgba(51, 51, 51, 0.5);
    padding-bottom: 10px; margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Hero Section --- */
.hero-section {
    text-align: center; padding: 80px 20px;
    background: radial-gradient(circle at center, rgba(255, 170, 0, 0.1), transparent 70%);
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: 15px; line-height: 1.3; }
.hero-content p { font-size: 1.1rem; color: #ccc; max-width: 600px; margin: 0 auto 30px auto; }
.cta-button {
    display: inline-block; background: var(--gold-gradient); color: #000;
    padding: 15px 40px; border-radius: 50px; font-weight: 800; font-size: 1.1rem;
    text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(255, 170, 0, 0.3);
}
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 170, 0, 0.5); }

/* --- خدماتنا --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.service-item {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.service-icon-wrapper {
    width: 140px; height: 140px; margin: 0 auto 10px auto;
    background: transparent; border: none;
    display: flex; align-items: center; justify-content: center;
}

.service-logo {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(255, 170, 0, 0.3));
}

.service-item:hover .service-logo {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 10px 25px rgba(255, 170, 0, 0.6));
}

.service-item h3 { color: var(--text-color); margin-bottom: 10px; font-size: 1.2rem; }
.service-item p { color: #aaa; font-size: 0.9rem; line-height: 1.6; }

/* زر عرض التفاصيل */
.details-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.9rem;
}

.details-btn:hover, .details-btn.active {
    background: var(--accent-color);
    color: #000;
}

/* اللوحة المخفية (التفاصيل) */
.service-details-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-top: 15px;
    text-align: right;
}

.mini-steps, .mini-faq {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mini-steps:last-child, .mini-faq:last-child { border-bottom: none; }

.service-details-panel h4 {
    color: #fff; font-size: 1rem; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.service-details-panel h4 i { color: var(--accent-color); }

.mini-steps ul { list-style: none; padding: 0; margin: 0; }
.mini-steps li {
    font-size: 0.85rem; color: #ccc; margin-bottom: 5px;
    padding-right: 10px; border-right: 2px solid var(--accent-color);
}

.mini-faq-item { margin-bottom: 8px; }
.mini-faq-item span {
    display: block; color: var(--accent-color); font-weight: bold;
    font-size: 0.85rem; margin-bottom: 3px;
}
.mini-faq-item p {
    font-size: 0.85rem; color: #aaa; margin: 0; line-height: 1.4;
}

/* 🔥 تنسيقات منطقة زر الاستفسار الجديد 🔥 */
.panel-action {
    padding: 20px 15px 15px; /* زيادة المساحة العلوية */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.inquiry-label {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: bold;
}

/* تنسيق زر الواتساب الصوري */
.whatsapp-inquiry-btn {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-inquiry-img {
    width: 65px; /* حجم الأيقونة */
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); /* ظل خفيف للأيقونة */
    transition: filter 0.3s;
}

.whatsapp-inquiry-btn:hover {
    transform: scale(1.1);
}
.whatsapp-inquiry-btn:hover .whatsapp-inquiry-img {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}


/* --- شبكة المنصات --- */
.platforms-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px; margin-top: 20px;
}
.platform-item {
    background: rgba(255, 255, 255, 0.05); border: 1px solid #333;
    padding: 15px; border-radius: 10px; text-align: center; color: #ccc;
    font-weight: bold; display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: 0.3s;
}
.platform-item:hover {
    background: rgba(255, 255, 255, 0.1); border-color: var(--accent-color);
    transform: translateY(-3px); color: #fff;
}
.platform-item i { font-size: 1.2rem; }

/* --- الفوتر --- */
.main-footer {
    background-color: #080808; border-top: 1px solid #222;
    padding-top: 60px; margin-top: 80px; font-size: 0.95rem;
}
.footer-wrapper {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 40px; padding-bottom: 40px;
}
.footer-brand-side { flex: 1; min-width: 300px; max-width: 400px; }
.footer-logo {
    width: 120px; margin-bottom: 20px; filter: brightness(0.9);
    transition: transform 0.4s, filter 0.3s; cursor: pointer;
}
.footer-logo:hover { transform: scale(1.15); filter: brightness(1.1); }
.footer-desc { color: #888; line-height: 1.8; margin-bottom: 20px; }

.footer-info-side {
    flex: 2; display: flex; flex-direction: column; justify-content: center;
    align-items: flex-end; gap: 25px;
}
.clean-nav { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.clean-nav a { color: #ccc; text-decoration: none; font-size: 1rem; font-weight: 500; transition: 0.3s; }
.clean-nav a:hover { color: var(--accent-color); }
.separator { color: #333; }
.footer-divider { width: 100%; height: 1px; background: #222; }

.clean-contact { display: flex; gap: 30px; flex-wrap: wrap; }
.c-item { display: flex; align-items: center; gap: 10px; color: #aaa; }
.c-item i { color: var(--accent-color); font-size: 1.1rem; }

.footer-bottom {
    border-top: 1px solid #1a1a1a; text-align: center; padding: 20px 0; color: #555; font-size: 0.85rem;
}
.social-icons { display: flex; gap: 15px; }
.social-img { width: 40px !important; height: 40px !important; object-fit: contain; border-radius: 50%; }
.social-icons a { display: inline-block; width: 40px; height: 40px; transition: transform 0.3s; }
.social-icons a:hover { transform: scale(1.1); }

/* --- زر التواصل العائم --- */
.contact-float-container {
    position: fixed; bottom: 25px; right: 25px; z-index: 9999;
    display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 15px;
}
.contact-main-btn {
    background: var(--gold-gradient); color: #000; padding: 12px 25px; border-radius: 50px;
    border: none; font-weight: 800; font-family: 'Tajawal', sans-serif; cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.5); display: flex; align-items: center; gap: 10px;
    transition: all 0.3s ease; font-size: 1rem;
}
.contact-main-btn:hover { transform: translateY(-3px) scale(1.02); }
.contact-main-btn i { color: #000 !important; font-size: 1.3rem; }

.contact-options {
    list-style: none; padding: 0; margin: 0; background: #1a1a1a;
    border: 1px solid var(--accent-color); border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: all 0.3s; min-width: 190px;
}
.contact-options.show { opacity: 1; visibility: visible; transform: translateY(0); }
.contact-options li { border-bottom: 1px solid #333; }
.contact-options li:last-child { border-bottom: none; }
.contact-option-link {
    display: flex; align-items: center; gap: 12px; padding: 15px 20px;
    color: #fff; text-decoration: none; font-weight: 600; transition: background-color 0.2s;
}
.contact-option-link:hover { background-color: #333; color: var(--accent-color); }
.contact-icon { font-size: 1.4rem; color: var(--accent-color); width: 25px; text-align: center; }
.contact-icon-img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

/* جداول الأسعار */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; }
.price-table th, .price-table td { padding: 15px; text-align: center; border-bottom: 1px solid rgba(51, 51, 51, 0.5); }
.price-table th { background-color: rgba(37, 37, 37, 0.8); color: var(--accent-color); text-transform: uppercase; font-size: 0.95rem; }
.price-table tr:hover { background-color: rgba(255, 170, 0, 0.08); transform: scale(1.01); }
.rate-cell { font-weight: 800; color: #ffaa00; font-size: 1.25em; text-shadow: 0 0 2px rgb(255, 145, 0); }

/* أزرار التبديل */
.payment-toggle {
    display: flex; justify-content: center; margin-bottom: 20px;
    background: rgba(0,0,0,0.5); padding: 5px; border-radius: 50px;
    width: fit-content; margin-left: auto; margin-right: auto; border: 1px solid #333;
}
.toggle-btn {
    background: transparent; color: #fff; border: none; padding: 10px 30px;
    border-radius: 50px; cursor: pointer; font-family: inherit; font-weight: bold; transition: 0.3s;
}
.toggle-btn.active {
    background: var(--gold-gradient); color: #000;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3); transform: scale(1.05);
}

/* التجاوب */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px; }
    .navbar { margin-top: 15px; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .logo-img { height: 70px; margin-left: 0; margin-bottom: 5px; }
    .footer-wrapper { flex-direction: column; text-align: center; }
    .footer-brand-side { max-width: 100%; }
    .social-icons { justify-content: center; }
    .footer-info-side { align-items: center; width: 100%; }
    .clean-nav, .clean-contact { justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-float-container { bottom: 20px; right: 20px; }
    .contact-main-btn { padding: 10px 20px; font-size: 0.9rem; }
    .contact-options { min-width: 170px; }
}

/* تنسيق الميزات في الرئيسية */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-top: -30px;
}
.feature-card {
    background: rgba(26, 26, 26, 0.8); backdrop-filter: blur(10px); padding: 30px;
    border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.05); text-align: center;
    transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--accent-color); }
.feature-card .fa-icon { font-size: 3rem; color: var(--accent-color); margin-bottom: 15px; }
.feature-card h3 { color: var(--accent-color); margin-bottom: 10px; }
.feature-card p { color: #aaa; font-size: 0.9rem; }

/* شريط طرق الدفع */
.payment-methods-list {
    list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.payment-tag {
    background: #222; padding: 8px 15px; border-radius: 8px; font-size: 0.9rem;
    border: 1px solid #444; transition: 0.3s; cursor: default;
    display: flex; align-items: center; gap: 8px;
}
.payment-tag:hover {
    border-color: var(--accent-color); background: #2a2a2a; color: var(--accent-color);
}
.payment-logo-img { height: 24px; width: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,0.3)); }
.payment-text { font-weight: bold; color: #fff; font-size: 0.95rem; }

/* --- تنسيقات بطاقة ساعات العمل --- */
.hours-card-container {
    max-width: 500px;
    margin: 0 auto 30px auto; /* توسيط الكرت */
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    transition: 0.3s;
}

.info-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.card-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

/* قائمة الساعات */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.hours-list li:last-child {
    border-bottom: none;
}

.time {
    font-weight: bold;
    color: #fff;
    direction: ltr; /* لضمان ظهور الأرقام بشكل صحيح */
}

.time.closed {
    color: #ff4444;
}

/* ------------------------------------------------------------------ */
/* 🔥 التنسيقات الجديدة الخاصة بصفحة "من نحن" 🔥 */
/* ------------------------------------------------------------------ */

/* 1. تحسين تنسيق نص "من هي شركة النجمة" */
.about-text-container {
    padding: 10px;
}

.about-text-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.about-icon {
    background: rgba(255, 170, 0, 0.1);
    color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0; /* منع انكماش الأيقونة */
}

.about-text-block p {
    margin: 0;
    font-size: 1rem;
    color: #ddd;
    line-height: 1.7;
}

.about-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 20px 0;
    width: 100%;
}

/* 2. تنسيقات قسم الإحصائيات (Numbers Speak) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 170, 0, 0.05);
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    direction: ltr;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 3. تنسيق قسم الدعوة للعمل (CTA) في الأسفل */
.cta-section-box {
    text-align: center;
    margin-top: 40px;
    background: linear-gradient(45deg, rgba(255, 170, 0, 0.05), transparent);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.1);
}

/* --- التجاوب مع الجوال (تحديث) --- */
@media (max-width: 768px) {
    /* تجاوب قسم النبذة */
    .about-text-block { flex-direction: column; text-align: center; align-items: center; }
    .about-icon { margin-bottom: 10px; }
}