/* Reset و تنسيق عام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    z-index: 1;
    background-color: #121212;
    color: white;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    text-align: center;
    padding-bottom: 50px;
    background: linear-gradient(270deg, #141414, #1e1e1e, #141414);
    background-size: 600% 600%;
    animation: bgMove 15s ease infinite;
    font-family: 'Orbitron', sans-serif;
}

@keyframes bgMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* الشريط العلوي */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #000;
}

/* الصورة داخل الشريط */
.logo {
    width: 100px;
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* تأثير الإضاءة عند الوقوف عليها */
.logo:hover {
    filter: drop-shadow(0 0 10px #f9b233);
    transform: scale(1.05);
}


/* أزرار التنقل */
nav .nav-btn {
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-btn::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: #f9b233;
    transition: width 0.3s ease;
}

.nav-btn:hover {
    color: #f9b233;
}

.nav-btn:hover::after {
    width: 100%;
}


/* عنوان رئيسي */
h1 {
    font-size: 48px;
    margin-top: 60px;
    margin-bottom: 20px;
}

/* عناوين فرعية */
h2 {
    font-size: 28px;
    margin-top: 20px;
}

/* نص عادي */
p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* أزرار عامة */
.button,
button,
a.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f9b233;
    color: black;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    margin-top: 20px;
}

.button:hover,
button:hover,
a.button:hover {
    background-color: #ffcc66;
    transform: scale(1.05);
}


/*hero*/
.hero-img {
    max-width: 400px;
    height: auto;
    margin: 30px auto;
    display: block;
    animation: spinIn 1.2s ease-out forwards;
}

/* أنيميشن الدوران */
@keyframes spinIn {
    0% {
        opacity: 0;
        transform: rotate(0deg) scale(0.6);
    }

    100% {
        opacity: 1;
        transform: rotate(360deg) scale(1);
    }
}



/* مساحة عامة للأقسام */
section {
    padding: 40px 20px;
}

/* تأثير دخول عام للصفحة */
body {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.games-grid {
    display: flex;
    gap: 20px;
    padding: 40px;
    justify-content: center;
}

.game-card {
    width: 200px;
    height: 120px;
    background: #1a1a1a;
    color: #f9b233;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 0 10px #f9b23366;
}