body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(120deg, #74ebd5, #ACB6E5, #f39c12, #2980b9);
    background-size: 400% 400%;
    animation: gradientBG 12s ease-in-out infinite;
    transition: background-color 0.5s ease;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.top-left-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 125px; /* هذا هو الحجم الحالي */
    height: auto;
    z-index: 10;
}


/* باقي أنماط CSS الخاصة بك */
header {
    background: rgba(44, 62, 80, 0.95);
    color: white;
    text-align: center;
    padding: 1.5em 0 1em 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5em;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s, text-shadow 0.3s;
    text-shadow: 0 2px 8px #2980b9a0;
    position: relative;
    z-index: 1;
}

/* nav ul li a.active {
    border-bottom: 2px solid #f39c12;
} */

nav a:hover {
    color: #f39c12;
    text-shadow: 0 4px 16px #f39c12a0;
}

main {
    padding: 40px 0 20px 0;
    min-height: 60vh;
}

section {
    background: transparent; /* Changed from rgba(255,255,255,0.25) to transparent */
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    margin: 0 auto 30px auto;
    padding: 32px 24px;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s, border-color 0.4s;
}

h2 {
    color: #34495e;
    text-align: center;
    font-size: 2.2em;
    letter-spacing: 1px;
    text-shadow: 2px 2px 12px #b0c4de;
    animation: fadeIn 1.2s;
    margin-bottom: 18px;
}

p {
    color: #222;
    line-height: 1.7;
    font-size: 1.15em;
    text-align: center;
    text-shadow: 0 1px 8px #fff8;
}

footer {
    text-align: center;
    padding: 1.2em 0;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    font-size: 1em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأثير ظل للنص */
h1, h2, h3, h4, h5, h6 {
    color: #222;
    text-shadow: 2px 2px 8px #b0c4de;
    transition: text-shadow 0.3s;
}

/* تأثير ظل للصناديق */
.card, .box, .container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.15);
    padding: 24px;
    margin: 16px 0;
    transition: box-shadow 0.3s;
}

/* تأثير عند تمرير الفأرة */
.card:hover, .box:hover, .container:hover {
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.25);
    transform: translateY(-4px) scale(1.02);
}

/* تأثير للأزرار */
button, .btn {
    background: linear-gradient(90deg, #74ebd5 0%, #ACB6E5 100%);
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    transition: background 0.3s, transform 0.2s;
}

button:hover, .btn:hover {
    background: linear-gradient(90deg, #ACB6E5 0%, #74ebd5 100%);
    transform: scale(1.05);
}

button:active, .btn:active {
    box-shadow: 0 0 0 8px #74ebd540;
    transition: box-shadow 0.2s;
}

/* تأثير ظهور تدريجي للعناصر */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .game-icon {
        padding-top: 18px !important; /* جرب قيمة أكبر ولاحظ الفرق */
    }
}

.game-icon img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.18);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* جزيئات متحركة */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: 100%; /* هذا هو مكان بدء الفقاعة - من الأسفل */
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.823);
    border-radius: 50%;
    animation: particle-fall 10s infinite;
}

@keyframes particle-fall {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(100vh) scale(0); /* تسقط الفقاعة حتى 100% من ارتفاع viewport وتختفي */
    }
}

/* PlayStation Banner Styling */
.ps-banner {
    display: flex;
    flex-direction: column;   /* اجعل العناصر عمودية */
    align-items: center;
    justify-content: center;
    gap: 24px;                /* قلل الفراغ قليلاً */
    margin: 32px auto 24px auto;
    padding: 12px 0;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}

.ps-buttons {
    display: flex;
    gap: 16px;
}

.ps-btn {
    font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', 'Arial Unicode MS', Arial, sans-serif !important;
    font-size: 1.6em;
    width: 1.1em;
    height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 2px;
    box-shadow: 0 2px 8px #2222;
    background: #3b2f2f;
    color: #222;
    border: 2px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.ps-btn.circle { color: #e74c3c; border-color: #696767; }
.ps-btn.cross { color: #0689e0; border-color: #696767; }
.ps-btn.triangle { color: #27ae60; border-color: #696767; }
.ps-btn.square { color: #ac3ddb; border-color: #696767; }

.ps-btn:hover {
    transform: scale(1.15) rotate(-6deg);
    box-shadow: 0 6px 24px #2224;
    background: #393131;
}

/* PlayStation Logo Styling */
/* الحجم الافتراضي (للمتصفح) */
.ps-logo {
    width: 100px; /* حجم الشعار للمتصفح (أو الشاشات الأكبر) */
    max-width: 95vw;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
}

/* حجم أصغر على الجوال (الشاشات الأصغر من 600 بكسل) */
@media (max-width: 600px) {
    .ps-logo {
        width: 70px; /* حجم الشعار للجوال */
    }
}


.game-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(90deg, #74ebd5 0%, #ACB6E5 100%);
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1.1em;
    font-weight: bold;
    min-height: 48px;
    min-width: 120px;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 2px 8px #2221;
    transition: background 0.3s, transform 0.2s;
}

.game-btn .btn-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

/* تأثير الوميض للنصوص */
.pulse {
    animation: pulse-glow 1.2s ease-in-out infinite;
    color: #f39c12;
    text-shadow:
        0 0 8px #f39c12,
        0 0 16px #74ebd5,
        0 1px 0 #fff;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        text-shadow:
            0 0 8px #f39c12,
            0 0 16px #74ebd5,
            0 1px 0 #fff;
    }
    50% {
        transform: scale(1.08);
        text-shadow:
            0 0 24px #f39c12,
            0 0 32px #74ebd5,
            0 2px 4px #fff;
    }
    100% {
        transform: scale(1);
        text-shadow:
            0 0 8px #f39c12,
            0 0 16px #74ebd5,
            0 1px 0 #fff;
    }
}
.glow-title {
    font-size: 2.8em;
    font-weight: bold;
    color: #fff; /* هذا اللون لن يظهر لأن background-clip: text ستستخدم الخلفية */
    background: linear-gradient(90deg, #74ebd5, #f39c12, #ACB6E5, #2980b9);
    background-size: 300% 300%;
    -webkit-background-clip: text; /* لأجل دعم المتصفحات القديمة التي تتطلب البادئة */
    background-clip: text; /* الخاصية القياسية للمتصفحات الحديثة */
    -webkit-text-fill-color: transparent; /* لأجل دعم المتصفحات القديمة التي تتطلب البادئة */
    color: transparent; /* الخاصية القياسية لجعل النص شفافًا لتظهر الخلفية من خلاله */
/*     animation: gradientText 6s ease infinite, pulse-glow 1.8s ease-in-out infinite;
 */    text-shadow: 0 0 10px #fff4, 0 0 20px #f39c12a0;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}