@font-face {
    font-family: "archivo";
    src: url("assets/fonts/archivo.ttf");
}

* {
    margin: 0;
    padding: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    
    --primary: #800000;
    --secondary: #a00000;
    --light: #f4f4f4;
    --dark: #161618;
    --light-dark: #1c1c1e;

    background: #161618;
    background: linear-gradient(180deg, rgba(22, 22, 24, 1) 95%, rgba(28, 28, 30, 1) 100%);
    color: var(--light);
    font-family: "archivo";
}

.art-bg {
    width: 35vw;
    height: 35vw;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -15vw;
    top: -15vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.art-bg img {
    width: 33vw;
    height: 33vw;
    transform: rotate(0deg);
    animation: spin 10s infinite ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.socials {
    position: absolute;
    display: flex;
    right: 0;
    top: 0;
    margin-top: 20px;
    margin-right: 20px;
}

.socials a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in-out;
    margin: 10px;
}

.socials a:hover {
    background-color: var(--secondary);
    width: 80px;
    height: 80px;
    margin: 0;
}

.socials img {
    width: 32px;
    height: 32px;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.main-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.main-text p {
    max-width: 500px;
}

section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 90vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.1);
    animation: stars 5s linear infinite;
}

span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes stars {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }

    100% {
        transform: rotate(315deg) translateX(-150vh);
        opacity: 0;
    }
}

span:nth-child(1) {
    top: 0;
    right: 0;
    left: initial;
    animation-duration: 2s;
}

span:nth-child(2) {
    top: 0;
    right: 10vw;
    left: initial;
    animation-duration: 6s;
}

span:nth-child(3) {
    top: 10vw;
    right: 0;
    left: initial;
    animation-duration: 4s;
}

span:nth-child(4) {
    top: 0;
    right: 20vw;
    left: initial;
    animation-duration: 3s;
}

span:nth-child(5) {
    top: 0;
    right: 50vw;
    left: initial;
    animation-duration: 5s;
}

span:nth-child(6) {
    top: 0;
    right: 45vw;
    left: initial;
    animation-duration: 6s;
}

span:nth-child(7) {
    top: 40vw;
    right: 0px;
    left: initial;
    animation-duration: 3.5s;
}

span:nth-child(8) {
    top: 0px;
    right: 60vw;
    left: initial;
    animation-duration: 2.5s;
}

span:nth-child(9) {
    top: 30vw;
    right: 0vw;
    left: initial;
    animation-duration: 4.5s;
}

span:nth-child(10) {
    top: 0px;
    right: 35vw;
    left: initial;
    animation-duration: 5.5s;
}

.line-container {
    position: absolute;
    bottom: 5vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.line {
    width: 80vw;
}

.wrapper {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-container {
    width: 85%;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-wrap: wrap;
}

.project-container a {
    margin: 25px;
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background-color: var(--light-dark);
    color: var(--light);
    text-decoration: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
}

.project-container a:hover {
    width: 250px;
    height: 250px;
    margin: 0;
    cursor: pointer;
    background-color: var(--primary);
}

.project-container a .text-box {
    width: 180px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.project-container a .text-box h2::after {
    content: "\00a0";
    display: block;
    line-height: 0.3;
}

.line-container-subsequent {
    padding: 5vh 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Already present

.line {
    width: 80vw;
}

*/

.container-about {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: 25px 7.5%;
}

.container-about .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50vw;
}

.container-about .info h1 {
    margin-bottom: 10px;
}

.container-about .info .links {
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.links a {
    background: linear-gradient(to bottom, var(--primary) 0%, var(--primary) 100%);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 3px 3px;
    color: var(--light);
    text-decoration: none;
    padding-bottom: 7px;
    padding-right: 5px;
}

.links a:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='%23800000' stroke-width='2' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E");
    background-position: 0 100%;
    background-size: auto 6px;
    background-repeat: repeat-x;
    text-decoration: none;
}

.arrow {
    position: relative;
    display: flex;
    flex: 1;
}

.arrow p {
    position: absolute;
    top: -35px;
    font-style: italic;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    transform: rotate(-30deg);
}

.arrow p img {
    transform: rotate(210deg);
    filter: invert(1);
}

.container-about .profile {
    width: 30vw;
    height: auto;
    border-radius: 50%;
    border: solid var(--light) 3px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 20px;
}

footer a {
    background: linear-gradient(to bottom, var(--light) 0%, var(--light) 100%);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 3px 3px;
    color: var(--light);
    text-decoration: none;
    padding-bottom: 7px;
    padding-right: 3px;
}

footer a:hover {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='squiggle-link' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ev='http://www.w3.org/2001/xml-events' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-20px);}}%3C/style%3E%3Cpath fill='none' stroke='%23f4f4f4' stroke-width='2' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E");
    background-position: 0 100%;
    background-size: auto 6px;
    background-repeat: repeat-x;
    text-decoration: none;
}

