@import url("https://use.typekit.net/wcf4psm.css");

/* Grosor Light */
@font-face {
  font-family: '__1';
  src: url('fonts/Cerchiai-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Grosor Regular */
@font-face {
  font-family: '__2';
  src: url('fonts/Cerchiai-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Grosor Bold */
@font-face {
  font-family: '__3';
  src: url('fonts/Cerchiai-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
    --black: #212121;
    --white: #ffffff;
}

::selection {
    background-color: var(--black);
    color: var(--white);
}

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

body {
    cursor: url('img/cursor.png')16 16, auto;
}

/* --------------------------------- SHORTCUTS --------------------------------- */

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

header {
    display: flex;
    height: 25vh;
    width: 100%;
    border-bottom: 1px solid var(--black);
}

main {
    display: flex;
    height: 75vh;
    width: 100%;
}

.left {
    height: 100%;
    width: 25%;
    border-right: 1px solid var(--black);
    display: flex;
    justify-content: end;
    align-items: end;
}

.right {
    display: flex;
    height: 100%;
    width: 75%;
    display: flex;
    justify-content: end;
    align-items: end;
}

main .left, main .right {
    padding: 2rem;
}

main .left {
    padding: 4rem;
}

/* --------------------------------- HOME --------------------------------- */

h1 {
    font-family: 'neue-haas-grotesk-display', sans-serif;
    font-weight: 900;
    color: var(--black);
    font-size: 7rem;
    line-height: 3.5rem;
    margin-bottom: 3rem;
    margin-right: 2rem;
}

h2 {
    font-family: '__1', sans-serif;
    font-size: 9rem;
    font-weight: lighter;
    line-height: 5rem;
    margin-right: 3rem;
    margin-bottom: 3rem;
    color: var(--black);
}

h3 {
    font-family: 'neue-haas-grotesk-display', sans-serif;
    font-weight: 800;
    color: var(--black);
    font-size: 3rem;
    line-height: 2.75rem;
    transition: all 0.3s ease;
}

p {
    font-size: 1.3rem;
    text-align: justify;
}

a {
    text-decoration: none;
    color: inherit;
    font-family: 'neue-haas-grotesk-display', sans-serif;
    font-weight: 800;
    color: var(--black);
    font-size: 3rem;
    line-height: 2.75rem;
    transition: all 0.3s ease;
}

button {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-family: 'neue-haas-grotesk-display', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    background-color: var(--black);
    color: var(--white);
    transition: all 0.3s ease;
}

button:hover {
    transform: scale(.9);
}

#home main .right {
    background-image: url(img/ascii-art.png);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center bottom;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right .top {
    justify-self: end;
    text-align: right;
}

.right .bottom {
    align-self: start
}

#home h3:hover {
    font-size: 4rem;
}

header {
    transition: all 0.2s;
}

header:hover {
    background: var(--black);
}

header:hover h1, header:hover h2, header:hover i {
    color: #fff
}

#home main .left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* --------------------------------- CONTENT --------------------------------- */

#content {
    height: 100vh;
    width: 100%;
}

.left-alt {
    width: 75vw;
    border: none;
}

.right-alt {
    width: 25vw;
    padding: 2rem;
    border-left: 1px solid var(--black);
}

.skills-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.skills-container i, .skills-container img {
    font-size: 2.5rem;
    color: var(--black);
    height: 2.5rem;
    transition: all 0.3s ease;
}

.skills-container img {
    border-radius: 7px;
}

.skills-container i:hover, .skills-container img:hover {
    transform: scale(1.4);
}

main .one, main .two {
    border-right: 1px solid var(--black)
}

main .one, main .two, main .three {
    height: 100%;
    width: 100%;
    text-align: center;
}

.label {
    width: 100%;
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--black)
}

.card-content {
    padding: 4rem;
}

#content main .left {
    background-image: url(img/ascii-art.png);
    background-size: 70%;
    transform: scale(-1,-1);
    background-repeat: no-repeat;
    background-position: center bottom;
    display: flex;
    flex-direction: column;
    align-items: top;
}

#content main .bottom {
    transform: scale(-1,-1);
    width: 100%;
}

#content main .right {
    align-items: start;
}

.project {
    border: none;
}

.project .right {
    justify-content: start;
    margin-left: 3rem;
    text-align: left;
}

.project .left h1{
    margin-right: 3rem;
}

.project h1 {
    transition: all 0.2s;
    margin-right: 1rem;
}

.project:hover {
    background: var(--black);
}

.project:hover h1 {
    color: var(--white)
}

@media (max-width: 1580px) {
    #home h1 {
        font-size: 6rem;
    }
}

@media (max-width: 1360px) {
    #home h1, h1 {
        font-size: 5rem;
    }
}

@media (max-width: 1200px) {
    #home h1 {
        font-size: 3rem;
    }
    .skills-container i, .skills-container img {
        font-size: 2rem;
        height: 2rem;
    }
}

@media (max-width: 800px) {
    header .left {
        display: none;
    }
    header, #content main {
        display: flex;
        flex-direction: column;
    }
    main {
        display: flex;
        flex-direction: column-reverse;
        height: 100%;
    }
    .left, .right {
        width: 100%;
        border: none;
    }
    h1 {
        font-size: 3rem;
        text-align: center;
        margin: 0;
        line-height: 3rem;
    }
    h3 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    p {
        font-size: 1rem;
    }
    #home header .right {
        height: 25vh;
        padding: 2rem;
        justify-content: center;
        align-items: center;
    }
    #home main .right {
        min-height: 45vh;
        z-index: -5;
        border-bottom: 1px solid var(--black);
        padding: 1rem;
        background-size: 85%;
    }
    button {
        padding: 0.75rem;
        margin-top: 1rem;
        font-size: 1rem;
    }
    h3, button:hover {
        transform: none;
    }

    #content header {
        height: 30vh;
    }

    #content header .left, #content header .right {
        display: flex;
        text-align: center;
        justify-content: center;
    }

    #content i, #content img {
        font-size: 2rem;
        height: 2rem;
    }
    #content .left .bottom {
        text-align: center;
    }

    #content main .left {
        background-image: none;
    }
    #content main .right {
        display: none;
    }
    #content {
        height: 100%;
    }

    section .project .right {
        margin: 0;
        justify-content: end;
    }
    section .project h1 {
        line-height: 2rem;
        font-size: 3rem;
        text-align: right;
    }
    .skills-container .fa-git-alt {
        display: none;
    }
}

