@import url(https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbXBZaFNNLTVyd21ESGFET1c5a1g1REtyTUJCUXxBQ3Jtc0ttWHpGNU9SNHd2eDlkdnhjRFBOSEJ5Z1A5bkIxNE13cHNjSE9KUVptT25rUGlJM0NXVXB0NGpxMVlTd05YU2Z0UmpTQXR5VF8tR2dEdVZGUGFtckVLN0JOYWoybTc0ZUotNUxabkFQajVHOEE4UVBVUQ&q=https%3A%2F%2Ffonts.googleapis.com%2Fcss2%3Ffamily%3DPoppins%3Awght%40100%3B200%3B300%3B400%3B500%3B600%26display%3Dswap%27%29%3B&v=-u3vE84Wo_U);

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

body{
    background-color: black;
    color: white;
}

/** header start **/

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

.logo{
    color: #8b1231;
    font-size: 30px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

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

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

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


/** Home section **/

section{
    padding: 5rem 9% 5rem;
}

#home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home_content h1{
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #8b1231;
}

.home_content h3{
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.home_img{
    border-radius: 50%;
}

.home_img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #8b1231;
    cursor: pointer;
    transition: 0.2s 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: 30px;
    height:  30px;
    background-color: transparent;
    margin: 20px 10px 20px 0;
    transition: 0.3s ease;
    border: 1px solid #8b1231;
    border-radius: 50%;
}

.social_icon a i{
    color: white;
    padding: 1px;
    font-size: 18px;
}

.social_icon a i:hover{
    color: black;
    transform: scale(1.3);
}

.social_icon a:hover{ 
    transform: scale(1.3) translateY(-5px);
    background-color: #8b1231;
    box-shadow: 0 0 25px #8b1231;
}

.btn{
    display: inline-block;
    padding: 10px 20px 10px 20px;
    background-color: black;
    border: 2px solid #8b1231;
    border-radius: 2rem;
    color: #8b1231;
    font-size: 18px;
    letter-spacing: 3px;
    font-weight: 600;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #8b1231;
    color: black;
    box-shadow: 0 0 25px #8b1231;
}

/** animation typing **/

.typing_text span{
    position: relative;
}

.typing_text span::before{
    content: "Web Developer";
    color:#8b1231;
    animation: words 20s infinite;
    border: 0;
}

.typing_text span::after{
    content: "";
    position: absolute;
    height: 100%;
    width: calc(100% + 8px);
    background-color: black;
    border-left: 2px solid #8b1231;
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor{
    to{
        border-left: 2px solid black;
    }
}

@keyframes words{
    0%,20%{
        content: "Web Developer";
    }
    21%,40%{
        content: "Coder";
    }
    41%,60%{
        content: "Programar";
    }
    61%,80%{
        content: "Script Writer";
    }
    81%,100%{
        content: "Gamer";
    }
}

@keyframes typing{
    10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,65%,80%,85%{
        width: calc(100% + 8px);
    }
}

/** nav bar create **/

.checkbtn{
    font-size: 30px;
    color: #8b1231;
    float: right;
    margin-right: 3rem;
    cursor: pointer;
    display: none;
}

#check{
    display: none;
}


/** About section **/

#about{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top_div{
    height: 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    margin-bottom: 100px;
}

.written_div1{
    height: fit-content;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    font-size: 25px;
    padding-left: 40px;
    margin-bottom: 30px;
}

.written_div2 {
    height: fit-content;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    padding-left: 40px;
}

.bottom_div{
    height: 250px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.slide_container{
    height: 200px;
    width: 30%;
    border-radius: 40px 0 40px 0;
    border: 1px solid rgba(139, 18, 48, 0.511);
    position: relative;
    overflow: hidden;
}

.slide_img{
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    cursor: pointer;
}

.slide_container img:not(.active){
    left: -100%;
}

/** code for slide img **/

@keyframes next1{
    from{
        left: 0%;
    }
    to{
        left: -100%;
    }
}

@keyframes next2{
    from{
        left: 100%;
    }
    to{
        left: 0%;
    }
}

.normal_img{
    height: 200px;
    width: 30%;
    border-radius: 40px 0 40px 0;
}

.normal_img img{
    height: 100%;
    width: 100%;
    border-radius: 40px 0 40px 0;
    border: 1px solid  rgba(139, 18, 48, 0.511);
    background-size: cover;
    background-repeat: no-repeat;
}

.extra_div{
    height: 200px;
    width: 30%;
}

/** Services part **/

#services{
    width: 100%;
}

#services h1{
    color: #8b1231;
    font-size: 35px;
    margin-bottom: 50px;
}

#services h1 span{
    height: 35px;
    width: 20px;
    margin-left: 2px;
    border-bottom: 5px solid #8b1231;
    position: absolute;
    animation: insert 0.8s infinite;
}

