@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');


/* =========================================
   VARIABLES
========================================= */

:root {

    --black: #000000;
    --white: #f5f5f5;

    --gray-1: #111111;
    --gray-2: #1a1a1a;
    --gray-3: #333333;
    --gray-4: #666666;

    --text-muted: #8d8d8d;

    --max-width: 1120px;

}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    background: #000000;
    color: var(--white);

    font-family: "VT323", monospace;

    font-size: 21px;

    line-height: 1.35;

    overflow-x: hidden;

    cursor: default;

    -webkit-font-smoothing: none;
    text-rendering: optimizeSpeed;

}

a {

    color: inherit;
    text-decoration: none;

}

img {

    display: block;

    width: 100%;
    height: 100%;

    image-rendering: pixelated;

}


/* =========================================
   CRT
========================================= */

.crt {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 999;

    background:

        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.025) 0px,
            rgba(255,255,255,0.025) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: .25;

}


/* =========================================
   HEADER
========================================= */

.header {

    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    height: 80px;

    margin: auto;

    display: flex;

    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--gray-3);

}

.logo {

    font-size: 29px;

    letter-spacing: 1px;

}

.logo span {

    animation: blink 1s steps(1) infinite;

}

@keyframes blink {

    0%,
    45% {

        opacity: 1;

    }

    50%,
    100% {

        opacity: 0;

    }

}


nav {

    display: flex;

    gap: 30px;

}

nav a {

    color: var(--text-muted);

    transition:
        color .15s ease,
        transform .15s ease;

}

nav a:hover {

    color: var(--white);

    transform: translateY(-2px);

}

nav a::before {

    content: "> ";

    opacity: 0;

}

nav a:hover::before {

    opacity: 1;

}


/* =========================================
   HERO
========================================= */

.hero {

    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    min-height: calc(100vh - 80px);

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    align-items: center;

    gap: 100px;

}


/* STATUS */

.hero-status {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 25px;

    color: var(--text-muted);

    font-size: 16px;

}

.status-dot {

    width: 8px;
    height: 8px;

    background: #ffffff;

    box-shadow:
        0 0 8px #ffffff;

    animation:
        statusPulse 1.5s ease-in-out infinite;

}

@keyframes statusPulse {

    0%,
    100% {

        opacity: .3;

    }

    50% {

        opacity: 1;

    }

}


/* EYEBROW */

.eyebrow {

    color: var(--text-muted);

    font-size: 16px;

    letter-spacing: 2px;

}

.eyebrow::before {

    content: "> ";

    color: var(--white);

}


/* HERO TITLE */

.hero h1 {

    margin-top: 15px;

    font-size:
        clamp(
            65px,
            10vw,
            120px
        );

    line-height: .78;

    letter-spacing: -2px;

}

.hero h1 span {

    display: block;

    color: #777;

}


/* HERO TEXT */

.hero-text {

    max-width: 600px;

    margin-top: 35px;

    color: var(--text-muted);

    font-size: 23px;

}


/* BUTTONS */

.hero-buttons {

    display: flex;

    gap: 14px;

    margin-top: 35px;

}

.button {

    position: relative;

    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-height: 48px;

    padding:
        8px
        20px;

    border: 1px solid var(--white);

    font-size: 18px;

    transition:

        background .15s ease,
        color .15s ease,
        transform .15s ease;

}

.button.primary {

    background: var(--white);

    color: #000;

}

.button.secondary {

    color: var(--white);

}

.button:hover {

    background: var(--white);

    color: #000;

    transform:
        translate(
            3px,
            -3px
        );

}


/* SCROLL */

.hero-scroll {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 70px;

    color: #555;

    font-size: 15px;

    animation:
        floating 1.8s ease-in-out infinite;

}

.hero-scroll span {

    font-size: 20px;

}

@keyframes floating {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(4px);

    }

}


/* =========================================
   CHARACTER CARD
========================================= */

.hero-character {

    width: 100%;

}

.pixel-frame {

    position: relative;

    padding: 10px;

    background: var(--gray-1);

    border: 1px solid var(--gray-3);

}

.pixel-frame::before {

    content: "";

    position: absolute;

    inset: 5px;

    border: 1px solid #444;

    pointer-events: none;

}

.pixel-frame img {

    position: relative;

    aspect-ratio: 1;

    object-fit: cover;

    filter:
        grayscale(100%)
        contrast(1.1);

    transition:
        filter .3s ease,
        transform .3s ease;

}

.pixel-frame:hover img {

    filter:
        grayscale(0%)
        contrast(1);

    transform: scale(1.02);

}

