:root {
    color-scheme: light dark;
    --bg: #120a1e;
    --text: #f2f2f2;
    --muted: #d4d4d4;
    --link: #a855f7;
    --border: #2a2a2a;
    --section-border: #343434;
    --chip-bg: #1a1224;
    --chip-border: #a855f7;
    --chip-text: #c084fc;
    --chip-hover-bg: #241630;
    --chip-hover-border: #f97316;
    --footer-text: #9a9a9a;
    --subtle: #a3a3a3;
    --job-desc: #b0b0b0;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #eadcff;
    --text: #1a1a1a;
    --muted: #333;
    --link: #7c3aed;
    --border: #e1e1e6;
    --section-border: #d7d7de;
    --chip-bg: #f2ecfb;
    --chip-border: #7c3aed;
    --chip-text: #7c3aed;
    --chip-hover-bg: #efe3fb;
    --chip-hover-border: #f97316;
    --footer-text: #555;
    --subtle: #666;
    --job-desc: #555;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg: #eadcff;
        --text: #1a1a1a;
        --muted: #333;
        --link: #7c3aed;
        --border: #e1e1e6;
        --section-border: #d7d7de;
        --chip-bg: #f2ecfb;
        --chip-border: #7c3aed;
        --chip-text: #7c3aed;
        --chip-hover-bg: #efe3fb;
        --chip-hover-border: #f97316;
        --footer-text: #555;
        --subtle: #666;
        --job-desc: #555;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main_container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0px 20px;
}

.header {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
    width: 100%;
}

.header .logo {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--text);
    display: block;
    text-align: center;
    margin: 40px 0 0 0;
    background: none;
    padding: 0;
    height: auto;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-style: normal;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--section-border);
    background: transparent;
    color: var(--text);
    font-size: 0.95em;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 0;
}

.theme-toggle:hover {
    background: var(--chip-bg);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
}

.theme-icon {
    font-size: 1.1em;
}

:root[data-theme="light"] .theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
    display: none;
}

:root:not([data-theme]) .theme-icon-sun {
    display: none;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-icon-sun {
        display: inline-block;
    }

    :root:not([data-theme]) .theme-icon-moon {
        display: none;
    }
}

.section {
    margin-bottom: 50px;
    padding: 0;
}

.section h2 {
    font-size: 1.8em;
    margin: 60px 0 30px 0;
    font-weight: 600;
    color: var(--link);
    border-bottom: 2px solid var(--link);
    padding-bottom: 15px;
}

.section p {
    margin: 0 0 20px 0;
    line-height: 1.8;
    font-size: 1.05em;
    text-align: left;
}

.skills {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.intro {
    margin-bottom: 40px;
}

.intro p {
    font-size: 1.05em;
    color: var(--muted);
    margin-bottom: 20px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
    justify-content: center;
}

.skill-tag {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--link);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
    font-weight: 500;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
    font-size: 0.9em;
    color: var(--footer-text);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    flex: 1;
}

.footer-left p {
    margin: 0;
    color: var(--footer-text);
}

.footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-icon {
    font-size: 1.4em;
    color: var(--link);
    transition: transform 0.2s, opacity 0.2s;
}

.footer-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
    text-decoration: none;
}

@media (max-width: 768px) {
    .main_container {
        padding: 20px 15px;
    }
    .section h2 {
        font-size: 1.5em;
    }
}
