*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    text-decoration: none;
}
:root{
    --text-color:#f5f5f5;
    --hover-color:#ac2ccf;
    --bg-color:#2f1c3b;
    --secon-bg-color:#14304b;
    --big-font:2.5rem;
    --normal-font:2rem;
    --neon-box-shadow: 0 0 .5rem #9937f5;
    --h2-font:3rem;
    --font-neon-text-shadow:0 0 10px rgba(216, 18, 255, 0.3),
    0 0 20px rgba(216, 18, 255, 0.3),
    0 0 30px rgba(216, 18, 255, 0.3),
    0 0 40px rgba(216, 18, 255, 0.3),
    0 0 70px rgba(216, 18, 255, 0.3),
    0 0 80px rgba(216, 18, 255, 0.3),
    0 0 100px rgba(216, 18, 255, 0.3),
    0 0 150px rgba(216, 18, 255, 0.3);
}

body{
    font-family: "Poppins",sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 10%;
}
header.sticky{
    background: var(--bg-color);
    border-bottom: 1px solid var(--secon-bg-color);
    padding: 12px 10%;
}
span{
    color: var(--hover-color);
}

.navbar{
    display: flex;
}

.navbar a{
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 20px;
 
}

.navbar a:hover{
    color: var(--hover-color);
    text-shadow: 0 0 10px rgba(216, 18, 255, 0.6),
    0 0 20px rgba(216, 18, 255, 0.6),
    0 0 30px rgba(216, 18, 255, 0.6),
    0 0 40px rgba(216, 18, 255, 0.6),
    0 0 70px rgba(216, 18, 255, 0.6),
    0 0 80px rgba(216, 18, 255, 0.3),
    0 0 100px rgba(216, 18, 255, 0.6),
    0 0 150px rgba(216, 18, 255, 0.6);
}

.navbar a.active{
    color: var(--hover-color);
}

#menu-icon{
    font-size: 1.8rem;
    z-index: 10001;
    cursor: pointer;
    margin-left: 25px;
    background: var(--hover-color);
    border-radius: 3px;
    color: var(--secon-bg-color);
    display: none;
}

section{
    padding: 100px 10%
}
.home{
    min-height: 100vh;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    grid-gap: 10rem;
}

.home-content{
    max-width: 600px;
}

.home-content h1{
    font-size: var(--big-font);
    font-weight: 700;
}
.change-text{
    font-size: 1.5rem;
    font-weight: 600;
}
.change-text h3{
    display: inline-flex;
    margin: 0;
    vertical-align: top;
}
.change-text h3 .word{
    position: absolute;
    display: flex;
    opacity: 0;
}

.change-text h3 .word .letter{
    transform-origin: center center 25px;
}
.change-text h3 .word .letter.out{
    transform: rotateX(90deg);
    transition: 0.32s cubic-bezier(0.6,0,0.7,0.2);
}
.change-text h3 .word .letter.in{
    transition: 0.38s ease;
}
.change-text h3 .word .letter.behind{
    transform: rotateX(-90deg);
}

.home-content p{
    color: #bdbdbd;
    line-height: 1.6;
}

.btn-box{
    display: flex;
    margin: 1rem 0 2rem;
    width: 320px;
    height: 40px;
}

.btn-box a.btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: var(--hover-color);
    color: var(--bg-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: .6s;
    box-shadow: var(--neon-box-shadow);
    border-radius: 5px;
    position: relative;overflow: hidden;
    z-index: 1;
}
a.btn:hover{
    color: var(--hover-color);
}
a.btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bg-color);
    width: 0;
    height: 100%;
    z-index: -1;
    transition: .4s;
}

a.btn:hover::before{
    width: 100%;
}

