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

:root {
    --background: #d2def8;
    --primary-color-dark: rgb(21,21,21);;
  }

body{
    min-height: 100vh;
    background-color: var(--background);
}

nav{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2em 15%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    backdrop-filter: blur(10px);
    z-index: 1000;
} 
ul{
    display: flex;
    align-items: center;
    gap: 3em;
}

nav ul a{
    color:green;
    font-size: 1.3em;
    opacity:0.7;
    transition: 0.2s ease-in-out;
}

nav ul a:hover{
    opacity: 1;

}

.logo{
    font-size: 2em;
    color: white;
    font-weight: 800;
    opacity:0.8;
    transition: 0.2s ease-in-out;
}

#namelogo{
  color: green;
}

.logo:hover{
    opacity: 1;
}
.btn{
    padding: 0.5em 1em;
    color: black;
    background-color: rgb(236, 232, 232);
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 0.5em;
    font-size: 1.1em;
    border: 2px solid black;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn:hover{
  background-color: rgb(233, 139, 139);

  color: rgb(179, 88, 88);


}
span{
    background: black;
    background-clip: text;
    color: transparent;
}
#menu{
    color: black;
    font-size: 3em;
    display: none;
}

section{
    min-height: 100vh;
    padding: 5% 15%;
    
}
#home{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    color: white;
    
   

}
#home img{
    width: 14vw;
    border-radius: 50%;
    margin-top: 3em;
   
    
}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.5em;
    max-width: 600px;
}

.info-box h1{
    font-size: 5em;
    font-weight:500
}

.info-box h3{
    font-size: 2em;
    font-weight: 400;
}

.info-box p{
    opacity: 0.7;
    color: black;
}

.btn-box{
    display: flex;
    gap: 1em;
}

.btn-box .btn:nth-of-type(2){
    background-color: rgb(236, 232, 232);
    color: black;

}

.btn-box .btn:nth-of-type(2):hover{
    background-color: rgb(233, 139, 139);

    color: rgb(179, 88, 88);
}

::-webkit-scrollbar{
    width: 20px;
    background-color: var(--background);

}

::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, #6cff52, #3ec5ff);
}



#about {
    background-color: var(--extra-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5em;
  }
  
  #about img{
    width: 30vw;
    border-radius: 1em;
  }
  
  .about-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2em;
  
  }
  
  .about-box h1{
    font-size: 5em;
  }
  
  .about-box p{
    color: black;
   
    
  }
  
  
  
  .skills{
    display: flex;
    text-align: center;
    gap: 10em;
  }
  
  .skills ul{
    font-size: 1.3em;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    color: white;
    opacity: 0.8;
    align-items: baseline;
    
  }
  
  .skills ul li span{
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.3em;
    transition: 0.3s ease-in-out;
  
  }
  
  .skills ul li span:hover{
    transform: translateX(10px);
  
  }
  
  .skills ul li i{
    font-size: 1.2em;
  }
  
  .about-box h2{
    font-size: 2.5em
  }

  #project {
    background-color: var(--background);
  }

  .header{
    text-align: center;
    font-size: 5em;
    margin: 0.5em 0;

  }

  .services-container{
    display:flex;
    /* display:grid; */
    grid-template-columns: repeat(autofit,minmax(250px,1fr));
    gap: 2em;
  }

  .box{
    border: 3px solid rgb(49,49,49);
    border-radius: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    object-fit: cover;
    padding: 3em;
    gap: 2em;
    color: black;
    cursor: pointer;
    transition: 0.3s ease-in-out;
  }

  .box:hover{
    border: 3px solid rgb(100,100,100);

  }

  .box p{
    opacity: 0.8;
  }

  .box h1{
    font-size: 2em;
  }


  .box img{
    width: 100%; /*Include this line*/
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain;
  }
  

  #contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 70vh;
    background-color: var(--extra-light);
    
  }
  
  .contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    border-color: rgb(163,163,163);
    background: (250,250,250);
    margin: 2rem auto;
    background-color: white;
    
    
  }
  
  .contact-info-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
    background-color: white;
    
  }
  
  .contact-info-container p{
    font-size: larger;
    background-color: white;
  }
  
  .contact-icon{
    cursor: default;
    height: 2rem;
  
  }
  
  .email-icon {
    height: 4.5rem;
  }


  @media(max-width:968px){

    .services-container{
      display:grid;
      /* display:grid; */
      grid-template-columns: repeat(autofit,minmax(250px,1fr));
      gap: 2em;
    }

    .skills{
      display: flex;
      text-align: center;
      gap: 5em;
    }

    section{
      padding: 8em 15%; 
    }
    nav .btn{
      display: none;
    }
    #menu{
      display: block;
    }
    .links{
      position: absolute;
      right: 0;
      top: 100%;
      width: 100%;
      padding: 1em 3em;
      color: black;
      display: flex;
      flex-direction: column;
      text-align: center;
      background: rgba(0,0,0,0.9);
      display: none;
  
    }
    .links a{
      margin: 2em 0;
      display: block;
      font-size: 1.5em;
      color: black;
  
    }
    .links.active{
      display: block;
    }

    .box {
      overflow: visible;
    }

    #home h1{
      font-size: 4em;
    }
    #home h3{
      font-size: 2em;
    }
    #home img{
      width: 24vw;
    }
  
    #about{
      flex-direction: column;
    }
    #about h1{
      font-size: 3em;
    }
  
    #about ul{
      font-size: 1em;
    }
  }
  
  @media(max-width:768){

    .services-container{
      display:grid;
      /* display:grid; */
      grid-template-columns: repeat(autofit,minmax(250px,1fr));
      gap: 2em;
    }
    
    #home h1{
      font-size: 2.5em;
    }
    #home h3{
      font-size: 1.5em;
    }
    #home img{
      width: 32vw;
    }
  
    #about skills{
      gap: 3em;
    }
  
    #project .header{
      font-size: 3em;
      
    }

    #contact .header{
        font-size: 3em;

    }

    #contact .input-box span{
        font-size: 1.2em;
    }

    .input-box input{
        padding: 0.5em 1em;
    }

    .box {
      overflow: visible;
    }

    footer{
        flex-direction: column;
        gap: 5em;
        align-items: baseline;
    }
}
  
.socials {
  display: flex;
  gap: 2rem;
  color: black;
}

.socials i {
  font-size: 2.5rem;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.socials i:hover {
  transform: scale(1.5);
}



.fa-brands.fa-linkedin{
  color: black;
}

.fa-brands.fa-github{
  color: black;
}


