/* =========================================
   ROOT
========================================= */

:root {
    --background: #080b10;
    --surface: #0e131b;
    --surface-light: #151b25;

    --border: #252d3a;

    --text: #f5f7fa;
    --muted: #9ca6b5;

    --accent: #f59e0b;
    --accent-light: #fbbf24;

    --max-width: 1180px;
}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at top right,
            rgba(245, 158, 11, 0.08),
            transparent 32%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

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

button,
input {
    font: inherit;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;

    min-height: 82px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand span {
    color: var(--accent);
}

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

.navigation a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: 0.2s ease;
}

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


/* =========================================
   HERO
========================================= */

.hero {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;

    min-height: 620px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, 0.85fr);

    align-items: center;
    gap: 80px;

    padding: 100px 0;
}

.eyebrow {
    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.18em;

    margin-bottom: 18px;
}

.hero h1 {
    max-width: 760px;

    font-size: clamp(
        3rem,
        6vw,
        5.8rem
    );

    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: var(--muted);
}

.hero-description {
    max-width: 650px;

    color: var(--muted);

    font-size: 1.06rem;

    margin-top: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


/* =========================================
   BUTTONS
========================================= */

.button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    padding: 0 22px;

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

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

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

.button.primary:hover {
    background: var(--accent-light);
}

.button.secondary {
    border: 1px solid var(--border);
    background: var(--surface);
}

.button.secondary:hover {
    border-color: #3b4657;
    background: var(--surface-light);
}


/* =========================================
   CODE CARD
========================================= */

.hero-code {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #090d13;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}

.code-header {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 16px;

    border-bottom: 1px solid var(--border);
}

.code-header span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #394252;
}

.code-header span:first-child {
    background: #ef4444;
}

.code-header span:nth-child(2) {
    background: #f59e0b;
}

.code-header span:nth-child(3) {
    background: #22c55e;
}

.code-header p {
    margin-left: auto;

    color: #6f7b8c;

    font-family: monospace;
    font-size: 0.78rem;
}

.hero-code pre {
    overflow-x: auto;

    padding: 30px;

    color: #d4dae3;

    font-size: 0.88rem;
    line-height: 1.8;
}

.code-keyword {
    color: #c084fc;
}

.code-class {
    color: #60a5fa;
}

.code-string {
    color: #86efac;
}


/* =========================================
   STATS
========================================= */

.stats {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    padding: 30px 22px;
}

.stat:not(:last-child) {
    border-right: 1px solid var(--border);
}

.stat strong {
    display: block;

    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.stat span {
    color: var(--muted);
    font-size: 0.82rem;
}


/* =========================================
   SECTIONS
========================================= */

.projects-section,
.skills-section,
.cta {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;

    padding: 120px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    margin-bottom: 48px;
}

.section-heading h2,
.cta h2 {
    font-size: clamp(
        2.2rem,
        4vw,
        4rem
    );

    line-height: 1;
    letter-spacing: -0.055em;
}

.section-heading > p {
    max-width: 520px;

    color: var(--muted);
}


/* =========================================
   PROJECT GRID
========================================= */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.project-card {
    min-height: 350px;

    display: flex;
    flex-direction: column;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            transparent
        ),
        var(--surface);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);

    border-color: #3d4654;

    background: var(--surface-light);
}

.project-card.featured {
    border-color:
        rgba(245, 158, 11, 0.3);
}

.project-top {
    min-height: 29px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 28px;
}

.project-number {
    color: #586273;

    font-size: 0.78rem;
    font-weight: 700;

    font-family: monospace;
}

.project-status {
    border:
        1px solid
        rgba(245, 158, 11, 0.3);

    border-radius: 999px;

    background:
        rgba(245, 158, 11, 0.08);

    color: var(--accent);

    padding: 4px 9px;

    font-size: 0.62rem;
    font-weight: 800;

    letter-spacing: 0.1em;
}

.project-status.muted {
    border-color: var(--border);

    background: transparent;

    color: var(--muted);
}

.project-card h3 {
    font-size: 1.45rem;
    letter-spacing: -0.035em;

    margin-bottom: 13px;
}

.project-card > p {
    max-width: 590px;

    color: var(--muted);

    font-size: 0.92rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 25px;
}

.tags span {
    border: 1px solid var(--border);
    border-radius: 6px;

    background: #0b0f15;

    color: #aeb6c2;

    padding: 5px 8px;

    font-family: monospace;
    font-size: 0.69rem;
}

.project-links {
    display: flex;
    gap: 22px;

    margin-top: auto;
    padding-top: 32px;
}

.project-links a {
    color: var(--accent);

    font-size: 0.82rem;
    font-weight: 700;

    transition: 0.2s ease;
}

.project-links a:hover {
    color: var(--accent-light);
}


/* =========================================
   SKILLS
========================================= */

.skills-section {
    border-top: 1px solid var(--border);
}

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.skill-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
}

.skill-card > span {
    color: var(--accent);

    font-family: monospace;
    font-size: 0.72rem;
}

.skill-card h3 {
    margin: 18px 0 10px;

    font-size: 1.05rem;
}

.skill-card p {
    color: var(--muted);

    font-size: 0.86rem;
}


/* =========================================
   CTA
========================================= */

.cta {
    border-top: 1px solid var(--border);

    text-align: center;
}

.cta .eyebrow {
    text-align: center;
}

.cta h2 {
    max-width: 780px;

    margin: 0 auto;
}

.cta > p:not(.eyebrow) {
    max-width: 650px;

    margin: 25px auto 0;

    color: var(--muted);
}

.cta .hero-actions {
    justify-content: center;
}


/* =========================================
   FOOTER
========================================= */

footer {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;

    min-height: 100px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--border);

    color: #667080;

    font-size: 0.8rem;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (
    max-width: 900px
) {

    .hero {
        grid-template-columns: 1fr;

        gap: 50px;

        padding: 80px 0;
    }

    .hero-code {
        max-width: 650px;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (
    max-width: 700px
) {

    .site-header {
        min-height: 72px;
    }

    .navigation {
        gap: 16px;
    }

    .navigation a:nth-child(2),
    .navigation a:nth-child(3) {
        display: none;
    }

    .hero {
        min-height: auto;

        padding: 70px 0;
    }

    .hero h1 {
        font-size: 3.1rem;
    }

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

    .stat {
        border-bottom:
            1px solid
            var(--border);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

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

    .projects-section,
    .skills-section,
    .cta {
        padding: 85px 0;
    }

}


@media (
    max-width: 480px
) {

    .site-header,
    .hero,
    .stats,
    .projects-section,
    .skills-section,
    .cta,
    footer {
        width: min(
            calc(100% - 28px),
            var(--max-width)
        );
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .project-card {
        padding: 24px;
    }

    footer {
        flex-direction: column;
        justify-content: center;

        gap: 6px;
    }

}