:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --accent-color: #ec4899;
    --success-color: #22c55e;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.cta-button:hover {
    background: var(--secondary-color);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
    overflow: hidden;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.lang-option:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.lang-option.active {
    background-color: #f3f4f6;
    color: var(--primary-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-text {
    max-width: 600px;
}

.hero-video {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.primary-button, .secondary-button {
    padding: 0.75rem 0.7rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.primary-button {
    background: white;
    color: var(--primary-color);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-light {
    background: var(--background-light);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--light-text);
    font-size: 0.875rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.guide-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.guide-list {
    list-style: none;
}

.guide-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.guide-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.faq-item strong {
    color: #333;
    font-weight: 600;
}

.faq-item em {
    font-style: italic;
    color: #666;
}

.faq-content {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 4rem;
}

.faq-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

/* FAQ Content */
.faq-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.faq-section {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-align: left;
}

/* Weapons Section */
.weapons-content {
    max-width: 900px;
    margin: 0 auto;
}

.collab-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.collab-table th,
.collab-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.collab-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

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

.collab-table tr:hover {
    background: #f8f8f8;
}

.wiki-link {
    text-align: center;
    margin-top: 1.5rem;
}

.wiki-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.wiki-link a:hover {
    text-decoration: underline;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Base Image Styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content Images */
.content-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.content-image {
    position: relative;
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: translateY(-5px);
}

.content-text {
    flex: 1;
}

/* Loading State */
.content-image.loading {
    background: #f3f4f6;
    min-height: 200px;
}

.content-image.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
}

/* Trending Grid */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trending-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trending-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.trending-item p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.trending-item .content-image {
    margin-top: 2rem;
}

/* Gameplay Grid */
.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gameplay-basics, .getting-started {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gameplay-basics h3,
.getting-started h3,
.gameplay-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.gameplay-list, 
.start-list {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 2rem;
}

.gameplay-list li, 
.start-list li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Level List */
.level-list {
    list-style: none;
    padding: 0;
}

.level-list li {
    background: var(--background-white);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Feature Table */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-table th, .feature-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.feature-table th {
    background: var(--primary-color);
    color: white;
}

/* Collab Table */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    background: var(--background-white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.collab-table {
    width: 100%;
    border-collapse: collapse;
}

.collab-table th, .collab-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.collab-table th {
    background: var(--primary-color);
    color: white;
}

/* Tips Content */
.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-item {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tip-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-item ul {
    list-style-position: inside;
    padding-left: 0;
}

.tip-item li {
    margin-bottom: 0.5rem;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-bottom: 2rem;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-control-btn {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-color 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Download Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.download-button {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.download-button.steam {
    background: #171a21;
    color: white;
}

.download-button.itch {
    background: #fa5c5c;
    color: white;
}

.download-button:hover {
    transform: translateY(-2px);
}

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

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--border-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.trending-item,
.gameplay-basics,
.getting-started,
.tip-item {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Loading States */
.hidden {
    display: none;
}
