/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #1e4620;
}

/* Header and Navigation */
header {
    background-color: #1e4620;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #3a7d44;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1e4620;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4a8d54;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(135deg, #1e4620, #2a5a3a);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4a8d54;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #3a7d44;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #4a8d54;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-features li {
    color: #4a8d54;
    font-size: 1.2rem;
    font-weight: 500;
    background: none;
    border: none;
    margin: 0;
    padding: 0.2rem 0;
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background-color: #1e4620;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

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

.feature-card {
    background: #2a5a3a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid #3a7d44;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: #3a7d44;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #4a8d54;
}

/* New Content Sections */
.about-preferans {
    padding: 5rem 1rem;
    background-color: #2a5a3a;
}

.about-preferans h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    font-size: 2.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-content h3 {
    color: #4a8d54;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.game-features {
    padding: 5rem 1rem;
    background-color: #1e4620;
}

.game-features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    font-size: 2.5rem;
}

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

.feature-item {
    background: #2a5a3a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid #3a7d44;
}

.feature-item:hover {
    transform: translateY(-5px);
    background-color: #3a7d44;
}

.feature-item h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: #4a8d54;
    line-height: 1.6;
}

.how-to-play {
    padding: 5rem 1rem;
    background-color: #2a5a3a;
}

.how-to-play h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    font-size: 2.5rem;
}

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

.step {
    background: #1e4620;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 1px solid #3a7d44;
    text-align: center;
}

.step h3 {
    color: #4a8d54;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step p {
    color: #fff;
    line-height: 1.6;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #4a8d54;
    max-width: 600px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background-color: #1e4620;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem;
    border: 1px solid #3a7d44;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #2a5a3a;
    color: #fff;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #4a8d54;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 1rem;
    background-color: #3a7d44;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #4a8d54;
}

/* Footer */
footer {
    background-color: #1e4620;
    color: #fff;
    text-align: center;
    padding: 2rem;
    border-top: 2px solid #3a7d44;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e4620;
}

::-webkit-scrollbar-thumb {
    background: #3a7d44;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a8d54;
}

/* Language Switcher */
.language-switcher {
    margin-left: 2rem;
    position: relative;
}

.language-switcher select {
    background-color: #fff;
    color: #1e4620;
    border: none;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e4620' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
    min-width: 120px;
}

.language-switcher select:hover {
    background-color: #f0f0f0;
}

.language-switcher select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 1rem;
    }
    .logo {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }
    .hamburger {
        display: block;
        order: 2;
        margin: 0 0.5rem;
        flex: 0 0 auto;
    }
    .language-switcher {
        order: 3;
        margin: 0;
        flex: 0 0 auto;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #1e4620;
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
        display: flex;
        z-index: 2000;
        gap: 0;
        align-items: flex-start;
    }
    .nav-links li {
        margin: 1rem 0;
        width: 100%;
    }
    .nav-links a {
        text-align: left;
        width: 100%;
        display: block;
        padding-left: 0;
    }
    .nav-links.active {
        right: 0;
        z-index: 2000;
    }
    .hamburger.active {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .about-preferans h2,
    .game-features h2,
    .how-to-play h2 {
        font-size: 2rem;
    }
    .about-content {
        padding: 0 1rem;
    }
    .feature-item,
    .step {
        margin: 0 1rem;
    }
}

/* Overlay for mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.menu-overlay.active {
    display: block;
}

.nav-links.active {
    z-index: 100;
}

.screenshots-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}
.screenshots-gallery img {
    max-width: 90vw;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 2px solid #3a7d44;
    background: #fff;
}

.screenshots h2 {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
}

.screenshots-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.25rem;
    height: auto;
    min-height: 220px;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.screenshots-carousel .carousel-image {
    max-width: 90vw;
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 2px solid #3a7d44;
    background: #fff;
    transition: opacity 0.3s;
}
.screenshots-carousel .carousel-btn {
    display: none;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a7d44;
    opacity: 0.4;
    transition: opacity 0.2s, background 0.2s;
    cursor: pointer;
}
.carousel-indicators .indicator.active {
    background: #4a8d54;
    opacity: 1;
}
