/* --- المتغيرات والتنسيقات الأساسية --- */
:root {
    --primary: #8c52ff;
    --primary-dark: #5e17eb;
    --secondary: #00d2d3;
    --bg-dark: #09080d;
    --bg-card: #15121e;
    --text-main: #ffffff;
    --text-gray: #a0a0a0;
    --gradient-main: linear-gradient(135deg, #8c52ff 0%, #5e17eb 100%);
    --gradient-hover: linear-gradient(135deg, #9d6dff 0%, #7033f2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    touch-action: pan-y;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --- الخلفية المتحركة --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatShape 10s infinite alternate;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-dark);
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #2d00f7;
    border-radius: 50%;
    animation-delay: -5s;
}

/* --- الرأس (Header) --- */
header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    animation: fadeIn 1s ease-out;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 210, 211, 0.5);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.download-btn-sm {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--text-main);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.download-btn-sm:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 82, 255, 0.3);
}

.supporters-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transition: 0.3s;
}

.supporters-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

/* --- قسم الهيرو (Hero) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-left: 20px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.android-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(61, 220, 132, 0.1);
    color: #3ddc84;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(61, 220, 132, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 15px;
    background: rgba(140, 82, 255, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    max-width: 550px;
    margin-bottom: 40px;
}

.apk-download-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    display: inline-flex;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.apk-download-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.main-cta {
    background: var(--gradient-main);
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(94, 23, 235, 0.4);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.main-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.main-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(94, 23, 235, 0.5);
}

.main-cta:hover::before {
    left: 100%;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.version-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- قسم الصورة (Mockup) --- */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.img-container {
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.img-container:hover {
    transform: scale(1.02) rotate(-2deg);
}

.mockup-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    border-radius: 30px;
}

.image-backdrop {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 2px solid rgba(140, 82, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: spin 20s linear infinite;
}

.image-backdrop::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
}

/* --- خطوات التثبيت --- */
.install-guide {
    padding: 80px 5%;
    background: #0d0b12;
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 15px;
    width: 280px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    background: var(--bg-dark);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px;
    border: 2px solid var(--primary);
    transition: 0.3s;
}

.step-card:hover .step-number {
    background: var(--primary);
    color: white;
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- الفوتر --- */
footer {
    background: #050507;
    padding: 40px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: var(--text-gray);
    margin: 0 10px;
}

footer a:hover {
    color: var(--primary);
}

/* --- الشعار (Logo) --- */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* --- الأسئلة الشائعة (FAQ) --- */
.faq-section {
    padding: 80px 5%;
    background: var(--bg-dark);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
    animation: fadeInUp 1s ease-out backwards;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-question i {
    color: var(--secondary);
    transition: 0.3s;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-gray);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Privacy Page Styles --- */
.privacy-container {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 1s ease-out;
}

.privacy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.privacy-section p,
.privacy-section li {
    color: var(--text-gray);
    line-height: 1.8;
}

.privacy-section ul {
    list-style: disc;
    padding-right: 20px;
    margin-bottom: 15px;
}

.privacy-section li {
    margin-bottom: 8px;
}

/* --- التجاوب (Responsive) --- */

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-image {
        margin-bottom: 50px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .apk-download-box {
        margin: 0 auto;
        flex-direction: column;
        max-width: 90%;
    }

    .header-actions {
        gap: 10px;
    }

    .privacy-container {
        margin-top: 120px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 5%;
    }

    .header-actions .supporters-btn span,
    .header-actions .download-btn-sm span {
        display: none;
    }

    .header-actions .supporters-btn,
    .header-actions .download-btn-sm {
        padding: 8px 12px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .image-backdrop {
        width: 380px;
        height: 380px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }

    .main-cta {
        padding: 12px 25px;
        font-size: 1rem;
        margin-bottom: 1px;
    }

    .version-info {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
        font-size: 0.75rem;
    }

    .version-info span {
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .apk-download-box {
        padding: 18px;
        width: calc(100% - 20px);
        max-width: 100%;
        margin: 0 auto 30px;
        display: flex;
    }

    .mockup-img {
        max-width: 280px;
    }

    .image-backdrop {
        width: 300px;
        height: 300px;
    }

    .install-guide,
    .faq-section {
        padding: 60px 5%;
    }

    .privacy-container {
        margin: 100px auto 40px;
        padding: 20px;
        width: calc(100% - 30px);
        max-width: 100%;
    }

    .privacy-container h1 {
        font-size: 1.8rem;
    }

    .privacy-section h2 {
        font-size: 1.2rem;
    }

    .privacy-section {
        margin-bottom: 20px;
    }

    .privacy-section ul {
        padding-right: 15px;
    }
}