:root {
    --header-height: 3.5rem;

/* for text,body and container colors  default hue was 230*/
--hue: 630;
--first-color: hsl(var(--hue), 55%, 55%);
--first-color-light: hsl(var(--hue), 55%, 65%);
--first-color-alt: hsl(var(--hue), 50%, 50%);
--title-color: hsl(var(--hue), 30%, 95%);
--text-color: hsl(var(--hue), 20%, 80%);
--text-color-light: hsl(var(--hue), 20%, 70%);
--body-color: hsl(var(--hue), 40%, 16%);
--container-color: hsl(var(--hue), 40%, 20%);

/* for fonts and typo */
--body-font: "Syne", sans-serif;
--biggest-font-size: 3rem;
--big-font-size: 1.5rem;
--h1-font-size: 1.5rem;
--h2-font-size: 1.25rem;
--h3-font-size: 1rem;
--normal-font-size: .938rem;
--small-font-size: .813rem;

/* font weight */
--font-regular: 500;
--font-semi-bold: 700;
--font-bold: 900;

/* z-index */
--z-tooltip: 10;
--z-fixed: 100;

}

/* responsive typo */
@media screen and (min-width: 1150px) {
    :root {
 --biggest-font-size: 5.5rem; 
--big-font-size: 2.75rem;
--h1-font-size: 2.25rem;
--h2-font-size: 1.5rem;
--h3-font-size: 1.25rem;
--normal-font-size: 1.125rem;
--small-font-size: .875rem;
    }
}

/* base */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}
body,
input,
textarea,
button {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}
body{
    background-color: var(--body-color);
    color: var(--text-color);
}
input,textarea{
    border: none;
    outline: none;
}
h1, h2, h3 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}
p{
    line-height: 130%;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    display: block;
    max-width: 100%;
    height: auto;
}

/* scroll reveal css ruleset */

html.sr .load-hidden {
    visibility: hidden;
}

/* reusable classes here */
.container{
    max-width: 1120px;
    margin-inline: 1.5rem;
}
.grid{
    display: grid;
    gap: 1.5rem;
}

.section{
    padding-block: 5rem 2rem;
}

.section-title{
    text-align: center;
    font-size: var(--h1-font-size);
    font-weight: var(--font-bold);
    margin-bottom: 2rem;
}
.main{
    overflow: hidden;
}


