@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    text-decoration: none;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    background-color: #f1f2ed;
    color: black;
    font-family: 'Poppins', sans-serif;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 6%;
    width: 100%;
}

.logo{
    font-size: 2.5rem;
    font-weight: 600;
    color: #90523d;
    background-color: transparent;
    transition: 0.5s ease;
    
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    font-weight: 600;
    display: inline-flex;
    color: black;
    margin-left: 4rem;
    transition: 0.2s ease;
}

nav a.active,
nav a:hover{
    color: #90523d;
    border-bottom: 3px solid #90523d;
}

section{
    min-height: 100vh;
    padding: 5rem 6% 5rem;
    
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;

}

.home-content{
    width: 50%;
}

.home-content h1{
    font-size: 6rem;
    font-weight: 700;
}

.home-content h1 span{
    color: #90523d;
}

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

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

.social-icons a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    border: 3px solid #90523d;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    color: #90523d;
    transition: 0.3s ease;
}

.social-icons a:hover{
    color: white;
    background-color: #90523d;
    transform: scale(1.5) translateY(-2px);
    box-shadow: 0 0 5px #90523d;
}

.btn{
    font-size: 2rem;
    background-color: #90523d;
    padding: 10px 35px;
    border-radius: 15px;
    position: relative;
    color: #90523d;
    z-index: 0;
    cursor: pointer;

}

.btn::after{
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgb(238, 232, 232);
    border-radius: 14px;
}

.btn::before{
    content: "";
    background: linear-gradient(
        45deg,
        #a6a7a6, #90523d, hsl(15, 62%, 44%), #ca623f,
        #d0603b,#90523d, #b3b3b3
    );
    background-size: 600%;
    filter: blur(8px);
    position: absolute;
    z-index: -1;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transition: 0.3s linear ease;
    animation: glow 20s linear infinite ;
}

.btn:hover{
    transform: scale(1.1);
    
}

@keyframes glow{
    0%{
        background-position: 0 0;
    }
    50%{
        background-position: 400% 0;
    }
    100%{
        background-position: 0 0;
    }
}
.home-img{
    width: 32vw;
    height: 50vh;
}

img{
    border: 3px solid #90523d;
    border-radius: 60%;
    cursor: pointer;
    transition: 0.2s ease;
}

img:hover{
    box-shadow: 0 0 25px #90523d;
}


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

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "";
    color: #90523d;
    animation: text 20s infinite;
}

.typing-text span::after{
    content: "";
    position: absolute;
    color: white;
    right: -8;
    border-left: 3px solid white;
    height: 100%;
    width: calc(100% + 8px);
    animation: cursor 0.5s infinite;
    
}



@keyframes text {
    0%, 20% {
        content: "Student";
    }
    21%, 40%{
        content: "Web developer";
    }
    41%, 60%{
        content: "Graphic Designer";
    }
    61%, 80%{
        content: "Script Writer";
    }
    81%, 100%{
        content: "Coding Enthusiast";
    }
}

@keyframes cursor{
    to{
        border-left: 3px solid #90523d;
    }
}

@media(max-width:995px) {

    header{
        margin: 0 2rem;
    }
    .logo{
        display: none;
    }
    nav a{
        margin-left: 2rem;
        transition: 0.5s ease;
    }

    nav a.active,
    nav a:hover{
        color: #90523d;
        border-bottom: 3px solid #90523d;
    }
    .home{
        flex-direction: column-reverse;
        margin: 2rem 0;
        align-items: center;
        justify-content: center;
       
    }

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

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

    .home-img img{
        width: 80vw;
        height: 50vh;
        margin: 4rem 2rem;
    }

    .social-icons{
        display: inline-flex;
    }

}
