/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-dark: #0a0a0a;
    --forest-green: #1a3d2e;
    --deep-blue: #0f1419;
    --fire-orange: #ff6b35;
    --danger-red: #dc2626;
    --moon-silver: #e5e7eb;
    --mystic-purple: #7c3aed;
    --success-green: #10b981;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Creepster', cursive;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--moon-silver);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--deep-blue) 50%, var(--forest-green) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--fire-orange);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--moon-silver);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--fire-orange);
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fire-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--fire-orange);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(26, 61, 46, 0.3) 0%, rgba(10, 10, 10, 0.8) 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="trees" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 0 L5 15 L15 15 Z" fill="rgba(26,61,46,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23trees)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--fire-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--moon-silver);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(229, 231, 235, 0.8);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--fire-orange), #e55a2b);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--fire-orange);
    border-color: var(--fire-orange);
}

.btn-secondary:hover {
    background: var(--fire-orange);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-item {
    background: rgba(26, 61, 46, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--fire-orange);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fire-orange);
    font-family: var(--font-display);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--moon-silver);
    margin-top: var(--spacing-xs);
}

/* Game Section */
.game-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.8) 0%, rgba(26, 61, 46, 0.3) 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--fire-orange);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.game-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.game-iframe-wrapper {
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--fire-orange);
    aspect-ratio: 16/9;
    min-height: 480px;
}

/* Game Launcher Overlay */
.game-launcher {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15,20,25,0.9) 0%, rgba(26,61,46,0.6) 100%), url('images/1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.launcher-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    background: rgba(0,0,0,0.35);
}

.launcher-text {
    text-align: center;
}

.launcher-title {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--fire-orange);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.launcher-sub {
    display: block;
    color: var(--moon-silver);
    opacity: 0.85;
}

.launcher-btn {
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
}

.game-info {
    background: rgba(26, 61, 46, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.game-info h3 {
    color: var(--fire-orange);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.game-instructions {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.game-instructions li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    color: var(--moon-silver);
}

.game-instructions li:last-child {
    border-bottom: none;
}

.game-instructions strong {
    color: var(--fire-orange);
}

.game-controls h4 {
    color: var(--fire-orange);
    margin-bottom: var(--spacing-md);
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(10, 10, 10, 0.5);
    border-radius: var(--radius-sm);
}

.key {
    background: var(--fire-orange);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.action {
    color: var(--moon-silver);
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(26, 61, 46, 0.3) 0%, rgba(15, 20, 25, 0.8) 100%);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.lead {
    font-size: 1.3rem;
    color: var(--fire-orange);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1.1rem;
    color: rgba(229, 231, 235, 0.9);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: rgba(26, 61, 46, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--fire-orange);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: var(--fire-orange);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: rgba(229, 231, 235, 0.8);
    line-height: 1.6;
}

/* Guide Section */
.guide-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.8) 0%, rgba(26, 61, 46, 0.3) 100%);
}

.guide-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    color: var(--moon-silver);
    border: 2px solid rgba(255, 107, 53, 0.3);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--fire-orange);
    color: white;
    border-color: var(--fire-orange);
    box-shadow: var(--shadow-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.guide-card {
    background: rgba(26, 61, 46, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--fire-orange);
}

.guide-card h3 {
    color: var(--fire-orange);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.guide-card ul {
    list-style: none;
}

.guide-card li {
    padding: var(--spacing-xs) 0;
    color: rgba(229, 231, 235, 0.9);
    position: relative;
    padding-left: var(--spacing-md);
}

.guide-card li::before {
    content: '•';
    color: var(--fire-orange);
    position: absolute;
    left: 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.achievement-card {
    background: rgba(26, 61, 46, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--fire-orange);
}

.achievement-card h3 {
    color: var(--fire-orange);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
}

.achievement-card ul {
    list-style: none;
}

.achievement-card li {
    padding: var(--spacing-xs) 0;
    color: rgba(229, 231, 235, 0.9);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.achievement-card li:last-child {
    border-bottom: none;
}

.achievement-card strong {
    color: var(--fire-orange);
}

/* Community Section */
.community-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(26, 61, 46, 0.3) 0%, rgba(15, 20, 25, 0.8) 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.review-card {
    background: rgba(26, 61, 46, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--fire-orange);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.reviewer-name {
    color: var(--fire-orange);
    font-weight: 600;
    display: block;
}

.reviewer-role {
    color: rgba(229, 231, 235, 0.7);
    font-size: 0.9rem;
    display: block;
}

.review-rating {
    font-size: 1.2rem;
}

.review-text {
    color: rgba(229, 231, 235, 0.9);
    line-height: 1.6;
    font-style: italic;
}

.community-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(26, 61, 46, 0.3);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--fire-orange);
}

.stat-card .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--fire-orange);
    font-family: var(--font-display);
}

.stat-card .stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--moon-silver);
    margin-top: var(--spacing-xs);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.8) 0%, rgba(26, 61, 46, 0.3) 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 61, 46, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--fire-orange);
    box-shadow: var(--shadow-glow);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: var(--spacing-lg);
    color: var(--moon-silver);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--fire-orange);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--fire-orange);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: rgba(229, 231, 235, 0.9);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    color: var(--fire-orange);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(229, 231, 235, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(229, 231, 235, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--fire-orange);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    color: rgba(229, 231, 235, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .game-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .game-iframe-wrapper {
        min-height: 300px;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .community-stats {
        flex-direction: column;
        align-items: center;
    }

    .guide-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--fire-orange);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --moon-silver: #ffffff;
        --fire-orange: #ff8800;
    }
}