.frame-label {

    position: absolute;

    top: -13px;
    left: 15px;

    z-index: 2;

    padding:
        2px
        8px;

    background: #000;

    border:
        1px solid #555;

    color: #aaa;

    font-size: 15px;

}

.character-info {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1px;

    margin-top: 10px;

    background: #333;

}

.character-info div {

    display: flex;

    flex-direction: column;

    padding: 10px;

    background: #111;

}

.character-info span {

    color: #666;

    font-size: 13px;

}

.character-info strong {

    margin-top: 3px;

    font-size: 17px;

}


/* =========================================
   SECTIONS
========================================= */

.section {

    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    margin: auto;

    padding: 130px 0;

}

.section-heading {

    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 45px;

}

.section-heading h2 {

    margin-top: 8px;

    font-size: 65px;

    line-height: .9;

}

.section-number {

    color: #444;

    font-size: 20px;

}


/* =========================================
   PROJECTS
========================================= */

.projects {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

}


/* CARD */

.project {

    position: relative;

    display: grid;

    grid-template-rows: auto 1fr;

    overflow: hidden;

    background: #080808;

    border: 1px solid #292929;

    transition:

        border-color .2s ease,
        transform .2s ease,
        background .2s ease;

}

.project:hover {

    border-color: #777;

    background: #111;

    transform:
        translateY(-5px);

}


/* FEATURED */

.project.featured {

    grid-column: span 2;

    grid-template-columns:
        1.4fr
        1fr;

    grid-template-rows: 1fr;

}


/* IMAGE */

.project-image {

    position: relative;

    min-height: 250px;

    overflow: hidden;

    background: #111;

}

.project-image img {

    object-fit: cover;

    filter:
        grayscale(85%)
        brightness(.75);

    transition:

        filter .35s ease,
        transform .5s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        );

}

.project:hover .project-image img {

    filter:
        grayscale(0%)
        brightness(1);

    transform:
        scale(1.05);

}


/* IMAGE OVERLAY */

.project-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        rgba(
            0,
            0,
            0,
            .55
        );

    opacity: 0;

    transition:
        opacity .2s ease;

    font-size: 22px;

}

.project:hover .project-overlay {

    opacity: 1;

}


/* INFO */

.project-info {

    position: relative;

    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    min-height: 240px;

}

.project-number {

    position: absolute;

    top: 20px;
    right: 20px;

    color: #333;

    font-size: 18px;

}

.project-category {

    color: #777;

    font-size: 15px;

    letter-spacing: 1px;

}

.project-info h3 {

    margin-top: 10px;

    font-size: 37px;

    line-height: 1;

}

.project-description {

    max-width: 420px;

    margin-top: 15px;

    color: #777;

    font-size: 19px;

}

.project-link {

    margin-top: 25px;

    color: #aaa;

    font-size: 16px;

}

.project:hover .project-link {

    color: white;

}


/* MORE PROJECTS */

.more-projects {

    display: inline-block;

    margin-top: 35px;

    color: #777;

    transition:
        color .15s ease,
        transform .15s ease;

}

.more-projects:hover {

    color: white;

    transform:
        translateX(5px);

}


/* =========================================
   ABOUT
========================================= */

.about-section {

    border-top: 1px solid #222;

}


/* PROFILE CARD */

.profile-card {

    background: #080808;

    border: 1px solid #333;

}


/* HEADER */

.profile-top {

    display: flex;

    justify-content:
        space-between;

    padding: 12px 18px;

    background: #151515;

    border-bottom:
        1px solid #333;

    color: #888;

    font-size: 15px;

}


/* MAIN */

.profile-main {

    display: grid;

    grid-template-columns:
        200px
        1fr;

    gap: 35px;

    padding: 35px;

}


/* IMAGE */

.profile-picture {

    width: 200px;
    height: 200px;

    overflow: hidden;

    background: #111;

    border: 1px solid #444;

}

.profile-picture img {

    object-fit: cover;

    filter:
        grayscale(100%);

    transition:
        filter .3s ease;

}

.profile-card:hover
.profile-picture img {

    filter:
        grayscale(0%);

}


/* CONTENT */

.profile-content h3 {

    font-size: 40px;

    line-height: 1;

}

.profile-role {

    margin-top: 5px;

    color: #777;

    font-size: 17px;

}

.profile-description {

    max-width: 600px;

    margin-top: 20px;

    color: #999;

    font-size: 21px;

}


/* STATS */

.stats {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    margin-top: 30px;

    border-top:
        1px solid #333;

    border-bottom:
        1px solid #333;

}

.stat {

    padding: 15px;

    border-right:
        1px solid #333;

}

.stat:last-child {

    border-right: none;

}

