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






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

:root {
    --main-bg-color: rgb(42, 42, 42);
    --main-txt-color: #b74b4b;
    --second-txt-color: rgb(222, 222 ,222);

}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    /* height: 100vh; */
    overflow-x: hidden;
    background-color: var(--main-bg-color);
    color: var(--second-txt-color);
}

header{
    margin-top: 0px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9% ;
    background-color: var(--main-bg-color);
    /*filter: drop-shadow(10px);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 2rem;
    color: var(--main-txt-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: var(--main-txt-color);
    border-bottom: 3px solid var(--main-txt-color);
}

section{
    min-height: 40vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    padding-top: 16rem;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: var(--main-bg-color);
    max-height: 600px;
}

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

.span-main{
    color: var(--main-txt-color);
}

.home-content h3{
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    display: flex;
    border-radius: 50%;
}

.home-img img{
    display: inline-block;
    position: relative;
    width: 30rem;
    border-radius: 50%;
    box-shadow: 0 0 25px solid var(--main-txt-color);
    cursor: pointer;
    transition: 0.2s linear;    
}

.home-img img:hover{
    font-size: 2rem;
    font-weight: 500;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "driven by curiousity";
    color: var(--main-txt-color);
    animation: words 13s infinite;
}

.typing-text span::after{
    content: "";
    background-color: rgba(0, 0, 0, 0);
    position: relative;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid rgba(0, 0, 0, 0);
    right: -4px;
    animation: cursor 0.6s infinite;
}



.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid var(--main-txt-color);
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: var(--main-txt-color);
}

svg path{
    fill: rgb(222,222, 222);
    stroke:none

}
.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: var(--main-txt-color);
    box-shadow: 0  0 25px var(--main-txt-color);
}





/*--- Contact Section ---*/



.section-contact{
    min-height:15vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg-color);
    padding: 0;
    height: auto;
    color: var(--main-txt-color); 
}

.section-contact h2 a {
    font-size: 3rem;
    color: inherit;
    text-decoration: none;
}

.section-contact h2 a:hover {
    text-decoration: underline;
    color: var(--second-txt-color);
}






@media(max-width:900px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 1.5rem;
    }

    .home-content h1{
        font-size: 3rem;
    }

    .home-img img{
        width: 32vw;
        margin-top: 4rem;
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}







@keyframes cursor{
    to{
        border-left: 3px solid var(--main-txt-color);
    }
}

@keyframes words{
    0%, 25%{
        content: "driven by curiousity";
    }
    26%, 50%{
        content: "learning DevOps";
    }
    51%, 75%{
        content: "still a noob. but,";
    }
    76%, 100%{
        content: "enjoying this journey";
    }
}






