@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body{
    margin: 0;
    padding: 0;
    background-color: rgb(20, 20, 20);
    color: #ffeaea;
    font-family: 'Roboto', serif;

    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

h1{
    all: unset;
    font-weight: 500;
    font-size: 8rem;
    width: fit-content;
}
.name{
    background: linear-gradient(to right, #ff1d1d, #67b0fe);
    background-clip: text;
    color: transparent;
}
h4{
    all: unset;
    font-weight: 400;
    font-size: 2rem;
    margin-left: 5px;
}
p{
    font-weight: 400;
    font-size: large;
}
h2{
    all: unset;
    font-weight: 500;
    font-size: 3rem;
}

.basic-button{
    width: fit-content;
    height: 3rem;
    border: none;
    border-radius: 5px;
    padding-left: 20px;
    padding-right: 20px;
    font-family: inherit;
    font-weight: 500;
    font-size: large;
    background-color: #ff1d1d;
    color: white;
    box-shadow: 0 0 5px 2px black;
    cursor: pointer;
}
.basic-button:hover, .basic-button:focus{
    animation: wobble 1s ease infinite;
}
@keyframes wobble{
    0%{transform: rotate(0deg);}
    20%{transform: rotate(10deg);}
    40%{transform: rotate(-10deg);}
    60%{transform: rotate(5deg);}
    80%{transform: rotate(-5deg);}
    90%{transform: rotate(0deg);}
    100%{transform: rotate(0deg);}
}

nav{
    width: 100%;
    height: 4rem;
    position: fixed;
    display: flex;
    justify-content: space-between;
    border: 2px solid rgb(60, 60, 60);
    background-color: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    z-index: 200;
}
.button-group-wrapper{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
ul{
    all: unset;
    list-style: none;
    width: 20rem;
    display: flex;
    justify-content: space-evenly;
    margin-left: 5rem;
}
a{
    all: unset;
    cursor: pointer;
}
nav a{
    font-weight: 500;
}
nav a:hover{
    color: #67b0fe;
}
.right-button-group{
    margin-right: 5rem;
}

.cover{
    position: relative;
    height: 100vh;
    width: 90%;
    display: flex;
    align-items: center;
}

/* orange line */
.cover::after{
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 15%;
    height: 3px;
    background-color: #ff1d1d;
}
.cover::before{
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #ff1d1d;
}
.description::after{
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 3px;
    height: 50%;
    background-color: #ff1d1d;
}
.description{
    width: fit-content;
    display: flex;
    flex-direction: column;
    margin-left: 5rem;

}

.projects, .about, .contact{
    position: relative;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.title{
    padding: 1rem;
}
.wrapper{
    border: 1px solid rgb(60, 60, 60);
    border-radius: 5px;
    background-color: rgb(25, 25, 25);

    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 5rem;
}
.project-item{
    border: 1px solid rgb(60, 60, 60);
    width: 22rem;
    height: 15rem;
    margin: 0.5rem;
    overflow: hidden;
    filter: brightness(0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
img{
    width: 100%;
}
.project-item::after{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    animation: hide 0.5s ease-in forwards;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 1));
    backdrop-filter: blur(3px);
}
.project-item:hover::after{
    animation: show 0.2s ease-out forwards;
}
@keyframes show{
    100%{
        top: 0;
    }
}
.project-description{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}
.project-description:hover{
    opacity: 1;
}

/* orange line */
.projects::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: #ff1d1d;
}
.projects::before{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff1d1d;
}

.about-description{
    max-width: 30rem;
    display: flex;
    flex-direction: column;
    margin: 3rem;
    line-height: 30px;
    font-weight: 400;
}
.image{
    width: 30rem;
    border: 2px solid rgb(60, 60, 60);
    border-radius: 5px;
    margin: 3rem;
}
.skills{
    display: flex;
    flex-wrap: wrap;
}
.skill-item{
    width: fit-content;
    padding: 10px;
    border: 1px solid rgb(70, 70, 70);
    background-color: rgb(40, 40, 40);
    border-radius: 100px;
    margin-right: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*orange line*/
.about::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background-color: #ff1d1d;
}
.about::before{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff1d1d;
}

.contact-item{
    border: 1px solid rgb(70, 70, 70);
    background-color: rgb(40, 40, 40);
    border-radius: 5px;
    margin: 2rem;
}
.contact a{
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


/*orange line*/
.contact::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: #ff1d1d;
}
.contact::after{
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff1d1d;
}

.highlight{
    color: #67b0fee0;
    font-weight: bold;
}

footer{
    width: 100%;
    height: 10rem;
    background: linear-gradient(transparent, black);
    display: flex;
    justify-content: center;
    align-items: end;
}
.copyright{
    color: gray;
    margin-bottom: 0.5rem;
}

@media only screen and (max-width: 650px){
    ul{
        margin-left: 0;
    }
    .right-button-group{
        margin-right: 1rem;
    }
    h1{
        font-size: 20vw;
    }
}

@media only screen and (max-width: 850px){
    .description{
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .cover::after, .description::after{
        display: none;
    }
    .cover{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    p{
        font-size: medium;
    }
    .about-description{
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        text-align: center;
    }
    .image{
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
    .skills{
        justify-content: center;
    }

}

@media only screen and (max-width: 460px){
    h1{
        font-size: 18vw;
    }
    h2{
        font-size: 2rem;
    }
    h4{
        font-size: 1.5rem;
    }
    ul{
        width: fit-content;
    }
    li{
        margin-left: 0.7rem;
    }
    nav .basic-button{
        padding: 5px;
        height: 2rem;
    }
}


/*drone stuff*/
canvas{
    pointer-events: none !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
}
.hint{
    display: none;
}
@media only screen and (min-width: 1100px){
    .drone_light{
        position: absolute;
        box-shadow: 0 0 10vw 5vw rgb(116, 116, 245);
        transform: translateY(5vw);
        z-index: 90;
    }
    .hint{
        display: block;
        position: absolute;
        top: 47%;
        right: 2%;
        font-style: italic;
        opacity: 0.5;
    }
}