
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0c0d14;
    --surface: #141620;
    --text: #f4f3fb;
    --muted: #a2a4b7;
    --accent: #a89cff;
    --line: #292b3a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
}

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

.header {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0c0d14ed;
    backdrop-filter: blur(14px);
}

.logo {
    font: 800 26px 'Manrope', sans-serif;
    letter-spacing: -1.5px;
}

.logo span,
h1 span,
.section h2 span {
    color: var(--accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s;
}

.nav a:hover,
footer a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    color: var(--text);
    background: none;
    border: 0;
    font-size: 25px;
}

.hero,
.section {
    width: min(1120px, 88%);
    margin: auto;
}

.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 35px;
    padding: 65px 0 70px;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin: 0 0 16px;
}

h1, h2, h3 {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -1.2px;
}

h1 {
    font-size: clamp(38px, 5.2vw, 65px);
    line-height: 1.13;
    margin: 0 0 22px;
}

.intro {
    max-width: 490px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.primary:hover {
    background: #c0b8ff;
}

.secondary {
    border: 1px solid #37394b;
    color: var(--text);
}

.visual {
    height: 390px;
    position: relative;
    display: grid;
    place-items: center;
}

.code-card {
    position: relative;
    z-index: 1;
    width: min(390px, 100%);
    background: #171925;
    border: 1px solid #35364c;
    border-radius: 16px;
    box-shadow: 0 30px 90px #0008;
    overflow: hidden;
    transform: rotate(-2deg);
}

.dots {
    height: 43px;
    background: #202231;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-bottom: 1px solid #343548;
    color: #fa7979;
    font-size: 10px;
}

.dots span {
    color: #f4c56b;
}

.dots b {
    color: #75dca0;
}

pre {
    margin: 0;
    padding: 25px 22px 30px;
    white-space: pre-wrap;
    font: 13px/2 'SFMono-Regular', Consolas, monospace;
    color: #d8d9eb;
}

.purple {
    color: #c7a7ff;
}

.green {
    color: #a8efc2;
}

.floating {
    position: absolute;
    z-index: 2;
    background: #222435;
    border: 1px solid #3a3c52;
    border-radius: 11px;
    padding: 10px 14px;
    font-size: 11px;
    box-shadow: 0 10px 30px #0005;
}

.one {
    top: 44px;
    right: -5px;
}

.two {
    bottom: 44px;
    left: 0;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 90px 0 100px;
    border-top: 1px solid var(--line);
}

.about h2,
.section-title h2,
.contact h2 {
    font-size: clamp(29px, 4vw, 43px);
    line-height: 1.2;
    margin: 0;
}

.about-text {
    padding-top: 12px;
}

.about-text p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.skills,
.projects {
    padding: 75px 0 100px;
}

.section-title {
    margin-bottom: 35px;
}

.section-title > p:last-child {
    color: var(--muted);
    font-size: 13px;
    margin-top: 14px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 18px;
    transition: transform 0.2s, border-color 0.2s;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    border-color: #514a7b;
}

.skill-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 18px;
}

.purple-bg {
    background: #30294c;
    color: #c4b6ff;
}

.orange-bg {
    background: #473023;
    color: #ffb987;
}

.green-bg {
    background: #1c3c32;
    color: #9aebc5;
}

.blue-bg {
    background: #20364d;
    color: #9ecbff;
}

.skill-card h3 {
    font-size: 15px;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.skill-card p {
    font-size: 11px;
    min-height: 42px;
    color: var(--muted);
    line-height: 1.7;
}

.level {
    display: inline-block;
    border: 1px solid #34364a;
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 10px;
    color: #c4c5d5;
}

.projects {
    border-top: 1px solid var(--line);
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.project-art {
    height: 220px;
    display: grid;
    place-items: center;
    padding: 22px;
    overflow: hidden;
}

.task-art {
    background: radial-gradient(ellipse at 50% 20%, #3d356d, #171827 70%);
}

.mini-window {
    width: 88%;
    max-width: 350px;
    background: #fff;
    color: #25253a;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 18px 40px #0005;
    transform: rotate(-2deg);
}

.mini-window h3 {
    font-size: 13px;
    margin: 0 0 12px;
}

.mini-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border: 1px solid #eeeef5;
    border-radius: 6px;
    padding: 9px;
    margin-top: 7px;
    font-size: 9px;
}

.mini-task span {
    color: #9a741f;
    font-size: 8px;
}

.portfolio-art {
    background: radial-gradient(ellipse at 70% 35%, #3b3268, #171827 72%);
}

.mock-site {
    position: relative;
    width: 85%;
    height: 155px;
    background: #11121d;
    border: 1px solid #38364f;
    border-radius: 10px;
    padding: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px #0006;
}

.mock-logo {
    font: 800 14px 'Manrope', sans-serif;
    color: var(--accent);
}

.mock-heading {
    width: 60%;
    height: 13px;
    background: #8e83dc;
    border-radius: 8px;
    margin-top: 15px;
}

.mock-line {
    width: 48%;
    height: 8px;
    background: #49465f;
    border-radius: 8px;
    margin-top: 9px;
}

.mock-line.short {
    width: 35%;
}

.mock-btn {
    margin-top: 15px;
    width: 70px;
    height: 19px;
    border-radius: 5px;
    background: #a89cff;
}

.project-info {
    padding: 22px;
}

.project-info h3 {
    font-size: 20px;
    margin: 12px 0 8px;
}

.project-info > p:not(.tag) {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0;
}

.tech-tags span {
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #222435;
    color: #c1c2d3;
}

.project-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.contact {
    padding: 55px 25px;
    margin-bottom: 80px;
    text-align: center;
    border: 1px solid #393451;
    border-radius: 20px;
    background: radial-gradient(ellipse at top, #292344, #171823 65%);
}

.contact h2 {
    margin-bottom: 15px;
}

.contact > p:not(.tag) {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 25px;
}

.light-btn {
    background: #f3f0ff;
    color: #1b1830;
}

footer {
    width: min(1120px, 88%);
    margin: auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--line);
    padding: 20px 0;
    flex-wrap: wrap;
}

footer p {
    font-size: 11px;
    color: var(--muted);
    margin: 0 auto 0 0;
}

footer > p:last-child {
    margin-left: auto;
}

footer > a:not(.logo) {
    font-size: 11px;
    color: var(--muted);
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 65px;
        gap: 0;
    }

    .visual {
        height: 350px;
        margin-top: 10px;
    }

    .about {
        gap: 35px;
    }

    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-art {
        height: 190px;
    }
}

@media (max-width: 560px) {
    .header {
        height: 66px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        padding: 18px 6%;
        background: #11121c;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 17px;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        padding-top: 50px;
        min-height: auto;
    }

    .intro {
        font-size: 13px;
    }

    .visual {
        height: 300px;
    }

    .code-card {
        width: 95%;
    }

    pre {
        font-size: 11px;
        padding: 18px;
    }

    .one {
        right: -3px;
        top: 20px;
    }

    .two {
        bottom: 20px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .skills,
    .projects {
        padding-top: 60px;
        padding-bottom: 65px;
    }

    .skill-grid {
        gap: 10px;
    }

    .skill-card {
        padding: 16px 13px;
    }

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

    .project-art {
        height: 210px;
    }

    .contact {
        padding: 40px 18px;
        margin-bottom: 55px;
    }

    footer {
        gap: 15px;
    }

    footer p {
        width: 100%;
        order: 3;
    }

    footer > p:last-child {
        margin-left: 0;
    }
}
