/* Global Styles */
:root {
    --primary-color: #8B4513; /* SaddleBrown - Main wuxia theme color */
    --secondary-color: #CD853F; /* Peru - Secondary color */
    --accent-color: #DC143C; /* Crimson - Accent color for CTAs */
    --light-color: #F5F5DC; /* Beige - Light background */
    --dark-color: #2F4F4F; /* DarkSlateGray - Dark text */
    --gold-color: #FFD700; /* Gold - Highlight color */
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --spacing: 2rem;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="paper" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23D2B48C" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23D2B48C" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="%23D2B48C" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="%23D2B48C" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
}

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

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--gold-color), var(--primary-color));
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Navigation */
.navbar {
    background: rgba(139, 69, 19, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(139, 69, 19, 0.98);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 3px solid var(--gold-color);
    box-shadow: var(--shadow);
}

.logo h1 {
    color: var(--light-color);
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-color);
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.download-btn {
    background: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('6.5-2.webp') center/cover no-repeat;
    color: var(--light-color);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.3), rgba(220, 20, 60, 0.3));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: inline-block;
}

.cta-btn.primary {
    background: var(--accent-color);
    color: var(--light-color);
}

.cta-btn.primary:hover {
    background: transparent;
    border-color: var(--light-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.cta-btn.secondary {
    background: transparent;
    border-color: var(--light-color);
    color: var(--light-color);
}

.cta-btn.secondary:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    margin-top: 2rem;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Game Introduction Section */
.game-intro {
    padding: 6rem 0;
    background: var(--light-color);
}

.game-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Game Features Section */
.game-features {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--light-color), #E6D7B0);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Character Classes Section */
.character-classes {
    padding: 6rem 0;
    background: var(--light-color);
}

.classes-grid {
    display: grid;
    gap: 4rem;
    margin-top: 3rem;
}

.class-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.class-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.class-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.class-content {
    font-size: 1.1rem;
}

.class-content ul {
    list-style: none;
    margin-top: 1rem;
}

.class-content li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.class-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Game Screenshots Section */
.game-screenshots {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #E6D7B0, var(--light-color));
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.screenshot-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.screenshot-item p {
    font-weight: bold;
    color: var(--primary-color);
}

/* Technical Support Section */
.tech-support {
    padding: 6rem 0;
    background: var(--light-color);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.support-info ul {
    list-style: none;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.support-info li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.support-info li::before {
    content: '📧';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-family: 'Georgia', serif;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question::after {
    content: '▼';
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Privacy Policy Section */
.privacy-policy {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--light-color), #E6D7B0);
}

.policy-content {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    line-height: 1.8;
    margin-top: 3rem;
}

.policy-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.policy-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* Download Section */
.download-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(139, 69, 19, 0.8), rgba(139, 69, 19, 0.8)), url('3d_wuxia_hd.webp') center/cover no-repeat;
    color: var(--light-color);
    text-align: center;
}

.download-section h2 {
    color: var(--light-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.app-store-btn {
    display: inline-block;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    width: 200px;
    height: auto;
}

.download-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

/* Newsletter Section */
.newsletter {
    padding: 6rem 0;
    background: var(--light-color);
    text-align: center;
}

.newsletter p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    font-family: 'Georgia', serif;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--light-color);
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Georgia', serif;
}

.submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid var(--gold-color);
}

.footer-logo h3 {
    color: var(--light-color);
    margin-bottom: 0;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--light-color);
}

.footer-links a:hover {
    color: var(--gold-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-color);
    border-radius: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.legal-info ul {
    list-style: none;
}

.legal-info li {
    margin-bottom: 0.8rem;
}

.legal-info a {
    color: var(--light-color);
}

.legal-info a:hover {
    color: var(--gold-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 245, 220, 0.1);
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 80px);
        background: rgba(139, 69, 19, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .game-story {
        grid-template-columns: 1fr;
    }

    .class-item {
        grid-template-columns: 1fr;
    }

    .class-item.reverse {
        grid-template-columns: 1fr;
    }

    .support-content {
        grid-template-columns: 1fr;
    }

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

    .policy-content {
        padding: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .app-store-btn img {
        width: 150px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 69, 19, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}
