@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.fade-in {
  opacity: 0; /* test */
  animation: fadeIn 1s forwards; /* Apply the fade-in animation */
}

/* Optionally, you can control the duration and delay for a smoother effect */
.fade-in[data-delay] {
  animation-delay: var(--delay);
}

.fade-in[data-duration] {
  animation-duration: var(--duration);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  scroll-behavior: smooth;
}

/* Header styles */

header {
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2abcec 0%, #9ed4fd 100%);
  z-index: 1000;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-right: 5%;
}

header nav .logo {  
  text-decoration: none;
  padding-left: 70px;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  transition: color 0.7s;
}

header nav .logo:hover {
  color: #000000e3;
}

header nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0 10px;
  margin: 0;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  text-decoration: none;
  color: #000000;
  font-weight: 800;
  transition: color 0.3s, transform 0.3s;
}

header nav ul li a:hover {
  color: #ffffff;
  transform: scale(2.1);
}

/* Home section styles */

.home { 
  height: 100%;
  padding-top: 5%;
  display: flex;
  justify-content: space-between;
}

.home .content {
  margin-top: 10%;  
  margin-left: 10%;
}

.home .content h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 5%;
}

.home .content p {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}

.home .content .social-icons {
  margin-top: 40px;
  font-size: 35px;
}
.home .content .social-icons a
{ 
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  margin-right: 5px;
  transition: 0.3s;
  cursor: pointer;
}
.home .content .social-icons i
{
  mix-blend-mode: luminosity;
}

.home .content .social-icons a:hover 
{
  transition: 3s;
  transform: scale(1.1);
  filter: brightness(1) saturate(100%);
}

.home .about-me 
{
  display: absolute;
  background: #51cbff;
  padding: 10px 20px;
  color: #fff;
  border: none;
  border-radius: 110px;
  font-size: 20px;
  cursor: pointer;
  /* margin-right: 60%; */
  margin-top: 60px;
  /* margin-left: 10%; */
  margin-right: 70%;
  text-align: center ;
    
}
.home .about-me:hover
{
  transition: 0.5s;
  transform: scale(1.1);
  background: #0eb7ff;


}

.home .about-me a
{
  text-decoration: none;
  color: #fff;
  padding-left: 5px;
}


 .home .avatar
{
  margin-right: 7%;
  margin-top: 5%;
}
/* .home .avatar img
{
  
  width: 390px;
  height: 480px;
  border-radius: 50%;

} */
.home .avatar img:hover
{
  transition: 0.3s;
  transform: scale(1.1);
}

/* home ends */

/* about start */
.about {
  height: 100%;
  padding-top: 2%;  
}

.about .title {   
  display: flex;
  justify-content: center;
  margin-top: 5%;
}



.about .title span {
  font-size: 30px;
  padding-top: 3px;
  padding-left: 10px;
  color: #51cbff;
}

.about .fa-solid {
  font-size: 30px;
  padding-right: 10px;
  padding-top: 7px;
}

.about .content {
  display: flex;
  margin-left: 8%;
  padding-top: 2rem;
  align-items: center;
}

.about .content .image img {
  width: 330px;
  height: 420px;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
}

.about .content .image img:hover {
  transition: .7s;
  mix-blend-mode: normal;
  transform: scale(1.1);

}


.about .content h2 {
  margin-left: 10%;
  padding-bottom: 10px;
}
.about .content p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #000000;
  margin-left: 10%;
}

.about .content .resume
{
  position: absolute;
  background: #51cbff;
  padding: 10px 20px;
  color: #fff;
  border: none;
  border-radius: 110px;
  font-size: 20px;
  cursor: pointer;
  margin-left: 12%;
  margin-top: 60px;
}
.about .content .resume:hover
{
  transition: 0.5s;
  transform: scale(1.1);
  background: #0eb7ff;

}

.about .content .resume a
{
  text-decoration: none;
  color: #fff;
}

/* about ends */

