:root {
    --primary-color: #FF8C42;
    --secondary-color: #FFD23F;
    --success-color: #FFA726;
    --warning-color: #f44336;
    --dark-bg: #2d1b0e;
    --light-bg: #FFF8E7;
    --card-bg: #ffffff;
    --text-primary: #4a3728;
    --text-secondary: #8b7355;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(255, 140, 66, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
}

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

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.language-switcher button {
    padding: 8px 16px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Sections */
section {
    padding: 60px 20px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.intro {
    background: white;
    text-align: center;
}

.intro p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    background: white;
}

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

.projects.partial-open-source {
    background: #FFF4E0;
}

.projects p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: left;
}

.project-card .project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-card a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.project-card a:hover {
    background: var(--secondary-color);
}

/* Stores Section */
.stores {
    background: white;
}

.store-disclaimer {
    background: #fff3cd;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.store-disclaimer p {
    color: #856404;
    font-weight: 500;
    margin: 0;
}

.store-list {
    margin-bottom: 40px;
}

.store-list h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.whitelist h3 {
    color: var(--success-color);
}

.blacklist h3 {
    color: var(--warning-color);
}

.store-list>p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: left;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.store-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.store-card:hover {
    transform: translateY(-3px);
}

.whitelist .store-card {
    border-left: 4px solid var(--success-color);
}

.blacklist .store-card {
    border-left: 4px solid var(--warning-color);
}

.store-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.store-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.store-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.store-card a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

footer h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

footer p {
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-item span {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    .language-switcher {
        position: static;
        justify-content: center;
        margin: 10px;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .project-grid,
    .store-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}