/* =====================================================
   VARIABLES
===================================================== */

:root {

    --background: #07090c;
    --surface: #0d1117;
    --surface-light: #111720;

    --text: #f1f5f9;
    --muted: #8b96a5;

    --border: #202833;

    --accent: #9eff00;

    --max-width: 1180px;
}


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

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


html {
    scroll-behavior: smooth;
}


body {

    background: var(--background);

    color: var(--text);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}


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


/* =====================================================
   BACKGROUND
===================================================== */

.grid-background {

    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: .18;

    background-image:

        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

    z-index: -1;
}


/* =====================================================
   NAVIGATION
===================================================== */

.navbar {

    width:
        min(
            var(--max-width),
            calc(100% - 48px)
        );

    height: 82px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    font-size: 1.1rem;

    font-weight: 800;

    letter-spacing: .16em;
}


.logo span {

    color: var(--accent);
}


nav {

    display: flex;

    gap: 32px;
}


nav a {

    color: #aab3bf;

    font-size: .85rem;

    transition: .2s;
}


nav a:hover {

    color: var(--accent);
}


.menu-button {

    display: none;

    border: none;

    background: transparent;

    color: white;

    font-size: 1.5rem;

    cursor: pointer;
}


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

.hero {

    width:
        min(
            var(--max-width),
            calc(100% - 48px)
        );

    min-height:
        calc(100vh - 82px);

    margin: auto;

    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    align-items: center;

    gap: 70px;

    padding: 70px 0;
}


.status {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #8f9aa8;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: .7rem;

    letter-spacing: .13em;
}


.status span {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 14px var(--accent);

    animation: pulse 2s infinite;
}


@keyframes pulse {

    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}


h1 {

    margin: 25px 0;

    font-size:
        clamp(
            4rem,
            8vw,
            7.4rem
        );

    line-height: .91;

    letter-spacing: -.075em;

    font-weight: 800;
}


h1 span {

    color: var(--accent);
}


.hero-description {

    max-width: 620px;

    color: var(--muted);

    font-size: 1.05rem;
}


.hero-buttons {

    display: flex;

    gap: 12px;

    margin-top: 34px;
}


.button {

    padding: 13px 19px;

    border-radius: 7px;

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

    font-size: .88rem;

    font-weight: 600;

    transition: .25s;
}


.button.primary {

    background: var(--accent);

    color: #071000;

    border-color: var(--accent);
}


.button.primary:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 35px
        rgba(158,255,0,.15);
}


.button.secondary:hover {

    border-color: #596573;
}


/* =====================================================
   TERMINAL
===================================================== */

.terminal {

    background: rgba(13,17,23,.9);

    border: 1px solid #26303c;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.4);

    transform: rotate(1deg);

    transition: .3s;
}


.terminal:hover {

    transform:
        rotate(0deg)
        translateY(-5px);
}


.terminal-header {

    height: 44px;

    border-bottom:
        1px solid #222a34;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 0 16px;

    color: #6f7b88;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: .72rem;
}


.terminal-dots {

    display: flex;

    gap: 6px;
}


.terminal-dots span {

    width: 8px;

    height: 8px;

    background: #343c46;

    border-radius: 50%;
}


.terminal-content {

    padding: 28px;

    min-height: 330px;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: .86rem;

    line-height: 1.9;
}


.terminal-content p {

    color: #aab4c0;
}


.terminal-content b {

    color: var(--accent);
}


.green {

    color: var(--accent) !important;

    padding-left: 18px;
}


.output {

    padding-left: 18px;
}


.cursor {

    display: inline-block;

    width: 8px;

    height: 16px;

    background: var(--accent);

    vertical-align: -3px;

    animation: blink 1s infinite;
}


@keyframes blink {

    50% {
        opacity: 0;
    }
}


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

.section {

    width:
        min(
            var(--max-width),
            calc(100% - 48px)
        );

    margin: auto;

    padding: 120px 0;
}


.section-label {

    color: #687381;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: .72rem;

    letter-spacing: .15em;
}


.two-column {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}


h2 {

    margin: 15px 0 30px;

    font-size:
        clamp(
            2.7rem,
            5vw,
            5rem
        );

    line-height: 1;

    letter-spacing: -.055em;
}


h2 span {

    color: var(--accent);
}


.about-content {

    color: var(--muted);

    max-width: 590px;
}


.about-content p {

    margin-bottom: 22px;
}


.facts {

    display: flex;

    gap: 40px;

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

    margin-top: 35px;

    padding-top: 25px;
}


.facts div {

    display: flex;

    flex-direction: column;
}


.facts strong {

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 1.1rem;

    color: white;
}