/* education starts*/
.education {
  height: 100%;
  margin-top: 10%;
  padding-top: 5%;
  margin-bottom: 10vh;
}
.education .title {
  display: flex;
  align-items: center;
  align-content: center;
  margin-left: 45%;
}
.education i {
  font-size: 35px;
  padding-right: 10px;
}
.education .title h2 {
  font-size: 35px;
  color: #51cbff;
}

.education .education-item { 
  display: flex;
  word-wrap: wrap;
  align-items: center;
  gap:20px;
  margin: auto;
  width: 80%;
  border-radius: 0.5rem;
  box-shadow: 0.2rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
  margin-top: 10vh;
  overflow: hidden;
  transition: 2s;
}

.education .education-item img {
  width: 300px;
  height: auto;
  flex-shrink: 0;
}
.education .education-item-content
{
  flex:1;
  text-align: center;
}
@media (max-width: 768px) {
  .education-item {
    flex-direction: column; /* Stack image and text vertically on smaller screens */
    align-items: center; /* Center align the content */
  }

  .education-item img {
    width: 100%; /* Make the image full width on smaller screens */
    max-width: none; /* Remove the max-width for smaller screens */
  }

  .education-item-content {
    text-align: center; /* Keep text centered */
  }
}

/* education ends */




/*projects start */

.projects {
  height: 100%;
  padding-top: 5%;
  margin-bottom: 15vh;
}
.projects .title {
  display: flex;
  align-items: center;
  align-content: center;
  margin-left: 45%;
}
.projects i {
  font-size: 30px;
  padding-right: 15px;
}
.projects .title h2 {
  font-size: 30px;
  color: #51cbff;
}
.projects .view
{
  padding:20px;
  display: flex;
}

.projects .container .project-item {
  display: flex;
  flex-direction: column; 
  align-items: center;
  max-width: 800px;
  width: 100%;
}

.projects .container .img-container {
  position: relative;
  display: inline-block;
  align-items: center;
}

.projects .container .img-container img
{
  display: block;
  width: 300px;
  height: 400px;
  border-radius: 5%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  /* transition: 0.3s; */
  /* margin-left: 20%; */
}

.projects .container .img-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-left: 20%; */
  /* margin-right: 10%; */
  border-radius: 5%;
}
.projects .container .img-container  .overlay .link {
  color: white;
  font-size: 18px;
  text-decoration: none;
  background-color: rgba(40, 29, 29, 0);
  border-radius: 5px;
  /* transition: background-color 0.3s ease; */
}


.projects .container  .img-container:hover .overlay {
  opacity: 1;
}



.projects .container .project-content
{
  padding-left: 10%;
}
.projects .container .project-content h1
{
  padding-bottom: 10px;
  padding-top:30px;
  align-content: center;
}



.projects .container .project-content li
{
  margin-bottom: 10px;
  font-size: 20px;
  /* font-style: ; */
  
}
.projects .footer 
{
  display:flex;
  justify-content: center;
}
.projects .see_more
{
  width: 10%;
  align-items: center;
  /* display:absolute; */
  background: #51cbff;
  color: #fff;
  border: none;
  border-radius: 110px;
  font-size: 18px;
  cursor: pointer;
  padding: 12px;
  margin-top: 60px;
  text-align: center ;  
  
}
.projects .see_more:hover
{
  transition: 0.5s;
  transform: scale(1.1);
  background: #0eb7ff;


}
.projects .see_more a
{
  text-decoration: none;
  color: #fff;
  /* padding-left: 10px; */
  
  
}
@media (max-width: 768px) {
  

  .projects .footer {
      display: flex;
      text-align: center;
      margin-top: 20px;
  }

  .projects .see_more {
      width: 20%;
      font-size: 18px;
      margin-top: 40px; 
      padding: 10px;
  }

  .projects .see_more:hover {
      transform: scale(1.05);
  }

  .projects .see_more a {
      padding-left: 0;
      width: 80%;
  }
}