.stat span {

    display: block;

    color: #555;

    font-size: 14px;

}

.stat strong {

    display: block;

    margin-top: 3px;

    font-size: 18px;

}


/* FOOTER */

.profile-bottom {

    display: flex;

    justify-content:
        space-between;

    padding: 12px 18px;

    border-top:
        1px solid #333;

    color: #666;

    font-size: 15px;

}


/* =========================================
   CONTACT
========================================= */

.contact-section {

    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    margin: auto;

    padding: 160px 0 120px;

    text-align: center;

}

.contact-section h2 {

    margin-top: 15px;

    font-size:
        clamp(
            55px,
            9vw,
            100px
        );

    line-height: .8;

}

.contact-section h2 span {

    display: block;

    color: #555;

}

.contact-description {

    max-width: 500px;

    margin: 35px auto;

    color: #777;

    font-size: 21px;

}


/* CONTACT BUTTON */

.contact-button {

    display: inline-flex;

    padding:
        12px
        25px;

    border:
        1px solid white;

    font-size: 23px;

    transition:

        background .2s ease,
        color .2s ease,
        transform .2s ease;

}

.contact-button:hover {

    background: white;

    color: black;

    transform:
        translateY(-4px);

}


/* SOCIALS */

.socials {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 25px;

    margin-top: 60px;

}

.socials a {

    color: #555;

    transition:
        color .15s ease;

}

.socials a:hover {

    color: white;

}


/* =========================================
   FOOTER
========================================= */

footer {

    width: min(
        var(--max-width),
        calc(100% - 40px)
    );

    margin: auto;

    padding: 25px 0;

    display: flex;

    justify-content:
        space-between;

    border-top:
        1px solid #222;

    color: #444;

    font-size: 15px;

}


/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(25px);

    transition:

        opacity .6s ease,
        transform .6s ease;

}

.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {


    .header {

        height: auto;

        padding:
            20px
            0;

    }

    nav {

        gap: 15px;

    }

    nav a {

        font-size: 17px;

    }


    /* HERO */

    .hero {

        min-height: auto;

        padding:
            90px
            0
            110px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 60px;

    }

    .hero h1 {

        font-size:
            clamp(
                70px,
                20vw,
                110px
            );

    }

    .hero-text {

        font-size: 20px;

    }

    .hero-buttons {

        flex-direction: column;

    }

    .button {

        width: 100%;

    }

    .hero-scroll {

        margin-top: 50px;

    }


    /* CHARACTER */

    .hero-character {

        max-width: 320px;

        margin: auto;

    }


    /* SECTIONS */

    .section {

        padding:
            90px
            0;

    }

    .section-heading {

        align-items:
            flex-start;

    }

    .section-heading h2 {

        font-size: 50px;

    }


    /* PROJECTS */

    .projects {

        grid-template-columns: 1fr;

    }

    .project.featured {

        grid-column: auto;

        grid-template-columns: 1fr;

        grid-template-rows: auto 1fr;

    }

    .project-image {

        min-height: 200px;

    }

    .project-info {

        min-height: 230px;

    }


    /* ABOUT */

    .profile-main {

        grid-template-columns: 1fr;

        padding: 25px;

    }

    .profile-picture {

        width: 150px;
        height: 150px;

    }

    .profile-content h3 {

        font-size: 35px;

    }

    .stats {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .stat:nth-child(2) {

        border-right: none;

    }

    .stat:nth-child(-n+2) {

        border-bottom:
            1px solid #333;

    }


    /* CONTACT */

    .contact-section {

        padding:
            120px
            0
            90px;

    }

    .socials {

        gap: 18px;

    }


    /* FOOTER */

    footer {

        flex-direction: column;

        gap: 5px;

    }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 450px) {

    body {

        font-size: 19px;

    }

    .header {

        width:
            calc(100% - 30px);

    }

    .logo {

        font-size: 25px;

    }

    nav {

        gap: 8px;

    }

    nav a {

        font-size: 15px;

    }

    .hero {

        width:
            calc(100% - 30px);

    }

    .section,
    .contact-section {

        width:
            calc(100% - 30px);

    }

    .hero h1 {

        font-size: 68px;

    }

    .section-heading h2 {

        font-size: 45px;

    }

    .project-info h3 {

        font-size: 32px;

    }

    .character-info {

        grid-template-columns: 1fr;

    }

    .profile-main {

        padding: 20px;

    }

    .stats {

        grid-template-columns: 1fr;

    }

    .stat {

        border-right: none;

        border-bottom:
            1px solid #333;

    }

    .stat:last-child {

        border-bottom: none;

    }

}