@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");



/* Variables */
:root {
  --font-family: "Roboto", sans-serf;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: #fcfcfc;
  --primary-color: #10c3cf;
  --secondary-color: dodgerblue;
  --primary-shadow: #8b8eaf;
  --secondary-shadow: #a17a69;
  
  --line-height: 1.7rem;
  --transition: 0.3s;

}

html {
  scroll-behavior: smooth;
  
}







/* CSS Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

header{
    background-color: #262626;
    width: 100%;
    position: fixed;

    z-index: 2;

}

li{
  list-style-type: none;
}

a {
  text-decoration: none;
  color: white;
}

.nav-link{
  color: white;
}

a:hover {
  text-decoration: none;
  color: var(--secondary-color);
}

body {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-color);
  padding: 0 1em;

  
}







h1{
  color: #fff;
}


.navbar{
  min-height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;

  z-index: 2;
 
  
}
.navbar a:hover {
  color: #10c3cf;
}

.nav-menu{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;

}

h1{
  font-size: 2rem;

}

.nav-link{
  transition: 0.7s ease;
  color: white;

}



.hamburger{
display: none;
cursor: pointer;

}

.bar{
display: block;
width: 1.5rem;
height: 3px;
margin: 5px auto;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
background-color: white;

}



/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 80rem;
  margin: auto;
  
}

.hero img {
  height: 25rem;
  width: 25rem;
  margin-top: 5rem;
  margin-bottom: 2rem;
  align-items: center;
 

}


/* added section */


.container_project{

width: 100%;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 30px 8%; 


}

.gallery{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
grid-gap: 20px;

}

.gallery img{
  width: 100% ;
  max-width: 17rem;

}


.gallery img:hover {
  filter: drop-shadow(4px 4px 6px gray);
  transform: scale(1.1);
}




/* added section */


 /* added section */


.wrapper {
  max-width: 1100px;
  padding: 0 50px;
  margin: 0 auto;
}


.title{
  color: black;

}


/* added section 2*/

/* added end */



/* My Projects */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
  margin-top: 1rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 400ms ease;
}

.gallery img:hover {
  transform: scale(1.05);
}


.gallery .project {
  overflow: hidden;
  position: relative;
  display: flex;
}

.gallery .project .title {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 800;
  background: #17171a;
  color: #fff;
  transform: translateY(50px);
  transition: all 400ms ease;
  align-items: center;
}

.gallery .project:hover .title {
  transform: translateY(0);
}


.projects{
  margin-top: 2rem;
}



/* Sections */



section h2::before {
  content: attr(data-title);
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 100px;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  text-align: center;
}

section {
  background: var(--dark-color);
}

section:nth-of-type(even) {
  background: var(--gray-color);
}



/* added end section */





.bio {
  min-width: 15rem;
  max-width: 25rem;
  padding: 0.625rem;
  border-radius: 6px;
  box-shadow: 0px 2px 15px 2px var(--primary-shadow);
}

.bio h1 {
  margin-bottom: var(--bottom-margin);
  font-size: clamp(3rem, 7rem);
}

.bio p {
  line-height: var(--line-height);
  padding: 0.3rem 0;
  

}








.skills {
  max-width: 68.75rem;
  margin: auto;
  text-align: center;
  margin-top: 2.5rem;

}

.skill-header {
  margin-bottom: 1rem;
}

.skills-wrapper img {
  padding: 1.25rem;
  
}

.icon {
  width: 8.25rem;
  height: 8.25rem;

}
.icon-card {
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 3px 8px var(--secondary-shadow);
  padding: 10px;
  margin: 5px;

}

.contact {
  margin-top: 2rem;
}

.contact h2 {
  text-align: center;
  margin-bottom: var(--bottom-margin-2);
}

.contact-form-container {
  max-width: 40.75rem;
  margin: 2rem auto;
  padding: 0.938rem;
  border-radius: 5px;
  box-shadow: 0 3px 10px var(--secondary-shadow);
}
.contact-form-container label {
  line-height: 2.7em;
  font-weight: var(--bold-font);
  color: var(--primary-color);
}

.contact-form-container textarea {
  min-height: 6.25rem;
  font-size: 14px;
}

.contact-form-container .input-field {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  border: none;
  border: 2px outset var(--primary-color);
  font-size: 0.875rem;
  outline: none;
}
.input-field::placeholder {
  padding: 0.5rem;
  color: var(--primary-color);
}
.submit-btn {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  font-weight: var(--bold-font);
  transition: var(--transition);
}
.submit-btn:hover {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  cursor: pointer;
}
footer {
  background-color: var(--bg-color);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}

#scroll-btn {       
  opacity: 0;   
  width: 40px;
  height: 40px;
  color: #fff;
  background-color: #ef476f;
  position: fixed;
  bottom: 10%;
  right: 10%;    
  border: 2px solid #fff;
  border-radius: 50%; 
  font: bold 20px monospace;       
  transition: opacity 0.5s, transform 0.5s;
}
#scroll-btn.show {      
  opacity: 1;  
  transition: opacity 1s, transform 1s;     
}

 /* =========================== MEDIA QUERIES (TABLETS) ===================
 ===========================*/
 @media(max-width: 768px){

  .hamburger{
    display: block;
  }
    .hamburger.active .bar:nth-child(2){
      opacity: 0;

    }
    .hamburger.active .bar:nth-child(1){
      transform: translateY(8px) rotate(45deg);

    }
    .hamburger.active .bar:nth-child(3){
      transform: translateY(-8px) rotate(-45deg);

    
  }
    .nav-menu{
      position: fixed;
      left: -100%;
      top: 50px;
      gap: 0;
      flex-direction: column;
      background-color: #262626;
      width: 100%;
      text-align: center;
      transition: 0.3s;

    }
  }
    .nav-item{
      margin: 16px 0;

      
    }

    .nav-menu.active{
      left: 0;
    

    }


    @media(max-width: 768px){

      .hero {
        flex-direction: column;
        gap: 0;
      }
    
      .hero img {
        margin-top: 4.5rem;
        margin-bottom: 2rem;

        height: 25rem;
        width: 25rem;
      }
    
      .bio {
        width: 24.5rem;
      }
    
      .more-about {
        padding: 1rem 3.5rem;
      }
    
      .more-about h2 {
        text-align: center;
      }
    
      .more-about p {
        text-align: justify;
      }










      .gallery {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        margin: 0 auto;

      }
    
      section h2 {
        font-size: 40px;
      }
    
      section h2::before {
        font-size: 80px;
      }



    }













    @media(max-width: 482px){
      .icon {
        width: 6.25rem;
        height: 6.25rem;
      }

        
          .hero img {
            height: 21rem;
            width: 21rem;
          }
        
          .bio {
            width: 21.3rem;
          }
        
          .project-container {
            width: 17.875rem;
          }
        
          .contact-form-container {
            max-width: 17.75rem;
          }
        




          .gallery {
            grid-template-columns: 1fr 1fr;
            max-width: 395px;
            align-items: center;
            margin: 0 auto;
          }

          


    }

    @media(max-width: 423px){
      .icon {
        width: 5.25rem;
        height: 5.25rem;
      

    }}

 
    @media(max-width: 357px){
      .icon {
        width: 5.25rem;
        height: 5.25rem;
      }

        
          .hero img {
            height: 15rem;
            width: 15rem;
          }
        
          .bio {
            width: 15.3rem;
          }
        
          .project-container {
            width: 17.875rem;
          }
        
          .contact-form-container {
            max-width: 17.75rem;
          }

          h1 {
            font-size: 1.25rem;

          }


    }