@media (max-width: 480px) {
  .projects .title {
      margin-left: 10%;
      font-size: 18px; 
  }

  .projects .container .img-container img {
      max-width: 300px; 
  }

  .projects .container .project-content h1 {
      font-size: 20px; 
  }

  .projects .container .project-content li {
      font-size: 14px; 
  }

  .projects .see_more {
      width: 80%;
  }
}


/*project ends */

/*Skills starts */

.skills {
  height: 100%;
  padding-top: 5%;
  margin-bottom: 10vh;
}

.skills .title {
  display: flex;
  align-items: center;
  align-content: center;
  margin-left: 48%;
}

.skills i {
  font-size: 30px;
  padding-right: 15px;
}
.skills .title h2 {
  font-size: 30px;
  color: #51cbff;
}

.skills .container {
  width: 80%;
  padding: 50px;
  margin: auto;
  border-radius: 0.5rem;
  box-shadow: 0.2rem 0.5rem 1rem rgba(0, 0, 0, 0.2);
  margin-top: 10vh;
  overflow: hidden;
  transition: 2s;
  background: #f8fcff;

}

.category {
  margin-bottom: 50px;
  padding: auto;
}
.category h2
{
  text-align: center;
  color: rgb(60, 186, 236);
}

h2 {
  margin-bottom: 10px;
}

.grid {
  padding-top: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  justify-content: center;
}

.item:hover {
  transition: .9s;
  transform: scale(1.1);
  background: #dedede;  
}

/* skils ends*/


/*certifications starts */

.certifications {
  height: 100%;
  padding-top: 5%;
  margin-bottom: 10vh;
}

.certifications .title {
  display: flex;
  align-items: center;
  align-content: center;
  margin-left: 35%;
}

.certifications i {
  font-size: 30px;
  padding-right: 15px;
}

.certifications .title h2 {
  font-size: 30px;
  color: #51cbff;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background: #020133;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -2;
}

.timeline-item {
  padding: 20px;
  position: relative;
  width: 50%;
  
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item .content {
  padding: 20px;
  background-color: #aaeefe;
  position: relative;
  border-radius: 6px;
}

.timeline-item.left .content {
  margin-left: 30px;
}

.timeline-item.right .content {
  margin-right: 30px;
}

.timeline .left::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -15px;
  background-color: #ff9800;
  border: 4px solid #fff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}
.timeline .right::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  left: -15px;
  /* right: 12.5px; */
  background-color: #ff9800;
  border: 4px solid #fff;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item .content p {
  margin-top: 10px;
  margin-bottom: 5px;
}

/*certifications ends */



/* Footer styles */

footer {
  background-color: #000000;
  color: #fff;
  padding: 1rem 0;
  height: 100%;
}

footer .container {
  display: block;
}

footer .container .upper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

footer .container .thanks {
  padding-left: 10%;
}

footer .container .thanks span {
  display: flex;
  font-size: 20px;
  padding-bottom: 10px;
}

footer .container .contact {
  margin-right: 10%;
}

footer .container .contact p {
  padding-bottom: 10px;
  font-size: 20px;  
}

footer .container .contact i {
  font-size: 20px;
  padding-right: 10px;
}
footer .container .lower
{
  display: flex;
  align-items: center;
  align-content: center;
  margin-left: 45%;
  
}

footer .container .lower .credit{
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  padding-right: 10px;
}

@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  header nav ul {
    flex-direction: column;
    width: 100%;
    background: #2abcec;
    padding: 10px 0;
    margin-top: 10px;
  }

  header nav ul li {
    margin: 10px 0;
    padding-left: 20px;
  }

  header nav ul li a {
    font-size: 1rem;
    color: #000000;
  }

  .home {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home .content {
    margin: 20% 5% 0 5%;
  }

  .home .avatar {
    margin: 20px auto;
  }

  .home .avatar img {
    width: 250px;
    height: auto;
  }
}
