@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% ;
    scroll-behavior: smooth;
}
body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

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

.Logo{
    color: rgb(255, 4, 0);
    font-size: 3rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5 ease;
}

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

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

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


/* Cellphone screen */
@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid red;
        border-bottom: 3px solid red;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: black;
        border-top: 0.1rem solid black;
    }

    nav.active{
        display: block;
    }
    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover, nav a.active{
        padding: 1rem;
        border-radius:  0.5rem;
        border-bottom: 0.5rem solid red;
    }

}


section{
    min-width: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content .intro{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}
.home .home-content p{
    font-size: 13px;
}
span{
    color: red;
}
.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25 solid red;
    cursor: pointer;
    transition: 0.2 linear;

}


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


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

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

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    margin-right: 20px;
    border-radius: 4rem;
    font-size: 1.5rem;
    color: red;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid red;
    transition: 0.3 ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.03);
    background-color: red;
    color: black;
    box-shadow: 0 0 25px red;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.typing-text span{
    position: relative;
}
.typing-text span::before{
    content: "IT Student";
    color: red;
    animation: words 20s infinite;
}
.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

.home .language{
    margin-top: 15px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.tech span {
    margin-right: 15px;
    font-size: 1.4rem;
    color: red;
}


@keyframes cursor{
    to{
        border-left: 3px solid red;
    }
}

@keyframes words{
    0%, 40%{
        content: "Web Developer";
    }
    41%, 60%{
        content: "Developer";
    }
    61%, 80%{
        content: "Netwroking";
    }
    81%, 100%{
        content: "Mobile Frontend dev";
    }
}

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

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

    .home .home-content h3{
        font-size: 2.5rem;
    }
    .home-content h1{
        font-size: 5rem;
    }

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



.contact {
    padding: 80px 10%;
    background: #000;
    color: white;
}

.contact .heading {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.contact .heading span {
    color: red;
}

.contact form {
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row input {
    flex: 1;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    font-size: 14px;
}

.contact input:focus,
.contact textarea:focus {
    border-color: red;
    outline: none;
}

.contact textarea {
    resize: none;
}

.contact .btn {
    width: fit-content;
    align-self: center;
    padding: 10px 25px;
    border: 2px solid red;
    background: transparent;
    color: red;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.contact .btn:hover {
    background: red;
    color: black;
}

#form-status {
    text-align: center;
    margin-top: 10px;
}