@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;600;800;900&family=Poppins:wght@300;400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #2a2a2a;
    --second-bg-color: #202020;
    --text-color: #fff;
    --second-color: #ccc;
    --main-color: #05b4ff;
    --big-font: 4rem;
    --h2-font: 2rem;
    --p-font: 1.0rem;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-color);
    padding: 22px 15%;
    border-bottom: 1px solid transparent;
    transition: all .45s ease;

}

.logo {
    color: var(--text-color);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    
}

.logo:hover{
    text-decoration: none;
    color: var(--second-color);
}

span {
    color: var(--main-color);
}

.navlist {
    display: flex;
    
    
}

.navlist a {
    color: var(--second-color);
    font-size: 17px;
    font-weight: 500;
    margin: 0 15px;
    transition: all .45s ease;
}

.navlist a:hover {
    color: var(--main-color);
    text-decoration: none;
}

.navlist a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 35px;
    color: var(--text-color);
    z-index: 1000;
    cursor: pointer;
    margin-left: 25px;
    display: none;
}

section {
    padding: 160px 15% 120px;
}

.home {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url();
    background-color: var(--second-bg-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slide {
    margin-bottom: 20px;
}

.one {
    display: inline-block;
    margin-right: 15px;
    padding: 0 15px;
    line-height: 32px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
    background: var(--main-color);
    color: var(--text-color);
}

.two {
    display: inline-block;
    color: var(--second-color);
    font-size: 20px;
    font-weight: 500;
}

.home-text h1 {
    font-size: var(--big-font);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
    margin: 0 0 8px;

}

.home-text h3 {
    color: var(--text-color);
    margin: 0 0 35px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.home-text p {
    color: var(--second-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 40px;
}
.homebtn{
    display: flex;
    justify-content: left;
    width: 45%;
    justify-content: space-between;
}

.button {
    display: inline-block;
    align-items: center;
    justify-content: center;
    
}
.button_cv {
    display: inline-block;
    align-items: center;
    justify-content: center;
    
}
.button_cv a{
    background-color: var(--bg-color);
    border: 1px solid var(--main-color);
    
    
}

.button_cv a:hover{
    color: var(--second-color);
    
    
}






.btn {
    display: inline-block;
    padding: 12px;
    background: var(--main-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all .45s ease;
}
.btn1:hover {
    background-color: var(--bg-color);
    border: 1px solid var(--main-color);
    color: var(--second-color);
}

.btn:hover {
    transform: scale(0.9);
    
}

.about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
}

.about-img img {
    max-width: 400px;
    height: auto;
    width: 100%;
    border-radius: 50%;
    margin-top: 22px;


}

.img2 img{
    
    max-width: 430px;
    height: 430px;
    width: 100%;
    border-radius: 50%;
    margin-top: 22px;

}

.about-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.about-text h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.7;
    margin: 15px 0 30px;
}

.project h4 b{
    font-size: 15px;
}

.about-text p {
    color: var(--second-color);
    font-size: var(--p-font);
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.8;
    margin-bottom: 4rem;
    text-align: justify;
}

.services {
    background: var(--second-bg-color);

}

.main-text {
    text-align: center;
}

.main-text p {
    color: var(--second-color);
    font-size: 15px;
    margin-bottom: 15px;
}

.main-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.services-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    align-items: center;
    gap: 2.5rem;
    margin-top: 5rem;
}

.box {
    background: var(--bg-color);
    padding: 35px 45px;
    border-radius: 8px;
    transition: all .45s ease;
    
}

.s-icons i {
    font-size: 32px;
    margin-bottom: 20px;

}

.box h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.box p {
    color: var(--second-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.box:hover {
    transform: translateY(-8px);
    cursor: pointer;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    align-items: center;
    gap: 2.5rem;
    margin-top: 5rem;
}

.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    
}

.row img {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), #010b10); 
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 40px;
    transition: height 0.5s;
}

.layer h5 {
    font: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.layer p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;

}

.layer i {
    color: var(--bg-color);
    margin-top: 20px;
    font-size: 20px;
    background: var(--text-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;

}

.row:hover img {
    transform: scale(1.1);

}

.row:hover .layer {
    height: 100%;
}

.contact {
    background: var(--second-bg-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.contact-text h4 {
    color: var(--text-color);
    margin: 18px 0;
    font-size: 20px;
    font-weight: 600;
}

.contact-text h2 {
    font-size: var(--h2-font);
    line-height: 1;
}

.contact-text p {
    color: var(--second-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 30px;
}

.list {
    margin-bottom: 2.8rem;

}

.list li {
    margin-bottom: 12px;

}

.list li a {
    display: block;
    color: var(--second-color);
    font-size: 14px;
    transition: all .45s ease;
}

.list li a:hover {
    color: var(--text-color);
    transform: translateY(5px);

}

.contact-icons i {
    height: 45px;
    width: 45px;
    color: var(--text-color);
    font-size: 22px;
    display: inline-block;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 15px;
    transition: all .45s ease;
}

.contact-icons i:hover {

    color: var(--main-color);
}

.contact-form form {
    position: relative;
}

.contact-form form input,
form textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    outline: none;
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.contact-form textarea {
    resize: none;
    height: 240px;
}

.contact-form .submit {
    display: inline-block;
    font-size: 15px;
    background: var(--main-color);
    color: var(--text-color);
    width: 140px;
    transition: all .45s ease;
}

.contact-form .submit:hover {
    transform: scale(1.1);
    cursor: pointer;
    
    
}

.end {
    padding: 20px 15%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--bg-color);
}

.last-text p {
    color: var(--second-color);
    font-size: 14px;

}

.top i {
    padding: 10px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-color);
    background: var(--main-color);
}



@media (max-width: 1480px) {
    header {
        padding: 12px 2.5%;
        transition: .1s;
    }

    section {
        padding: 110px 3% 60px;
    }

    .end {
        padding: 15px 3%;
    }
}
@media (max-width: 1100px){
    :root{
        --big-font:4rem;
        --h2-font:2.5rem;
        --p-font:1rem;
        transition: .1s;
    }
    .home-text h3{
        font-size: 2.5rem;
    }
    .home{
        height: 87vh;
    }
}
@media (max-width:920){
    .about{
        grid-template-columns: 1fr;

    }
    .about-img img{
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    .contact{
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px){
    #menu-icon{
        display: block;
        
    }
    header {
        position: absolute;
        width: 100%;
        top: 0;
        right: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--bg-color);
        padding: 22px 5%;
        border-bottom: 1px solid transparent;
        transition: all .45s ease;
    
    }
    .about-img img{
        border-radius: 50% !important;
        height: auto !important;
        width: 250px !important;
    }
    .home-text p{
        font-size: 0.8rem;
    }
    .home {
        position: relative;
        height: auto;
        width: 100%;
        background-image: url();
        background-color: var(--second-bg-color);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    .homebtn{
        width: 100%;
        
    }
    .homebtn a{
        font-size: 12px !important;
    }
    .button{
        height: 20px;
        width: 50%;
        margin: 10px 2px;
        
    }
    .button_cv{
        height: 0px;
        width: 70%;
        margin: 10px 0px; 
    }
    
    .home .home-text h3{
        font-size: 1.8rem;
        font-weight: 600px;
    }
    .home .home-text h2{
        font-size: 1.5rem;
        font-weight: 600px;
    }
    .logo {
        color: var(--text-color);
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 1px;
        
    }
    .about-img img {
        max-width: 400px;
        height: auto;
        width: 100%;
        border-radius: 50%;
        margin-top: 22px;
    
    }
    .about{
        height: auto;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }
    .img2 img{
        display: none !important;
    }

    .about-text h2{
        font-size: 1.5rem;
        margin-top: -50px;
    }
    .about-text h4{
        font-size: 1.2rem;
        
    }
    .main-text h2{
        font-size: 1.7rem;
        
    }
    .portfolio-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, auto));
        align-items: center;
        gap: 2.2rem;
        margin-top: 3rem;
    }
    .portfolio-content .layer p{
        font-size: 12px;
    }
    .skill .container{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
        
    }
    .skill .skillleft{
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin: auto;
    }
    .skill .skillright{
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .skill h5{
        font-size: 16px;
    }
    .contact{
        display: flex;
        flex-wrap: wrap;
    }
    .contact-text h2{
        font-size: 1.7rem;
        margin: 10px;
        margin-top: -50px;
       
    }
    .contact-text h4{
        font-size: 1.1rem;
        margin: 10px;
        margin-top: 20px;
      
    }
    .contact-text p{
        font-size: 12px;
        margin: 10px;
        
    }
    .contact-text .list{
        font-size: 15px;
        margin: 10px;
        
    }
    .contact-icons .list{
        font-size: 15px;
        margin: 10px;
        
    }
    
    .navlist{
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        transition: all .45s ease;

    }
    .navlist a{
        display: block;
        margin: 17px;
        font-size: 15px;
        transition: all .45s ease;
        color: var(--text-color);

    }
    .navlist a:hover{
        color: var(--main-color);
    }
    navlist a.active{
        color: var(--text-color);
    }
    .navlist.open{
        top: 100%;
    }

    .end .last-text p{
        font-size: 0.7rem;
    }
}

.contentproject{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cardcontainer {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 220px;
    height: 310px;
    margin: 25px 10px;
  }
  
  .cardcontainer:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  }
  
  .containercard {
    padding: 2px 16px;
  }

 .cb{
    margin-top: 5px;
    padding: 2px 63px ;
    height: 30px;
    font-size: 15px;
 }

 .skill{
    background: var(--second-bg-color);
    width: 100%;
   
 }

 .skillleft{
    width: 50%;
    background-color: var(--second-bg-color) !important;
    
 }
 .skillright{
    width: 50%;
 }
 
 .progress{
    width: 150px;
    height: 150px;
    line-height: 150px;
    background: none;
    margin: 0 auto;
    box-shadow: none;
    position: relative;
    margin-left: 10%;
}
.progress:after{
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 15px solid #f2f5f5;
    position: absolute;
    top: 0;
    left: 0;
}
.progress > span{
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    z-index: 1;
}
.progress .progress-left{
    left: 0;
}
.progress .progress-bar{
    width: 100%;
    height: 100%;
    background: none;
    border-width: 15px;
    border-style: solid;
    position: absolute;
    top: 0;
}
.progress .progress-left .progress-bar{
    left: 100%;
    border-top-right-radius: 80px;
    border-bottom-right-radius: 80px;
    border-left: 0;
    -webkit-transform-origin: center left;
    transform-origin: center left;
}
.progress .progress-right{
    right: 0;
}
.progress .progress-right .progress-bar{
    left: -100%;
    border-top-left-radius: 80px;
    border-bottom-left-radius: 80px;
    border-right: 0;
    -webkit-transform-origin: center right;
    transform-origin: center right;
    animation: loading-1 1.8s linear forwards;
}
.progress .progress-right .pl1{
    animation: loading-1 1.8s linear forwards;
}
.progress .progress-right .pl2{
    animation: loading-2 1.8s linear forwards;
}
.progress .progress-right .pl3{
    animation: loading-3 1.8s linear forwards;
}
.progress .progress-right .pl4{
    animation: loading-4 1.8s linear forwards;
}
.progress .progress-value{
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: rgb(250, 245, 245);
    text-align: center;
    position: absolute;
}


.progress.blue .progress-bar{
    border-color: #26abfd;
}

@keyframes loading-1{
    0%{
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100%{
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
}
@keyframes loading-2{
    0%{
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100%{
        -webkit-transform: rotate(144deg);
        transform: rotate(144deg);
    }
}
@keyframes loading-3{
    0%{
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100%{
        -webkit-transform: rotate(190deg);
        transform: rotate(190deg);
    }
}
@keyframes loading-4{
    0%{
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100%{
        -webkit-transform: rotate(200deg);
        transform: rotate(200deg);
    }
}
@keyframes loading-5{
    0%{
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100%{
        -webkit-transform: rotate(126deg);
        transform: rotate(126deg);
    }
}
@media only screen and (max-width: 990px){
    .progress{ margin-bottom: 20px; }
}



.skillleft{
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    background: #000;
    display: flex;
    height: 50vh;
    padding: 0;
    margin: 0;
}
.progresshz {
    background: rgba(255,255,255,0.1);
    justify-content: flex-start;
    border-radius: 100px;
    align-items: center;
    position: relative;
    padding: 0 5px;
    display: flex;
    height: 15px;
    width: 500px;
  }
  
  .progresshz-value {
    
    box-shadow: 0 10px 40px -10px #fff;
    border-radius: 100px;
    background: #fff;
    color: #000;
    font-size: 10px;
    font-weight: bold;
    height: 15px;
    width: 0;
    margin-left: -5px !important;
     
  }
  .pv1{
    animation: load 3s normal forwards;
  }
  .pv2{
    animation: load2 3s normal forwards;
  }
  .pv3{
    animation: load3 3s normal forwards;
  }
  .pv4{
    animation: load4 3s normal forwards;
  }
  
  @keyframes load {
    0% { width: 0; }
    100% { width: 70%; }
  }
  @keyframes load2 {
    0% { width: 0; }
    100% { width: 60%; }
  }
  @keyframes load3 {
    0% { width: 0; }
    100% { width: 85%; }
  }
  @keyframes load4 {
    0% { width: 0; }
    100% { width: 65%; }
  }

  @media (max-width: 780px){
    
    .progresshz {
        background: rgba(255,255,255,0.1);
        justify-content: flex-start;
        border-radius: 100px;
        align-items: center;
        position: relative;
        padding: 0 5px;
        display: flex;
        height: 8px;
        width: 250px;
      }

      .progresshz-value {
    
        box-shadow: 0 10px 40px -10px #fff;
        border-radius: 100px;
        background: #fff;
        color: #000;
        font-size: 7px;
        font-weight: bold;
        height: 8px;
        width: 0;
        margin-left: -5px !important;
         
      }

      .about-img img {
        max-width: 470px;
        height: auto;
        width: 100%;
        border-radius: 10%;
        margin-top: 22px;
    
    
    }

    
 }

 