@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gx-red: #ff1b2d;
    --gx-red-hover: #e61425;
    --gx-black: #000000;
    --gx-dark: #0a0a0a;
    --gx-gray: #999999;
    --gx-white: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* منع التمرير نهائياً */
    background-color: var(--gx-black);
    color: var(--gx-white);
    font-family: var(--font-main);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.logo {
    height: 38px;
    width: auto;
}

/* Hero Section */
.hero-section {
    width: 100%;
    height: 100vh;
    display: flex;
}

.hero-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Content Side (Left) */
.content-side {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    padding-right: 0;
    padding-top: 110px; /* تقليل الفراغ قليلاً من 130px لإبعاد العنوان عن اللوجو بمسافة متوازنة */
    padding-bottom: 40px;
    z-index: 10;
}

.text-wrapper {
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--gx-red);
    text-transform: uppercase;
    /* جعل الهالة ثابتة بدون حركة (No animation) */
    text-shadow: 0 0 15px rgba(255, 27, 45, 0.7), 0 0 30px rgba(255, 27, 45, 0.4);
}

.headline span {
    color: var(--gx-white);
    display: block; /* Force "Your PC isn't slow..." to stay on its own line */
    margin-top: 0.5rem;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--gx-gray);
    margin-bottom: 1.5rem; /* تم تقليله من 2.5rem */
    max-width: 500px;
}

/* Benefits */
.benefits-list {
    list-style: none;
    margin-bottom: 1.5rem; /* تم تقليله من 3rem */
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.benefits-list .icon {
    color: var(--gx-red);
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Wrapper - التوسيط بالنسبة للنص فوقه */
.cta-wrapper {
    display: flex; /* تغيير من inline-flex إلى flex لملء العرض المتاح في text-wrapper */
    flex-direction: column;
    align-items: center; /* توسيط العناصر داخلياً */
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    width: 100%; /* التأكد من أن التوسيط يتم بالنسبة لعرض كتلة النص الكاملة (600px) */
}

/* CTA */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gx-red);
    color: white;
    text-decoration: none;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 27, 45, 0.4);
    width: fit-content;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
    pointer-events: none;
}

.btn-primary:hover {
    background-color: var(--gx-red-hover);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 27, 45, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-primary:hover::after {
    left: 130%;
}

.btn-primary:active {
    transform: scale(1);
}

/* Credibility Note */
.credibility-note {
    font-size: 0.85rem;
    color: var(--gx-gray);
    margin: 0;
    width: 100%;
    text-align: center;
}

/* Image Side (Right) */
.image-side {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gaming Frame Wrapper */
.image-frame {
    position: relative;
    padding: 12px;
    display: inline-block;
    width: 85%;
    max-width: 600px;
    border: 2px solid rgba(255, 27, 45, 0.4);
    background: rgba(255, 27, 45, 0.05);
    box-shadow: 0 0 30px rgba(255, 27, 45, 0.15);
    transform: none !important;
    transition: none !important;
}

.image-frame::before, .image-frame::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 5;
}

.image-frame::before {
    top: -2px;
    left: -2px;
    border-top: 4px solid var(--gx-red);
    border-left: 4px solid var(--gx-red);
    filter: drop-shadow(0 0 5px var(--gx-red));
}

.image-frame::after {
    bottom: -2px;
    right: -2px;
    border-bottom: 4px solid var(--gx-red);
    border-right: 4px solid var(--gx-red);
    filter: drop-shadow(0 0 5px var(--gx-red));
}

.image-frame {
    background-image: 
        linear-gradient(to right, var(--gx-red) 15px, transparent 15px),
        linear-gradient(to bottom, var(--gx-red) 15px, transparent 15px),
        linear-gradient(to left, var(--gx-red) 15px, transparent 15px),
        linear-gradient(to top, var(--gx-red) 15px, transparent 15px);
    background-size: 100% 4px, 4px 100%, 100% 4px, 4px 100%;
    background-position: 0 100%, 100% 0, 0 0, 0 0;
    background-repeat: no-repeat;
}

.hero-image {
    display: block;
    width: 100%; 
    height: auto;
    object-fit: contain;
    box-shadow: inset 0 0 20px rgba(255, 27, 45, 0.4);
    background: #050505;
    transform: none !important;
    transition: none !important;
}

.image-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--gx-black) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .headline { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    html, body {
        overflow: hidden; /* منع التمرير على الجوال أيضاً */
    }
    
    .hero-container {
        flex-direction: column;
    }

    .content-side {
        flex: 0 0 auto;
        width: 100%;
        padding: 90px 24px 20px 24px; /* تقليل الفراغ من 130px ليصبح متناسباً مع حجم الهيدر على الجوال */
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .subheadline {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem; /* تم تقليله من 1.5rem */
    }

    .benefits-list {
        text-align: left;
        display: inline-block;
        margin-bottom: 1rem; /* تم تقليله من 1.5rem */
    }

    .image-side {
        flex: 1;
        width: 100%;
        order: 2;
        padding-bottom: 20px;
    }

    .image-frame {
        width: 80%;
    }

    .headline { font-size: 1.8rem; }
    
    .image-gradient-overlay {
        background: linear-gradient(to bottom, var(--gx-black) 0%, transparent 20%);
    }

    .top-bar {
        padding: 0 24px;
        height: 60px;
    }
}