@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Lato:wght@400;700&display=swap');

:root {
    --primary-color: #1a472a;
    --secondary-color: #2d5a3d;
    --accent-color: #ffd700;
    --accent-alt: #ff6b6b;
    --background-color: #0f1419;
    --text-color: #e8f5e9;
    --card-bg: #1e3a2f;
    --heading-font: 'Press Start 2P', cursive;
    --body-font: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-bottom: 3px solid var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

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

nav a:hover::after {
    width: 100%;
}

.lang-selector {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-selector:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

.lang-selector option {
    background: var(--primary-color);
    color: var(--text-color);
}

main {
    padding-top: 80px;
}

section {
    padding: 4rem 2rem;
    text-align: center;
}

#hero {
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.8) 0%, rgba(45, 90, 61, 0.8) 100%), url('https://i.pinimg.com/originals/a8/1d/17/a81d1761d4b0a75355653139b1a3de3a.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px rgba(255, 215, 0, 0.3), 6px 6px 0px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    color: #000;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 3px solid #000;
    box-shadow: 0 4px 0px #000;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #000;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #000;
}

h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

#about {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(30, 58, 47, 0.5) 100%);
    border-top: 3px dashed var(--accent-color);
    border-bottom: 3px dashed var(--accent-color);
}

#about h2 {
    font-size: 2rem;
}

#about h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-alt);
}

#about p {
    max-width: 900px;
    margin: 1rem auto;
    font-size: 1.05rem;
}

#features {
    background: linear-gradient(180deg, rgba(30, 58, 47, 0.3) 0%, var(--card-bg) 100%);
    overflow: hidden;
}

.gameplay-carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.carousel-slide {
    display: none;
    animation: fadeSlide 0.6s ease;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gameplay-content {
    display: flex;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(45, 90, 61, 0.8) 100%);
    border: 3px solid var(--accent-color);
    border-radius: 16px;
    overflow: hidden;
    min-height: 450px;
}

.gameplay-image-wrapper {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background: #000;
}

.gameplay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide.active .gameplay-image {
    animation: zoomIn 0.8s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.gameplay-info {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.9) 0%, rgba(45, 90, 61, 0.7) 100%);
}

.gameplay-info h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.gameplay-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    color: #000;
    border: 3px solid #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 10;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-color);
}

.dot:hover {
    background: var(--accent-alt);
    transform: scale(1.2);
}

@media (max-width: 968px) {
    .gameplay-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .gameplay-image-wrapper {
        min-height: 300px;
    }
    
    .gameplay-info {
        padding: 2rem;
    }
    
    .gameplay-carousel {
        padding: 0 50px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

#feature-highlights {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(30, 58, 47, 0.5) 100%);
    border-top: 3px dashed var(--accent-alt);
}

.feature-showcase {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.feature-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.feature-tab-btn {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.8) 0%, rgba(30, 58, 47, 0.6) 100%);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--body-font);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.feature-tab-btn:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.2);
}

.feature-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    color: #000;
    border-color: var(--accent-color);
    transform: translateX(10px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.feature-display {
    flex: 1;
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.8) 0%, rgba(30, 58, 47, 0.6) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    min-height: 450px;
}

.feature-panel {
    display: none;
    animation: slideInRight 0.4s ease;
}

.feature-panel.active {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-panel h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.feature-badge {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    color: var(--text-color);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    border: 2px solid var(--accent-alt);
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: default;
}

.feature-badge:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .feature-showcase {
        flex-direction: column;
    }
    
    .feature-tabs-vertical {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 100%;
    }
    
    .feature-tab-btn {
        flex: 1;
        min-width: 150px;
        text-align: center;
    }
    
    .feature-display {
        padding: 1.5rem;
    }
    
    .feature-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

#controls {
    background: linear-gradient(180deg, rgba(30, 58, 47, 0.3) 0%, var(--card-bg) 100%);
    border-top: 3px dashed var(--accent-color);
}

.controls-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.8) 0%, rgba(30, 58, 47, 0.6) 100%);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--body-font);
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.tab-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.tab-content-wrapper {
    background: linear-gradient(135deg, rgba(45, 90, 61, 0.8) 0%, rgba(30, 58, 47, 0.6) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.tab-intro {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--accent-alt);
}

.control-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-alt);
    transition: all 0.3s ease;
}

.control-item:hover {
    border-left-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}

.key-display {
    display: inline-block;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--heading-font);
    font-size: 0.85rem;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 0px rgba(0,0,0,0.5), inset 0 2px 0px rgba(255,255,255,0.1);
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
}

.control-item p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.control-note {
    background: rgba(255, 215, 0, 0.1);
    border: 1px dashed var(--accent-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.control-note p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .tab-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .tab-content-wrapper {
        padding: 1.5rem;
    }
    
    .key-display {
        font-size: 0.75rem;
    }
}

footer {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
    border-top: 3px solid var(--accent-color);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    nav a {
        margin: 0 0.8rem;
        font-size: 0.8rem;
    }
}