
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

a{
    cursor: pointer;
    text-decoration: none;
}
li{
    list-style: none;
}

.center{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.section-p1{
    padding: 40px 80px;
}

body{   
    background-color: #1b1a1a;
    color: white;
    font-family: "Google Sans Code", monospace;
}
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row; 
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #1b1a1a;
}
.navbar a{
    color: white;
    font-weight: 500;
    position: relative;
    transition: 0.3s linear;
    /* opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); */
}
.navbar .fa-close{
    display: none;
}
.list li{
    font-size: 20px;
}
.navbar .list{
    display: flex;
    gap:10px 40px;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
}
.navbar a::before,
.navbar a.active::before{
    content: "";
    position: absolute;
    width: 0%;
    height: 4px;
    background-color: #2d77ff;
    left: 0;
    bottom: -6px;
    border-radius: 80px;
    transition: 0.2s linear;
}
.navbar a:hover::before,
.navbar a.active::before{
    width: 100%;
}
.navbar a:is(:hover, :focus),
.navbar a.active{
    color: #ff5959;
    transform: scale(0.95);
}

.header .logo{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    position: relative;
}
.logo .fa-2x{
    color: #2d77ff;
    animation: logorotate 3s linear alternate-reverse infinite;
}
.logo a{
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  /* font-size: 20px; */
  color: #2d77ff;
  transition: 0.3s ease;
 /* opacity: 0;
animation: slideTop 1s ease forwards; */
}
.logo a:hover{
    transform: scale(0.95);
    color: #ff5959;
}
@keyframes logorotate {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}



.home-infor{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.home-infor h1{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 4rem;
}
.home-infor span{
    font-size: 1rem;
}
.hr hr{
   width: 100%;
   margin: 20px 80px 20px 80px;
}
.my-infor{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    line-height: 1;
}
.my-infor p{
    margin-top: 20px;
}
.my-infor span, h3{
    color: #2d77ff;
    margin-bottom: 20px;
}
.my-infor p a{
    color: white;
}
.my-infor p a:is(:hover, :active){
    text-decoration: underline;
    color: #2d77ff;
    transition: 0.3s;
}



.social-media ul{
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: slideBottom 3s ease forwards;
}

.social-media ul i{
    color: #2d77ff;
    font-size: 24px;
    background-color: transparent;
    border: 3px solid #2d77ff;
    padding: 10px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    outline: none;
    transition: .3s linear;
    /* opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); */
}
.social-media ul i:hover{  
    box-shadow: 0 0 25px rgba(251, 2, 43, 0.8);
    transform: scale(1.01) translateY(-5px);
    background-color: #ff5959;
    color: white;
}



@keyframes slideRight {
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes slideTop {
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
        
    }
}
@keyframes slideLeft {
    0%{
        transform: translateX(200px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
        
    }
}
@keyframes slideBottom {
    0%{
        transform: translateY(200px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
        
    }
}

#project{

}
#project .div1{
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
}

.span{
    color: #2d77ff;
}
#project .div1 p{
    line-height: 1.5;
    font-size: 18px;
}
.p{
    color: #c2c3c5;
}

