@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Rowdies:wght@300;400;700&display=swap');


.navbar{
    
    padding: 0;
    margin: 0;
    left:0;
    top:0;
    width: 100vw;
    position: fixed;
    background-color:var(--lightbg-color);

    z-index: 1;
    border-bottom: 1px solid white;


}


:root{
  --bg-color:#1e2533;
  --second-bg-color:#2d3038;  
  --lightbg-color:#6d7386;
  --lightbgsecond-color:#8e92a1;
}


#aboutSection{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin:5rem;
    height:100vh;
    width:100%;
    left:0;
    top:0;
    padding: 0;;
    margin:0;
    background-color: var(--lightbgsecond-color);

    transition: all 0.5s ease;
}




#contact{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin:5rem;
  height:100vh;
  width:100%;
  left:0;
  top:0;
  padding: 0;;
  background-color: var(--second-bg-color);
  margin:0;
}



.heading{
    font-size: 30px;
}




#projectsSection{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height:100vh;
    text-align: center;
    transition: all 0.5s ease;

}



.messageGroups{
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin:20px;

}


.contactForm{
  border-radius: 25px;
  padding:25px;
  background-color: var(--bg-color);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0,.7);
}


#name, #email, #subject, #phone{
  margin:20px;
  height:70px;
  width:250px;
  font-family: "Josefin Sans", sans-serif;
  color: white;
  font-size: 16px;
  outline:none;
  border:3px solid rgb(0, 134, 119);
  border-radius: 20px;
  
  background: var(--second-bg-color);
  
  

}

input, textarea{
  padding:10px;
}

::placeholder{

  font-size:16px;
  font-family:"Josefin Sans", sans-serif;
  color: white;

}


#projects{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    transition: all 0.5s ease;

}


#message{
  width:500px;
  margin:20px;
  outline:none;
  border:3px solid rgb(0, 134, 119);
  border-radius: 20px;
  font-family: "Josefin Sans", sans-serif;
  color: white;
  font-size: 16px;
  background: var(--second-bg-color);
}


/* Base button styles */
.submitBtn {
  position: relative; /* Needed to position the pseudo-element */
  overflow: hidden; /* Ensures the pseudo-element does not overflow the button */
  border: 3px solid rgb(0, 134, 119);
  height: 45px;
  width: 150px; /* Adjusted width for better visual effect */
  border-radius: 20px;
  background-color: var(--second-bg-color);
  color: white;
  font-size: 16px; /* Added font size for better readability */
  text-align: center; /* Center text */
  cursor: pointer; /* Change cursor to pointer */
  transition: color 0.3s; /* Smooth transition for text color */
  z-index: 0;
}

/* Pseudo-element for the fill effect */
.submitBtn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height:100%;
  background-color: rgb(0, 134, 119); /* Fill color */
  color:white;
  transition: all 0.5s ease; /* Smooth fill effect */
}



/* Adjust text and fill effect on hover */
.submitBtn:hover:before {
  width: 100%;
  color:white;
  z-index: 1;
}

.submitBtn:hover {
  color: white;
}

.submitBtn span {
  position: relative;
  z-index: 2; /* Ensure text is above the pseudo-element */
  display: inline-block;
  width: 100%; /* Ensures the text centers properly */
  line-height: inherit; /* Maintain the line-height for centering */
}

.socials a{
  display:inline-flex;
    height: 3em;
    width:3em;
    border:2px solid white;
    justify-content: center;
    align-items: center;
    border: #2196F3 2px solid;
    border-radius: 50%;
    color: #2196F3;
    margin:20px;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}


.socials a>i{
    font-size: 2em;
    color: #2196F3;

}

body{
    transition: background-color 0.5s ease;
    margin: 0;
    overflow-x: hidden;
    

    font-family: "Josefin Sans", sans-serif;
    background-color:rgb(132, 122, 198);

}

.navbar-container{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    margin: 0;
    position: relative;
    height:100px;
    border-bottom: 1px solid white;
}




.projectButton{
  border-radius: 20px;
  background-color:var(--second-bg-color);
  border: none;
  color: #fff;
  text-align: center;
  font-size: 24px;
  padding: 16px;
  width: 200px;
  transition: all 0.5s;
  cursor: pointer;
  margin-bottom: 36px;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0,.7);
}


