@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%;  
}

body{
    max-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    width: 100%;
    padding: 2rem 9%;
    background-color: black;
    filter: drop-shadow(10px);
}

nav{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

header nav .logo-container{
    width: auto;
}

header nav .logo-container .logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-block;
}

header nav .logo-container .logo:hover{
    transform: scale(1.05);  }


nav ul{
    width: 60%;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

nav ul li a{
    text-decoration: none;
    font-size: 1.8rem;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a::after{
    content: '';
    height: 3px;
    background: #b74b4b;
    display: block;
    transform: scaleX(0);

    transition: transform 0.3s ease-in-out;
    transform-origin: left;
}

nav ul li .active,
nav ul li .active::after{
    content: '';
    color: #b74b4b;
    transform: scale(1);
}


nav ul li a:hover,
nav ul li a:hover::after{
    color: #b74b4b;
    transform: scaleX(1.0);
    transform-origin: right;
}


section{
    max-height: calc(100vh - 90px);
    width: 100%;
    padding: 0rem 9%;
    margin-top: 6rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

section .home-img{
    width: 45%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: start;
    justify-content: center;
}

section .home-img img{
    max-width: 100%;
    max-height: 600px;
    border-radius: 50%;
    box-shadow: 0.5px 0.5px 15px 2px #b7575760;
    cursor: pointer;
    position: relative;
    bottom: 10rem;
    transition: all 0.3s;
}


section .home-img img:hover{
    transform: scale(1.03);
    box-shadow: 1px 1px 15px 2px #b7575760;
}


/* *********** Home Content Section *********** */
section .home-content{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

section .home-content h1{
    font-size: 6rem;
    font-size: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

section .home-content p{
    font-size: 1.6rem;
    margin: 1rem 0;
}

section .social-icons{
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1.5rem;
}

section .social-icons a{
    display: flex;  /* flexbox made an element block, so we use inline-block to make them inline again */
    justify-content: center;
    align-items: center;
    color: #b74b4b;

    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

section .social-icons a:hover{
    transform: scale(1.25) translateY(-3px);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}


.home-content .btn{
    width: fit-content;
    padding: 1rem 2.5rem;
    margin: 1.25rem 0;
    border: 2px solid #b74b4b;
    background-color: black;
    border-radius: 4rem;
    cursor: pointer;
    transition: all 0.3s;

    a{
    letter-spacing: 0.3rem;
    font-weight: 600;
    font-size: 1.6rem;
    color: #b74b4b; }
}

.home-content .btn:hover{
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
     transform: scale3d(1.03);
    a { color: black; }
}

.home-content .typing-text{
    font-size: 4rem;
    font-weight: 700;
}

.home-content .typing-text span::before{
    content: "";
    animation: words 15s infinite;
}

.home-content .typing-text span::after{
    content: "";
    border-right: 3px solid #000000;
    animation: cursor 0.6s infinite;
}


@keyframes cursor {
    to{
        border-right: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 20%{
        content: "Software Engineer";
    }

    21%, 40%{
        content: "Frontend Developer";
    }

    41%, 60%{
        content: "Backend Developer";
    }

    61%,80%{
        content: "Web3 Engineer";
    }

    81%, 100%{
        content: "App Developer";
    }
}

#design,
#bars{
    display: none;}



::-webkit-scrollbar{
    width: 8px; }

::-webkit-scrollbar-track{
    border-radius: 5px;
    box-shadow: inset 0 0 5px #37373774;
}

::-webkit-scrollbar-thumb{
    background: #d43131;
    border-radius: 5px;
}



@media (max-width : 1200px) {
    header{
    padding: 2rem 5%;}
    section{
    padding: 0rem 5%;}
    .home-content .typing-text{
    font-size: 3rem;
    font-weight: 700;   }
    section .home-img img{
    bottom: 7vw;    }
}

@media (max-width : 1000px) {
    header{
    padding: 2rem 3%;}
    section{
    padding: 0rem 3%;}
    section .home-img{
        display: flex;
        align-items: center;
        justify-content: center;}

    nav ul{
    width: 70%;}
}

@media (max-width : 800px) {
    html , body{
        font-size: 8px;
    }
    section .home-content{ 
    justify-content: center;
}
}

@media (max-width : 620px) {
    html , body{
        font-size: 7px;
    }
        nav ul{
    width: 76%;}

    section{
        max-height: 100vh;
        margin: 1rem 0 2rem 0;
        flex-direction: column;}
        section .home-img{
        width: 100%;
        align-items: center; 
        img{ 
        width: 100%;
        max-width: 500px;
        bottom: unset;  }
    }

    section .home-content {
        width: 100%;
    }

    nav ul{
        display: none;}
    #bars{
    font-size: 3rem;
    display: inline-block;}
    #design{
        display: block;
        margin: auto;
    }
}