* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a6b3c;
    --primary-dark: #0f4a28;
    --primary-light: #2d9b5e;
    --secondary: #d4af37;
    --secondary-dark: #b8941e;
    --accent: #e63946;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --error: #e63946;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #1a1a2e;
    --text-light: #555;
    --border: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Nastaliq Urdu', 'Gulzar', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 2;
    font-size: 17px;
    direction: rtl;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.6;
    color: var(--primary-dark);
    margin-bottom: 0.8em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1em;
    line-height: 2.1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(15, 74, 40, 0.97);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    flex-shrink: 0;
}

.logo-img {
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.3s;
    display: block;
}

.main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,0.15);
    color: var(--secondary);
}

.btn-download-header {
    background: var(--secondary);
    color: var(--primary-dark) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-download-header:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212,175,55,0.15), transparent 60%);
    pointer-events: none;
}

.hero h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 25px;
    color: rgba(255,255,255,0.95);
}

.hero .rating-block {
    margin-bottom: 25px;
}

.hero .rating-text {
    color: #fff;
}

.hero-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.hero-images img {
    width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.hero-images img:hover {
    transform: scale(1.05);
}

/* Download Button */
.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary-dark) !important;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(212,175,55,0.4);
    transition: all 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(212,175,55,0.4); }
    50% { box-shadow: 0 4px 30px rgba(212,175,55,0.7); }
}

.btn-download-large {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary-dark) !important;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 6px 25px rgba(212,175,55,0.5);
    transition: all 0.3s;
    text-align: center;
    margin: 10px 0;
}

.btn-download-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212,175,55,0.7);
}

/* Content */
.content-section {
    padding: 50px 20px;
}

.content-section .container > h2 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.content-section .container > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.text-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.text-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.text-content h2:first-child {
    margin-top: 0;
}

.text-content h3 {
    margin-top: 25px;
    color: var(--primary);
}

.text-content ul, .text-content ol {
    margin-bottom: 1.5em;
    padding-right: 25px;
}

.text-content li {
    margin-bottom: 0.6em;
    line-height: 2;
}

.text-content strong {
    color: var(--primary-dark);
}

/* Info Table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.info-table .info-label {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    width: 40%;
}

.info-table .info-value {
    background: #f5f5f5;
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* Rating Block */
.rating-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    font-size: 1.5rem;
    color: #ccc;
}

.star.filled {
    color: var(--secondary);
}

.rating-text {
    font-size: 1.1rem;
    color: var(--text);
}

/* Reviews */
.reviews-section {
    margin: 40px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.review-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-stars {
    margin-bottom: 10px;
}

.review-stars .star {
    font-size: 1.2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
    border-top: 4px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* FAQ */
.faq-section {
    margin: 40px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--primary-dark);
    transition: all 0.3s;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: #f5f5f5;
}

.faq-answer {
    padding: 0 22px 18px;
    color: var(--text-light);
    line-height: 2;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 20px;
    background: #f0f0f0;
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1100px;
    margin: 0 auto;
}

.breadcrumb li::after {
    content: '←';
    margin-right: 8px;
    color: var(--text-light);
}

.breadcrumb li:last-child::after {
    content: '';
}

/* Download CTA */
.download-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    border-radius: var(--radius);
    margin: 40px 0;
}

.download-cta h2 {
    color: #fff;
    margin-bottom: 15px;
}

.download-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.pros-box, .cons-box {
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.pros-box {
    background: #e8f5e9;
    border-right: 4px solid var(--success);
}

.cons-box {
    background: #fff3e0;
    border-right: 4px solid var(--warning);
}

.pros-box h3 {
    color: var(--success);
}

.cons-box h3 {
    color: #e65100;
}

.pros-cons ul {
    padding-right: 20px;
}

/* Steps */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.steps-list li {
    counter-increment: step;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 20px 20px 20px 60px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    position: relative;
    padding-right: 20px;
    padding-left: 60px;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Game Modes */
.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.game-mode-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary);
    transition: all 0.3s;
}

.game-mode-card:hover {
    transform: translateY(-3px);
    border-bottom-color: var(--secondary);
}

.game-mode-card h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 50px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: rgba(255,255,255,0.85);
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-logo {
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid var(--secondary);
}

.btn-download-footer {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary-dark) !important;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-download-footer:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.5) !important;
}

/* Page Hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 40px 20px 35px;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.page-hero h1 span {
    color: var(--secondary);
}

.page-hero p {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Download Page Images */
.download-images {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.download-images img {
    width: 280px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.download-images img:hover {
    transform: scale(1.05);
}

/* System Requirements Table */
.sys-req-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sys-req-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    text-align: right;
}

.sys-req-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
}

.sys-req-table tr:last-child td {
    border-bottom: none;
}

/* Notice Box */
.notice-box {
    background: #fff3cd;
    border-right: 4px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
}

.notice-box strong {
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        padding: 70px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
    }

    .btn-download-header {
        font-size: 13px;
        padding: 8px 16px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-images img {
        width: 160px;
    }

    .text-content {
        padding: 20px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-images img {
        width: 100%;
        max-width: 320px;
    }

    .steps-list li {
        padding-left: 55px;
    }

    body {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-images img {
        width: 130px;
    }

    .btn-download-large {
        padding: 16px 40px;
        font-size: 1.2rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
