/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #58a6ff, #79c0ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bio {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.bio a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bio a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* Developers Grid */
.developers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.developer {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
    animation-fill-mode: forwards;
}

.developer:nth-child(1) { animation-delay: 0.4s; }
.developer:nth-child(2) { animation-delay: 0.5s; }
.developer:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.developer:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

/* GitHub Icon */
.github-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
    background: #21262d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-icon .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.developer:hover .github-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

.developer:hover .github-icon .avatar {
    transform: scale(1.05);
}

.developer-name {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: #f0f6fc;
}

.developer-role {
    font-size: 0.95rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.github-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: #58a6ff;
}

/* Back Button */
.back-to-game {
    margin-top: 3rem;
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-game:hover {
    background: #30363d;
    border-color: #58a6ff;
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.lang-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn:hover {
    border-color: #58a6ff;
    color: #c9d1d9;
}

.lang-btn.active {
    background: #58a6ff;
    border-color: #58a6ff;
    color: #ffffff;
}

/* Game Links */
.game-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

.game-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.game-link.primary {
    background: linear-gradient(45deg, #58a6ff, #79c0ff);
    color: #ffffff;
}

.game-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
}

.game-link.secondary {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
}

.game-link.secondary:hover {
    background: #30363d;
    border-color: #58a6ff;
    transform: translateY(-2px);
}

/* Back Links */
.back-links {
    margin-top: 3rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .bio {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .game-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .game-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .developers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .developer {
        padding: 1.5rem;
    }
    
    .github-icon {
        width: 60px;
        height: 60px;
    }
    
    .developer-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .developer {
        padding: 1rem;
    }
    
    .github-icon {
        width: 50px;
        height: 50px;
    }
}
