*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins",sans-serif;
}
:root{
    --bg-color: #263442;
    --second-bg-color: #131313; 
    --text-color: white; 
    --main-color: #356bc1; 

}
html{
    font-size: 60%;
    overflow-x: hidden;
}
body{
    background-color:var(--bg-color) ;
    color: var(--text-color);
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding:4rem 12% 4rem;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index:5 ;
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight:800 ;
    cursor:pointer ;
    transition: 0.3s ease;
}
.logo:hover{
    transform:scale(1.1);
}
.logo span{
    text-shadow:0 0 25px var(--main-color);
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover,.navbar a.active{
   color: var(--main-color);
   border-bottom: 3px solid var(--main-color) ;

}
#menu-icon{
    font-size:3.6rem ;
    color: var(--main-color);
    display: none;
}
section{
    min-height: 100vh;
    padding:10rem 12% 10rem ;
}
.home{
    margin-top: 20px;
    display: flex;
    align-items:center ;
    justify-content: center;
    gap:15rem;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}
span{
    color: var(--main-color);
}
.logo span {
    color: var(--main-color);
}
.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

 .home-img .home-box{
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
 }
 .home-img .home-box::before,
 .home-img .home-box::after{
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent,transparent,transparent,white);
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
 }
 .home-img .home-box::after{
    animation-delay: -5s;
 }
 @keyframes rotate-border{
    100%{
        transform: rotate(360deg);
    }
 }
 .home-img .home-box .home-item{
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 50%;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    border:.1px solid var(--bg-color) ;

 }
 .home-img .home-box .home-item img{
    position: absolute;
    display: block;
    top: 1px;
    width: 32vw;
    object-fit: cover;
 }
.home-content p{
       font-size: 1.5rem;
       font-weight: 500;
       line-height: 1.8;
       max-width: 1000px;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height:4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0 ;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}
