@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

:root {
    --bg-body: #0e0e10;
    --bg-surface: rgba(9, 9, 11, 0.6);
    --bg-surface-strong: rgba(9, 9, 11, 0.92);
    --bg-chip: #18181b;
    --border-subtle: rgba(39, 39, 42, 0.85);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
}

html.light-theme {
    --bg-body: #f4f4f7;
    --bg-surface: rgba(255, 255, 255, 0.88);
    --bg-surface-strong: rgba(255, 255, 255, 0.96);
    --bg-chip: #f4f4f5;
    --border-subtle: rgba(228, 228, 231, 0.95);
    --text-primary: #18181b;
    --text-secondary: #52525b;
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header,
footer,
.theme-game-card,
.theme-project-card,
.theme-secret-card,
.theme-pc-content,
.theme-pc-spec,
.theme-nav-pill,
.theme-chip,
.theme-carousel-btn {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* ==========================================
   СВЕТЛАЯ ТЕМА — ОБЩИЙ КАРКАС
   ========================================== */
html.light-theme body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}
html.light-theme .theme-bg-glow-1 {
    background-color: rgba(145, 70, 255, 0.14);
}
html.light-theme .theme-bg-glow-2 {
    background-color: rgba(99, 102, 241, 0.12);
}
html.light-theme .theme-header {
    background-color: rgba(255, 255, 255, 0.78);
    border-bottom-color: rgba(228, 228, 231, 0.9);
}
html.light-theme .theme-logo-main {
    background-image: linear-gradient(to right, #18181b, #3f3f46, #71717a);
}
html.light-theme a:hover .theme-logo-main {
    background-image: linear-gradient(to right, #9146FF, #ec4899);
}
html.light-theme .theme-logo-sub {
    color: #71717a;
}
html.light-theme a:hover .theme-logo-sub {
    color: #18181b;
}

/* Навигация */
html.light-theme .theme-nav-pill {
    background-color: rgba(244, 244, 245, 0.88);
    border-color: var(--border-subtle);
}
html.light-theme .theme-nav-item {
    color: #3f3f46;
}
html.light-theme .theme-nav-item:hover {
    background-color: rgba(228, 228, 231, 0.85);
}
html.light-theme .theme-nav-label {
    background-image: linear-gradient(to right, #27272a, #52525b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
html.light-theme .theme-nav-item:hover .theme-nav-label-pc {
    background-image: linear-gradient(to right, #65a30d, #06b6d4);
}
html.light-theme .theme-nav-item:hover .theme-nav-label-projects {
    background-image: linear-gradient(to right, #f59e0b, #ec4899);
}
html.light-theme .theme-nav-item:hover .theme-nav-label-experiments {
    background-image: linear-gradient(to right, #9146FF, #3b82f6);
}
html.light-theme .theme-nav-item:hover .theme-nav-icon-pc {
    color: #16a34a;
}
html.light-theme .theme-nav-item:hover .theme-nav-icon-projects {
    color: #ec4899;
}
html.light-theme .theme-nav-item:hover .theme-nav-icon-experiments {
    color: #9146FF;
}
html.light-theme #nav-pc.bg-brand-purple .theme-nav-label {
    background-image: linear-gradient(to right, #ffffff, #ffffff);
}
html.light-theme #nav-pc.bg-brand-purple:hover .theme-nav-label-pc {
    background-image: linear-gradient(to right, #bef264, #67e8f9);
}
html.light-theme .theme-nav-active {
    background-color: rgba(228, 228, 231, 0.9);
}
html.light-theme .theme-nav-active .theme-nav-label-projects {
    background-image: linear-gradient(to right, #f59e0b, #ec4899);
}
html.light-theme .theme-nav-active .theme-nav-label-experiments {
    background-image: linear-gradient(to right, #9146FF, #3b82f6);
}

/* Соцсети и переключатель темы */
html.light-theme .theme-social-link {
    color: #52525b;
}
html.light-theme .theme-social-twitch:hover {
    color: #9146FF;
}
html.light-theme .theme-social-telegram:hover {
    color: #229ED9;
}
html.light-theme .theme-social-discord:hover {
    color: #5865F2;
}
html.light-theme .theme-social-youtube:hover {
    color: #FF0000;
}
html.light-theme .theme-social-tiktok:hover {
    color: #00b8c4;
}
html.light-theme .theme-divider {
    background-color: #e4e4e7;
}
html.light-theme .theme-toggle-btn {
    background-color: #f4f4f5;
    border-color: #e4e4e7;
    color: #3f3f46;
}
html.light-theme .theme-toggle-btn:hover {
    background-color: #ede9fe;
    border-color: rgba(145, 70, 255, 0.45);
    color: #9146FF;
}
html.light-theme .theme-mobile-menu {
    background-color: rgba(255, 255, 255, 0.98);
    border-color: var(--border-subtle);
    box-shadow: 0 20px 45px -10px rgba(24, 24, 27, 0.14);
}
html.light-theme .theme-mobile-social:hover {
    background-color: rgba(228, 228, 231, 0.7);
}

/* ==========================================
   СВЕТЛАЯ ТЕМА — ГЛАВНАЯ (HERO)
   ========================================== */
html.light-theme .theme-hero {
    border-bottom-color: #e4e4e7;
}
html.light-theme .theme-hero-bg {
    background-color: #f4f4f7;
}
html.light-theme .theme-hero-grad-1 {
    background-image: linear-gradient(to bottom right, rgba(145, 70, 255, 0.18), rgba(244, 244, 247, 0.9), #f4f4f7);
    opacity: 1;
}
html.light-theme .theme-hero-video {
    mix-blend-mode: multiply;
    opacity: 0.25;
}
html.light-theme .theme-hero-grad-2 {
    background-image: linear-gradient(to bottom, rgba(244, 244, 247, 0.2), rgba(244, 244, 247, 0.55), #f4f4f7);
}
html.light-theme .theme-hero-title {
    color: #18181b;
    text-shadow: 0 10px 30px rgba(145, 70, 255, 0.15);
}
html.light-theme .theme-hero-sub {
    color: #3f3f46;
    text-shadow: none;
}
html.light-theme .theme-hero-cta {
    background-color: #9146FF;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.35);
}
html.light-theme .theme-hero-cta:hover {
    background-color: #7c3aed;
    box-shadow: 0 14px 36px rgba(145, 70, 255, 0.45);
}
html.light-theme .theme-hero-controls {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: #e4e4e7;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
html.light-theme .theme-hero-controls button {
    color: #52525b;
}
html.light-theme .theme-hero-controls button:hover {
    color: #18181b;
}
html.light-theme .theme-hero-track {
    background-color: #d4d4d8;
}
html.light-theme #hero-progress-bar {
    background-color: #9146FF;
}

/* ==========================================
   СВЕТЛАЯ ТЕМА — ПРОЕКТЫ И ЭКСПЕРИМЕНТЫ
   ========================================== */
html.light-theme .theme-section-title {
    background-image: linear-gradient(to right, #18181b, #52525b);
}
html.light-theme .theme-project-card {
    background-color: var(--bg-surface);
    border-color: var(--border-subtle);
    box-shadow: 0 20px 45px -15px rgba(24, 24, 27, 0.08);
}
html.light-theme .theme-project-card:hover {
    border-color: rgba(145, 70, 255, 0.45);
    box-shadow: 0 24px 50px -15px rgba(145, 70, 255, 0.16);
}
html.light-theme .theme-project-title {
    color: #18181b;
}
html.light-theme .theme-project-desc {
    color: #52525b;
}
html.light-theme .theme-preview-mask {
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.72));
}
html.light-theme .theme-vrazra-text {
    background-image: linear-gradient(to bottom right, #18181b, #3f3f46, #71717a);
}
html.light-theme .theme-game-card {
    background-color: var(--bg-surface);
    border-color: var(--border-subtle);
    box-shadow: 0 20px 45px -15px rgba(24, 24, 27, 0.1);
}
html.light-theme .theme-chip {
    background-color: var(--bg-chip);
    border-color: #e4e4e7;
    color: #52525b;
}
html.light-theme .theme-secret-card {
    background-color: rgba(255, 255, 255, 0.65);
    border-color: #d4d4d8;
    box-shadow: 0 15px 35px -15px rgba(24, 24, 27, 0.06);
}
html.light-theme .theme-secret-circle {
    border-color: #d4d4d8;
}
html.light-theme .theme-secret-title {
    color: #3f3f46;
}
html.light-theme .theme-carousel-btn {
    background-color: #ffffff;
    border-color: #e4e4e7;
    color: #52525b;
}
html.light-theme .theme-carousel-btn:hover {
    background-color: #f4f4f5;
    color: #18181b;
}

/* ==========================================
   СВЕТЛАЯ ТЕМА — МОДАЛЬНОЕ ОКНО ПК И ФУТЕР
   ========================================== */
html.light-theme .theme-pc-content {
    background-color: var(--bg-surface-strong);
    border-color: #e4e4e7;
    box-shadow: 0 25px 70px rgba(145, 70, 255, 0.15);
}
html.light-theme .theme-pc-divider {
    border-color: #e4e4e7;
}
html.light-theme .theme-pc-title {
    background-image: linear-gradient(to right, #18181b, #52525b);
}
html.light-theme .theme-pc-sub {
    color: #52525b;
}
html.light-theme .theme-pc-close {
    background-color: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
html.light-theme .theme-pc-spec {
    background-color: #f8fafc;
    border-color: #e4e4e7;
}
html.light-theme .theme-pc-spec h3 {
    color: #18181b;
}
html.light-theme .theme-pc-spec p {
    color: #52525b;
}
html.light-theme .theme-footer {
    background-color: rgba(255, 255, 255, 0.65);
    border-top-color: #e4e4e7;
    color: #71717a;
}

/* ==========================================
   АНИМАЦИИ И УТИЛИТЫ
   ========================================== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px) rotate(-1deg); }
    75% { transform: translateX(4px) rotate(1deg); }
}
.shake-element {
    animation: shake 0.15s ease-in-out infinite;
}

@keyframes float-up {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-50px) scale(0.8); opacity: 0; }
}
.damage-pop {
    animation: float-up 0.6s ease-out forwards;
}

.page-fade {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.page-hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}