@media screen and (max-width: 1000px) {
    body {
        background: linear-gradient(180deg, rgba(22, 22, 24, 1) 97%, rgba(28, 28, 30, 1) 100%);
    }

    .container {
        height: 100svh;
    }

    .art-bg {
        width: 50vw;
        height: 50vw;
        left: -20vw;
        top: -20vw;
    }

    .art-bg img {
        width: 48vw;
        height: 48vw;
    }

    .socials {
        position: absolute;
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto;
        right: 0;
        top: 0;
        margin-top: 10px;
        margin-right: 10px;
    }

    .socials a:nth-child(1) {
        grid-column: 3 / span 1;
        grid-row: 1;
    }

    .socials a:nth-child(2) {
        grid-column: 4 / span 1;
        grid-row: 1;
    }

    .socials a:nth-child(3) {
        grid-column: 5 / span 1;
        grid-row: 1;
    }

    .socials a:nth-child(4) {
        grid-column: 4 / span 1;
        grid-row: 2;
    }

    .socials a:nth-child(5) {
        grid-column: 5 / span 1;
        grid-row: 2;
    }

    .socials a:nth-child(6) {
        grid-column: 6 / span 1;
        grid-row: 3;
    }
    
    .socials a {
        width: 40px;
        height: 40px;
        margin: 7.5px;
        border-radius: 50%;
        background-color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
    }
    
    .socials a:hover {
        width: 55px;
        height: 55px;
        margin: 0;
    }
    
    .socials img {
        width: 24px;
        height: 24px;
    }

    .main-text {
        max-width: 300px;
    }

    section {
        height: 90svh;
    }

    span:nth-child(1) {
        top: 0;
        right: 0;
        left: initial;
        animation-duration: 2s;
    }
    
    span:nth-child(2) {
        top: 0;
        right: 20vw;
        left: initial;
        animation-duration: 6s;
    }
    
    span:nth-child(3) {
        top: 0;
        right: 40vw;
        left: initial;
        animation-duration: 4s;
    }
    
    span:nth-child(4) {
        top: 10vh;
        right: 0;
        left: initial;
        animation-duration: 3s;
    }
    
    span:nth-child(5) {
        top: 20vh;
        right: 0;
        left: initial;
        animation-duration: 5s;
    }
    
    span:nth-child(6) {
        top: 30vh;
        right: 0;
        left: initial;
        animation-duration: 6s;
    }
    
    span:nth-child(7) {
        top: 40vh;
        right: 0;
        left: initial;
        animation-duration: 3.5s;
    }
    
    span:nth-child(8) {
        top: 50vh;
        right: 0;
        left: initial;
        animation-duration: 2.5s;
    }
    
    span:nth-child(9) {
        top: 60vh;
        right: 0;
        left: initial;
        animation-duration: 4.5s;
    }
    
    span:nth-child(10) {
        top: 80vh;
        right: 0;
        left: initial;
        animation-duration: 5.5s;
    }

    .line-container {
        bottom: 5svh;
    }

    .container-about {
        justify-content: center;
        flex-direction: column-reverse;
        gap: 25px;
    }

    .container-about .info {
        width: fit-content;
        padding: 10px;
    }

    .container-about .info .links {
        flex-direction: column;
    }

    .links a {
        width: fit-content;
    }

    .arrow {
        display: none;
    }

    .container-about .profile {
        width: 60vw;
    }

    footer {
        padding-top: 0px;
    }
}