.btn{
    display: inline-block;
    padding: 1rem 3.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: white;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.uil{
    font-size: 15px;
    margin-left: 4px;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.btn-group{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-group a:nth-last-of-type(2){
    background-color: white;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-last-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: white;
}
.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.text-animation span{
    position: relative;
}
.text-animation span{
    
    color: var(--main-color);
}
.myskills{
    background: var(--second-bg-color); 
    margin-bottom: 40px; 
}
@keyframes load {
    from{
        width: 0%;
    }
}
@-webkit-keyframes load{
    from{
        width: 0%;
    }
}
@-moz-keyframes load{
    from{
        width: 0%;
    }
}
@-o-keyframes load{
    from{
        width: 0%;
    }
}

.boxx{
    display: flex;
    gap: 30px;
}
.box{
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.box li h4{
    margin-bottom: 10px;
    font-size: 20px;
    
}
#boxes{
    font-size: 40px;
    margin-top: 22px;
}
.bar{
    height: 18px;
    background-color: var(--second-bg-color);
    margin-bottom: 15px;
    border-radius: 15px;
    
}
.bar::before{
   content: '';
   background-color: var(--main-color);
   display: inline-block;
   padding: 8px;
   border-radius: inherit;
   animation: load 3s 0s;
   -webkit-animation: load 3s 0s;
   -moz-animation: load 3s 0s;
   -o-animation: load 3s 0s;
}
.bar.bar1::before{
   width: calc(95% - 10px);
   animation-delay: 0s;
}
.bar.bar2::before{
    width: calc(85% - 10px);
    animation-delay: 0.2s;
   
}
.bar.bar3::before{
    width: calc(70% - 10px);
    animation-delay: 0.4s;
    
}
.bar.bar4::before{
    width: calc(90% - 10px);
    animation-delay: 0.6s;
}
.bar.bar5::before{
    width: calc(60% - 10px);
    animation-delay: 0.8s
}
.bar.bar6::before{
    width: calc(60% - 10px);
    animation-delay: 1s;
}

/*education*/
.heading{
    font-size:8rem ;
    text-align: center;
    margin: 5rem 0;
}
.education{
    padding: 100px 15px;
    background: var(--second-bg-color);
}

.item{
    width: 100%;
     position: relative;
     padding: 0px 30px;
     border-left: 2px solid var(--main-color);
}
.items{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
}
.content{
position: relative;
padding: 20px;
border: 1px solid var(--main-color);
background-color: var(--bg-color);
cursor: pointer;
transition:all 0.2s;
border-radius: 4rem;
box-shadow:  0 0 10px var(--main-color);
margin-bottom: 20px;
height: 215px;
}
.content::before{
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    right: calc(100% + 22px);
    top: 0;
    background-color: var(--bg-color);
    border: 2px solid white;
    box-shadow: 0 0 25px var(--main-color);
}
.date{
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
   
}

.content:hover{
    box-shadow: 0 0 25px var(--main-color);
}
.content h3{
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}
.content p{
    color: white;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
}
::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}

.skills{
    background: var(--bg-color);
    color: black;
    padding: 10px 5% 10px;
}
.skills h2{
    margin-bottom: 5rem;
    color: white;
}
.skills-container{
    display: grid;
     grid-template-columns: repeat(2,1fr);
     align-items: center;
    gap: 2.5rem; 
    
}
.skills-box{
    background-color: var(--main-color);
    height: 300px;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.4s  ease-in-out;
}

.skills-box:hover{
    transform: scale(1.03);
    
}
.skills-box .skills-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: left;
    align-items: baseline;
    padding: 5rem 5rem;
}
.skills-info h4{
    color:white;
    font-size: 3rem;
    font-weight: 800;
    line-height: 2;
    margin: auto 13px;
}
.skills-info p{
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    max-height: 100px;
    line-height: 1.7;
    margin: 10px 13px;
   margin: auto;
}

/* contact */
.contact{
    background-color: var(--bg-color);
}
.contact h2{
    margin-bottom: 3rem;
    color: white;
}
.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input,.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact form .btn{
    margin-top: 2rem;
}
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
         font-size: 25px;
         color: var(--main-color);
         border: 2px solid var(--main-color);
         width: 42px;
         height: 42px;
         line-height: 42px;
         display: inline-block;
         text-align: center;
         border-radius: 50%;
         margin: 0 10px;
         transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    color: var(--text-color);
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
      border-bottom: 3px solid var(--main-color);
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}
@media(max-width:1285px){
    html{
        font-size: 55%;
    }
    .skills-container{
        padding-bottom: 7rem;
        grid-template-columns: repeat(2,1fr);
        margin: 0 5rem;
    }
}
@media(max-width:991px){
    header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .items{
        grid-template-columns: 1fr;
    }
   
   
    .skills{
        padding-bottom: 7rem;
    }
    .contact form {
        flex-direction: column;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media(max-width:895px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 30%;
        padding: 1rem 3%;
        background: transparent;
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    } 
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: white;
        text-align: center;
        
    }
    .home{
        flex-direction: column-reverse;
        margin: 5rem 4rem;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
         font-size: 8rem;
         margin-top:3rem ;
    }
    .home-content p{
        max-width: 600px;
        margin: 0 auto;
    }
    .home-img .home-box .home-item img{
        width: 56vw;
    }
    .home-img .home-box{
    width: 56vw;
    height: 56vw;
 }
    .skills h2{
        margin-bottom: 3rem;
    }
    .skills-container{
        grid-template-columns: repeat(1,1fr);
    }
}
@media screen and (max-width: 768px) {
    .boxx {
        flex-direction: column; 
        gap: 20px;  
    }

    .box li h4 {
        font-size: 18px;  
    }

    #boxes {
        font-size: 32px;  
    }

    .bar {
        height: 12px;  
    }

    .bar::before {
        padding: 6px; 
    }
}


@media screen and (max-width: 480px) {
    .boxx {
        gap: 15px;
    }
    .box li h4 {
        font-size: 16px;  
    }

    #boxes {
        font-size: 28px;  
    }

    .bar {
        height: 10px; 
    }

    .bar::before {
        padding: 4px;
    }
}
