:root {
    --primary-light: #4da6ff;
    --primary: #1a73e8;
    --primary-dark: #0d47a1;
    --text-light: #333;
    --text-hover-light: #f5f5f5;
    --text-dark: #f5f5f5;
    --text-hover-dark: #333;
    --bg-light: #f5f5f5;
    --bg-dark: #121212;
    --card-light: #ffffff;
    --card-dark: #1e1e1e;
}

[data-theme="light"] {
    --text: var(--text-light);
    --text-hover: var(--text-hover-light);
    --bg: var(--bg-light);
    --card: var(--card-light);
}

[data-theme="dark"] {
    --text: var(--text-dark);
    --text-hover: var(--text-hover-dark);
    --bg: var(--bg-dark);
    --card: var(--card-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1 0 auto;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero {
    text-align: center;
    padding: 50px 0;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.pinned h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-small {
    display: inline-block;
    padding: 8px 8px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background-color: var(--primary-dark);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgba(102, 192, 244, 0.2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    transition: all 0.2s ease;
    border: 1px solid #66c0f4;
    box-shadow: 0 0 8px rgba(102, 192, 244, 0.3);
}

.tab-btn:hover {
    background-color: #66c0f4;
    color: #252525;
    box-shadow: 0 0 12px rgba(102, 192, 244, 0.5);
}

.tab-btn.active {
    background-color: #66c0f4;
    color: #1b2838;
    border-color: #1b2838;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgba(102, 192, 244, 0.2);
    color: var(--text);
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    transition: all 0.2s ease;
    border: 1px solid #66c0f4;
    box-shadow: 0 0 8px rgba(102, 192, 244, 0.3);
}

.theme-btn:hover {
    background-color: #66c0f4;
    color: var(--text-hover);
    box-shadow: 0 0 12px rgba(102, 192, 244, 0.5);
}

.theme-btn.active {
    background-color: #66c0f4;
    color: #0978ff;
    border-color: #1b2838;
}

footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Projects page styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.team-member {
    background-color: var(--card);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    background-color: var(--card);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.project-header h4 {
    color: var(--primary);
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.in-development {
    background-color: #ffc107;
    color: #333;
}

.not-developed {
    background-color: #f44336;
    color: white;
}

.completed {
    background-color: #4CAF50;
    color: white;
}

.abandoned {
    background-color: #9E9E9E;
    color: white;
}

.project-image-container {
    width: 100%;
    height: 256px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #383838;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.project-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.project-description {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    box-sizing: content-box;
}

.project-description.active {
    padding: 15px;
    max-height: 1000px;
}

.team-member-link {
    text-decoration: none;
    color: inherit;
}

.team-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.team-member-info {
    flex-grow: 1;
}

.team-member-info h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.team-username {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

.team-role {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.team-role.founder {
    background-color: #ff0000;
}

.team-role.deputy {
    background-color: #ee3a3a;
}

.team-role.developer {
    background-color: #44ff00;
}

.team-role.sound {
    background-color: #2d9dda;
}

.team-role.designer {
    background-color: #f8d120;
}

.team-role.screenwriter {
    background-color: #e98400;
}

.team-role.tester {
    background-color: #3b8722;
}

.team-role.web-dev {
    background-color: #00a1a7;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* News page styles */
.news-card {
    background-color: var(--card);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.news-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    color: white;
}

.news-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.news-content {
    padding: 20px;
}

.news-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

.markdown-content pre {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
}

.markdown-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: rgba(175, 184, 193, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
}

[data-theme="dark"] .markdown-content pre {
    background-color: #252525;
    border-color: #444;
}

[data-theme="dark"] .markdown-content code:not(pre code) {
    background-color: rgba(110, 118, 129, 0.4);
}

[data-theme="light"] .hljs {
    background: #f6f8fa;
    color: #24292e;
}

[data-theme="dark"] .hljs {
    background: #252525;
    color: #e6edf3;
}

[data-theme="dark"] {
    --code-keyword: #ff7b72;
    --code-string: #a5d6ff;
    --code-number: #79c0ff;
    --code-comment: #8b949e;
}

[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-selector-tag,
[data-theme="dark"] .hljs-literal {
    color: var(--code-keyword);
}

[data-theme="dark"] .hljs-string,
[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-section {
    color: var(--code-string);
}

[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-meta {
    color: var(--code-number);
}

[data-theme="dark"] .hljs-comment {
    color: var(--code-comment);
}

footer {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile Styles */
#leader-profile {
    margin-top: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-avatar-container {
    position: relative;
    width: 150px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.profile-role {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}


.profile-role.founder {
    background-color: #ff0000;
}

.profile-role.deputy {
    background-color: #ee3a3a;
}

.profile-role.developer {
    background-color: #44ff00;
}

.profile-role.sound {
    background-color: #2d9dda;
}

.profile-role.designer {
    background-color: #f8d120;
}

.profile-role.screenwriter {
    background-color: #e98400;
}

.profile-role.tester {
    background-color: #3b8722;
}

.profile-role.web-dev {
    background-color: #00a1a7;
}

.profile-info h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.profile-username {
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.1);
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Page Style */
.project-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--card);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.project-page-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.project-gallery {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg);
    border-radius: 4px;
    padding: 15px;
}

.main-media-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.main-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 120px;
    height: 68px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s;
    background-color: #000;
}

.thumbnail:hover, 
.thumbnail.active {
    border-color: var(--primary);
}

.media-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 80px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.modal-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-info {
    flex: 1;
    min-width: 300px;
    padding: 15px;
}

.project-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 20px;
}

.project-status {
    display: inline-block;
    padding: 5px 15px;
    background-color: #66c0f4;
    color: #2a475e;
    border-radius: 2px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.project-page-description {
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: rgba(102, 192, 244, 0.2);
    color: #66c0f4;
    text-decoration: none;
    border-radius: 2px;
    font-weight: bold;
    transition: all 0.2s;
    border: 1px solid #66c0f4;
    box-shadow: 0 0 8px rgba(102, 192, 244, 0.3);
}

.download-btn:hover {
    background-color: #66c0f4;
    color: #252525;
    box-shadow: 0 0 12px rgba(102, 192, 244, 0.5);
}

.download-btn.active {
    background-color: #66c0f4;
    color: #1b2838;
    border-color: #1b2838;
}

.discord-btn {
    background-color: #5865F2;
    color: white;
    border: 1px solid #5865F2;
}

.discord-btn:hover {
    background-color: #4752c4;
}

.versions-section {
    margin-top: 50px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.version-card {
    background-color: var(--bg);
    border-radius: 4px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0,0,0,0.1);
    cursor: pointer;
}

.version-title {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
}

.version-date {
    color: var(--text);
    opacity: 0.7;
    font-size: 0.9rem;
}

.version-expand {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.version-card.active .version-expand {
    transform: rotate(180deg);
}

.version-content {
    padding: 0;
    max-height: 0;
    overflow: auto;
    transition: max-height 0.3s ease-out;
}

.version-card.active .version-content {
    padding: 20px;
    max-height: 750px;
}

.version-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.version-changes h4 {
    color: var(--primary);
    margin: 15px 0 10px;
}

.version-changes ul {
    margin-left: 20px;
}

.version-changes li {
    margin-bottom: 8px;
}

.version-downloads {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.version-changes h4 {
    color: var(--primary);
    margin: 25px 0 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary);
    font-size: 1.2em;
}

.command-list {
    margin-left: 20px;
    margin-bottom: 25px;
    list-style-type: none;
    padding-left: 0;
}

.command-list li {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.command-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.command-list code {
    background-color: rgba(0,0,0,0.1);
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    margin-right: 8px;
    font-size: 0.9em;
}

[data-theme="dark"] .command-list li {
    background-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .command-list code {
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .modal-nav {
        width: 40px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
    }
    
    .main-media-container {
        height: 300px;
    }
    
    .thumbnail {
        width: 80px;
        height: 45px;
    }
}