* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif
}

::-webkit-scrollbar{
    height: 0;
    width: .5rem;
}

::-webkit-scrollbar-track{
    background: rgb(255, 255, 255);
}

::-webkit-scrollbar-thumb{
    background: #4cbce1;
    border-radius: .5rem;
}

body{
    background: #1f242d;
    color: #fff;
    padding-top: 100px;
}

.section {
    min-height:100vh;
    padding:50px 5%;
    box-sizing: border-box;
}

.header{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    padding:15px 5%;
    border-bottom: 1px solid #161627;
    background: #1f242d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header.sticky{
    position:fixed;
    width: 100%;
    background: #1f242d;
    border-bottom: 1px solid #bdbdbd;
    padding:20px 10%;
}

.logo{
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor:default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar{
    display:flex
}
.navbar a{
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font: 500;
    padding:10px 20px;
    transition: .3s;
    opacity: 0;
    animation: slidetop .5s ease forwards;
    animation-delay: calc(.3s*var(--i));
}

.navbar a:hover{
    color:#0ef
}

.navbar a.active{
    color: #0ef;
}

.active{
    color:#0ef
}

.menu-icon{
    opacity:0;
    display:none;
}

.home {
    position: relative;
    width:100%;
    /* height:100vh; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:70px 10% 0;
    gap:3rem;
}

.home-img{
    position: relative;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content{
    max-width:600px;
}

.home-content h3{
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slidebottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span{
    color:#0ef
}

.home-content h3:nth-of-type(2){
    margin-bottom: 30px;
    animation: slidetop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h1{
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p{
    font-size: 16px;
    opacity: 0;
    animation: slideleft 1s ease forwards;
    animation-delay: 1s;
}

.home-img img{
    max-width: 450px; 
    height: auto;
    margin-right: -20px;
    opacity: 0;
    animation: Zoomin 1s ease forwards, floatimage 4s ease-in-out infinite;
    animation-delay: 2s,3s;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 30px 1px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideleft 1s ease forwards;
    animation-delay: calc(.2s*var(--i));
}

.social-media a:hover{
    background-color: #0ef;
    color: #1f242d;
    box-shadow: 0 0 20px #0ef;
}

.btn{
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    box-shadow:  0 0 10px #0ef;
    text-decoration: none;
    font-size: 16px;
    color: #1f242d;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0;
    animation: slidetop 1s ease forwards;
    animation-delay: 2s;
    margin-bottom: 10px;
}

.btn:hover{
    background: #1f242d;
    color:#0ef;
}

/* about--css----------------------------------------------------------- */
.about {
    background: #2a354a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    gap: 3em;
}

.about-img {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    opacity: 0;
    animation: Zoomin 1s ease forwards, floatimage 4s ease-in-out infinite;
    animation-delay: 2s,3s;
}

.info-about {
    position: absolute;
    background: rgba(0, 238, 255, 0.1);
    border: 2px solid #0ef;
    border-radius: 50%;
    padding: 15px 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 15px #0ef;
}

.info-about span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #0ef;
}

.info-about p {
    font-size: 14px;
    margin-top: 5px;
}

.info-about.top-left {
    top: 10%;
    left: 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.info-about.bottom-left {
    bottom: 10%;
    left: 0;
    opacity: 0;
    animation: slidetop 1s ease forwards;
    animation-delay: 2s;
}

.info-about.top-right {
    top: 10%;
    right: 0;
    opacity: 0;
    animation: slideleft 1s ease forwards;
    animation-delay: calc(.2s*var(--i));
}

.about-content {
    flex: 1;
    color: #fff;
}

.about-content h2 {
    color: #0ef;
}

.about-content .btn {
    display: inline-block;
    margin-top: 20px;
}

/* services------------------------------------------------------------------ */

.services{
    background: #1f242d;
}

.main-text{
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--hover-color);
    margin-top: 10px;
    padding: 10px;
}

.main-text span {
    color: #fff;
    font-size: .8rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-text h2{
    font-weight: 700;
    font-size: 20px;
    color: #0ef;
}

.services span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.services-box h3{
    color:#0ef
}

.section-services{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    grid-gap: 2rem;
}

/* .section-services  */
.services-box{
    flex: 1 1 18rem;
    margin-left: 20px;
    margin-right: 20px;
    padding: 2rem 1rem 2rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    background: #2a354a;
    transition: transform .4s;
    border-radius: 10px;
} 

.service-box {
    display:flex;
    align-items:center;
    justify-content: center;
}

.service-btn{
    width: auto;
    justify-content: center;
}

.service-btn:hover{
    transform:tranlate(-7rem)
}

.service-icon{
    border: 2px solid #0ef;
    padding: 2rem;
    margin: 0 auto 1rem auto;
    display: flex;
    height: 50px;
    width: 50px;
    background: #1a202a;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 50%;
    position: relative;
    color: #0ef;
    box-shadow: 0px 0px 8px #4cbce1;
    outline: 3px solid #1a263c;
}

.services-box h3{
    margin-top: 10px;
    font-size: 1.5rem;
}

.services-box p{
    margin: .5rem 0 1.rem 0;
    font-weight: 300;
    letter-spacing: 1px;
    color: #bdbdbd;
    line-height: 1.6;
}

/* ----skills---------------------------------------------------------------------------------------------*/

.skills{
    background: #1a202a;
}

.skill-main{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
}

.skill-main h3{
    margin-bottom: 2rem;
    font-size: var(--normal-font);
    text-align: center;
}

.bar span {
    color: #0ef;
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 2px;
    grid-row-gap:30px;
    grid-column-gap:50px;
}

.skill-bar p {
    font-size: 14px;
    margin-top: 5px;
    font-weight: 400;
}

.skill-bar{
    margin-bottom: 2.3rem;
    align-items: center;
    justify-content: space-between ;
}

.skill-left  .skill-bar .info{
    display: flex;
    align-items: center;
    justify-content: space-between ;
    align-items: center;
    padding: 0 10px;
}

.skill-left .skill-bar .bar{
    width: 100%;
    height: 10px;
    background-color: #050506;
    margin-top: 10px;
    position: relative;
}

.skill-bar .bar span{
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
    background:#0ef;
    border-radius: 25px;
    box-shadow: var(--neon-box-shadow);
}

.skill-bar .bar .html{
    width: 72%;
    animation: html 2s;
}

.skill-bar .bar .javascript{
    width: 60%;
    animation: javascript 3s;
}

.skill-bar .bar .figma{
    width: 90%;
    animation: figma 4s;
}

.skill-bar .bar .css{
    width: 62%;
    animation: css 5s;
}
/* 
.skill-right{
    margin-left: 100px; 
} */

.profesional{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.box{
    position: relative;
    margin: 10px 0;
    flex: 1 1 15rem;
}

.box .text{
    text-align: center;
    font-size: 1rem;
}

.box .text big{
    font: 400;
    color: #fff;
    letter-spacing: 1px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.box .text small{
    color: #fff;
    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: #050506;
    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);
}


/* ----portfolio----------------------------------------------------------- */

.filter-buttons{
    margin:2rem;
    text-align: center;
}

.filter-buttons .btn{
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: .85rem;
    font-weight:6000;
    letter-spacing: .4px;
    margin-left: 1.3rem;
    color: var(--text-color);
}

.filter-buttons .btn:hover{
    color: #0ef;
}

.port-image img{
    height: 100%;
    opacity: .5s;
    width: 100%;
    transition: .5s;
}

.port-image{
    display: flex;
    align-items: center;
    justify-content: center;
    height:100%;
    width: 100%;
}

.portfolio-gallery{
    display: grid;
    /* margin-left: 200px;
    margin-right: 200px; */
    margin-top: 10px;
    padding: 10px;
    grid-template-columns: repeat(auto-fill,minmax(270px,1fr));
    gap:2rem'
}

.port-box{
    position: relative;
    margin: 10px;
    border-radius:15px;
    overflow: hidden;
    background: #1a263c;
    display: flex;
    grid-template-rows: 1fr auto;
    align-items: center;
    border: 2px solid #fff;
    box-shadow: 2px 2px 2px 2px #0ef;
}

.port-content{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    background: linear-gradient(rgba(0,0,0,.2),#0ef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction:column;
    text-align:center;
    transition:.5s;
    padding:0 2rem;
}

.port-box:hover .port-content{
    opacity: 1;
}

.port-box:hover .port-image img{
    transform: scale;
}

.port-content h3{
    font-size: 1.5rem;
    font-weight: 600;
}

.port-content p{
    font-size: .8rem;
    margin:  5px 0 15px 0;
}

.port-content a{
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    width: 50px;
    height: 50px;
    margin-bottom: 4px;
    border: 1px solid var(--hover-color);
    outline: 2px solid #fff;
}

.port-content a i{
    font-size: 1.3rem;
    color: #050506;
}

/* --------------------Contact------------------------------------------ */
.contact{
    height: 550px;
    background: #2a354a;
    width: 100%;
}

.contact form{
    text-align:center;
    max-width:50rem;
    margin: 1rem auto;
    margin-bottom: 3rem;
}

.contact .btn{
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: .85rem;
    font-weight:6000;
    letter-spacing: .4px;
    margin-left: 1.3rem;
    color: var(--text-color);
}

.contact form input{
    width: 100%;
    color: var(--text-color);
    background: #1a202a;
    margin-bottom: .8rem;
    border: none;
    border-radius: 5px;
    padding: .7rem;
}

.contact form textarea{
    width: 100%;
    color: #fff;
    background: #1a202a;
    margin-bottom: .8rem;
    border: none;
    border-radius: 5px;
    padding: .7rem;
}

.text{
    color: #050506;
}


/* ----------footer----------------------------------------------- */

footer{
    padding: 1.5rem 10%;
    display: flex;
    background: #1f242d;
    text-align: center;
    align-items: center;
    justify-content: space-between;
}

footer p{
    color: #fff;
    text-align: center;
}

footer a{
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    color: black;
    background-color: #0ef;
    padding: .6rem;
    border-radius: 5px;
}

footer a i{
    font-size: 1rem;
    color: var(--secon-bg-color);
}

/* scroll--------------------------------------------------------------------------------*/
/* 
.scroll-scale{
    opacity:0;
    transform:scale(.9);
    transition:all 2s;
}

.scroll-bottom{
    opacity:0;
    transform:translateY(300px);
    transition:2s;
}


.scroll-top{
    opacity:0;
    transform:translateY(-300px);
    transition:2s;
}

.show-items{
    opacity:1;
    transform:translateX(0);
} */

/* KEY FRAME ANIMARION */
@keyframes slideRight{
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideleft{
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slidetop{
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slidebottom{
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes Zoomin{
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatimage{
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes morph{
    0%,
    100%{
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
    30%{
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
    60%{
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
    80%{
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
}

@keyframes html{
    0%{
        width: 0%;
    }
    100%{
        width: 72%;
    }
}

@keyframes javascript{
    0%{
        width: 0%;
    }
    100%{
        width: 60%;
    }
}

@keyframes figma{
    0%{
        width: 0%;
    }
    100%{
        width: 90%;
    }
}

@keyframes css{
    0%{
        width: 0%;
    }
    100%{
        width: 62%;
    }
}

@keyframes glow{
    0%{
        background: #050506;
        box-shadow: none;
    }
    100%{
        background: #0ef;
        box-shadow: rgb(0, 0, 0);
    }
}



/* Breaks points --------------------------------------------------------------*/
@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 .5rem #0ef;
        --h2-font: 3rem;
    }
    .home-content{
        margin-top: 5rem;
    }
    .navbar a{
        padding: 8px 15px;
    }

}          

@media(max-width:768px){

    #menu-icon{
        opacity:1;
        display: block;
        transition: all .4s ease;
    }
    .header,
    .home,
    .about,
    .services,
    .skills,
    .portfolio,
    .contact,
    .contact,
    footer{
        padding-left:5%;
        padding-right:5%;
        box-sizing:border-box;
    }
    .home{
        width:100%;
    }
    #menu-icon.bx-x{
        transform:rotate(-180deg)
    }
    .menu-icon{
        display: inline-flex;
        text-decoration: none;
        align-items: center;
        justify-content: center;
        color: black;
        background-color: #0ef;
        padding: .6rem;
        border-radius: 5px;
    }
    .body{
        padding-top:70px;
    }
    .header{
        height:70px;
        padding:50 px 5% 0 5%;
    }
    .menu-icon{
        font-size: 1rem;
        color: #050506;
    }
    .section{
        padding:50px 5% 0 5%;
    }
    .navbar {
        display: flex;
        position: absolute;
        top:-1000px;
        right: 0;
        left: 0;
        margin-top:0;
        flex-direction: column;
        color: #fff;
        background: #1f242d;
        text-align: left;
        padding: 0 5%;
        transition: all .4s ease;
        z-index:1000;
    }

    .service-icon{
        display:flex;
        justify-content: center;
        align-items:center;
    }

    .navbar a{
        display:block;
        padding-bottom:1rem;
        font-size:1rem;
    }
    .navbar.active{
        top:100px;
        display:flex;
        background: #1f242d;
        /* z-index:1000; */
    } 
    .home{
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .info-about{
        opacity:0;
        display:none;
    }
    .home-img{
        margin-bottom:1rem;
    }
    .home-img img{
        max-width:100%;
        height:auto;
        width:400px;
        margin-bottom:1rem;
    }
    .about{
        flex-direction: column-reverse;
    }
    .about-img{
        justify-content: center;
        display:flex;
        align-items: center;
        width:100%;
        margin:0 auto;
        text-align: center;
        flex-direction:column;
    }
    .skill-main{
        grid-template-columns:1fr;
    }
    .filter-buttons{
        margin: 2.5rem 0;
    }
    footer p{
        font-size:.8rem;
    }
}

@media(max-width:420px){
    html{
        font-size:80%;
    }
    footer p{
        font-size: .6rem;
    }
    .fillter-buttons .btn{
        font-size:.8rem;
    }
    .img-about img{
        max-width:100%;
        height:auto;
        width:200px;
    }
    img-about p{
        font-size:1rem;
    }
}