* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body, button, input, a, p {
    font-family: 'Poppins', sans-serif;
}

.roboto {
    font-family: 'Roboto Mono', sans-serif;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    background: linear-gradient(180deg, #000000 0%, #1C1C1C 100%);
    background-attachment: fixed;
}

a, a:visited, a:hover {
    color: #fff;
    text-decoration: none;
}

a.btn {
    background: #6C0BEC;
    border-radius: 5.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border: 1px solid #6C0BEC;
}

.container, nav {
    max-width: 1240px;
    width: 100%;
    padding: 0 50px;
    margin: 0 auto;
}

@media(max-width: 640px) {
    .container, nav {
        padding: 0 12px;
    }
}

nav {
    display: grid;
    grid-template-columns: max-content max-content;
    grid-gap: 2rem;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 50px;
}

nav ul {
    display: flex;
    gap: 3rem;
    align-items: center;
}

@media(max-width: 780px) {
    nav {
        place-content: center;
        grid-template-columns: max-content;
    }

    nav .menu {
        display: none;
    }
}

nav ul a {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    transition: 0.35s color, 0.35s background;
}

nav ul a:hover {
    color: #6C0BEC;
}

nav ul a.btn {
    font-size: 1rem;
}

nav ul a.btn:hover {
    background: rgba(255, 255, 255, 1);
}

h1 {
    font-weight: 700;
    font-size: 6.625rem;
    line-height: 7rem;
    text-align: center;
    color: #FFFFFF;
}

@media(max-width: 780px) {
    h1 {
        font-size: 2.65rem;
        line-height: 3rem;
    }
}

h2 {
    font-weight: 700;
    font-size: 3.875rem;
    line-height: 6.25rem;
    text-align: center;
    color: #FFFFFF;
}

@media(max-width: 780px) {
    h2 {
        font-size: 2.875rem;
        line-height: 3.25rem;
    }
}

h3 {
    font-weight: 500;
    font-size: 1.875rem;
    line-height: 2.25rem;
    text-align: center;
}

@media(max-width: 780px) {
    h3 {
        font-size: 1.475rem;
        line-height: 1.95rem;
    }
}

h4 {
    font-weight: 500;
    font-size: 1.25rem;
    text-align: center;
}

@media(max-width: 780px) {
    h4 {
        font-size: 1.15rem;
    }
}

main {
    position: relative;
    overflow: hidden;
    width: 100%;
    opacity: 1;
    transition: 0.33s height, 0.33s width, 0.1s opacity;
}

main.fade-in {
    opacity: 0;
    width: 1px;
    height: 1px;
}

#top {
    position: relative;
    color: #FFFFFF;
}

#top > svg {
    position: absolute;
    left: -30%;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: -1;
}

#top .container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
}

@media(max-width: 780px) {
    #top .container {
        gap: 2rem;
    }
}

#top h4 span {
    color: #00BBFF;
}

#top h4 span:nth-child(2) {
    color: #6DE58B;
    cursor: pointer;
    transition: 0.13s text-shadow;
    text-shadow: 3px 5px 1px rgba(109, 229, 139, 0.23);
}

#top h4 span:nth-child(2):hover {
    text-shadow: 17px 17px 1px #00BBFF;
}

#top a {
    position: relative;
    margin: 4rem auto 5rem auto;
    display: block;
}

@media(max-width: 780px) {
    #top a {
        margin: 1rem auto 2rem auto;
    }
}

#top a svg, #top a svg rect {
    transition: 0.33s all;
}

#top a:hover svg {
    transform: translateY(10px);
}

#top a:hover svg rect {
    stroke: #00BBFF;
}

#aboutMe {
    padding: 3rem 0;
}

#aboutMe .boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    border: 2px solid #FFFFFF;
    max-width: 950px;
    margin: 50px auto;
}

#aboutMe .boxes .header {
    display: grid;
    grid-template-columns: max-content auto;
    grid-gap: 1rem;
    align-items: center;
    padding: 2rem 1rem 0 1rem;
}

#aboutMe .boxes .header h3 {
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 2rem;
    color: #FFFFFF;
    text-align: left;
}

@media(max-width: 780px) {
    #aboutMe .boxes .header h3 {
        font-size: 1.4rem;
    }
}

#aboutMe .boxes > div {
    border-right: 2px solid #FFFFFF;
}

#aboutMe .boxes > div:last-child {
    border-right: none;
}

#aboutMe .boxes .content {
    padding: 2rem 1rem 2rem 1rem;
}

