/* ==============================
   ✅ القواعد العامة
============================== */
body {
    font-family: 'Tajawal', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
a:hover {
    color: #1ca9e6;
}

/* ==============================
   ✅ الأزرار العامة
============================== */
.btn {
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-primary {
    background: #1c3faa;
    border: none;
    color: #fff;
}
.btn-primary:hover {
    background: #1633a3;
    color: #fff;
}
.btnino {
    background-color: #2d72d9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}
.btnino:hover {
    background-color: #3586ff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}
.defult-btn {
    background: #263238;
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    padding: 10px 40px;
}
.defult-btn:hover {
    background: #1c3faa;
}

/* ==============================
   ✅ تحسين القائمة الرئيسية
============================== */
.navbar-nav .nav-link {
    font-weight: 600;
    color: #3f3d56;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1ca9e6;
    transform: translateY(-2px);
}
.navbar .btn-outline-primary:hover {
    background: #1c3faa;
    color: #fff;
}
.navbar .fab {
    transition: transform 0.3s ease, color 0.3s ease;
}
.navbar .fab:hover {
    transform: scale(1.2);
    color: #1ca9e6;
}

/* ✅ القائمة الثانية الخاصة بالمستخدم */
.navbar-user {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.9rem;
}
.navbar-user .nav-link {
    color: #555;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}
.navbar-user .nav-link:hover,
.navbar-user .nav-link.active {
    color: #1ca9e6;
    text-decoration: underline;
}
.navbar-user .navbar-text {
    margin-inline-start: auto;
    color: #666;
    font-weight: 500;
}
.navbar-user .navbar-text i {
    color: #1ca9e6;
    margin-inline-end: 4px;
}
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.8rem;
    }
    .navbar-user .navbar-text {
        margin-inline-start: 0;
        text-align: center;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ==============================
   ✅ الهيرو
============================== */
.hero-section {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
    padding: 60px 0;
    color: #fff;
}
.hero-section h1 {
    font-size: 2.3rem;
    font-weight: 700;
    color: #fff;
}
.hero-section p {
    font-size: 1.1rem;
    color: #f1f1f1;
}
.hero-section .btn-primary {
    background-color: #fff;
    color: #1c3faa;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s ease;
}
.hero-section .btn-primary:hover {
    background-color: #f1f1f1;
}
.hero-image {
    max-width: 100%;
    height: auto;
    animation: floatUpDown 3s ease-in-out infinite;
    will-change: transform;
}
@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .hero-section .btn-primary {
        padding: 10px 20px;
    }
}

/* ==============================
   ✅ قسم رفع الملفات
============================== */
#upload-section {
    background: #f9fcff;
    padding-bottom: 80px;
}
#upload-section .nav-tabs .nav-link.active {
    background-color: #1c3faa;
    color: #fff;
    border-color: #1c3faa;
}
#upload-section .nav-tabs .nav-link {
    font-weight: 600;
    color: #333;
}
#upload-section .note {
    font-size: 14px;
    color: #777;
}
.advertisements {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
    border-radius: 10px;
    text-align: center;
    padding: 20px;
}
.advertisements h2 {
    font-size: 20px;
    margin-bottom: 8px;
}
.advertisements p {
    font-size: 14px;
    opacity: 0.9;
}

/* ==============================
   ✅ قسم لماذا نحن
============================== */
.why-us-section {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
    color: #fff;
}
.why-us-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    height: 100%;
}
.why-us-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}
.why-us-box img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}
.why-us-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.why-us-section .main-title h2,
.why-us-section .main-title p {
    color: #fff !important;
}

/* ==============================
   ✅ قسم التطبيقات
============================== */
.download-app-section {
    background: linear-gradient(135deg, #f0faff, #ffffff);
    border-top: 1px solid #e0eff7;
    border-bottom: 1px solid #e0eff7;
}
.download-app-section img {
    max-width: 180px;
    transition: transform 0.3s ease;
}
.download-app-section img:hover {
    transform: scale(1.05);
}
.floating-img {
    animation: floatY 4s ease-in-out infinite;
}
/* تغليف موحد للصورتين */
.store-badge-wrapper {
    width: 180px; /* نفس العرض للحاوية */
    height: 55px; /* نفس الارتفاع للحاوية */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* بدون خلفية إضافية */
}

/* الصور تتناسب داخل الإطار */
.store-badge-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* يحافظ على تناسق الصورة */
    display: block;
}