.facts small {

    color: #65707e;

    margin-top: 4px;
}


/* =====================================================
   PROJECTS
===================================================== */

.section-heading {

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}


.section-heading h2 {

    margin-bottom: 0;
}


.section-heading p {

    max-width: 370px;

    color: var(--muted);
}


.projects {

    display: grid;

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

    gap: 14px;
}


.project {

    min-height: 330px;

    background:
        linear-gradient(
            145deg,
            #10151c,
            #0b0f14
        );

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

    border-radius: 10px;

    padding: 32px;

    position: relative;

    overflow: hidden;

    transition: .3s;
}


.project::before {

    content: "";

    position: absolute;

    width: 200px;

    height: 200px;

    right: -100px;

    bottom: -100px;

    background: var(--accent);

    opacity: 0;

    filter: blur(100px);

    transition: .4s;
}


.project:hover {

    transform: translateY(-5px);

    border-color: #3c4652;
}


.project:hover::before {

    opacity: .08;
}


.project-top {

    display: flex;

    justify-content: space-between;

    align-items: start;

    margin-bottom: 35px;
}


.project-number {

    font-family:
        "JetBrains Mono",
        monospace;

    color: #515c68;

    font-size: .72rem;
}


.project-icon {

    color: var(--accent);

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: 2rem;
}


.project h3 {

    font-size: 1.45rem;

    margin-bottom: 10px;
}


.project p {

    color: var(--muted);

    margin-bottom: 28px;

    max-width: 480px;
}


.tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.tags span {

    border:
        1px solid #29323d;

    border-radius: 4px;

    padding: 5px 8px;

    color: #8994a1;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: .68rem;
}


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

.skills-section {

    align-items: start;
}


.muted {

    color: var(--muted);
}


.skills {

    padding-top: 10px;
}


.skill {

    margin-bottom: 22px;
}


.skill-header {

    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    color: #b7c0ca;

    font-size: .8rem;
}


.skill-header span:last-child {

    color: #687381;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: .68rem;
}


.skill-bar {

    height: 4px;

    background: #202730;

    border-radius: 5px;

    overflow: hidden;
}


.skill-bar span {

    display: block;

    height: 100%;

    background: var(--accent);

    border-radius: 5px;

    transform-origin: left;

    animation:
        skillAnimation 1.5s ease forwards;
}


@keyframes skillAnimation {

    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}


/* =====================================================
   PHILOSOPHY
===================================================== */

.philosophy {

    text-align: center;

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

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


.quote {

    font-family: Georgia, serif;

    font-size: 7rem;

    line-height: .6;

    color: #202731;
}


.philosophy h2 {

    font-size:
        clamp(
            2.1rem,
            5vw,
            4.5rem
        );

    margin-top: 35px;
}


.philosophy p {

    color: var(--muted);

    margin-top: 25px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-box {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    background: var(--surface);

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

    border-radius: 12px;

    padding: 55px;

    margin-top: 30px;
}


.contact-box h2 {

    margin-top: 15px;
}


.contact-links {

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.contact-links a {

    display: flex;

    justify-content: space-between;

    padding: 18px 0;

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

    font-weight: 600;

    transition: .2s;
}


.contact-links a:hover {

    color: var(--accent);
}


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

footer {

    width:
        min(
            var(--max-width),
            calc(100% - 48px)
        );

    margin: auto;

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

    padding:
        26px 0 40px;

    display: flex;

    justify-content: space-between;

    color: #586370;

    font-family:
        "JetBrains Mono",
        monospace;

    font-size: .68rem;
}


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

@media (max-width: 850px) {

    nav {

        display: none;

        position: absolute;

        top: 70px;

        right: 24px;

        background: #0b0f14;

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

        padding: 18px;

        flex-direction: column;

        gap: 16px;

        width: 190px;

        z-index: 50;
    }


    nav.open {

        display: flex;
    }


    .menu-button {

        display: block;
    }


    .hero {

        grid-template-columns: 1fr;

        padding-top: 45px;

        gap: 55px;
    }


    .two-column {

        grid-template-columns: 1fr;
    }


    .projects {

        grid-template-columns: 1fr;
    }


    .section-heading {

        display: block;
    }


    .contact-box {

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .terminal {

        transform: none;
    }
}


@media (max-width: 520px) {

    .section,
    .navbar,
    footer,
    .hero {

        width:
            calc(100% - 30px);
    }


    h1 {

        font-size: 3.65rem;
    }


    .hero-description {

        font-size: .95rem;
    }


    .facts {

        gap: 22px;
    }


    .contact-box {

        padding: 28px;
    }


    footer {

        flex-direction: column;

        gap: 10px;
    }
}
