/* --- ПЕРЕМЕННЫЕ ДЛЯ 2 ТЕМ --- */
:root, body.theme-default {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-color-alt: #bbbbbb;
    --logo-shadow: rgba(255, 255, 255, 0.5);
    --btn-bg: transparent;
    --btn-border: #ffffff;
    --btn-text: #ffffff;
    --btn-hover-bg: #ffffff;
    --btn-hover-text: #000000;
    --card-bg: #0a0a0a;
    --card-border: #222222;
    --html-info-bg: rgba(20, 20, 20, 0.8);
    --html-info-border: #555555;
    --glow-color: rgba(255, 255, 255, 0.1);
}

body.theme-red {
    --bg-color: #120000;
    --text-color: #ffcccc;
    --text-color-alt: #ff9999;
    --logo-shadow: rgba(255, 0, 0, 0.5);
    --btn-bg: #2a0000;
    --btn-border: #ff3333;
    --btn-text: #ffcccc;
    --btn-hover-bg: #ff3333;
    --btn-hover-text: #120000;
    --card-bg: #220000;
    --card-border: #660000;
    --html-info-bg: rgba(40, 0, 0, 0.8);
    --html-info-border: #aa0000;
    --glow-color: rgba(255, 0, 0, 0.15);
}

/* --- БАЗОВЫЕ НАСТРОЙКИ --- */
body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.5s ease, color 0.3s ease;
    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
    display: none;
}

/* --- АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero, .about, .more-about, .team, footer, .source-codes {
    padding: 80px 20px;
    text-align: center;
    background: transparent !important;
}

.hero { padding-top: 150px; }

.logo {
    font-size: 5rem;
    margin: 0;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--logo-shadow);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color-alt);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.studio-description {
    font-size: 1.1rem;
    color: var(--text-color-alt);
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.about-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 15px 30px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--btn-text);
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
    min-width: 250px;
    display: inline-block;
}

.btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    box-shadow: 0 0 25px var(--btn-border);
}

.author-btn {
    border-color: #555;
    color: var(--text-color-alt);
}

.author-btn:hover {
    border-color: var(--btn-border);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
}

.more-about, .source-codes, .team { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.source-desc { font-size: 1.2rem; color: var(--text-color-alt); margin-bottom: 40px; }

.html-info {
    max-width: 800px;
    margin: 0 auto 40px auto;
    background: var(--html-info-bg);
    border: 1px dashed var(--html-info-border);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
}

.html-info h3 { margin-top: 0; color: var(--text-color); font-size: 1.5rem; margin-bottom: 15px; }
.html-info p { color: var(--text-color-alt); font-size: 1.1rem; line-height: 1.6; margin: 0; }
.html-info b { color: #ffd700; }
.promo-text { font-size: 1.3rem; font-weight: bold; margin-bottom: 30px; color: var(--text-color); }

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    width: 320px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-color);
    text-align: left;
    transition: 0.3s ease;
}

.team-card:hover {
    background: transparent;
    border-color: var(--btn-border);
    transform: translateY(-5px);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.info h3 { margin: 0 0 5px 0; font-size: 1.1rem; }
.info p { margin: 0; font-size: 0.85rem; color: var(--text-color-alt); }

.join-card { background: transparent; border: 1px dashed #444; }
.join-card:hover { border-color: var(--btn-border); }
.plus-icon { font-size: 2rem; font-weight: 300; color: var(--text-color); }
.join-text { color: var(--text-color-alt) !important; }

/* ЭКРАН ПРИВЕТСТВИЯ */
.intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #050505; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease-out;
}

.intro-screen {
    position: absolute; opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease; text-align: center;
}
.intro-screen.active { opacity: 1; visibility: visible; }
#intro-greeting h1 { font-size: 4rem; font-weight: 400; letter-spacing: 2px; color: #fff; }
#intro-lang h2 { font-size: 2rem; margin-bottom: 30px; font-weight: 300; color: #fff; }

.intro-buttons { display: flex; flex-direction: column; gap: 15px; }
.intro-buttons button {
    background: transparent; border: 1px solid #333; color: white;
    padding: 15px 40px; font-size: 1.2rem; cursor: pointer;
    border-radius: 8px; transition: 0.3s; font-family: inherit;
}
.intro-buttons button:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* Кнопка смены темы (ПРАВЫЙ УГОЛ) */
.theme-toggle-btn {
    position: fixed;
    bottom: 20px; right: 20px; width: 50px; height: 50px;
    background: rgba(0, 0, 0, 0.6); border: 1px solid var(--card-border);
    color: var(--text-color); border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 9998; backdrop-filter: blur(5px);
    transition: 0.3s;
}
.theme-toggle-btn svg { width: 24px; height: 24px; transition: 0.3s; }
.theme-toggle-btn:hover { background: var(--text-color); color: var(--bg-color); transform: scale(1.1); }

/* --- АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ --- */
@media screen and (max-width: 768px) {
    .logo { font-size: 3.5rem; letter-spacing: 2px; }
    .subtitle { font-size: 1rem; letter-spacing: 1px; }
    h2 { font-size: 2rem; }
    .hero, .about, .more-about, .team, footer, .source-codes { padding: 50px 15px; }
    .about-buttons { flex-direction: column; align-items: center; width: 100%; }
    .btn { width: 100%; max-width: 350px; min-width: unset; font-size: 1rem; }
    .team-card { width: 100%; box-sizing: border-box; }
    #intro-greeting h1 { font-size: 2.5rem; }
    #intro-lang h2 { font-size: 1.5rem; }
    .intro-buttons button { padding: 12px 30px; font-size: 1.1rem; }
    .html-info { padding: 20px; }
    .html-info h3 { font-size: 1.3rem; }
    .html-info p { font-size: 1rem; }
}