/* =========================================================
   Emulator Games Downloader - Landing Page
   ========================================================= */

:root {
    --bg: #000000;
    --surface: #171717;
    --surface-light: #211b1d;

    --brown-dark: #2b1008;
    --brown: #451b0d;
    --brown-light: #64280d;

    --orange: #e85b00;
    --orange-dark: #c84c00;
    --orange-light: #ff8a32;

    --gold: #ffb45c;

    --white: #ffffff;
    --text-muted: #c9c2c0;

    --border: rgba(255, 180, 92, 0.35);
    --radius: 20px;
    --max-width: 1200px;
}

/* =========================================================
   Reset & General
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   Navbar
   ========================================================= */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: linear-gradient(90deg, #1f0d09 0%, #351409 45%, #4a1a06 100%);
    border-bottom: 1px solid rgba(255, 138, 50, 0.2);
    backdrop-filter: blur(12px);
}

.navbar-container {
    width: 100%;
    max-width: var(--max-width);
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 700;
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.navbar-links a {
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-links a:hover {
    color: var(--orange-light);
}

.nav-download {
    padding: 10px 20px;
    background: var(--orange);
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-download:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 91, 0, 0.4);
}

/* =========================================================
   Hero Section
   ========================================================= */

.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background: 
        radial-gradient(circle at 75% 30%, rgba(232, 91, 0, 0.15), transparent 45%),
        radial-gradient(circle at 20% 70%, rgba(98, 40, 13, 0.2), transparent 50%),
        #000;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
}

.hero__content {
    max-width: 620px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 24px;
    color: var(--gold);
    background: rgba(232, 91, 0, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.hero__badge span {
    width: 8px;
    height: 8px;
    background-color: var(--orange-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--orange-light);
}

.hero__title {
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero__title span {
    color: var(--orange-light);
    display: block;
}

.hero__description {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Google Play Button & Outline Button */
.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 22px;
    border-radius: 14px;
    color: var(--white);
    transition: all 0.25s ease;
}

.play-button:hover {
    background: #1a1a1a;
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 91, 0, 0.25);
}

.play-button__icon {
    font-size: 18px;
    color: var(--orange-light);
}

.play-button__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.play-button__text small {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.play-button__text strong {
    font-size: 16px;
    font-weight: 700;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--gold);
    font-weight: 600;
    font-size: 15px;
    background: rgba(69, 27, 13, 0.2);
    transition: all 0.25s ease;
}

.outline-button:hover {
    background: rgba(69, 27, 13, 0.6);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
}

.stat span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Phone Mockup in Hero */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--orange);
    opacity: 0.22;
    filter: blur(90px);
    border-radius: 50%;
    z-index: 1;
}

.phone {
    position: relative;
    z-index: 2;
    width: 270px;
    padding: 10px;
    background: #1c1c1e;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone__notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #000;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 3;
}

.phone img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
}

/* =========================================================
   Sections Common Header
   ========================================================= */

.section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-heading span {
    color: var(--orange-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 14px;
    font-weight: 800;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* =========================================================
   Features
   ========================================================= */

.features {
    background: #050505;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 26px;
    background: linear-gradient(145deg, rgba(43, 16, 8, 0.4), rgba(18, 18, 18, 0.7));
    border: 1px solid rgba(255, 180, 92, 0.15);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--orange);
    box-shadow: 0 15px 35px rgba(232, 91, 0, 0.15);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--orange);
    font-size: 22px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================================
   Platforms
   ========================================================= */

.platforms {
    background: #000;
}

.platforms__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.platform {
    padding: 24px 16px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.platform:hover {
    border-color: var(--orange);
    background: #17110f;
    transform: translateY(-4px);
}

.platform strong {
    font-size: 22px;
    color: var(--gold);
}

.platform span {
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   Screenshots Section (FIXED & RESIZED)
   ========================================================= */

.screenshots {
    background: #060606;
}

.screenshots__wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-content: center;
}

.screenshot {
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 15px 30px rgba(232, 91, 0, 0.25);
}

.screenshot img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    display: block;
}

/* =========================================================
   CTA Section
   ========================================================= */

.cta {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(232, 91, 0, 0.25), transparent 60%), #0c0503;
    text-align: center;
}

.cta__box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(232, 91, 0, 0.3);
}

.cta h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 14px;
    font-weight: 800;
}

.cta p {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 30px;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    padding: 35px 0;
    background: #040404;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.footer__brand img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.footer p {
    color: #666;
    font-size: 14px;
}

.footer a {
    color: var(--orange-light);
    font-size: 14px;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 0.8;
}

/* =========================================================
   Responsive Design (Tablet & Mobile)
   ========================================================= */

@media (max-width: 1024px) {
    .screenshots__wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .screenshot:nth-child(4),
    .screenshot:nth-child(5) {
        display: none; /* إخفاء الشاشتين الزائدتين في اللوحي للحفاظ على تناسق التصميم */
    }
}

@media (max-width: 900px) {
    .navbar-links {
        display: none;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__content {
        margin: 0 auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 60px 0;
    }

    .hero__title {
        font-size: 34px;
    }

    .hero__description {
        font-size: 16px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .screenshots__wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .screenshot:nth-child(4) {
        display: block; /* إظهار الشاشة الرابعة في الجوال */
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}