.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    z-index: var(--z-fixed);
}
.nav{
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo{
    color: var(--title-color);
    font-weight: var(--font-bold);
}
.nav-toggle, .nav-close{
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}
.button{
    display: inline;
    justify-content: center;
    background: var(--first-color);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    padding: 1rem 1rem;
    border-radius: 5px;
    transition: background-color .4s;
}
.button:hover{
    background-color: var(--first-color-alt);
}

/* scrollbar */
::-webkit-scrollbar{
    width: .8rem;
    background: hsl(var(--hue), 20%, 20%);
}

::-webkit-scrollbar-thumb{
    background: hsl(var(--hue), 20%, 30%);
}
::-webkit-scrollbar-thumb:hover{
    background: hsl(var(--hue), 20%, 40%);
}

.scrollUp{
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background: var(--container-color);
    display: inline-flex;
    padding: 6px;
    color: var(--title-color);
    font-size: 1.35rem;
    box-shadow: 0 4px 12px hsl(var(--hue), 30%, 8%), .3;
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
}
.show-scroll{
    bottom: 3rem;
}
 /* 
@keyframes appear {
    from {
        opacity: 0;
        clip-path: inset(100% 100% 0 0);  
       transform: translateX(0%);
       transition: .4s;
    
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);   
      transform: translateX(100);
      transition: .4s;

    }
} 
.home-container,
 .about-container, 
 .project-container,
 .services-container,
 .contact-container{
    animation: appear forwards;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
    transition: 4s;
}  */
/* .home-container,
 .about-container,
 .project-container,
 .services-container,
 .contact-container .show{
 opacity: 1;
 transform: translateY(0);
 } */































@media screen and (max-width: 1150px){
    .nav-menu{
        position: fixed;
        top: 0;
        right: -100%;
        background-color: hsl(var(--hue), 70%, 4%, .2);
        backdrop-filter: blur(16px);
        --webkit-backdrop-filter: blur(16px);
        width: 80%;
        height: 100%;
        padding: 7rem 3rem;
        transition: right .4s;
    }
    .nav-list{
        display: flex;
        flex-direction: column;
        row-gap: 3rem;
    }
    .nav-link{
        position: relative;
        color: var(--title-color);
        font-weight: var(--font-semi-bold);
        transition: color .4s;
    }
    .nav-link::after{
        content: '';
        width: 0;
        height: 2px;
        background: var(--first-color-light);
        position: absolute;
        left: 0;
        bottom: -.5rem;
        transition: width .3s;
    }
    .nav-link:hover{
        color: var(--first-color-light);
    }
    .nav-link:hover::after{
        width: 80%;
    }
    .nav-close{
        position: absolute;
        top: 2rem;
        right: 1.5rem;
    }

    /* add classlist */
    .show-menu{
        right: 0;
    }
    .scroll-header::after{
     content: '';
     position: absolute;
     width: 1000%;
     height: 100%;
     background: hsl(var(--hue), 70%, 4%, .2);
     backdrop-filter: blur(16px);
     --webkit-backdrop-filter:blur(16px);
     top: 0;
     left: 0;
     z-index: -1;
    }
   

    .home-container{
        row-gap: 2rem;
        padding-top: 1rem;
    
    }
    .home-img{
        width: 320px;
        height: 28rem;
        justify-content: center;
        mask-image: linear-gradient(to bottom,
             hsl(var(--hue), 40%, 16%) 60%,
                transparent 100% );
                border-radius: 15px;
    }
    .name{
        font-size: var(--biggest-font-size);
        font-weight: var(--font-bold);
        word-break: break-word;
        margin-bottom: 1rem;
    }
    .profession{
        position: relative;
        font-size: var(--big-font-size);
        color: var(--text-color);
    }
    .profession::after{
        content: '';
        position: absolute;
        left: 0;
        bottom: -.5rem;
        width: 35%;
        height: 3px;
        background: var(--text-color);
    }
    .home-scroll{
        color: var(--title-color);
        display: inline-flex;
        column-gap: .5rem;
        justify-self: center;
        align-items: center;
        margin-top: 3rem;
    }
    .home-scroll-box{
        background: var(--first-color);
        width: 34px;
        height: 34px;
        border-radius: 2rem;
        display: grid;
        place-items: center;
        font-size: 1.5rem;
        overflow: hidden;
    }

    .home-scroll-text{
        font-weight: var(--font-semi-bold);
    }
    .home-scroll-box i{
        animation: scroll-down 3s infinite;
    }

    @keyframes scroll-down {
        0%{
            transform: translateY(-1rem);
            opacity: 0;
        }
        50%{
            transform: translateY(0);
            opacity: 1;
        }
        100%{
            transform: translateY(.6rem);
            opacity: 0;
        }
    }


    /* about section */

    

    .about-container{
        row-gap: 3rem;
        animation: appear linear;
        animation-timeline: view();
        animation-range: entry 0;
    }
    .about-title{
        position: relative;
        color: var(--text-color);
        font-size: var(--small-font-size);
        margin-bottom: 2rem;
    }
    .about-title::after{
        content: '';
        position: absolute;
        left: 0;
        bottom: -.5rem;
        width: 30px;
        height: 2px;
        background: var(--text-color);
    }
    .aboutMe{
        row-gap: 3rem;
    }
    .about-info{
        margin-bottom: 2rem;
    }
    .about-info b{
        color: var(--first-color-alt);
    }
    .about-img{
        width: 250px;

        justify-self: center;
        mask-image: linear-gradient(to bottom,
        hsl(var(--hue), 40%, 16%) 60%,
           transparent 100% );
           border-radius: 20%;
    }
    .about-button{
        width: 100%;
    }

    .experience-content{
        row-gap: 2rem;
    }
    .experience-data{
        row-gap: 1rem;
    }
    .experience-company{
        font-size: var(--h2-font-size);
        font-weight: var(--font-bold);
    }
    .experience-profession{
        font-size: var(--h3-font-size);
        margin-bottom: .25rem;
    }
    .experience-date{
     display: block;
     font-size: var(--small-font-size);
     margin-bottom: .75rem;
    }

    .skills-box i{
        width: 35px;
        margin-bottom: .5rem;
        font-size: large;
    }
    .skills-name{
        font-size: var(--small-font-size);
    }
    .skills-content{
        grid-template-columns: repeat(3, max-content);
        justify-content: space-around;
        align-items: flex-end;
    }
    .skills-box{
        display: grid;
        place-items: center;
        transition: transform .4s;
    }
    .skills-box:hover{
        transform: translateY(-.25rem);
    }



    .services{
        background: var(--container-color);
    }
    .services-container{
        row-gap: 2rem;
    }
    .services-icon{
        display: block;
        color: var(--first-color-light);
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .services-title{
        font-size: var(--h3-font-size);
        margin-bottom: .70rem;
    }


    .contact-container{
        row-gap: 4rem;
    }
    .contact-group,
    .contact-form{
        gap: 1rem;
    }
    .contact-form{
        position: relative;

    }

    .contact-input{
        padding: 1.25rem;
        background: var(--container-color);
        color: var(--title-color);
        font-weight: var(--font-semi-bold);
    }
    .contact-input::placeholder{
        color: var(--text-color-light);
    }

    .contact-area{
        height: 10rem;
        resize: none;
    }
    .button-contact{
        margin-top: 1rem;
        cursor: pointer;
    }

    .contact-socials{
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        column-gap: 3rem;
    }
    .contact-social-link{
        color: var(--title-color);
        display: inline-flex;
        column-gap: .25rem;
        align-items: center;
        transition: color .4s;

    }
    .contact-social-link i{
        font-size: 1.4rem;
        font-weight: var(--font-semi-bold);
    }
    .contact-social-link:hover{
        color: var(--first-color-light);
    }
    .submit-message{
        position: absolute;
        left: 0;
        bottom: -2rem;
        font-size: var(--small-font-size);
        font-weight: var(--font-semi-bold);
    }




    /* footer */
    .footer{
        background: var(--container-color);
    }
    .footer-container{
        padding-block: 3rem 2rem;
        row-gap: 3rem;
    }
    .footer-links{
        display: flex;
        justify-content: center;
        column-gap: 2rem;
    }
    .footer-link{
        color: var(--title-color);
        font-weight: var(--font-semi-bold);
        transition: color .4s;
    }
    .footer-copy{
        color: var(--title-color);
        font-size: var(--small-font-size);
        text-align: center;
    }



    


























    /* project section */
    .projects{
        background: var(--container-color);

    }
    .project-card{
        background: var(--first-color);
    }
    .project-link{
        display: block;
        position: relative;
        background: var(--body-color);
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        color: var(--text-color);
        transition: transform .4s;
    }
    .project-title{
        font-size: var(--h3-font-size);
        margin-bottom: .75rem;
    }
    .project-info{
        margin-bottom: 1.5rem;
    }
    .project-link i{
        position: absolute;
        top: 1.8rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: var(--first-color-light);
        transition: transform .4s;
    }
    .project-link:hover{
        transform: translateY(-.35rem);
    }
    .project-link:hover i{
        transform: translateX(.5rem);
    }


    
}

/* small mobile devices */

@media screen and (max-width: 300px){
    .container{
        margin-inline: 1rem;
    }
    .skills-content{
        grid-template-columns: repeat(2, max-content);
    }
}

/* MEDUIM DEVICES */
@media screen and (min-width: 540px){
    .home-container,
    .project-container,
    .about-container,
    .services-container,
    .contact-container{
        grid-template-columns: 380px;
        justify-content: center;
    }
}

@media screen and (min-width: 768px){
    .nav-menu{
        width: 50%;
    }
    .home-container{
        grid-template-columns: repeat(2, 350px);
    }
    .home-info{
        align-self: flex-end;
        padding-bottom: 3rem;
        order: -1;
    }
    .home-scroll{
        grid-column: 1/3;
    }
    .project-container{
        grid-template-columns: repeat(2, 350px);
    }
    .about-container{
        grid-template-columns: initial;
    }
    .aboutMe{
        grid-template-columns: repeat(2, 350px);
        align-items: center;
    }
    .about-content{
        order: 1;
    }
    .experience-data{
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-content{
        grid-template-columns: repeat(4,max-content);
        justify-content: initial;
        column-gap: 3rem;
    }

    .services-container{
        grid-template-columns: repeat(2,350px);
    }
    .contact-container{
        grid-template-columns: 460px;
    }
   
}


/* LARGE SCREENS */

@media screen and (min-width: 980px){
    .container{
        margin-inline: auto;
    }
    .section{
        padding-block: 7rem 5rem;
    }
    .section-title{
        margin-bottom: 4rem;
    }
    .nav{
        height: calc(var(--header-height) + 2rem);
    }
    .nav-toggle,
    .nav-close{
        display: none;
    }
    .nav-menu{
        width: initial;
        right: 1px;
    }
    .nav-list{
        flex-direction: row;
        column-gap: 4rem;
    }
    .nav-menu{
        position: fixed;
        top: 5px;
        right: 0;
     /*    background-color: hsl(var(--hue), 70%, 4%, .2);
        backdrop-filter: blur(16px);
        --webkit-backdrop-filter: blur(16px);
        width: 80%;
        height: 100%; */
        padding: 6rem 1rem;
        transition: right .4s;
    }
    .nav-list{
        display: flex;
        flex-direction: column;
        row-gap: 3rem;
    }
    .home-container{
        grid-template-columns: 355px 360px;
        gap: 3rem 10rem;
    }
    .home-img{
        width: 350px;
    }
    .home-name{
        margin-bottom: 1.5rem;
    }
    .home-info::after{
     bottom: -1rem;
     width: 35%;
    }

    .about-container{
        row-gap: 4rem;
    }
    .aboutMe{
        grid-template-columns: 320px 420px;
        column-gap: 11.5rem;
    }
    .about-img{
        width: 320px;
        border-radius: 15px;
        margin-left: 4rem;
    }
    .info-title{
        font-size: var(--normal-font-size);
        margin-bottom: 3.5rem;
        margin-left: 4rem;
    }
    .experience-content{
        row-gap: 4rem;
        margin-left: 4rem;
    }
    .experience-company{
        font-size: var(--h1-font-size);
    }
    .experience-profession{
        margin-bottom: .5rem;
    }
    .experience-date{
        font-size: var(--normal-font-size);
        margin-bottom: 1.5rem;
    }

    .skills-content{
        grid-template-columns: repeat(6, max-content);
    }
    .services-container{
        grid-template-columns: repeat(2, 350px);
        gap: 5rem 10rem;
    }

    .contact-container{
        grid-template-columns: 570px;
    }
    .contact-group{
        grid-template-columns: repeat(2, 1fr);
    }
  .about-img{
    border-radius: 20%;
  }
   .butt










.project-container{
    grid-template-columns: repeat(2, 390px);
}






}