@keyframes insert{
    to{
        border-bottom: 5px solid black;
    }
}

#services p{
    font-size: 25px;
    padding: 20px;
    margin-left: 40px;
}

#services p .ser{
    padding-right: 20px;
}

#services p span{
    padding: 0 2px 0 2px;
}


/** Skill part **/

#skill{
    width: 100%;
}

#skill h1 {
    color: #8b1231;
    font-size: 35px;
    margin-bottom: 50px;
}

#skill h1 span {
    height: 35px;
    width: 20px;
    margin-left: 2px;
    border-bottom: 5px solid #8b1231;
    position: absolute;
    animation: insert 0.8s infinite;
}

#skill p {
    font-size: 25px;
    padding: 20px;
    margin-left: 40px;
}

#skill p span {
    padding-right: 20px;
}


/** css for Exp. and Edu. **/

#exp_edu{
    width: 100%;
}

#exp_edu h1{
    font-size: 35px;
    margin-bottom: 50px;
    color: #8b1231;
}

#exp_edu p{
    font-size: 20px;
}

.portfolio{
    height: 450px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* portfolio 1 slide */

.portfolio_1{
    height: 90%;
    width: 47%;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.portfolio1_img{
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
}

.portfolio1_img:not(.active1){
    left: -100%;
}

@keyframes next3{
    from{
        left: 0%;
    }

    to{
        left: -100%;
    }
}

@keyframes next4{
    from{
        left: 100%;
    }

    to{
        left: 0%;
    }
}

/* portfolio 2 slide */

.portfolio_2 {
    height: 90%;
    width: 47%;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.portfolio2_img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
}

.portfolio2_img:not(.active2) {
    right: -100%;
}

@keyframes next5 {
    from {
        left: 0%;
    }

    to {
        left: -100%;
    }
}

@keyframes next6 {
    from {
        left: 100%;
    }

    to {
        left: 0%;
    }
}

.edu{
    margin-top: 50px;
}

table{
    height: 250px;
    width: 95%;
    border-color: rgba(139, 18, 49, 0.5);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

th{
    color: #8b1231;
    font-size: 25px;
}


/** Why work with me **/

#why_me {
    width: 100%;
}

#why_me h1 {
    color: #8b1231;
    font-size: 35px;
    margin-bottom: 50px;
}

#why_me p {
    font-size: 25px;
    padding: 20px;
    margin-left: 40px;
}

#why_me p span {
    padding-right: 20px;
}


/** Contact me page **/
#contact{
    min-height: 180vh;
    width: 100%;
}

#contact h1{
    font-size: 35px;
    margin-bottom: 50px;
    color: #8b1231;
}

#contact h1 span {
    height: 35px;
    width: 20px;
    margin-left: 2px;
    border-bottom: 5px solid #8b1231;
    position: absolute;
    animation: insert 0.8s infinite;
}

#contact p{
    font-size: 20px;
}