.project .div2{
    display: flex;
    gap: 30px;
    /* line-height: 1.5; */
    flex-direction: column;
    padding-block-end: 80px;
}
.div2 h2{
    padding-left: 10px;
}
.div2 h2::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 30px;
    background-color: #07f44a;
    left: 80px;
    border-radius: 80px;
}
.grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.success-p{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 300px;
    border: 1px solid rgba(2, 118, 251, 0.5);
    /* padding: 20px; */
    border-radius: 10px;
    position: relative;

}
.success-p .img{
    min-width: 300px;
    width: 400px;
    width: 100%;
    background-color: rgba(27, 60, 98, 0.2);
    padding: 20px;
    transition: 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.success-p img{
    width: 100%;

}
.success-p .img:hover, .success-p .img:hover .fa-share-from-square{
    /* background-color: #1b1a1a; */
    opacity: 0.7;
    display: flex;
}
.fa-share-from-square{
    position: absolute;
    top: 100px;
    left: 180px;
    color: rgb(3, 15, 77);
    background-color: #ffffff;
    /* padding: 10px 15px; */
    width: 35px;
    height: 35px;
        font-size: 18px;
    border-radius: 50%;
    display: none;
}
.status-logo{
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    background-color: rgba(31, 251, 2, 0.9);
    padding:4px 10px;
    border-radius: 20px;
    z-index: 1;
}

.project-detail{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}
.project-detail .span-style{
    display: flex;
    justify-content: space-between;
    color: #656567;
    font-size: 24px;
}
.project-detail .span-style i{
    font-size: 16px;
    color: #02a430;
}
.project-detail h3{
    color: white;
}
.project-detail .result{
    background-color: rgba(82, 118, 160, 0.4);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}   
.project-detail .result .fa-star{
    color: gold;
}
.project-detail .language-list{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.project-detail .language-list li{
    background-color: rgba(82, 118, 160, 0.4);
    border-radius: 20px;
    padding: 8px;
    font-size: 12px;
    color: #80a2e5;
}

.div2.completed h2::before{
    background-color: #0485db;
}

.status-logo-success{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    background-color: rgba(31, 251, 2, 0.9);
    padding:4px 10px;
    border-radius: 20px;
    z-index: 1;
    
}
.completed-p .img{
    background-color: white;
    border-radius: 10px 10px 0 0;
    overflow: hidden;

}
.completed-p .img img{
    transition: 0.3s;
     object-fit: cover;
}
.completed-p .img:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}
.success-p .img:hover i{
    display: flex;
}
.completed-p .img i{
        background-color: #02a430;
}

.div2.progress h2::before{
    background-color: gold;
}

.status-logo-progress{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    background-color: rgba(251, 197, 2, 0.9);
    padding:4px 10px;
    border-radius: 20px;
    z-index: 1;
}
#footer{
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 80px;
    gap: 20px;
}
#footer span{
    color: #2d77ff;
    margin-left: 5px;
}

.mobile{
    background-color: #2d77ff;
    padding: 5px;
    font-size: 20px;
    border-radius: 10px 0 10px 0;
    cursor: pointer;
    display: none;
}
.mobile:hover{
    background-color: #6496f4;
}

@media (max-width:989px) {
    .header{
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 0;
        padding: 20px 0;
    }
    .header .logo{
       right: 0;
    }
    .mobile{
        display: block;
        z-index: 1;
        position: absolute;
        left: 20px;
        top: 20px;
        transition: 2s top ease;
    }
    .navbar{
        width: 100%;
        position: relative;
        display: none;
        justify-content:flex-start;
        top: -500px;
        box-shadow: 10px 10px 30px rgba(8, 8, 8, 0.5);
        background-color: transparent;
        transition: 2s linear;
        margin: 0;
        padding: 20px 40px;
    }
    .list li {
        font-size: 16px;
    }

    .navbar .fa-close{
        display: block;
        position: absolute;
        top: 0;
        right: 0px;
        font-size: 20px;
        background-color: #2d77ff;
        padding: 5px;
        cursor: pointer;
        transition: 2s ease;
    }
    .navbar .fa-close:is(:hover, :focus){
        background-color: #6496f4;
    }
    .navbar .list{
        display: flex;
        flex-direction: column;
        gap: 20px;
        opacity: 0;
        animation: slideRight 0.5s ease forwards;
    }
    .navbar.active{
        display: block;
        top: 0px;
    }
    .navbar a{
    color: white;
    font-weight: 500;
    position: relative;
    transition: 0.3s linear;
    /* opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: calc(.2s * var(--i)); */
}
.grid{
    grid-template-columns: 1fr 1fr;
}

.social-media ul i{
    font-size: 24px;
}
#footer{
    font-size: 14px;
}

}

@media (max-width:599px) {
    
    #project{
        padding: 20px;
    }
    .grid{
        grid-template-columns: 1fr;
    }

    .fa-share-from-square{
        top: 80px;
        left: 140px;
    }

    .div2 h2::before{
        left: 20px;
    }
}