/* Global Styles */
:root {
    --primary-color: #8B4513; /* Brown */
    --secondary-color: #DAA520; /* Gold */
    --accent-color: #DC143C; /* Crimson */
    --dark-color: #2F1B14; /* Dark brown */
    --light-color: #F5DEB3; /* Wheat */
    --background-color: #1a1a1a;
    --text-color: #ffffff;
}

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

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2F1B14 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background: rgba(47, 27, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
}

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

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

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

.download-btn:hover {
    background: #B22222;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="fire" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%23DC143C" opacity="0.3"/><circle cx="80" cy="40" r="3" fill="%23DAA520" opacity="0.2"/><circle cx="40" cy="80" r="1.5" fill="%23DC143C" opacity="0.4"/><circle cx="70" cy="10" r="2.5" fill="%23DAA520" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23fire)"/></svg>');
    animation: fire 20s linear infinite;
    pointer-events: none;
}

@keyframes fire {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-color), #B22222);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--secondary-color);
}

/* About Section */
#about {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.3);
}

#about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--light-color);
}

.story {
    background: rgba(47, 27, 20, 0.6);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    margin: 2rem 0;
}

.story h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.feature {
    background: rgba(47, 27, 20, 0.6);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature p {
    color: var(--light-color);
}

/* Screenshots Section */
#screenshots {
    padding: 5rem 5%;
}

#screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.screenshot-item {
    background: rgba(47, 27, 20, 0.6);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary-color);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    margin-bottom: 1rem;
}

.screenshot-item p {
    color: var(--light-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Download Section */
#download {
    padding: 5rem 5%;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(47, 27, 20, 0.3) 100%);
    text-align: center;
}

#download h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.app-store-btn {
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.app-store-btn img {
    height: 60px;
}

.system-info,
.game-info {
    background: rgba(47, 27, 20, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    margin: 1rem 0;
    text-align: left;
}

.system-info h4,
.game-info h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.system-info ul,
.game-info ul {
    list-style: none;
    padding: 0;
}

.system-info li,
.game-info li {
    color: var(--light-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.system-info li::before,
.game-info li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Support Section */
#support {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#support h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.faq h3,
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 1rem 0;
    color: var(--light-color);
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.contact-form {
    background: rgba(47, 27, 20, 0.6);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    background: rgba(47, 27, 20, 0.6);
    border: 1px solid var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 222, 179, 0.5);
}

.form-group select option {
    background: var(--dark-color);
    color: var(--text-color);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.consent-group label {
    margin-top: 0.2rem;
    font-weight: normal;
}

.submit-btn {
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #B22222;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--light-color);
}

/* Privacy Section */
#privacy {
    padding: 5rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

#privacy h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.privacy-content {
    background: rgba(47, 27, 20, 0.6);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.privacy-content h3 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.privacy-content h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    color: var(--light-color);
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

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

/* Footer */
footer {
    background: rgba(47, 27, 20, 0.9);
    padding: 3rem 5%;
    border-top: 2px solid var(--secondary-color);
}

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

.contact-info h3,
.social-links h3,
.legal-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-icon {
    color: var(--light-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

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

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

.legal-info a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.copyright {
    color: var(--light-color);
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}