* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #05070b;
    background-image: url("background.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: white;
    font-family: "Barlow Condensed", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: -1;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1.5rem 3rem;
}

.logo {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;

    font-size: 1rem;

    opacity: 0.6;

    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}



#home {
    min-height: 90vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 2rem;
}

#home h1 {
    max-width: 1100px;

    margin: 0 0 1.5rem;

    font-size: clamp(4rem, 10vw, 9rem);

    font-weight: 500;

    letter-spacing: -0.02em;

    line-height: 0.9;
}

#home p {
    max-width: 550px;

    margin: 0;

    font-size: 1.2rem;

    line-height: 1.5;

    opacity: 0.7;
}

#home a {
    margin-top: 2rem;

    color: #8ab4ff;

    text-decoration: none;

    font-size: 1.1rem;
}



#about {
    width: 100%;
    max-width: 1200px;

    min-height: 70vh;

    margin: 0 auto;

    padding: 10rem 3rem;
}

.section-label {
    margin: 0 0 1rem;

    font-size: 0.8rem;

    letter-spacing: 0.15em;

    opacity: 0.5;
}

#about h2,
#projects h2 {
    margin: 0 0 3rem;

    font-size: clamp(3rem, 6vw, 5rem);

    line-height: 0.9;
}

#about > p:last-child {
    max-width: 700px;

    margin: 0;

    font-size: clamp(1.4rem, 2.5vw, 2rem);

    line-height: 1.4;

    opacity: 0.7;
}




#projects {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 10rem 4rem;
}

#projects h2 {
    margin-bottom: 4rem;
}

.projects-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 2rem;
}

#projects article {
    width: 100%;
    min-width: 0;

    min-height: 320px;

    padding: 2rem;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 16px;

    display: flex;
    flex-direction: column;
}

.project-number {
    display: block;

    margin-bottom: 3rem;

    font-size: 0.9rem;

    opacity: 0.4;
}

#projects article h3 {
    margin: 0 0 1rem;

    font-size: 2rem;
}

#projects article p {
    max-width: 300px;

    margin: 0;

    line-height: 1.5;

    opacity: 0.6;
}

.project-tech {
    display: flex;

    gap: 0.5rem;

    flex-wrap: wrap;

    margin-top: 1.5rem;

    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.3rem 0.6rem;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 999px;

    font-size: 0.8rem;

    opacity: 0.5;
}

#projects article a {
    display: inline-block;

    margin-top: auto;

    color: #8ab4ff;

    text-decoration: none;

    font-size: 1rem;
}




footer {
    padding: 4rem 3rem 2rem;

    text-align: center;
}

footer p {
    margin: 0;

    font-size: 0.9rem;

    opacity: 0.5;
}




@media (max-width: 768px) {

    nav {
        padding: 1.5rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }


    
    #home {
        min-height: 85vh;

        padding: 1.5rem;
    }

    #home h1 {
        font-size: clamp(3.5rem, 16vw, 6rem);

        line-height: 0.9;
    }

    #home p {
        max-width: 450px;

        font-size: 1.1rem;
    }




    #about {
        padding: 8rem 1.5rem;
    }

    #about h2,
    #projects h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }




    #projects {
        padding: 8rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 1.5rem;
    }

    #projects article {
        min-height: 280px;
    }


    /* FOOTER */

    footer {
        padding: 4rem 1.5rem 2rem;
    }

}



#likes {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 3rem;
}

#likes h2 {
    margin: 0 0 4rem;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
}

.likes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.likes-grid article {
    min-height: 220px;
    padding: 2rem;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
}

.like-number {
    display: block;
    margin-bottom: 3rem;

    font-size: 0.9rem;
    opacity: 0.4;
}

.likes-grid h3 {
    margin: 0 0 1rem;
    font-size: 2rem;
}

.likes-grid p {
    max-width: 400px;
    margin: 0;

    font-size: 1.2rem;
    line-height: 1.5;

    opacity: 0.6;
}



.ascii-cube {
    width: 500px;
    height: 500px;

    margin-top: 3rem;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: grab;
}

.ascii-cube:active {
    cursor: grabbing;
}

#asciiCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {

    .ascii-cube {
        width: 350px;
        height: 350px;
    }

}




#vlog {
    min-height: 60vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 10rem 2rem;
}

#vlog h2 {
    margin: 0 0 2rem;

    font-size: clamp(6rem, 15vw, 12rem);

    font-weight: 500;

    line-height: 0.8;

    letter-spacing: -0.04em;
}

.vlog-link {
    color: #ffffff;

    text-decoration: none;

    font-size: 1.2rem;

    padding: 0.8rem 1.5rem;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 999px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.vlog-link:hover {
    background: #ffffff;

    color: #070b18;

    border-color: #ffffff;
}