button{
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}


.projectButton:after {
  content: '»';
  position: absolute;
  opacity: 0;  
  top: 14px;
  right: -20px;
  transition: 0.5s;
}

.projectButton:hover{
  padding-right: 24px;
  padding-left:8px;
}

.projectButton:hover:after {
  opacity: 1;
  right: 10px;
}








body.dark .navbar{
    background-color: var(--bg-color);
}

#mainSection{
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background-color: var(--lightbg-color);
  transition: all 0.5s ease;

}

body.dark #mainSection{
  background-color: var(--bg-color);

}


.hidden{
  opacity: 0;
  transform: translateX(-100%);
  transition:all 1s ease;

}

.visible{
  opacity: 1;
  transition:all 1s ease;
}
  




.animate .heading{
  transform: translateX(-100%);
  transition: all 1s ease;
  opacity: 0;

}



.animate.show-animation .heading{
  transform: translateX(0);
  opacity: 1;

}


.animate .subheading{
  transform: translateX(100%);
  transition: all 1s ease;
  opacity: 0;

}

.animate.show-animation .subheading{
  transform: translateX(0);
  opacity: 1;

}

.animate .aboutMeText{
  transform: translateY(200%);
  transition: all 1s ease;
  opacity: 0;

}

.animate.show-animation .aboutMeText{
  transform: translateY(0);
  opacity: 1;
}




.pAnimate.project1{
  transform: translateX(-100%);
  transition: all 1s ease;
  opacity: 0;

}

.pAnimate.enteredProjectSection.project1{
  transform: translateX(0);
  opacity: 1;
}



.pAnimate.project3{
  transform: translateX(100%);
  transition: all 1s ease;
  opacity: 0;
}

.pAnimate.enteredProjectSection.project3{
  transform: translateX(0);
  opacity: 1;

}


.cAnimate.contactUs{
  transform: translateY(200%);
  transition: all 1s ease;
  opacity: 0;

}

.cAnimate.enteredContactSection.contactUs{
  transform: translateY(0);
  opacity: 1;
}

.pAnimate.project4{
  transform: translateX(-100%);
  transition: all 1s ease;
  opacity: 0;
}

.pAnimate.enteredProjectSection.project4{
  transform: translateX(0);
  opacity: 1;
}


.pAnimate.project6{
  transform: translateX(100%);
  transition: all 1s ease;
  opacity: 0;
}

.pAnimate.enteredProjectSection.project6{
  transform: translateX(0);
  opacity: 1;
}












.projects, .secondRowProjects{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.project1, .project2, .project3, .project4, .project5, .project6{
  height:300px;
  width:400px;
  background-color: #434a5d;
  border-radius: 25px;
  
  margin: 10px;

  box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.project1Container{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 20px;
}


.contentContainer {
  display: flex;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}


.btn{
    display: inline-block;
    padding: 10px 30px;
    margin: 10px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 10px;
    text-decoration: none;

    font-size: 15px;
    text-transform: uppercase;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: white;


}

.btn:hover{
    
}

.navbar-links{
   
    margin: 0;
    position: absolute;
    left:75%;
    transform: translateX(-50%);
    width:600px;
  
  }


.links{
    position: relative;
    color: white;

    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
  }

  .navbar-links a{
    margin: 0 30px;
  }
  

  #fullStackText{
    font-size: 50px;
    color: white;
    margin: 0;
    padding: 0;

    border-right: 5px solid;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
  }


  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }

  @keyframes cursor {
    
    50% { border-color: transparent }
  }

  .links::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: yellow;
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .links:hover::before {
    transform: scaleX(1);
  }

  body.dark {
    background-color: var(--bg-color);
    color: #fff;
}
body.dark #aboutSection {
  background-color: #2d3038; /* Change background color for dark mode */
  color: #fff; /* Change text color for dark mode */
}








