:root {
    --bg: #080808;
    --panel: #121212;
    --panel-2: #1b1b1b;
    --text: #f5f5f5;
    --muted: #b8b8b8;
    --line: #2c2c2c;
    --accent: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    min-height: 72vh;
    padding: 28px 7vw;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 30%),
        linear-gradient(135deg, #080808 0%, #151515 100%);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--panel);
}

.nav-links {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--text);
}

.hero-content {
    max-width: 850px;
    margin-top: 120px;
}

.eyebrow,
.section-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    margin-bottom: 10px;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(42px, 8vw, 88px);
    line-height: 0.95;
    margin-bottom: 22px;
}

h1 span {
    color: var(--muted);
    font-weight: 500;
}

h2 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 22px;
    color: var(--muted);
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 600;
}

.btn.primary {
    background: var(--accent);
    color: #000;
}

.btn.secondary {
    background: transparent;
    color: var(--text);
}

main {
    padding: 0 7vw;
}

.section {
    padding: 72px 0;
    border-bottom: 1px solid var(--line);
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}

.info-card p,
.card p {
    color: var(--muted);
}

.project-grid,
.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    min-height: 230px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tags span {
    background: var(--panel-2);
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

ul {
    padding-left: 20px;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.footer {
    padding: 32px 7vw;
    color: var(--muted);
}

.cv-body {
    background: #efefef;
    color: #111;
}

.cv-page {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 54px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.12);
}

.cv-page h1 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.cv-page h2 {
    font-size: 17px;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
    margin-top: 26px;
    margin-bottom: 10px;
}

.cv-page h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.cv-page p,
.cv-page li {
    font-size: 14px;
    color: #222;
}

.cv-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid #111;
    padding-bottom: 18px;
}

.cv-contact {
    text-align: right;
}

.print-btn {
    margin-top: 28px;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .nav {
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero-content {
        margin-top: 80px;
    }

    .grid-2,
    .project-grid,
    .skill-grid {
        grid-template-columns: 1fr;
    }

    .cv-page {
        margin: 0;
        padding: 28px;
    }

    .cv-top {
        flex-direction: column;
    }

    .cv-contact {
        text-align: left;
    }
}

@media print {
    body.cv-body {
        background: #fff;
    }

    .cv-page {
        box-shadow: none;
        margin: 0;
        max-width: none;
        padding: 22px;
    }

    .print-btn {
        display: none;
    }
}
