:root {
    --dark-bg: #101114;
    --card-bg: rgba(30, 30, 30, 0.7);
    --primary-color: #a880ff;
    --secondary-color: #00e0b8;
    --text-color: #e0e0e0;
    --text-muted: #9e9e9e;
    --border-color: rgba(255, 255, 255, 0.1);
}
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

#tsparticles {
    position: fixed; width: 100%; height: 100%; z-index: -1;
}

.main-container {
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 100vh; padding: 50px 20px;
}

.content-card {
    max-width: 800px; width: 100%;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 20px; padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    text-align: center;
    animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.header h1 {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 3.2rem; font-weight: 800; margin: 0 0 10px 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
}
.header p { 
    font-family: 'Tajawal', sans-serif;
    font-size: 1.2rem; color: var(--text-muted); margin: 0 0 40px 0;
}

.section-title {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 2.2rem; font-weight: 700; margin: 50px 0 30px 0;
    display: flex; align-items: center; justify-content: center;
    gap: 15px; color: var(--primary-color);
    /* For button version */
    background: none; border: none; padding: 0; cursor: pointer; width: 100%;
}
.section-title .arrow {
    width: 12px; height: 12px;
    border-left: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    transform: rotate(-45deg);
    transition: transform 0.4s ease;
}
.section-title.open .arrow { transform: rotate(135deg); }


/*
  =======================================================
  التعديل الجديد هنا: تصميم احترافي لقسم لقطات الشاشة
  =======================================================
*/
#screenshots-content {
    max-height: 0;
    opacity: 0; /* يبدأ شفافاً */
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* حركة ناعمة جداً */
}
#screenshots-content.visible {
    max-height: 1200px;
    opacity: 1; /* يظهر بالكامل */
    margin-top: 30px;
}

.tab-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.tab-btn {
    padding: 10px 25px; font-size: 1rem; font-weight: 700;
    background-color: transparent; border: 2px solid var(--border-color);
    color: var(--text-muted); border-radius: 50px; cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.tab-btn.active { background-color: var(--primary-color); color: var(--dark-bg); border-color: var(--primary-color); }
        

        .screenshot-viewer { position: relative; width: 100%; height: 1110px; background-color: rgba(0,0,0,0.3); border-radius: 12px; overflow: hidden; }
        .screenshot-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; }
        .screenshot-image.active { opacity: 1; visibility: visible; }

/* ======================================================= */


.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.download-group {
    background: linear-gradient(145deg, rgba(44, 44, 46, 0.5), rgba(30, 30, 30, 0.5));
    padding: 25px; border-radius: 16px; border: 1px solid var(--border-color);
}
.download-group-title {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; font-size: 1.4rem; font-weight: 700;
    margin-bottom: 25px; color: var(--text-color);
}
.download-group-title img { width: 28px; height: 28px; }
.download-links { display: flex; justify-content: center; gap: 15px; }
.download-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 55px; height: 55px; border-radius: 15px;
    background-color: rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.download-icon-btn:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.download-icon-btn img { width: 30px; height: 30px; }
        

/*
  =======================================================
  التعديل الجديد هنا: إصلاح اتجاه أيقونة تليجرام
  =======================================================
*/
.footer { margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--border-color); }
.footer a {
    font-family: "Noto Kufi Arabic", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s, text-shadow 0.3s;
    /* هذا السطر يعكس الترتيب ليتناسب مع RTL */
    flex-direction: row-reverse;
}
.footer a:hover { color: var(--secondary-color); text-shadow: 0 0 10px var(--secondary-color); }
.footer svg { width: 24px; height: 24px; fill: var(--text-muted); transition: fill 0.3s; }
.footer a:hover svg { fill: var(--secondary-color); }
/* ======================================================= */


@media (max-width: 768px) {
    body { padding: 20px 10px; }
    .downloads { grid-template-columns: 1fr; }
    .header h1 { font-size: 2.5rem; }
    .content-card { padding: 25px; }
    .screenshot-viewer { height: auto; }
}

/* ... الكود الموجود لديك ... */
.download-icon-btn:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px rgba(0,0,0,0.5); }

/*
  =======================================================
  التعديل الجديد هنا: إضافة تأثير الضغط
  =======================================================
*/
.download-icon-btn:active {
    transform: scale(0.95) rotate(-5deg); /* تصغير الأيقونة وتدويرها بالعكس */
    transition-duration: 0.1s; /* جعل التأثير سريعاً جداً */
}
/* ======================================================= */