.aboutMe{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.aboutMeContainer{
  width:50%;
}

section{
  display:flex;
}


.downloadCV{
  
  font-size: 26px;
  border: 5px solid #2196F3;

  cursor: pointer;
  padding: 10px 20px;
  border-radius: 10px;
  background: none;
  color:white;
  
}


.switch {
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 21px;
    left:50px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom:0;
    background-color: #ccc;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .darkmode-checkbox:checked + .slider {
    background-color: #2196F3;
  }
  
  .darkmode-checkbox:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  .darkmode-checkbox:checked + .slider:before {
  
    transform: translateX(20px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }


#sidebar-active{
  display: none;
}

.openSideBar, .closeSideBar{
  padding: 0 20px;
  display: none;
}





  /* If the screen is a phone */
  @media (max-width: 480px) {
    /* Your styles here */

    body{
      background-color: var(--bg-color);
      overflow:none;
    }
    #aboutSection{
      background-color: var(--second-bg-color);
    }
    
    .navbar-container{
      border:none;
    }

    .switch{
      left:200px;
    }

   a{
    position: relative;

   }

   #projectsSection{
    height:160%;
   }


  


   .contactForm{
    width: 250px;
    height:550px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

   }

   #name, #email, #subject, #phone{
    width: 250px;
    height:40px;
    font-size: 13px;
   }

   ::placeholder{
      font-size: 13px;
    }

    #message{
      width:250px;
      height:80px;
    }


    .submitBtn{
      height: 40px;
      font-size: 13px;
    }

   .messageGroups{
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
   }

   

  

 




   #fullStackText{
    font-size: 30px;
   }

   .links-container{
      display: flex;

      align-items: flex-start;
      flex-direction: column;
      justify-content: space-around;
      
      position: fixed;
      top: 0;
      left:50%;
      margin:0;
      height:75vh;
      background-color: var(--bg-color);

   }
   .navbar-links {
    flex-direction: column;
    position: absolute; /* Change from fixed to absolute */
    top: 0;
    left: -100%;
    height:100vh;
    margin: 0;
    width:300px;
    background-color: var(--bg-color);
    align-items: flex-start;
    z-index: 100;
    transition: all 1s ease;
  }
    .openSideBar, .closeSideBar{
      padding: 20px;
      display: block;
      z-index: 1000;
      
    }
    #sidebar-active:checked ~ .navbar-links{
      left:0;
    }


    .pAnimate.project1{
      transform: translateX(-100%);
      transition: all 1s ease;
      opacity: 0;
    }

    .pAnimate.enteredProjectSection.project1{
      transform: translateX(0);
      opacity: 1;
    }

    .pAnimate.project2{
      transform: translateX(100%);
      transition: all 1s ease;
      opacity: 0;
    }

    .pAnimate.enteredProjectSection.project2{
      transform: translateX(0);
      opacity: 1;
    }

    .pAnimate.project3{
      transform: translateX(-100%);
      transition: all 1s ease;
      opacity: 0;
    }

    .pAnimate.enteredProjectSection.project3{
      transform: translateX(0);
      opacity: 1;

    }

    .pAnimate.project4{
      transform: translateX(100%);
      transition: all 1s ease;
      opacity: 0;
    }

    .pAnimate.enteredProjectSection.project4{
      transform: translateX(0);
      opacity: 1;
    }

    .pAnimate.project5{
      transform: translateX(-100%);
      transition: all 1s ease;
      opacity: 0;
    }

    .pAnimate.enteredProjectSection.project5{
      transform: translateX(0);
      opacity: 1;
    }

    .pAnimate.project6{
      transform: translateX(100%);
      transition: all 1s ease;
      opacity: 0;
    }

    .pAnimate.enteredProjectSection.project6{
      transform: translateX(0);
      opacity: 1;
    }


    .project6-description, .project5-description, .project4-description, .project3-description, .project2-description, .project1-description{
      display: none;
    }

   
  
   
    .project1, .project2, .project3, .project4, .project5, .project6{
      width: 200px;
      height:120px;
      content: "";
      font-size: 13px;
      margin:10px;

    }


    .project1-heading, .project2-heading, .project3-heading, .project4-heading, .project5-heading, .project6-heading{
      font-size: 16px;
    }


    .projectButton{
      width: 120px;
      font-size: 13px;
      position:relative;

    }
    

    .openSideBar{
      position: fixed;
      left: 0;
      z-index: 0;
    }


    .projects, .secondRowProjects{
      flex-direction: column;

    }

   

    
    
  }