/* Vacfen portfolio — all visual styles live here. */
:root {
    color-scheme: dark;
    --bg: #0c1015;
    --bg-alt: #11171c;
    --panel: #161c23;
    --panel-header: #1b222b;
    --text: #f4f6f8;
    --muted: #9ca5b2;
    --accent: #70cdc6;
    --accent-strong: #50bdb6;
    --accent-tint: rgba(112, 205, 198, .11);
    --line: rgba(210, 223, 232, .12);
    --soft-shadow: 0 24px 75px rgba(0, 0, 0, .28);
    --code-text: #bec7d1;
    --syntax-blue: #82aaff;
    --syntax-purple: #c99cfc;
    --syntax-green: #9bd6a3;
    --ide-rail: #111920;
    --ide-tab: #1a252e;
    --ide-status: #167e80;
    --button-ink: #071b1c;
    --active-language-ink: #081a1e;
}

/* Periwinkle / lavender palette */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #A9D6E5;
    --bg-alt: #89C2D9;
    --panel: #CCDBFD;
    --panel-header: #C1D3FE;
    --text: #111827;
    --muted: #2D3850;
    --accent: #014F86;
    --accent-strong: #1D3984;
    --accent-tint: rgba(82, 117, 205, .13);
    --line: rgba(39, 58, 110, .20);
    --soft-shadow: 0 22px 62px rgba(48, 74, 142, .16);
    --code-text: #182238;
    --syntax-blue: #194EAB;
    --syntax-purple: #6941A8;
    --syntax-green: #165F42;
    --ide-rail: #ABC4FF;
    --ide-tab: #C1D3FE;
    --ide-status: #ABC4FF;
    --button-ink: #111827;
    --active-language-ink: #111827;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    transition: background-color .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
.container { width: min(1150px, calc(100% - 48px)); margin: 0 auto; }
.section { position: relative; }
.accent { color: var(--accent); }

/* Header */
.site-header {
    position: relative;
    z-index: 5;
    background: var(--bg);
    border-bottom: 1px solid transparent;
}
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand-mark { font-size: 38px; font-weight: 900; letter-spacing: -.105em; color: var(--accent); }
.brand-dot { color: var(--text); padding-right: .08em; }
.nav-links { display: flex; align-items: center; gap: clamp(15px, 2vw, 32px); margin-left: auto; }
.nav-link { position: relative; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 0; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; height: 2px; bottom: 4px; left: 0; right: 0; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-switch { display: flex; align-items: center; background: var(--panel-header); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.language-button { border: 0; background: transparent; color: var(--muted); min-width: 32px; min-height: 30px; border-radius: 999px; font-weight: 700; font-size: 12px; transition: background .2s, color .2s; }
.language-button.is-active { background: var(--accent); color: var(--active-language-ink); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-header); color: var(--muted); transition: color .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(12deg); }
.theme-icon { width: 19px; height: 19px; }
.moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }

