:root {
    /* Темная тема (по умолчанию) */
    --bg-primary: #0c0c0c;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-gradient: linear-gradient(135deg, #0c0c0c, #414141, #8a8a8a);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-accent: #bb86fc;
    --text-accent2: #03dac6;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --control-bg: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] {
    /* Светлая тема */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --bg-gradient: linear-gradient(135deg, #e0e0e0, #a8a8a8, #787878);
    --text-primary: #333333;
    --text-secondary: #555555;
    --text-accent: #7c4dff;
    --text-accent2: #00b8a9;
    --card-bg: rgba(0, 0, 0, 0.05);
    --card-border: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --control-bg: rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.3s ease;
}

/* Панель управления */
.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.theme-btn, .lang-btn {
    background: var(--control-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    color: var(--text-primary);
}

.theme-btn:hover, .lang-btn:hover {
    transform: scale(1.1);
    background: var(--card-bg);
}

.center-block {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(0.7);
}

.parallax-bg.active {
    opacity: 1;
}

[data-theme="light"] .parallax-bg {
    filter: brightness(1.1) contrast(0.9);
}

.center-block h1 {
    font-size: 3.5em;
    margin: 0 0 20px 0;
    color: var(--text-accent);
    text-shadow: 0 0 30px rgba(187, 134, 252, 0.7);
    transform: translateY(0);
    transition: transform 0.5s ease-out;
}

.center-block h3 {
    font-size: 1.4em;
    margin: 0 0 40px 0;
    color: var(--text-primary);
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
    transform: translateY(0);
    transition: transform 0.5s ease-out 0.1s;
}

/* Кнопка скачивания в баннере */
.center-block .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--text-accent), var(--text-accent2));
    color: #000000;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(187, 134, 252, 0.4);
    border: none;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.5s ease-out 0.2s;
    z-index: 2;
}

.center-block .download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(187, 134, 252, 0.6);
    background: linear-gradient(135deg, var(--text-accent2), var(--text-accent));
}

.center-block .download-btn:active {
    transform: translateY(-1px);
}

/* Эффект появления при скролле */
.center-block.scrolled h1 {
    transform: translateY(-50px);
    opacity: 0.7;
}

.center-block.scrolled h3 {
    transform: translateY(-70px);
    opacity: 0.5;
}

.center-block.scrolled .download-btn {
    transform: translateY(-90px);
    opacity: 0.3;
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Эффект глубины для текста */
.center-block h1 {
    text-shadow: 
        0 0 20px rgba(187, 134, 252, 0.8),
        0 0 40px rgba(187, 134, 252, 0.4),
        0 0 60px rgba(187, 134, 252, 0.2);
}

/* Плавное появление при загрузке */
.center-block h1,
.center-block h3,
.center-block .download-btn {
    animation: fadeInUp 1.5s ease-out;
}

.center-block h3 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.center-block .download-btn {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект свечения при наведении */
.center-block h1:hover {
    text-shadow: 
        0 0 30px rgba(187, 134, 252, 1),
        0 0 60px rgba(187, 134, 252, 0.6),
        0 0 90px rgba(187, 134, 252, 0.3);
    transition: text-shadow 0.3s ease;
}

/* Стили для плавающих частиц */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

a {
    transition: all 0.3s ease;
}

/* Эффект для кнопки скачивания при нажатии */
.download-btn:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* Анимация загрузки при переходе */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition.active {
    opacity: 1;
}