* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:root {
    --success-color: #4fd896;
    --light-color: #eee;
    --light-grey: #1a1a1a;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.messenger {
    text-align: center;
    background-color: #fff;
    color: #333;
    width: 40%;
    margin: 0 auto 10px;
    border-radius: 13px;
    padding: 5px;
    
}

body {
    background: #111;
    font-family: 'tahoma', sans-serif;
    color: var(--light-color);
}

section h1 {
    font-size: 35px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 21.5rem;
    background-color: var(--light-grey);
    height: 100%;
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

header .img-container {
    text-align: center;
    margin-bottom: 30px;
}

header img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--success-color);
}

header .img-container h3 {
    font-size: 30px;
    margin: 4px 0;
}

header .img-container p {
    font-size: 21px;
}

header nav li {
    margin-bottom: 10px;
    border-bottom: 1px dotted var(--light-color);
    padding: 4px;
}

header nav li a {
    color: var(--light-color);
    padding: 3px;
    cursor: pointer;
}

header nav li a i {
    margin-right: 30px;
}

header nav li a:hover {
    color: var(--success-color);
} 

/* Home */
section {
    margin-left: 22rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}


.home .home-flex {
    width: 90%;
    margin: 0 auto ;
    display: flex;
    align-items: center;
    gap: 30px;
}

.home .home-content h2 {
    font-size: 30px;
}

