*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --background: #04014B;
    --background-grad: #3C25BF;
    --accent: #B386F7;
}

body, html{
    height: 100dvh;
    width: 100dvw;
    background-size: cover;
    background: linear-gradient(var(--background) 67%, var(--background-grad) 100%);
}

.main-wrapper{
    margin-top: 40vh;
    margin-left: 15vw;
    height: 300px;
    width: 800px;
}

.intro{
    font-style: italic;
    font-size: 25px;
    color: #FFFFFF;
}

.name{
    font-size: 100px;
}
.first, .last{
    background: linear-gradient(90deg, #B386F7, #D5C8E9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.desc, .city{
    color: #FFFFFF;
    font-size: 40px;
}

.desc{
    display: flex;
    align-items: baseline; 
    color: #FFFFFF;
    font-size: 40px;
    line-height: 40px;
}

.desc .dynamic{
    margin-left: 10px;
    line-height: 48px;
    height: 48px;
    overflow: hidden;
    position: relative;

}

.dynamic li{
    list-style: none;
    font-weight: bolder;
    top: 0;
    height: 48px;
    line-height: 48px;
    font-size: 40px;
    position: relative;
    animation: slide 9s steps(3) infinite;
    background: linear-gradient(90deg, var(--accent), #D5C8E9);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    
}

@keyframes slide {
    100%{
        top: -144px
    }
    
}

.dynamic li::after{
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    border-left: 2px solid var(--accent);
    background-color: #04014B;
    left: 0;
    animation: typing 3s steps(9) infinite;
} 

@keyframes typing {
    40%, 60%{
        left: calc(100% + 30px)
    }
    100%{
        left: 0;
    }
}

.icon{
    color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 40px;
    height: 60px;
    width: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 5px;
    text-decoration: none;
}

.socials{
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.icon:hover{
    color: #cbaff5;
    border: 1px solid #cbaff5;
    transform: scale(1.1);
}

.contact{
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px;
    margin-top: 20px;
    border-radius: 4px;
    height: 40px;
    width: 175px;
    font-size: 24px;

}

.contact:hover{
    cursor: pointer;
    color: #cbaff5;
    border: 1px solid #cbaff5;
    transform: scale(1.1);
}

.pfp{
    width: 700px;
    height: 700px;
    border-radius: 50%;
    transform: rotate(45deg);
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 25vh;
    left: 60vw;
    border: 2px solid var(--accent);
     box-shadow: 0 0 .2rem #fff,
            0 0 .2rem var(--accent),
            0 0 2rem var(--accent),
            0 0 0.8rem var(--accent),
            0 0 2.8rem var(--accent),
            inset 0 0 1.3rem var(--accent); 
}

.logo{
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 50%;
    height: 70px;
    width: 80px;
}

.nav-bar{
    position: absolute;
    display: flex;
    list-style: none;
    right: 2vw;
    top: 25px;
    gap: 25px;
}

.nav-bar li{
    color: var(--accent);
    display: flex;
    justify-content: space-evenly;
    font-size: 30px;
    border-style: none;
}

.nav-bar li:hover{
    cursor: pointer;
    color: #cbaff5;
    transform: scale(1.1);
}

.nav-bar .text{
    color: #fff;
    font-style: normal;
}

.nav-bar a{
    text-decoration: none;
}

.nav{
    height: 80px;
    border-bottom: 1px solid var(--accent);
}

.nav-bar .text:hover{
    cursor: pointer;
    color: #cbaff5;
}

.resume{
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px;
    border-radius: 4px;
    height: 40px;
    width: 175px;
    font-size: 24px;
}

.resume:hover{
    cursor: pointer;
    color: #cbaff5;
    border: 1px solid #cbaff5;
    transform: scale(1.1);
}

#menu-but{
    display: none;
}

@media (max-width: 400px) {
    
    .pfp{
        position: absolute;
        width: 200px;
        height: 200px;
        margin-top: 115px;
        margin-right: 100px;
       
    }

    .nav-bar{
        display: none;
    }

    #menu-but{
        display: flex;
        position: absolute;
        top: 3px;
        right: 7px;
        font-size: 70px;
        color: var(--accent);

    }

    .main-wrapper{
        position: absolute;
        top: 120px;
    }

    .intro{
        font-size: 20px;
        margin-bottom: -5px;
    }

    .name{
        margin-top: -60px;
    }

    .first, .last{
        font-size: 40px;
    }

    .desc{
        display: flex;
        align-items: flex-start; /* <- change from baseline */
        flex-direction: row; /* Optional: allows better wrapping if needed */
        font-size: 24px;
        line-height: 32px;
        margin-top: -10px; /* Adjust spacing */
        gap: 5px; /* Optional: reduce or increase spacing between inline elements */
    }

    .main-wrapper{
        margin-top: 30vh;
        margin-left: 15vw;
    }

    .desc {
        font-size: 24px;
        line-height: 32px;
    }

    .desc .dynamic {
        margin-left: 5px; /* Reduce spacing */
        line-height: 32px;
        height: 32px;
    }

    .dynamic li {
        font-size: 24px;
        line-height: 32px;
        height: 32px;
        animation: slide 9s steps(3) infinite;
        }
    
    @keyframes slide {
        100%{
            top: -95px
        }

    }

    .icon{
        height: 50px;
        width: 50px;
        font-size: 30px;
        margin-top: -10px;
    }

    .contact{
    margin-top: 10px;

}

}

@media (max-width: 2100px){
    
    .pfp{
        position: absolute;
        display: flex;
        width: 500px;
        height: 500px;
        margin-top: 35vh;
        margin-left: 100px;
       
    }
}

@media (max-width: 1500px){
    
    .pfp{
        position: absolute;
        display: flex;
        width: 400px;
        height: 400px;
        margin-top: 35vh;
        margin-left: 75px;
       
    }

     .intro{
        font-size: 25px;
    }

    .name{
        margin-top: -30px;
    }

    .first, .last{
        font-size: 80px;
    }

     .desc {
        font-size: 24px;
        line-height: 32px;
    }

    .desc .dynamic {
        margin-left: 5px; /* Reduce spacing */
        line-height: 32px;
        height: 32px;
    }

    .dynamic li {
        font-size: 24px;
        line-height: 32px;
        height: 32px;
        animation: slide 9s steps(3) infinite;
        }
    
    @keyframes slide {
        100%{
            top: -95px
        }

    }

    .icon{
        height: 50px;
        width: 50px;
        font-size: 30px;
        margin-top: -10px;
    }

    .contact{
    margin-top: 10px;

}
}

@media (max-width: 1200px){
    
     .pfp{
        position: absolute;
        top: -300px;
        left: 25dvw;
        right: 25dvw;
        width: 350px;
        height: 350px;
    }

    .main-wrapper{
        margin-left: 25dvw;
    }

}

@media (max-width: 1050px){

    .nav-bar .text{
        display: none;
    }
}

@media (max-width: 850px){

    .main-wrapper{
        width: 500px;
    }

    .first, .last{
        font-size: 45px;
    }

    .pfp{
        position: absolute;
        top: -300px;
        left: 10dvw;
        right: 10dvw;
    }

}

@media(max-height: 1200px){

    .pfp{
        position: absolute;
        height: 200px;
        width: 200px;
        top: -100px;
    }

}