.social-icon{
    margin-top: 8rem;
    display: flex;
    justify-content: space-between;
    width: 160px;
    height: 40px;
}
.social-icon a{
    display: inline-flex;
    width: 50px;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    color: var(--hover-color);
    border: 2px solid var(--hover-color);
    transition: .6s;
    box-shadow: 0 0 0.3 #9A2efe;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.social-icon a i{
    font-size: 1.6rem;
}
.social-icon a:hover{
    color: var(--bg-color);
}
.social-icon a::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--hover-color);
    transition: .6s;
    z-index: -1;
}
.social-icon a:hover:before{
    width: 100%;
}
.home-image{
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 60%;
}
.home-image::before{
    content: '';
    position: relative;
    width: 430px;
    height: 430px;
    border-radius: 60%;
    background: linear-gradient(-45deg,#e6fb84,#ff6600,#00ff66,#00ffff,#ff00ff,#ff0099,#ff3300,#099fff);
    filter: blur(100px);
    animation: change 4s linear infinite;
    
}

.home-image::after{
    content: '';
    position: absolute;
    inset: 10px;
    align-items: center;
    height: auto;
    background-image: url(./photo.png);
    background-size: cover;
    border-radius: 55%;
}

@keyframes change{
   0%{
    transform: rotate(0deg);
   }
   100%{
    transform: rotate(360deg);
   }
}
 /*.shape::after{
    filter: blur(100px);
  
}*/

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 2em;
    background: var(--secon-bg-color);
}
.about .img-about img{
    max-width: 350px;
    height: auto;
    border-radius: 60%;
}
.about-content h2{
    width: 100%;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--hover-color);
    font-size: 700;
    font-size: var(--normal-font);

}
.about-content p{
    color: #fdfdfd;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.main-text h2{
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--hover-color);
    font-weight: 700;
    font-size: var(--normal-font);
}

.skills{
    background: var(--secon-bg-color);
}

.skill-main{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-row-gap: 30px;
    grid-column-gap: 50px;
}

.skill-bar{
    margin-bottom: 2.3rem;
}
.skill-main h3{
    margin-bottom: 2rem;
    font-size: var(--normal-font);
    text-align: center;
}
.skill-left .skill-bar .info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}
.skill-left .skill-bar .bar{
    width: 100%;
    height: 10px;
    background-color: var(--bg-color);
    border-radius: 25px;
    margin-top: 10px;
    position: relative;
}
.skill-bar .bar span{
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
    background: var(--hover-color);
    border-radius: 25px;
    box-shadow: var(--neon-box-shadow);
}
.skill-bar .bar .html{
    width: 90%;
    animation: html 2s;
}
.skill-bar .bar .javascript{
    width: 85%;
    animation: javascript 3s;
}
.skill-bar .bar .css{
    width: 90%;
    animation: css 4s;
}
.skill-bar .bar .figma{
    width: 90%;
    animation: figma 5s;
}
.porfessional{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.box{
    position: relative;
    margin: 10px 0;
    flex: 1 1 15rem;
}
.box .text{
    text-align: center;
    color: #fff;
    font-size: 1rem;
}
.box .text big{
    font: 400;
    letter-spacing: 1px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50% , -50%);
}
.box .text small{
    display: block;
    font-weight: 600;
}
.circle{
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.circle .points{
    width: 2px;
    height: 10px;
    background-color: var(--bg-color);
    position: absolute;
    border-radius: 3px;
    transform: rotate(calc(var(--i)*var(--rot))) translateY(-45px);
  
}

.points.marked{
    animation: glow 0.04s linear forwards;
    animation-delay:calc(var(--i)*0.05s) ;
}

.contant{
    background: var(--bg-color);
    background-size: cover;
    width: 100%;
}
.contant form{
    text-align: center;
    max-width: 50rem;
    margin: 1rem auto;
    margin-bottom: 3rem;
}

.contant form input,
.contant form textarea{
    width: 100%;
    color: var(--text-color);
    background: var(--secon-bg-color);
    margin-bottom: .8rem;
    border: none;
    border-radius: 5px;
    padding: .7rem;
}
.contant form textarea{
    resize: none;
}


.formBtn{
    display: flex;
    justify-content: center;
    width: 100%;
}

.formBtn .btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: var(--hover-color);
    color: var(--bg-color);
    font-size: 1rem;
    letter-spacing: 1px;
    border: 0px;
    font-weight: 600;
    transition: .6s;
    box-shadow: var(--neon-box-shadow);
    border-radius: 5px;
    position: relative;overflow: hidden;
    z-index: 1;
}
.formBtn .btn:hover{
    color: var(--hover-color);
}
.formBtn .btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bg-color);
    width: 0;
    height: 100%;
    z-index: -1;
    transition: .4s;
}

