:root {
    --bg: #fff;
    --surface: #f7f7f8;
    --surface2: #fff;
    --text: #171717;
    --muted: #666;
    --border: #e5e5e7;
    --accent: #ff6b2b;
    --accent2: #e85a1d;
    --header: rgba(255, 255, 255, 0.88);
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] {
    --bg: #0b0b0d;
    --surface: #141416;
    --surface2: #18181b;
    --text: #f5f5f5;
    --muted: #a1a1aa;
    --border: #29292d;
    --accent: #ff7a3d;
    --accent2: #ff925f;
    --header: rgba(11, 11, 13, 0.88);
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition:
        background 0.25s,
        color 0.25s;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
button,
input,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
.container {
    width: min(1120px, calc(100% - 32px));
    margin: auto;
}
.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 999;
    background: var(--bg);
    padding: 10px 14px;
    border-radius: 8px;
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    border-color: var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}
.nav {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.05em;
}
.brand span,
.accent {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
    font-size: 16px;
    color: var(--muted);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-btn,
.menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.icon-btn:hover,
.menu-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.menu-btn {
    display: none;
}
.theme-icon {
    font-size: 18px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-1px);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 14px 16px;
}
.mobile-nav.open {
    display: block;
}
.mobile-nav a {
    display: block;
    padding: 12px 4px;
    color: var(--muted);
}
.mobile-nav a:hover {
    color: var(--accent);
}
main {
    padding-top: 68px;
}
.hero {
    min-height: calc(100vh - 68px);
    display: grid;
    place-items: center;
    padding: 72px 0;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 22px;
}
.hero p.lead {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--muted);
    max-width: 650px;
    margin-bottom: 30px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.stats {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.stat strong {
    display: block;
    font-size: 27px;
}
.stat span {
    font-size: 12px;
    color: var(--muted);
}
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.hero-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
}
.hero-card .badge {
    margin-top: 14px;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
section {
    padding: 90px 0;
}
.section-head {
    margin-bottom: 38px;
}
.section-head h2 {
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}
.section-head p {
    color: var(--muted);
    max-width: 680px;
}
.surface {
    background: var(--surface);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    transition: 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 107, 43, 0.1);
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 18px;
}
.card h3 {
    font-size: 21px;
    margin-bottom: 8px;
}
.card p {
    color: var(--muted);
    font-size: 14px;
}
.project {
    overflow: hidden;
    padding: 0;
}
.project img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--surface);
}
.project-body {
    padding: 22px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}
.tag {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
}
.tag.accent-tag {
    color: var(--accent);
    border-color: rgba(255, 107, 43, 0.35);
    background: rgba(255, 107, 43, 0.08);
}
.project h3 {
    margin-bottom: 8px;
}
.project a.more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    border-radius: 26px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 12px;
}
.about-image img {
    border-radius: 18px;
    aspect-ratio: 1;
    object-fit: cover;
}
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.skill {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    background: var(--surface2);
}
.cta {
    background: #151518;
    color: #fff;
    border-radius: 28px;
    padding: 48px;
}
.cta p {
    color: #a1a1aa;
    max-width: 650px;
    margin: 12px 0 24px;
}
.cta .btn-secondary {
    border-color: #444;
    color: #fff;
}
.form {
    display: grid;
    gap: 14px;
}
.field {
    display: grid;
    gap: 7px;
}
.field label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}
.field input,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface2);
    color: var(--text);
    outline: none;
}
.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
}
.footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: var(--muted);
    font-size: 13px;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.github {
    color: var(--accent);
    font-weight: 700;
}
.page-hero {
    padding: 85px 0 55px;
}
.page-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    letter-spacing: -0.05em;
    line-height: 1.05;
}
.page-hero p {
    color: var(--muted);
    max-width: 680px;
    margin-top: 12px;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}
.filter {
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--muted);
    padding: 9px 14px;
    border-radius: 999px;
}
.filter.active,
.filter:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.article {
    max-width: 800px;
    margin: auto;
}
.article-meta {
    color: var(--muted);
    font-size: 13px;
    margin: 14px 0 30px;
}
.article h2 {
    font-size: 28px;
    margin: 38px 0 12px;
}
.article p,
.article li {
    color: var(--muted);
    margin-bottom: 16px;
}
.article ul {
    padding-left: 20px;
}
.code {
    background: #111;
    color: #eee;
    padding: 20px;
    border-radius: 14px;
    overflow: auto;
    margin: 20px 0;
}
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 999;
    width: 0;
}
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: 0.55s;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.notice {
    padding: 14px 16px;
    background: rgba(255, 107, 43, 0.08);
    border: 1px solid rgba(255, 107, 43, 0.25);
    border-radius: 12px;
    color: var(--muted);
    margin-bottom: 22px;
}
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .menu-btn {
        display: grid;
    }
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
    .hero {
        padding: 58px 0;
    }
    .hero-card {
        max-width: 520px;
        margin: auto;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta {
        padding: 34px;
    }
}
@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1120px);
    }
    .nav {
        height: 62px;
    }
    .site-header {
        background: var(--bg);
    }
    main {
        padding-top: 62px;
    }
    .hero {
        min-height: auto;
        padding: 62px 0 72px;
    }
    .hero h1 {
        font-size: clamp(40px, 14vw, 58px);
    }
    .hero p.lead {
        font-size: 16px;
    }
    .actions .btn {
        width: 100%;
    }
    .stats {
        gap: 22px;
    }
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    section {
        padding: 68px 0;
    }
    .section-head {
        margin-bottom: 28px;
    }
    .card {
        padding: 22px;
    }
    .page-hero {
        padding: 62px 0 40px;
    }
    .page-hero h1 {
        font-size: 42px;
    }
    .cta {
        padding: 28px 22px;
        border-radius: 20px;
    }
    .footer-row {
        flex-direction: column;
    }
    .nav-actions {
        gap: 7px;
    }
    .nav-actions .btn {
        display: none;
    }
    .icon-btn,
    .menu-btn {
        width: 40px;
        height: 40px;
    }
    .article h2 {
        font-size: 24px;
    }
    .project img {
        aspect-ratio: 16/10;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