.social{
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.social a{
    text-decoration: none;
    color: white;
    font-size: 50px;
    transition: o.5s ease;
    cursor: pointer;
    height: 50px;
    width: 50px;
    border-radius: 30%;
}

.social a i{
    border-radius: 15%;
    border: 2px solid #8b1231;
    transition: 0.5s ease;
    padding: 5px;
}

.social a i:hover{
    transform: scale(1.5) translateY(-20px);
    color: black;
    box-shadow: 0 0 25px #8b1231;
    background-color: #8b1231;
}

.contact_div{
    height: 510px;
    width: 60%;
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 50px;
    position: absolute;
    left: 20%;
}

.contact_div p{
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
    padding: 5px 0 5px 0;
}

.name_and_mail{
    height: 40px;
    width: 60%;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
    outline: none;
    padding-left: 10px;
}

.description {
    height: 120px;
    width: 80%;
    border-radius: 5px;
    border: none;
    margin-bottom: 10px;
    outline: none;
    padding: 10px;
}

.submit{
    position: absolute;
    height: 50px;
    width: 100px;
    border: 2px solid rgba(139, 18, 49, 0.5);
    border-radius: 5px;
    color: #8b1231;
    background-color: black;
    font-size: 20px;
    font-weight: 700;
    margin-top: 25px;
    left: 42%;
    box-shadow: 5px 5px 5px rgba(139, 18, 48, 0.5);
    transition: 0.5s ease;
    letter-spacing: 1px;
}

.submit:hover{
    filter: grayscale(0.1);
    transform: scale3d(1.03);
    background-color: #8b1231;
    color: black;
    box-shadow: 0 0 25px #8b1231;
}


/** footer **/

footer{
    height: 200px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-evenly;
}

.div1{
    height: 90%;
    width: 30%;
    display: flex;
    flex-direction: column;
}

.div2 {
    height: 90%;
    width: 30%;
    display: flex;
    flex-direction: column;
}

.div3 {
    height: 90%;
    width: 25%;
    display: flex;
    flex-direction: column;
}

.title{
    height: 58px;
    width: 100%;
    font-size: 30px;
    font-weight: 700;
    padding: 10px;
}

.des_1{
    height: 90%;
    width: 100%;
    padding: 10px;
    font-size: 15px;
}

.des_2{
    height: 90%;
    width: 100%;
    padding: 10px;
    font-size: 15px;
}

.des_2 p{
    padding-top: 5px;
}

.des_2 p a{
    color: #8b1231;
}

.des_3 {
    padding: 10px;
}

.des_3 a{
    padding-right: 20px;
    color: white;
    font-size: 25px;
}


/** for responsive **/

@media(max-width:1170px) {
    .checkbtn {
        display: block;
    }
    
    .checkbtn i{
        color: #8b1231;
        font-size: 25px;
        position: absolute;
        top: 28px;
    }

    nav {
        position: absolute;
        top: 60%;
        right: 3%;
        width: 25%;
        border: 4px solid rgba(128, 21, 21, 0.516);
        border-radius: 0 40px 0 40px;
        background-color: black;
        padding: 20px solid;
        z-index: 5;
        right: -100%;
        transition: all .5s;
        box-shadow: 5px 5px #8b123041;
        margin-top: 10px;
    }

    #check:checked~nav {
        right: 2%;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 20px;
        margin: 20px;
    }

    nav a:hover,
    nav a:active {
        padding: 0.5rem;
    }

    #home {
        flex-direction: column;
        margin: 2.5rem 2rem;
        gap: 3rem;
    }

    #home .home_content h3 {
        font-size: 40px;
    }

    .home_content h1 {
        font-size: 60px;
    }

    .home_img img {
        width: 50vh;
        margin-top: 2rem;
    }

    section {
        padding: 1rem 9% 5rem;
    }

    .slide_container{
        width: 40%;
    }

    .normal_img{
        width: 40%;
    }

    .extra_div{
        width: 20%;
    }
}

@media(max-width:850px) {
    nav {
        width: 30%;
    }

    .slide_container {
        width: 45%;
    }
    
    .normal_img {
        width: 45%;
    }
    
    .extra_div {
        width: 10%;
    }

    footer{
        height: 240px;
    }

    .title{
        font-size: 25px;
    }
    .des_1,
    .des_2{
        padding-top: 15px;
    }
}

@media(max-width:700px) {
    nav {
        width: 40%;
    }

    .slide_container{
        width: 50%;
    }

    .normal_img{
        width: 50%;
    }

    .extra_div{
        width: 0%;
    }

    .des_1,
    .des_2{
        padding-top: 10px;
    }

    .submit{
        left: 34%;
    }

    .name,
    .mail,
    .description{
        width: 100%;
    }
}

@media(max-width:500px) {
    nav {
        width: 50%;
    }

    .slide_container{
        height: 150px;
    }

    .normal_img{
        height: 150px;
    }
}

@media(max-width:560px) {
    #home .home_content h3 {
        font-size: 35px;
    }

    .home_content h1 {
        font-size: 50px;
    }

    @keyframes words {

        0%,
        20% {
            content: "Developer";
        }

        21%,
        40% {
            content: "Coder";
        }

        41%,
        60% {
            content: "Programar";
        }

        61%,
        80% {
            content: "Designer";
        }

        81%,
        100% {
            content: "Gamer";
        }
    }
}

@media(max-width:415px) {
    #home .home_content h3 {
        font-size: 30px;
    }

    .home_content h1 {
        font-size: 40px;
    }

    .home_content p {
        font-size: 15px;
    }

    .logo {
        font-size: 30px;
    }

    section {
        padding: 1rem 5% 3rem;
    }

    .bottom_div{
        padding-left: 30px;
        padding-right: 30px;
        height: 200px;
    }

    .slide_container{
        height: 110px;
    }

    .normal_img{
        height: 110px;
    }

    .written_div1{
        padding-left: 30px;
    }

    .written_div2{
        padding-left: 30px;
    }
}

@media(min-height: 300px) {
    #contact {
        min-height: 250vh;
    }

    table{
        width: 100%;
    }
}

@media(min-height: 400px) {
    #contact {
        min-height: 220vh;
    }
}

@media(min-height: 450px) {
    #contact {
        min-height: 190vh;
    }
}

@media(min-height: 500px) {
    #contact {
        min-height: 180vh;
    }
}

@media(min-height: 600px) {
    #contact {
        min-height: 155vh;
    }
}

@media(min-height: 640px) {
    #contact {
        min-height: 136vh;
    }
}

@media(min-height: 700px) {
    #contact {
        min-height: 125vh;
    }
}