.home .home-flex .home-content h2 .wave {
    animation: wave 300ms infinite;
    display: inline-block;
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.txt-type > .txt {
    border-right: 0.2rem solid #777;
}

.home .home-content .welcome {
    margin-bottom: 10px;
}

.home .home-content .name {
    color: var(--success-color);
}

.home .home-content h1 {
    margin-bottom: 20px;
}

.home .home-content .txt {
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.home .btn {
    background-color: var(--light-grey);
    display:inline-block;
    border: none;
    padding: 10px 31px;
    border-radius: 100px;
    font-size: 15px;
    transition: 0.5s;
}

.home .btn:hover {
    background-color: var(--success-color);
    transition: 0.3s;
    transition: 0.5s;
}

.btn a {
    color: var(--light-color);
}

.home .user-img {
    background: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url('../img/joshdev.jpg');
    width: 300px;
    height: 500px;
    background-position: center center;
    background-size: cover;
}

.toggle, .active {
    display: none;
}


/* ABOUT ME */
.about {
    padding-left: 53px;
}

.about .about-flex {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 50px;
}

.about h1 {  
    color: var(--success-color);
    margin: 50px 0;
}

.about .about-flex .info {
    flex-basis: 40%;
}

.about .about-flex .info li:not(:last-child) {
    font-size: 17px;
    line-height: 1.2;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
}

.about .about-flex .info li span {
    color: var(--success-color);
}

.about .about-flex .info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: center;
    text-align: center;
    flex-basis: 40%;
}

.about .about-flex .info-section > div h3 {
    color: var(--success-color);
}

.about .about-flex .info-section > div {
    background: var(--light-grey);
    padding: 30px;
}

.about .about-flex .info-section .testimonials, .about .about-flex .info-section .customers {
    padding: 40px;
}

.about .more {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 90%;
}

.about .more .more-info {
    flex-basis: 60%;
}

.about .more .progress {
    flex-basis: 58%;
}

.about .more .progress .progress-content .progress-bar {
    width: 100%;
    height: 7px;
    border: 1px solid #fff;
    border-radius: 10px;
}

.about .more .progress > div{
    margin-bottom: 10px;
}

.about .more .progress .progress-content .progress-bar .progress-txt {
    height: 100%;
    background-color: var(--success-color);
}

.html {
    width: 95%;
}

.javascript {
    width: 85%;
}

.bootstrap {
    width: 80%;
}

.sass, .css {
    width: 90%;
}

.about .percent {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.about .more .more-info li:not(:last-child) {
    font-size: 17px;
    line-height: 1.2;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
}

.about .more .more-info span {
    color: var(--success-color);
}



.about main .me-grid {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 60px 0;
}

.about .me-flex {
    display: flex;
    gap: 10px;
    background-color: #1a1a1a;
    padding:  40px;
    border-radius: 4px;
}

.about main p {
    line-height: 1.4;
}

.about .me-flex img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.about main .avalable {
    background-color: #1a1a1a;
    padding: 20px 40px;
    border-radius: 4px;
}

.about main .avalable h3 {
    margin-bottom: 25px;
    margin-top: 10px;
    font-size: 23px;
}

/* Portfolio */
.portfolio {
   display: flex;
   align-items: center;
}


.portfolio h1 {
    color: var(--success-color);
    margin: 20px 0;
    align-self: stretch;
    width: 90%;
    margin: auto;
}

.portfolio .portfolio-grid {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.portfolio .portfolio-content {
    width: 100%;
}

.portfolio .portfolio-container {
    position: relative;
    min-width: 100px;
}

.portfolio-content img {
   width: 100%;
   height: 13rem;
   border-radius: 4px;
}

.portfolio .portfolio-item {
    position: absolute;
    width: 100%;
    height: 13rem;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    transition: 1s;
}

.portfolio .portfolio-item:hover {
    background:linear-gradient(rgba(0,0,0,0.8),#05060e);
    opacity: 1;
}

.portfolio .portfolio-container .portfolio-item .build {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 32%;
    margin-left: 20px;
}

.portfolio .portfolio-container .portfolio-item .build  h4 {
    font-size: 13px;
    margin-bottom: 6px;
}

.portfolio .portfolio-container .portfolio-item .build h3 {
    font-size: 16px;
    word-wrap: break-word;
}

.portfolio .portfolio-container .portfolio-item a {
    color: var(--light-color);

}

.link {
    margin-left: 20px;
    font-size: 16px;
}

/* service */
.services {
    margin-bottom: 50px;
}
.services .services-section {
    width: 89%;
    margin: auto;
    text-align: center;
}

.services h1 {
    color: var(--success-color);
    margin-bottom: 60px;
    text-align: left;
}

.services .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.services .services-box {
    background: linear-gradient(to top, #05060e 50%, #1a1a1a 50%);
    padding: 20px;
    border-radius: 4px;
    background-size: 100% 200%;
    transition: all 0.8s;
}

.services .services-box:hover {
    background-position: left bottom;
}

.services h4 {
    color: var(--success-color);
    font-size: 22px;
    margin-bottom: 30px;
}

.services .services-box i {
    color: var(--success-color);
    margin-bottom: 30px;
}

.hire {
    background-color: #05060e;
    margin-top: 50px;
    text-align: center;
    padding: 30px;
}

.hire p {
    font-weight: 600;
    margin: 10px 0;
    border: none;
}

.hire .btn {
    display: inline-block;
    background-color: var(--light-grey);
    color: rgba(255, 255, 255, 0.853);
    padding: 10px 25px;
    border: none;
    border-radius: 20px;
    transition: 0.7s;
    cursor: pointer;
    font-size: 15px;
}

.hire .btn:hover {
    background-color: var(--success-color);
}

/* contact */
.contact h1 {
    color: var(--success-color);
    margin-bottom: 15%;
}

.contact .contact-section {
    width: 88%;
    margin: auto;
}

.contact .contact-info {
    text-align: center;
    margin-bottom: 60px;
    width: 88%;
}

.contact-info h3 {
    font-size: 25px;
}

.contact-info p {
    font-weight: 600;
    color: var(--success-color);
}

.contact .contact-grid {
    display: grid;
    grid-template-areas:
    'one two three';
    text-align: center;
    width: 88%;
    margin: auto;
    gap: 20px;
    justify-content: space-between;
}

.contact .contact-grid i {
    color: var(--success-color);
    margin-bottom: 13px;
    font-size: 20px;
}

.contact .contact-grid h4 {
    margin-bottom: 5px;
}

.contact .one {
    grid-area: one;
}

.contact .two {
    grid-area: two;
}

.contact .three {
    grid-area: three;
}

/* email section */
.email {
    width: 100%;
    margin: 15% auto;
}

.email-info {
    text-align: center;
    margin-bottom: 60px;
}

.email p {
    color: var(--success-color);
    font-weight: 600;
}

.email-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.email input, .email textarea {
    border: none;
    background-color: #05060e;
    border-radius: 30px;
    color: #eee;
    font-size: 16px;
    width: 100%;
    padding: 15px 30px;
}

.email ::placeholder {
    font-size: 16px;
}

form > div {
    margin-bottom: 20px;
}

.email .btn i {
    margin-left: 5px;
}

.email .btn {
    display: inline-block;
    background-color: #05060e;
    color: rgba(255, 255, 255, 0.853);
    padding: 10px 50px;
    border: none;
    border-radius: 20px;
    transition: 0.7s;
    cursor: pointer;
    font-size: 15px;
    transition: 0.8s;
}

.email .btn:hover {
    background-color: var(--success-color);
}



/* Media Query */
@media(max-width:1200px) {
    .services .services-grid{
        grid-template-columns: 1fr;
    }

    .about main .me-grid {
        grid-template-columns: 1fr;
        margin-bottom: 100px;
    }
    
    .header{
        transition: 0.5s ;
    }

    .user-img {
        display: none;
    }

    .home .home-flex {
        margin-top: 40px;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        padding: 0 50px;
    }
    
    .portfolio .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio h1 {
        margin-bottom: 80px;
    }

    .services h1 {
        margin-top: 100px;
    }
}

@media(max-width: 1000px) {
    .header {
        left: -120%;
    }

    .header.header-active {
        left: 0%;
    }

    .fa-bars {
        font-size: 28px;
        background-color:  var(--light-grey);
        padding: 10px 15px;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 2000;
        cursor: pointer;
    }

    .fa-times {    
        font-size: 28px;
        background-color:  var(--light-grey);
        padding: 10px 15px;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 2000;
        cursor: pointer;
    }

    section {
        margin-left: 0;
    }

    .home .home-content .txt {
        max-width: 100%;
    }

    .about {
        padding-left: 0;
        width: 87%;
        margin: auto;
    }

    .portfolio {
        padding-left: 0;
        width: 88%;
        margin: auto;
    }
    
    .portfolio .portfolio-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr 1fr;
    } 

   
    .about main .me-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin: 70px 0;
        margin-bottom: 100px;
    }

    .services .services-grid{
        grid-template-columns: repeat(3, 1fr);
    }

    .services h1 {
        margin-top: 20px;
        text-align: center;
    }
}

@media(max-width: 870px) {
    .portfolio {
        margin-left: 0;
        width: 87%;
        margin: auto;
    }
    .portfolio .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        margin: auto;
    }

    .portfolio h1 {
        margin-bottom: 100px;
        margin-top: 80px;
    }

    .services .services-grid{
        grid-template-columns: 1fr;
    }

    .services h1 {
        margin-top: 100px;
    }
}

/* 700 media query*/
@media(max-width: 700px) { 
    .about {
        padding-left: 0;
        width: 80%;
        margin: auto;
    }
    
    .about .me-flex {
        width: 100%;
    }

    .about main .me-grid {
        grid-template-columns: 1fr;
    }

    .about .about-flex {
        flex-flow: column;
    }


    .about h1 {
        
        text-align: center;
        margin-bottom: 60px;
    }

    .about .more {
        margin: auto;
    }

    .about .about-flex .info {
        width: 100%;
    }

    .about .about-flex .info-section {
        width: 95%;
    }

    .portfolio {
        padding-left: 0;
        
    }

    .portfolio h1 {
        text-align: center;
    }

    .portfolio .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin: auto;
    }

    .portfolio-content img {
        height: 10rem;
     }

     .portfolio .portfolio-item  {
         height: 10rem;
     }

    .contact .contact-grid {
        grid-template-areas: 
        'one two'
        'three three'
        ;
    }

    .three {
        margin-top: 30px;
    }

    .email .email-flex {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    form > div {
        margin-bottom: 13px;
    }
}



@media(max-width: 500px) {
    .home .home-flex {
        padding: 0 25px;
        width: 93%;
    }

    header {
        width: 100vw;
        transition: 0.5s linear;
    }

    .home {
        margin-bottom: 50px;
    }

    .home .home-flex .home-content h2 {
        font-size: 20px;
    }

    .home .home-flex .home-content h1 {
        font-size: 22px;
    }
    
    .about {
        width: 80%;
        margin: auto;
    }

    .about h1 {
        text-align: left;
    }

    .about .about-flex .info-section {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .about .more {
        flex-flow: column-reverse;
    }

    .about .more .more-info, .about .more .progress {
        width: 100%;
    }

    .about .me-flex {
        padding: 30px;
    }

    .portfolio {
        margin-top: 30px;
    }

    .portfolio h1 {
        margin: 30px auto;
    }

    .portfolio .portfolio-grid {
        grid-template-columns: 1fr;
        width: 90%;
        margin: auto;
    }


    .portfolio .portfolio-container .portfolio-item .build  h3 {
        font-size: 19px;
    }

    .portfolio .portfolio-container .portfolio-item .build  h4 {
        font-size: 12px;
    }

    .services .services-section {
        width: 83%;
    }

    section h1 {
        font-size: 23px;
    }

    .contact .contact-grid {
        grid-template-areas: 
        'one one one'
        'two two two'
        'three three three'
        ;
    }

    .contact h1 {
        width: 88%;
        margin: auto;
        margin-bottom: 60px;
    }

    .contact .contact-section {
        width: 100%;
        margin: auto;
        padding: 20px;
    }
    
    .contact .contact-info {
        text-align: center;
        margin-bottom: 40px;
        width: 100%;
    }

    .three {
        margin-top: 0;
    }
}




@media(max-width: 390px) {
    .portfolio .portfolio-grid {
        grid-template-columns: 1fr;
        width: 90%;
        margin: auto;
    }

   

    .portfolio h1 {
        margin-bottom: 60px;
    }
}



@media(max-width: 315px) {
    .portfolio .portfolio-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin: auto;
    }

    .portfolio h1 {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .portfolio .portfolio-container .portfolio-item .build  h3 {
        font-size: 15px;
    }

    .portfolio .portfolio-container .portfolio-item .build  h4 {
        font-size: 11px;
    }
}