/* Sizing the page*/
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Disabling text selection */
body{
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Prevent horizontal scroll */
html, body{
  width: 100%;
  overflow-x: hidden;
}

/* Scroll behaviour */
html{
  scroll-behavior: smooth;
}

/* Background */
#background-video{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
body{
  background-color: black; /* fallback */
}

/* Page wrap */
.page-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
}

/* Heading */
.heading-box{
  display: flex;
  justify-content: center;
  margin-top: 7rem;
}
.heading{
  color: white;
  font-family: "Bitcount Single", sans-serif;
  font-size: clamp(2.5rem, 4vw, 6rem);
  text-align: center;
}

/* Description */
.description-box{
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-left: 5rem;
  margin-right: 5rem;
  padding: 1rem;
  align-items: center;
  color: white;
  font-family: "Georgia";
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 20px;
  text-align: justify;
}

/* Tech stack */
.tech-stack-box{
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  color: white;
  font-family: "Bitcount Single", sans-serif;
  font-size: 30px;
}
.tech-stack-items{
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.skill{
  background-color: rgba(200, 200, 200, 0.2);
  padding: 10px;
  margin-left: 20px;
  border-radius: 5px;
  color: white;
  font-family: "Georgia";
}

/* Projects */
.projects-box{
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  color: white;
  font-family: "Bitcount Single", sans-serif;
  font-size: 30px;
}
.projects-grid{
  display: grid;
  grid-template-columns: 1fr 1fr ;
  align-items: center;
  margin-left: 5rem;
  margin-top: 2rem;
  justify-content: center;
}
.project-preview{
  display: flex;
  flex-direction: column;   
  gap: 0.5rem;
  color: white;
  padding: 1rem;
  border-radius: 5px;
  background-color: rgba(200, 200, 200, 0.2);
  max-width: 350px;
  height: 675px;
  margin-right: 1rem;
  margin-bottom: 3rem;
}
.project-title{
  font-family: "Georgia";
  font-size: 20px;
  text-align: center;
  letter-spacing: 1px;
}
.project-status{
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: Georgia;
  text-align: center;
  margin-top: 1rem;
}
.project-info{
  font-family: Georgia;
  font-size: 15px;
  line-height: 1.4;
  text-align: justify;
  margin-top: 1rem;
  letter-spacing: 0.5px;
}
.skill-used-box{
  display: flex;           
  gap: 0.5rem;
  flex-wrap: wrap;   
  margin-top: 1rem;      
}
.skill-used{
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: Georgia;
}
.github-box{
  margin-top: 1rem;
  letter-spacing: 0.5px;
}
.github-link{
  color: #7AB2B2;
}

/* Footer */
.footer{
  margin-top: 6rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-family: "Georgia";
   margin-bottom: 100px;
}

/* For Mobile */
@media (max-width: 700px){
  .description-box{
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .tech-stack-items{
    justify-content: flex-start;
    overflow-x: auto;
    gap: 12px;
    padding: 0 1rem;
  }
  .skill{
    flex-shrink: 0;
    font-size: 14px;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .tech-stack-items::-webkit-scrollbar{
    height: 0px;
  }
 .projects-grid{
    grid-template-columns: 1fr;
    margin-left: 0;
    justify-items: center;
  }
  .project-preview{
    width: 90vw;        
    max-width: 340px; 
    margin-right: 0;
    height: auto;
  }
}

