@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root{
    --body-font: 'Poppins', sans-serif;
    --light-font-color: rgb(0, 199, 199);
    --navbar-background: rgba(0, 72, 72, 0.6);
    --hero-text-background: rgba(0, 128, 128, 0.5);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
    scroll-behavior: smooth;
}

body{
    background-color: #000;
}

.one{
    min-height: 100vh;
    min-width: 100%;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.sub-title{
    font-size: 1rem;
}

.main-section{
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Rubik Mono One', sans-serif;
}

pre{
    display: inline;
}

#text{
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--hero-text-background);
    padding: 1rem 1.3rem;
    width: fit-content;
    height: fit-content;
    border-radius: 5px;
    font-size: 3rem;
    text-align: center;
    position: absolute;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    animation: heroAnimation 4s ease-in-out;
}

@keyframes heroAnimation{
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.post-title{
    font-size: 2rem;
}

#canv{
    width: 100vw;
    height: 100vh;
}

.upper-mask,
.lower-mask{
    width: 100%;
    height: 20rem;
    position: absolute;
    z-index: 50;
}

.upper-mask{
    background: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0));
    top: 0;
}

.lower-mask{
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,1));
    bottom: 0;
}

.navbar{
    width: 100%;
    height: 5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--navbar-background);
    position: sticky;
    z-index: 110;
    top: 0;
    color: #fff;
    padding: 0 10rem;
    backdrop-filter: blur(5px);
}

.footer{
    width: 100%;
    height: 5rem;
    background-color: var(--navbar-background);
    display: grid;
    place-items: center;
}

.footer p,
.footer p a
{
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
}

.logo{
    font-size: 3rem;
}