/* Hero */
.hero { isolation: isolate; overflow: hidden; }
.hero-glow { z-index: -1; position: absolute; pointer-events: none; width: 850px; height: 700px; top: -20px; right: -200px; border-radius: 50%; background: radial-gradient(ellipse, var(--accent-tint), transparent 67%); opacity: .8; }
.hero-grid { min-height: 645px; padding-top: 82px; padding-bottom: 105px; display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(40px, 6.5vw, 105px); align-items: center; }
.eyebrow { margin: 0 0 15px; color: var(--accent); font: 600 12px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; letter-spacing: .13em; }
.eyebrow-prefix { opacity: .95; margin-right: 6px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { line-height: 1.13; }
h1 { font-size: clamp(42px, 4.55vw, 69px); letter-spacing: -.056em; font-weight: 780; margin: 0; }
.hero-description { font-size: 16px; max-width: 520px; color: var(--muted); margin: 22px 0 34px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 23px; padding: 14px 26px; min-height: 53px; border-radius: 6px; font-size: 14px; font-weight: 700; border: 1px solid var(--accent); transition: transform .2s, background .2s, box-shadow .2s, color .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--button-ink); background: var(--accent); }
.button-primary:hover { background: var(--accent-strong); box-shadow: 0 10px 35px var(--accent-tint); }
html[data-theme="light"] .button-primary { background: #ABC4FF; border-color: #91ACE9; }
html[data-theme="light"] .button-primary:hover { background: #B6CCFE; }
html[data-theme="light"] .language-button.is-active { background: #ABC4FF; }
.button-outline { background: transparent; color: var(--text); }
.button-outline:hover { background: var(--accent-tint); }
.availability { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; margin: 29px 0 0; }
.status-dot { width: 8px; height: 8px; background: #56c899; border-radius: 50%; box-shadow: 0 0 0 4px rgba(86, 200, 153, .12); }

/* VS Code-inspired editor illustration (CSS/SVG, no external assets). */
.code-scene { position: relative; min-width: 0; padding: 32px 0; }
.code-window { position: relative; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--panel); box-shadow: var(--soft-shadow); }
.ide-titlebar { display: flex; align-items: center; gap: 9px; height: 37px; padding: 0 12px; background: var(--panel-header); border-bottom: 1px solid var(--line); }
.ide-logo { color: var(--accent); width: 19px; height: 19px; flex: none; }
.ide-title { font: 11px/1.2 ui-sans-serif, system-ui, sans-serif; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ide-window-buttons { display: flex; gap: 17px; align-items: center; margin-left: auto; font: 15px/1 ui-sans-serif, system-ui, sans-serif; color: var(--muted); }
.ide-workspace { display: flex; min-height: 296px; }
.ide-activitybar { width: 42px; flex: 0 0 42px; display: flex; align-items: center; flex-direction: column; gap: 19px; background: var(--ide-rail); padding: 13px 0; border-right: 1px solid var(--line); }
.activity-icon { width: 19px; height: 19px; color: var(--muted); opacity: .70; }
.activity-active { color: var(--accent); opacity: 1; }
.activity-bottom { margin-top: auto; }
.ide-editor { min-width: 0; flex: 1; }
.ide-tabs { display: flex; height: 36px; border-bottom: 1px solid var(--line); background: var(--panel-header); }
.ide-tab { display: inline-flex; gap: 9px; align-items: center; padding: 0 13px; min-width: 149px; border-right: 1px solid var(--line); border-top: 2px solid var(--accent); background: var(--ide-tab); font: 11px/1 ui-monospace, Consolas, monospace; color: var(--text); }
.ts-icon { color: #E9CD54; font-weight: 800; font-size: 10px; }
html[data-theme="light"] .ts-icon { color: #17468D; }
.tab-close { color: var(--muted); margin-left: auto; font: 16px/1 ui-sans-serif, system-ui, sans-serif; }
.ide-breadcrumb { color: var(--muted); padding: 8px 17px; font: 10px/1.4 ui-monospace, Consolas, monospace; }
.ide-breadcrumb span { padding: 0 5px; color: var(--accent); }
.code-body { display: flex; gap: 15px; overflow-x: auto; padding: 5px 14px 22px 10px; }
.code-body pre { margin: 0; font-size: clamp(10px, 1vw, 12px); line-height: 1.85; white-space: pre; tab-size: 2; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.code-content { color: var(--code-text); min-width: max-content; }
.line-numbers { flex: 0 0 19px; color: var(--muted); text-align: right; opacity: .6; user-select: none; }
.syntax-purple { color: var(--syntax-purple); }
.syntax-blue { color: var(--syntax-blue); }
.syntax-teal { color: var(--accent); }
.syntax-green { color: var(--syntax-green); }
.ide-statusbar { min-height: 25px; background: var(--ide-status); display: flex; align-items: center; justify-content: space-between; color: #fff; font: 10px/1 ui-monospace, Consolas, monospace; }
html[data-theme="light"] .ide-statusbar { color: #111827; }
.status-branch { padding: 0 12px; }
.ide-status-right { display: inline-flex; gap: 18px; padding-right: 12px; }
.code-orbit { position: absolute; z-index: -1; font-size: 36px; color: var(--accent); opacity: .11; font-family: monospace; font-weight: bold; }
.orbit-one { top: -35px; right: -28px; transform: rotate(17deg); }
.orbit-two { bottom: -20px; left: -35px; transform: rotate(-13deg); }

/* Sections */
.projects-section { background: var(--bg-alt); border-block: 1px solid var(--line); padding: 100px 0 110px; }
.section-heading h2, .about-grid h2, .contact-box h2 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -.04em; margin: 0 0 13px; font-weight: 750; }
.section-heading > p:last-child { margin: 0; font-size: 15px; color: var(--muted); }
.coming-soon { margin-top: 39px; min-height: 286px; border: 1px dashed var(--line); border-radius: 14px; padding: 45px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; background: linear-gradient(125deg, var(--accent-tint), transparent 58%); }
.coming-soon-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 15px; color: var(--accent); background: var(--accent-tint); border-radius: 14px; font: bold 24px ui-monospace, monospace; }
.coming-soon h3 { font-size: 21px; letter-spacing: -.02em; margin: 3px 0 4px; }
.coming-soon p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.about-section { padding: 115px 0; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; }
.about-copy p { color: var(--muted); margin: 0 0 15px; font-size: 15px; line-height: 1.95; }
.skills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.skills span { border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px; color: var(--text); font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--accent-tint); }
.contact-section { padding: 0 0 100px; }
.contact-box { padding: 60px 64px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(110deg, var(--accent-tint), transparent 70%), var(--panel); }
.contact-box h2 { margin-bottom: 14px; }
.contact-box > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0 0 25px; }
.site-footer { border-top: 1px solid var(--line); padding: 27px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.footer-inner a { color: var(--accent); }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 930px) {
    .hero-grid { gap: 30px; }
    h1 { font-size: clamp(39px, 5.2vw, 56px); }
    .code-body { padding-right: 9px; gap: 9px; }
    .ide-activitybar { width: 36px; flex-basis: 36px; }
    .nav-links { gap: 17px; }
    .header-inner { gap: 20px; }
}
@media (max-width: 740px) {
    .container { width: min(100% - 36px, 580px); }
    .header-inner { min-height: 85px; flex-wrap: wrap; row-gap: 3px; padding: 15px 0; }
    .brand-mark { font-size: 33px; }
    .nav-links { order: 3; flex-basis: 100%; margin: 5px 0 0; justify-content: center; gap: clamp(15px, 5vw, 34px); }
    .header-actions { margin-left: auto; }
    .hero-grid { min-height: initial; padding-top: 75px; padding-bottom: 86px; grid-template-columns: 1fr; gap: 35px; }
    h1 { font-size: clamp(39px, 8vw, 55px); }
    .hero-description { margin-top: 20px; }
    .code-scene { padding: 5px 0 0; }
    .code-body pre { font-size: clamp(10px, 2.5vw, 12px); }
    .projects-section { padding: 76px 0 85px; }
    .about-section { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 15px; }
    .contact-section { padding-bottom: 70px; }
    .contact-box { padding: 42px 26px; }
    .footer-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
}
@media (max-width: 400px) {
    .nav-link { font-size: 12px; }
    .language-button { min-width: 27px; }
    .header-actions { gap: 10px; }
    .hero-actions { gap: 10px; }
    .button { padding: 12px 17px; gap: 12px; }
    .code-body { padding: 5px 8px 18px 5px; gap: 8px; }
    .code-body pre { font-size: 9px; }
    .ide-window-buttons { gap: 10px; }
    .ide-status-right { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.about-grid h2 { white-space: pre-line; }
