:root {
    --primary: #0a0e17; /* أسود مائل للكحلي */
    --secondary: #1f2833;
    --gold: #c5a059; /* ذهبي فخم */
    --gold-glow: #c5a05988;
    --white: #ffffff;
    --gray: #a7a7a7;
    --font-main: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary);
    color: var(--white);
    overflow-x: hidden;
}

/* شاشة التحميل */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loader-ball {
    width: 50px; height: 50px;
    border: 3px solid var(--gold);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* الناف بار */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: 0.4s;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

nav.scrolled {
    background: rgba(10, 14, 23, 0.95);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.gold { color: var(--gold); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; right: 0;
    background: var(--gold);
    transition: 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.btn-join {
    padding: 8px 25px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    color: var(--gold) !important;
}

.btn-join:hover {
    background: var(--gold);
    color: var(--primary) !important;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* الهيرو سكشن */
#hero {
    height: 100vh;
    background: url('Download AI generated Beautiful background for soccer game advertising for free.jpeg');
    background-attachment: fixed; /* تأثير البارالاكس */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(10,14,23,0.9), rgba(10,14,23,0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin: 10px 0;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    margin: 15px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* سهم النزول */
.scroll-down {
    position: absolute;
    bottom: 30px;
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

/* الإحصائيات */
.section-dark {
    padding: 80px 0;
    background: var(--primary);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
}

/* اللاعبين */
.section-light {
    background: var(--secondary);
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
}

.cards-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    width: 300px;
    height: 450px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.card:hover .card-image {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, var(--primary), transparent);
    transform: translateY(20px);
    transition: 0.4s;
    opacity: 0.9;
}

.card:hover .card-text {
    transform: translateY(0);
}

.player-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -40px;
    right: 20px;
}

/* الأنيميشن */
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* الفوتر */
footer {
    background: #000;
    padding: 50px 0 20px;
    text-align: center;
    border-top: 2px solid var(--gold);
}

.socials a {
    color: var(--white);
    margin: 0 15px;
    font-size: 1.5rem;
    transition: 0.3s;
}

.socials a:hover { color: var(--gold); }

/* ريسبونسيف */
@media (max-width: 768px) {
    .nav-links { display: none; } /* يمكن إضافة كود JS لفتح القائمة */
    .hero-content h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: 1fr; }
}
/* =========================================
   تنسيقات الهاتف (Mobile Responsive)
   ========================================= */

/* إخفاء زر القائمة في الشاشات الكبيرة */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

/* عندما تكون الشاشة أصغر من 768 بكسل (التابلت والموبايل) */
@media screen and (max-width: 768px) {
    
    /* 1. تعديل القائمة العلوية لتصبح جانبية */
    body {
        overflow-x: hidden; /* لمنع الحركة الجانبية المزعجة */
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--secondary); /* خلفية القائمة */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 60%; /* عرض القائمة */
        transform: translateX(100%); /* إخفاء القائمة خارج الشاشة */
        transition: transform 0.5s ease-in;
        z-index: 99;
        box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    }

    .nav-links li {
        opacity: 0; /* سنظهرها بالأنيميشن */
        margin: 30px 0;
    }

    .burger {
        display: block; /* إظهار زر القائمة */
    }

    /* كلاس يتم إضافته بالجافاسكريبت لفتح القائمة */
    .nav-active {
        transform: translateX(0%);
    }

    /* 2. تعديل النصوص والأقسام */
    .hero-content h1 {
        font-size: 2.8rem; /* تصغير العنوان الرئيسي */
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* جعل الإحصائيات فوق بعضها */
    .stats-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    /* جعل الكروت تأخذ عرض الشاشة بالكامل تقريباً */
    .card {
        width: 90%; 
    }
}

/* أنيميشن تحول زر القائمة إلى علامة X */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* أنيميشن لظهور الروابط بتتابع */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}