@media (max-width: 768px) {
    .store-buttons {
        justify-content: center; /* وسط في الموبايل */
    }
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* ==============================
   ✅ قسم برنامج سطح المكتب
============================== */
.program-windows-section {
    /* خلفية Gradient حديثة مع Glass Effect */
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 60px 20px;
}

/* خلفية تأثير الزجاج */
.program-windows-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    z-index: 0;
}

.program-windows-section .container {
    position: relative;
    z-index: 1;
}

/* أيقونة ويندوز داخل دائرة شفافة */
.program-windows-section .icon-box {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.program-windows-section .icon-box img {
    width: 40px;
    height: 40px;
}

/* النصوص */
.program-windows-section h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.program-windows-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

/* زر حديث بزجاجية */
.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-3px);
}

/* حركة الصورة لأعلى وأسفل باستمرار */
@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* صورة التطبيق */
.program-windows-section .desktop-img {
    max-height: 220px;
    animation: floatUpDown 4s ease-in-out infinite; /* حركة مستمرة لأعلى وأسفل */
    transition: transform 0.3s ease; /* تكبير عند الهوفر */
}
.program-windows-section .desktop-img:hover {
    transform: scale(1.05);
}

/* ==============================
   ✅ قسم المميزات
============================== */
/* خلفية Gradient ناعمة وعصرية */
.our-advantages-section {
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    border-top: 1px solid #e2e8f0;
    position: relative;
}

/* عنوان رئيسي جذاب */
.our-advantages-section h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* أيقونة داخل دائرة أنيقة */
.advantages-list .icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* أيقونة Hover */
.advantage-item:hover .icon {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

/* نصوص المميزات */
.advantages-list h6 {
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}
.advantages-list p {
    color: #64748b;
    margin-bottom: 0;
}

/* حركة طافية للصورة اليمنى */
@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}
.floating-img {
    animation: floatUpDown 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}
.floating-img:hover {
    transform: scale(1.05);
}

/* ==============================
   ✅ قسم آراء العملاء
============================== */
.testimonials-section {
    background: linear-gradient(135deg, #1c3faa, #1ca9e6);
    color: #fff;
}
.testimonial-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.client-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.testimonial-text {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==============================
   ✅ قسم FAQ
============================== */
.faq-section .accordion-button {
    background-color: #ffffff;
    color: #1c3faa;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-section .accordion-button:not(.collapsed) {
    background-color: #e9f3ff;
    color: #0d47a1;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}
.faq-section .accordion-button::after {
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}
.faq-section .accordion-button:not(.collapsed)::after {
    transform: rotate(0deg);
}
.faq-section .accordion-body {
    background: #fff;
    border-top: 1px solid #eaeaea;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 1rem 1.25rem;
}

/* ==============================
   ✅ الفوتر
============================== */
.footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298); /* أزرق متدرج */
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* عناوين الفوتر */
.footer h5 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

/* الروابط */
.footer-links li {
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-links li a i {
    margin-left: 8px;
    color: #cce3ff;
    font-size: 12px;
    transition: margin 0.3s ease, color 0.3s ease;
}

/* تأثير Hover للروابط */
.footer-links li a:hover {
    color: #fff;
    transform: translateX(-5px);
}
.footer-links li a:hover i {
    margin-left: 12px;
    color: #fff;
}

/* حقوق النشر */
.copy-right {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 30px;
    display: block;
    text-align: center;
}

/* تحسين للموبايل */
@media (max-width: 767px) {
    .footer {
        text-align: center;
    }
    .footer .col-md-4 {
        margin-bottom: 20px;
    }
}

/* ==============================
   ✅ تأثيرات حركية
============================== */
.animated-float {
    animation: floatY 3s ease-in-out infinite;
}
@keyframes floatY {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}