@media(min-height: 720px) {
    #contact {
        min-height: 126vh;
    }
}

@media(min-height: 800px) {
    #contact {
        min-height: 109vh;
    }
}

@media(min-height: 850px) {
    #contact {
        min-height: 102vh;
    }
}

@media(min-height: 900px) {
    #contact {
        min-height: 102vh;
    }
}

@media(min-height: 1000px) {
    #contact {
        min-height: 100vh;
    }
}

@media(min-height: 1100px) {
    #contact {
        min-height: 87vh;
    }
}

@media(min-height: 1250px) {
    #contact {
        min-height: 80vh;
    }
}

@media(min-height: 1300px) {
    #contact {
        min-height: 80vh;
    }
}

@media(min-height: 1400px) {
    #contact {
        min-height: 75vh;
    }
}

@media(min-height: 1500px) {
    #contact {
        min-height: 70vh;
    }
}

@media(min-height: 1600px) {
    #contact {
        min-height: 65vh;
    }
}

@media(min-height: 1700px) {
    #contact {
        min-height: 60vh;
    }
}

@media(min-height: 1800px) {
    #contact {
        min-height: 55vh;
    }
}

@media (max-width: 1170px){
    .portfolio_1 {
            height: 80%;
        }
    
    .portfolio_2 {
        height: 80%;
    }

    .social a {
        font-size: 25px;
    }
}

@media (max-width: 1000px) {
    .portfolio_1 {
        height: 70%;
    }

    .portfolio_2 {
        height: 70%;
    }
}

@media (max-width: 900px) {
    .portfolio_1 {
        height: 55%;
    }

    .portfolio_2 {
        height: 55%;
    }
}

@media (max-width: 800px) {
    .portfolio_1 {
        height: 50%;
    }

    .portfolio_2 {
        height: 50%;
    }
}

@media (max-width: 700px) {
    .portfolio_1 {
        height: 40%;
    }

    .portfolio_2 {
        height: 40%;
    }
    
    .social a {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .portfolio_1 {
        height: 35%;
    }

    .portfolio_2 {
        height: 35%;
    }

    #services h1,
    #skill h1,
    #exp_edu h1,
    #contact h1,
    #why_me h1{
        font-size: 25px;
    }
    
    #why_me p,
    #services p,
    #skill p {
        font-size: 16px;
        margin-left: 5px;
    }
    
    #services h1 span,
    #skill h1 span,
    #contact h1 span {
        height: 25px;
        width: 15px;
    }

    .name_and_mail {
        width: 100%;
    }

    .description {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .portfolio_1 {
        height: 50%;
    }

    .portfolio_2 {
        height: 50%;
    }
    
    .portfolio {
        height: 200px;
        padding-right: 8px;
    }

    th{
        font-size: 16px;
    }

    td{
        font-size: 13px;
    }

    .contact_div{
        width: 80%;
        left: 10%;
        padding: 25px 20px 25px 20px;
        height: 460px;
    }

    #contact p{
        font-size: 18px;
    }

    .submit{
        left: 30%;
    }

    .title{
        font-size: 16px;
    }

    .des_1,
    .des_2{
        font-size: 10px;
    }

    footer{
        height: min-content;
    }

    .des_3 a{
        font-size: 15px;
        padding-right: 5px;
    }
}

@media (max-width: 400px) {
    .portfolio_1 {
        height: 50%;
    }

    .portfolio_2 {
        height: 50%;
    }
}

@media (max-width: 300px) {
    .portfolio_1 {
        height: 20%;
    }

    .portfolio_2 {
        height: 20%;
    }
}

@media(min-width: 2500px){
    .slide_container{
        width: 20%;
    }

    .normal_img{
        width: 20%;
    }
}

@media(min-width: 2000px) {
    .slide_container {
        width: 25%;
    }

    .normal_img{
        width: 20%;
    }
}

@media(max-height: 600px){
    nav a{
        margin: 20px;
    }
}


/** Scroll Animation **/

/* up */
.hidden1{
    opacity: 0;
    transition: all 1s;
    filter: blur(5px);
    transform: translateY(-100%);
}

.show1{
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* down */
.hidden2{
    opacity: 0;
    transition: all 1s;
    filter: blur(5px);
    transform: translateY(100%);
}

.show2{
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* left */
.hidden3{
    opacity: 0;
    transition: all 1s;
    filter: blur(5px);
    transform: translateX(-100%);
}

.show3{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

/* right */
.hidden4{
    opacity: 0;
    transition: all 1s;
    filter: blur(5px);
    transform: translateX(100%);
}

.show4{
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* 0.5s */
.hidden5 {
    opacity: 0;
    transition: all 0.5s;
    filter: blur(5px);
    transform: translateX(-100%);
}

.show5 {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}