#aboutMe .boxes .content > div {
    color: #A9A9A9;
    font-family: 'Roboto Mono', sans-serif;
}

#aboutMe .boxes .content p {
    padding-left: 1.5rem;
    margin: 0.5rem 1rem;
    border-left: 2px solid #A9A9A9;
    font-family: 'Roboto Mono', sans-serif;
    color: #FFFFFF;
}

#aboutMe .code {
    z-index: -1;
    margin: -100px auto 0 auto;
    max-width: 100%;
    display: block;
    position: relative;
}

#portfolio, #experience, #skills, #contact {
    position: relative;
    padding: 3rem 0;
}

#portfolio > svg, #experience > svg {
    position: absolute;
    z-index: -1;
    right: -40%;
    top: -20%;
    width: 100%;
    height: 1500px;
}

#portfolio .container > p, #experience .container > p, #skills .container > p, #contact .container > p {
    font-family: 'Roboto Mono', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 2.25rem;
    color: #FFFFFF;
    text-align: center;
    margin: 3rem 0;
}

@media(max-width: 780px) {
    #portfolio .container > p, #experience .container > p, #skills .container > p, #contact .container > p {
        font-size: 1.10rem;
        line-height: 1.55rem;
        margin: 1.5rem 0;
    }
}

#portfolio .projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    gap: 2rem;
}

@media(max-width: 1024px) {
    #portfolio .projects {
        grid-template-columns: repeat(2, minmax(0px, 1fr));
    }
}

@media(max-width: 780px) {
    #portfolio .projects {
        display: block;
    }

    #portfolio .projects > div {
        margin-bottom: 1rem;
    }
}

#portfolio .projects .header {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
}

#portfolio .projects img {
    position: relative;
    width: 150%;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: .9;
    transition: 0.33s width, 0.32s transform, 0.32s opacity;
}

#portfolio .projects > div:hover img {
    width: 200%;
    transform: translate(-50%, -50%) rotate(15deg);
    opacity: 1;
}

#portfolio .projects > div {
    border: 1px solid rgba(108, 11, 236, 0.3);
}

#portfolio .projects > div.v2 {
    grid-column: span 2;
}

#portfolio .projects .content {
    padding: 1rem;
    background: #232323;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 2rem;
    color: #FFFFFF;
}

#portfolio .projects .content span {
    display: block;
    font-weight: 300;
    font-size: 0.8rem;
    font-family: 'Roboto Mono', sans-serif;
}

#experience .tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-weight: 400;
    font-size: 18px;
    line-height: 31px;
    color: #FFFFFF;
}

@media(max-width: 780px) {
    #experience .tags {
        margin-bottom: 1rem;
    }
}

#experience .tags span {
    padding: 0.5rem 0.75rem;
    font-family: 'Roboto Mono', sans-serif;
    border: 1px solid #FFFFFF;
    border-radius: 28px;
    font-size: .8rem;
}

#skills .items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    place-content: center;
}

@media(max-width: 780px) {
    #skills .items {
        gap: 1rem;
    }
}

#skills .items > div .image {
    display: block;
    background: rgba(108, 11, 236, 0.3);
    border-radius: 28px;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

#skills .items > div {
    text-align: center;
    font-family: 'Roboto Mono', sans-serif;
    font-size: 1.2rem;
    line-height: 2rem;
    color: #FFFFFF;
}

#skills .items .image img {
    width: 120px;
    height: 120px;
    filter: drop-shadow(2px 4px 3px #6DE58B) invert(1);
}

@media(max-width: 780px) {
    #skills .items .image img {
        width: 80px;
        height: 80px;
    }
}

#contact .items {
    display: grid;
    grid-template-columns: max-content max-content;
    grid-gap: 2rem;
    justify-content: space-between;
    max-width: 820px;
    margin: 2rem auto;
}

#contact .items > div {
    display: grid;
    grid-template-columns: max-content auto;
    align-items: center;
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 2rem;
    color: #FFFFFF;
    grid-gap: 1rem;
}

@media(max-width: 780px) {
    #contact .items {
        grid-template-columns: max-content;
        font-size: 1rem;
    }
}

#contact .items > div a {
    font-weight: 700;
    display: block;
    font-size: 1.5rem;
}

@media(max-width: 780px) {
    #contact .items > div a {
        font-size: 1.25rem;
    }
}

footer {
    background: #6C0BEC;
    text-align: center;
    line-height: 2rem;
    padding: 2rem 0;
    font-size: 1.1rem;
    color: white;
    font-family: 'Roboto Mono', sans-serif;
}