.formBtn .btn:hover::before{
    width: 100%;
}

footer{
    padding: 1.5rem;
    background: var(--secon-bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer p{
    color: #bdbdbd;
}
footer a{
    display: inline-flex;
    justify-content: center;
    color: var(--text-color);
    background: var(--hover-color);
    padding: .6rem;
    border-radius: 5px;
}

footer a i{
    font-size: 1rem;
    color: var(--bg-color);
}



@keyframes button{
    0%{
        transform: scale(0.1);
    }
    50%{
        transform: scale(0.5);
    }
    100%{
        transform: scale(1);
    }
}

.scroll-scale{
    opacity: 0;
    transform: scale(.9);
    transition: all 2s;
}
.scroll-bottom{
    opacity: 0;
    transform: translateY(300px);
    transition: 3s;
}
.show-items{
    opacity: 1;
    transform: translateX(0);
}

@keyframes html{
    0%{
        width: 0%;
    }
    100%{
        width: 90%;
    }
}
@keyframes javascript{
    0%{
        width: 0%;
    }
    100%{
        width: 85%;
    }
}
@keyframes css{
    0%{
        width: 0%;
    }
    100%{
        width: 90%;
    }
}
@keyframes figma{
    0%{
        width: 0%;
    }
    100%{
        width: 90%;
    }
}
@keyframes glow{
    0%{
        background: var(--bg-color);
        box-shadow: none;
    }
    100%{
        background: var(--hover-color);
        box-shadow: var(--neon-box-shadow);
    }
}


@media(max-width:991px){
    header,header.sticky{
        padding: 15px 5%;
    }
    footer{
        padding: 15px 5%;
    }
    section{
        padding: 50px 5%;
    }
    .navbar a{
        padding: 8px 15px;
    }
    :root{
        --big-font: 2.2rem;
        --normal-font:1.8rem;
        --neon-box-shadow: 0 0 .8rem #9A2efe;
        --h2-font:3rem;
    }
    .home-image{
        margin: 50px 5%;
    }
    
    .home-content{
        margin-top: 5rem;
    }
    .social-icon{
        margin-top: 2rem;
    }
}

@media(max-width:768px){
    #menu-icon{
        display: block;
        transition: all .4s ease;
    }

    #menu-icon.bx-x{
        transform: rotate(-180deg);
    }
    .navbar{
        display: flex;
        position: absolute;
        top: -1000px;
        right: 0;
        left: 0;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        padding: 0 5%;
        transition: all .45s ease;
    }
    .navbar a{
        display: block;
        padding-bottom: 1rem;
        font-size: 1rem;
    }
   .navbar.open{
    top: 100%;
   }
   .home{
    grid-template-columns: 1fr;
   }
   .home-image{
    margin: 50px 5%;
   }
   .about{
    flex-direction: column-reverse;
   }
   .skill-main{
    grid-template-columns: 1fr;
   }
   footer p{
    font-size: .9rem;
    
}
}

@media(max-width:420px){
    html{
        font-size: 80%;
    }
    footer p{
        font-size: .6rem;
    }
    .home-image{
        width: 350px;
        height: 350px;
        align-items: center;
        margin: 50px 5%;
    }
    .img-about img{
        width: 300px;
    }
    .about-content p{
        font-size: 1.4rem;
    }
}