:root {
    --bg-body: #F5F7FA;
    --bg-content: #ffffff;
    --text-main: #000000;
    --text-sub: #595959;
    --sidebar-bg: #1E2939;
    --sidebar-text: #ffffff;
    --accent: #FB6D3A;
    --lang-bg: #e2e8f0;
}

[data-theme="dark"] {
    --bg-body: #0F172A;
    --bg-content: #1E293B;
    --text-main: #F8FAFC;
    --text-sub: #CBD5E1;
    --sidebar-bg: #020617;
    --lang-bg: #334155;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    margin: 0;
    display: flex;
    justify-content: center;
    transition: background 0.3s ease;
}

/* --- THE FIX: Scaling the block --- */
.main {
    display: flex;
    flex-direction: row-reverse;
    width: 1200px;         /* Fixed width for design stability */
    min-height: 100vh;
    margin: 40px auto;
    box-shadow: 6px 6px 20px rgba(0,0,0,0.1);
    position: relative;
    background-color: var(--bg-content);
    zoom: 1.15;            /* This increases the scale by 15% globally */
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg);
    width: 370px;
    flex-shrink: 0;
}

.foto { width: 370px; display: block; }
.sidebar_titels { color: white; margin: 40px 0 20px 40px; font-size: 22px; font-weight: 700; }
.contact-box, .Tech_skills_box, .soft-skills-fix { margin-left: 40px; margin-right: 30px; }

/* Fixed Tech Skills Alignment */
.Tech_skills_list { padding: 0; margin: 0; list-style: none; }
.t_s_i { color: var(--accent); margin-bottom: 8px; position: relative; padding-left: 15px; }
.t_s_i::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.t_s_t { color: white; font-size: 14px; }

.contact-icon { color: white; margin-right: 12px; font-size: 14px; width: 18px; text-align: center; }
.con_link, .s_s_t { font-size: 14px; text-decoration: none; color: #8e949c; }
.s_s_t { color: white; line-height: 1.6; }

/* Main Content */
.m_content { padding: 105px 90px; flex-grow: 1; transition: background 0.3s ease; }
.about_name { font-size: 45px; color: var(--text-main); margin: 0; }
.about_position { font-size: 14px; color: var(--text-main); margin: 15px 0 25px 0; font-weight: 700; }
.about_desc, .work_list_item { font-size: 14px; line-height: 24px; color: var(--text-sub); }
.about_desk { font-size: 14px; color: var(--text-sub); margin-bottom: 10px; }
.tittle, .eduk_tit { font-size: 22px; color: var(--text-main); margin-top: 50px; margin-bottom: 20px; font-weight: 700; }
.worl_tit_list { font-size: 16px; color: var(--accent); margin: 10px 0; font-weight: 700; }
.per { font-size: 12px; color: #A8A8A8; margin-bottom: 10px; }
.work_list_stile { padding-left: 20px; }
.position_w { color: var(--accent); font-weight: 700; }

/* Controls */
.controls-wrapper {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 100;
}

.language-selector { display: flex; position: relative; background: var(--lang-bg); border-radius: 20px; padding: 2px; width: 140px; }
.language-selector input { display: none; }
.language-selector label { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 7px 0; cursor: pointer; z-index: 2; color: var(--text-sub); }
.lang-slider { position: absolute; width: 33.33%; height: calc(100% - 4px); background: var(--accent); border-radius: 18px; top: 2px; transition: 0.3s; z-index: 1; }
#en:checked ~ .lang-slider { left: 2px; }
#pl:checked ~ .lang-slider { left: calc(33.33% + 1px); }
#ua:checked ~ .lang-slider { left: calc(66.66% - 2px); }
#en:checked ~ label[for="en"], #pl:checked ~ label[for="pl"], #ua:checked ~ label[for="ua"] { color: white; }

.theme-container { display: flex; align-items: center; gap: 10px; }
.theme-icon { font-size: 14px; color: var(--text-sub); }
.theme-switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.theme-switch input { display: none; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(22px); }
