@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    background-color: #120b1a;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    font-family: 'Press Start 2P', cursive;
}

/* طبقة الخلفية المتحركة */
.background-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)),
        linear-gradient(30deg, #d35d6e 12%, transparent 12.5%, transparent 87%, #d35d6e 87.5%, #d35d6e);
    background-size: 100% 4px, 3px 100%, 80px 140px;
    opacity: 0.3; z-index: 1;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: 0 0, 0 0, 800px 1400px; }
}

.page-layout {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    justify-content: center; 
    align-items: center;
    z-index: 10;
    padding: 20px;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.studio-logo {
    width: 550px;
    max-width: 85vw;
    filter: drop-shadow(5px 5px 0px #00f2ff66);
    transition: 0.3s ease-in-out; /* إضافة انتقال ناعم */
}

/* تأثير التكبير للشعار */
.studio-logo:hover {
    transform: scale(1.08);
}

.cartoon-buttons {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.c-btn {
    padding: 18px 30px;
    font-size: 0.75rem;
    text-decoration: none;
    color: white;
    border: 4px solid #000;
    box-shadow: 6px 6px 0px #000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease-in-out; /* إضافة انتقال ناعم */
}

.insta { background-color: #ff0055; transform: rotate(-1deg); }
.steam { background-color: #333; transform: rotate(1deg); }

/* تأثير التكبير للأزرار عند الـ Hover */
.c-btn:hover {
    transform: scale(1.15) rotate(0deg);
    box-shadow: 10px 10px 0px #000;
}

.contact-email {
    margin-top: 25px;
    font-size: 0.6rem;
    color: #00f2ff;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.contact-email:hover {
    color: #fff;
    transform: scale(1.2);
}

.news-section {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

/* تعديل لون عنوان الأخبار ليكون واضحاً مثل Instagram */
.news-title {
    font-size: 0.9rem;
    color: #ff0055; /* نفس لون زر انستا */
    margin-bottom: 25px;
    text-shadow: 3px 3px 0 #000;
    text-align: right;
}

.news-item {
    background-color: #fff;
    color: #000;
    padding: 18px;
    font-size: 0.65rem;
    border: 4px solid #000;
    box-shadow: 7px 7px 0px #000;
    margin-bottom: 15px;
    max-width: 450px;
    width: 100%;
    transition: 0.3s ease-in-out; /* إضافة انتقال ناعم */
}

.news-item:nth-child(even) { transform: rotate(1.5deg); }
.news-item:nth-child(odd) { transform: rotate(-1.5deg); }

/* تأثير التكبير لفقرات الأخبار */
.news-item:hover {
    transform: scale(1.05) translateX(-10px);
    background-color: #00f2ff;
}

/* إعدادات الجوال لضمان عدم التداخل */
@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        overflow-y: auto;
    }

    .news-section {
        position: relative;
        right: auto; top: auto;
        transform: none;
        margin-top: 60px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .news-title { text-align: center; }
    .news-item { max-width: 90vw; transform: none !important; }
    .studio-logo { width: 300px; }
}