.links ul{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.links ul li{
    list-style: none;
}

.links ul li a{
    text-decoration: none;
    color: #fff;
    margin: 0 1rem;
    font-size: 1.4rem;
}

.links ul li:last-child a{
    margin-right: 0;
}

.ham-menu{
    display: grid;
    place-items: center;
    display: none;
}

.ham-menu img{
    /* display: none; */
    width: 2rem;
    height: 2rem;
    background-color: transparent;
    color: #fff;
}

.links ul li a:hover{
    text-decoration: underline;
}

.two,
.three,
.four,
.five{
    height: 70vh;
    padding: 5rem 10rem 5rem;
    width: 100%;
    background-color: #000;
    color: #fff;
    margin-bottom: 5rem;
}

.three{
    height: 100%;
}

.four{
    padding-top: 0;
}

.five{
    padding: 5rem 10rem 0;
    height: 100%;
}

.education-details{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
}

.education-detail-1,
.education-detail-2,
.education-detail-3,
.education-detail-4{
    border: 1px solid white;
    width: 30rem;
    height: auto;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.education-detail-1:hover,
.education-detail-2:hover,
.education-detail-3:hover,
.education-detail-4:hover{
    box-shadow: 5px 5px 1px rgb(0, 199, 199);
    transform: translate(-0.5rem, -0.5rem);
}

.education-detail-1 h2,
.education-detail-2 h2,
.education-detail-3 h2,
.education-detail-4 h2{
    margin: 0.5rem 0;
    color: rgb(0, 199, 199);
}

.skills-title,
.project-title,
.about-title,
.education-details-title{
    font-size: 2rem;
    margin: 1rem 0;
    animation: textAnimation;
}

.education-details-title{
    margin-bottom: 2rem;
}

.skills-list{
    font-size: 1.7rem;
    display: flex;
    flex-direction: row;
    margin-top: 3rem;
    gap: 1rem;
    justify-content: space-between;
}

.skills-list h2{
    text-decoration: underline;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skills-list p{
    text-align: left;
    margin: 0.3rem 0;
    overflow: hidden; 
    /* border-right: 0.3rem solid rgba(0, 128, 128, 0.5); */
    white-space: nowrap; 
    letter-spacing: .15em;
    animation: typing 1s steps(40, end),
        blink-caret 0.2s step-end infinite;
    width: fit-content;
    font-size: 1.5rem;
}

.skills-list p:nth-child(even){
    color: var(--light-font-color);
    font-weight: 500;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
  
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgba(0, 128, 128, 0.5); }
}

.projects-main{
    min-height: 50vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    margin: 3rem 0 0;
}

.project-card{
    border: 1px solid #fff;
    width: min-content;
    min-width: 20rem;
    height: fit-content;
    padding: 1rem;
}

.project-card:hover,
.project-card:active
{
    box-shadow: 5px 5px 1px rgb(0, 199, 199);
    transform: translate(-0.5rem, -0.5rem);
}

.project-card h1{
    font-size: 2.6rem;
    text-transform: uppercase;
}

.description-div,
.technologies-div,
.links-div{
    margin: 1rem 0;
}

.project-card h4{
    display: inline;
    color: var(--light-font-color);
}

.project-card p,
.project-card a
{
    color: #fff;
    display: inline;
}

.four .about-sub-section{
    display: flex;
    flex-direction: row;
}

.highlight{
    color: rgb(0, 199, 199);
    font-weight: 600;
}

.about-text-div{
    width: 60vw;
}

.resume-btn{
    display: block;
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: rgba(0, 199, 199, 0.8);
    margin-top: 2rem;
    padding: 1rem 0;
}

.resume-btn:hover{
    background-color: var(--light-font-color);
}

.resume-btn>.resume-btn-link{
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 3apx;
    color: #000;
}

.four p{
    margin: 0.5rem 0;
}

.profile-mask{
    position: relative;
    width: auto;
    height: 500px;
    overflow: hidden;
}

.about-profile-div{
    width: 30vw;
    height: 100%;
    position: relative;
}

.profile-mask-upper{
    background-image: url(./images/profile.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: border-box;
    background-color: radial-gradient(rgba(0,0,0,0.5), rgba(0,0,0,1));
    background-blend-mode: multiply;
    width: 100%;
    height: 100%;
    z-index: 20;
    box-shadow: 10px 5px 1px rgb(0, 199, 199),
                15px -5px 1px rgba(0, 128, 128, 0.5),
                inset 5px 5px 70px rgb(0, 0, 0);
    border-top-left-radius: 10px;
    border-top-right-radius: 15%;
}

.profile-mask-upper::after{
    content: '';
    width: 100%;
    height: 5px;
    background-color: rgb(199, 0, 0);
    margin: 5rem;

}

.profile-img{
    width: 100%;
    height: auto;
    position: absolute;
    z-index: 1;
    bottom: 0;
}

.social-links-title{
    font-size: 2rem;
    margin: 1rem 0;
    margin-top: 2rem;
}

.about-text-div a{
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin: 1rem 0.3rem;
    text-decoration: none;
}

.about-text-div a img:hover,
.about-text-div a img:active
{
    background-color: var(--light-font-color);
    border-color: var(--light-font-color);
    transform: translate(0, -0.2rem);
    transition-duration: 200ms;
}

.about-text-div .github-logo{
    background: none;
    border: none;
    margin-left: 0;
}

.about-text-div a img{
    width: 3rem;
    height: auto;
    background: #fff;
    border: 1px solid #fff;
    overflow: hidden;
    border-radius: 50%;
}

.about-text{
    font-size: 1.7rem;
}

.about-text-sub{
    font-size: 1.1rem;
}

.pinterest-logo{
    border-width: 0;
}

@media screen and (max-width: 1550px) {
    .profile-mask-upper{
        height: calc(100% - 3rem);
        width: calc(100 - 3rem);
    }
}

@media screen and (max-width: 1300px) {
    .about-text-div a img{
        width: 4rem;
    }
    .skills-list{
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 1200px) {
    .skills-list{
        font-size: 1.4rem;
    }
    .profile-mask-upper{
        height: calc(100% - 5rem);
        width: calc(100 - 5rem);
    }
    .navbar {
        padding: 0 7rem;
    }
}

@media screen and (max-width: 1100px) {
    .skills-list{
        font-size: 1.2rem;
    }
    /* .about-text-div{
        width: 50vw;
    } */
    .about-text-div a img{
        width: 3rem;
    }
    .profile-mask-upper{
        height: calc(100% - 5rem);
        width: calc(100 - 5rem);
    }
}

@media screen and (max-width: 1050px) {
    .project-card h1 {
        font-size: 2.3rem;
    }
    .two, .three {
        padding: 5rem 7rem 5rem;
    }
    .profile-mask-upper {
        height: calc(100% - 8rem);
        width: calc(100 - 8rem);
    }
    .profile-mask {
        height: 450px;
    }
}

@media screen and (max-width: 900px) {
    .navbar .links ul{
        display: none;
    }
    .navbar .links .active{
        display: block;
        width: 30vw;
        position: absolute;
        z-index: 150;
        right: 0;
        flex-direction: column;
        margin-top: 3.6rem;
        gap: 1rem;
        background-color: rgba(0, 72, 72, 0.6);
        padding: 1rem 0;
        background-blend-mode: multiply;
    }
    .active li{
        text-align: center;
        font-size: 1.5rem;
    }
    .navbar .links ul li{
        margin: 0.5rem 0;
    }
    .ham-menu{
        display: block;
    }
    .about-text-div {
        width: auto;
    }
    .about-text{
        font-size: 1.3rem;
    }
    .about-text-sub{
        font-size: 1rem;
    }
    .about-text-div a img {
        width: 2rem;
    }
    .four .about-sub-section {
        display: block;
    }
    .about-profile-div{
        display: none;
    }
}

@media screen and (max-width: 806px){
    .social-links-title {
        margin-top: 0;
    }
    .resume-btn {
        margin-top: 1rem;
    }
    .four{
        padding: 0 7rem 0;
        margin-bottom: 5rem;
    }
}

@media screen and (max-width: 790px) {
    .skills-list{
        flex-wrap: wrap;
        margin: auto;
    }
    .two{
        height: fit-content;
    }
    .five{
        padding: 5rem 7rem 0;
    }
    .profile-mask-upper{
        display: none;
    }
}

@media screen and (max-width: 720px){
    .five{
        padding: 5rem 6rem 0;
    }
}

@media screen and (max-width: 690px){
    .five{
        padding: 5rem 5rem 0;
    }
}

@media screen and (max-width: 550px) {
    .navbar{
        padding: 0 5rem;
    }
    .two,
    .three{
        padding: 5rem;
    }
    .four{
        height: 100vh;
        padding: 5rem;
    }
}

@media screen and (max-width: 490px) {
    .three{
        padding: 3.5rem;
    }
}

@media screen and (max-width: 472px) {
    .navbar{
        padding: 0 5rem;
    }
    .three{
        padding: 2.5rem;
    }
    .two,
    .four{
        padding: 4rem;
    }
}

@media screen and (max-width: 450px) {
    .sub-title{
        font-size: 1rem;
    }
    .main-section{
        font-size: 3rem;
        font-weight: 900;
        font-family: 'Rubik Mono One', sans-serif;
    }
    .project-card h1{
        font-size: 2rem;
    }
    .project-card {
        font-size: 0.8rem;
    }
    .post-title{
        font-size: 1.5rem;
    }
    .two,
    .four{
        padding: 3rem;
    }
}

@media screen and (max-width: 425px){
    .navbar{
        padding: 0 2rem;
    }
    .navbar .links .active{
        width: auto;
    }
}

@media screen and (max-width: 412px){
    .two,
    .three,
    .four,
    .five{
        padding: 2rem;
    }
}

@media screen and (max-width: 380px){
    .four{
        padding: 1.3rem;
    }
}

@media screen and (max-width: 366px){
    .sub-title{
        font-size: 1rem;
    }
    .main-section{
        font-size: 2.6rem;
        font-weight: 900;
        font-family: 'Rubik Mono One', sans-serif;
    }
    .post-title{
        font-size: 1.4rem;
    }
    .social-links-title {
        font-size: 2rem;
    }
    .about-text-div a {
        margin: 1rem 0;
    }
    .project-card h1{
        font-size: 1.8rem;
    }
    .project-card {
        font-size: 0.7rem;
    }
}