*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
}
html,body{
    /* background-color: #f29898; */
    font-family: "Bricolage Grotesque", sans-serif;
    pointer-events: none;
    color: white;
    font-size: 100%;
}

.preloader{
    /* display: none; */
    position: fixed;
    top: 0px;
    width: 100%;
    height: 100vh;
    /* background-color: #65c0c0; */
    z-index: 1000;
    overflow: hidden;
}
.preloader .first{
    position: absolute;
    width: 100%;
    height: 100vh;
    /* background-color: #03398a; */
    background-color: #5A2CA7;
    z-index: 2;
    /* bottom: 0; */
}
.preloader .second{
    position: absolute;
    width: 100%;
    height: 100vh;
    /* background-color: #001d3d; */
    background-color: #8B5CF6;
    z-index: 1;
    /* bottom: 0; */
}

.preloader h1{
    top: 50%;
    left: 50%;
    position: absolute;
    z-index: 3;
    transform: translate(-50%,-50%);
    font-size: 3rem;
    /* text-wrap: nowrap; */
    width: 100%;
    text-align: center;
    overflow: hidden;
}
.preloader .preloadertext{
    top: 10%;
    left: 50%;
    position: absolute;
    z-index: 3;
    transform: translate(-50%,-50%);
    font-size: 1.4rem;
    text-wrap: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader .preloadertext :is(h3,h4){
    font-weight: 400;
}

.reveal .parent{
    display: block;
    /* background-color: #c06565; */
    overflow-y: hidden;
}
.reveal .parent .child{
    display: block;
    overflow: hidden;
    /* background-color: #7b507b; */
    transform: translate(0,0);
}
.child span{
    display: inline-block;
    padding: 0.6rem;
}

.preloader .preloadanimation{
    position: absolute;
    /* width: 200px;
    height: 80px; */
    /* background-color: #65c0c0; */
    top: 80%;
    z-index: 4;
    left: 50%;
    transform: translate(-50%,-50%);
}

.wrapper {
    width: 200px;
    height: 68px;
    position: relative;
    z-index: 1;
  }
  
  .circle {
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    left: 15%;
    transform-origin: 50%;
    animation: circle7124 .5s alternate infinite ease;
  }
  
  @keyframes circle7124 {
    0% {
      top: 60px;
      height: 5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
    }
  
    40% {
      height: 20px;
      border-radius: 50%;
      transform: scaleX(1);
    }
  
    100% {
      top: 0%;
    }
  }
  
  .circle:nth-child(2) {
    left: 45%;
    animation-delay: .2s;
  }
  
  .circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
  }
  
  .shadow {
    width: 20px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.9);
    position: absolute;
    top: 64px;
    transform-origin: 50%;
    z-index: -1;
    left: 15%;
    filter: blur(1px);
    animation: shadow046 .5s alternate infinite ease;
  }
  
  @keyframes shadow046 {
    0% {
      transform: scaleX(1.5);
    }
  
    40% {
      transform: scaleX(1);
      opacity: .7;
    }
  
    100% {
      transform: scaleX(.2);
      opacity: .4;
    }
  }
  
  .shadow:nth-child(4) {
    left: 45%;
    animation-delay: .2s
  }
  
  .shadow:nth-child(5) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
  }
  
  @media screen and (max-width: 450px){
    html,body{
      font-size: 50%;
    }  
  }
  @media screen and (min-width: 451px) and (max-width: 1200px){
    html,body{
      font-size: 70%;
    }   
  }
  @media screen and (min-width: 1201px){
    .page2{
      background-color: rgb(0, 0, 255);
    }   
  }
  


/* --------------------------hero section background--------------------------------- */

.background{
  background-color: #000;
    pointer-events: none;
    position: absolute;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    background-color: transparent;
    /* opacity: 0.8; */
}

canvas{
  background-color: #000;
  /* opacity: 0.8; */
    pointer-events: all;
    position: fixed;
    z-index: -4;
    background-image: url(https://images.unsplash.com/photo-1598812866501-87ad598839e7?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80);
    background-size: cover;
}
.planetlight{
  top: 50vh;
  left: 50vw;
  transform: translate(-50%,-50%);
  filter: blur(20rem);
    position: absolute;
    width: 50%;
    height: 50%;
    /* background-color:#8B5CF6; */
    animation: colorChange 5s infinite;
    /* z-index: 1; */
    opacity: 0.5;
}
@keyframes colorChange {
  0% {
    background-color: #8B5CF6;
  }
  25% {
    background-color: #6B46C1;
  }
  50% {
    background-color: #593fca;
  }
  75% {
    background-color: #6b41d6;
  }
  100% {
    background-color: #8B5CF6;
  }
}
.bgplanet{
    scale: 2;
    /* padding-top: 30vh; */
    /* transform: translateY(8vh); */
    transform: translateY(calc(-12vh + 100%));
    position: absolute;
    width: 100%;
    /* bottom: 30px; */
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: auto;
    /* margin-bottom: 20px; */
    bottom: 0;
    /* width: 100vw; */
    pointer-events: none;
    aspect-ratio: 5;
    /* min-height: 150px !important; */
    /* overflow: hidden; */
    /* padding-top: 60px; */
    /* clip-path: inset( -100vw -100vw 0vw 0vw ); */
    /* background-color: #6318db91; */
    /* background-color: rgba(0, 255, 255, 0.682); */
    /* transform: translateY(-30px); */
}

.bgcurve{
    transform: translateY(calc(-4vh + -4vw));
    position: absolute;
    padding-top: 30px;
    width: 100%;
    background-color: #000;
    aspect-ratio: 2.346820809248555 / 1;
    /* background-color: #aa2020b6; */
    border-radius: 100%;
    box-shadow: inset 0 2px 20px #fff, 0 -10px 50px 1px #ffffff7d;
    z-index: -1;
}
.bgcurve2{
    transform: translateY(calc(-4vh + -4vw));
    padding-top: 30px;
    position: absolute;
    background: linear-gradient(180deg, #ffffff 0%, rgba(10, 10, 10, 0) 100%);
    /* background-color: aqua; */
    border-radius: 100%;
    width: 100%;
    aspect-ratio: 2.25 / 1;
    /* transform: translate(0,calc(-0.7%-8vh)); */
    z-index: -2;
}

/* ---------------Header------------------- */
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding:0rem 4rem;
  pointer-events: none;
  height: 10vh;
}
header .left{
  font-size: 1.5rem;
  font-weight: 600;
}
header li{
  list-style: none;
  display: inline-block;
  margin:0 1.5rem;
}
header a{
  text-decoration: none;
  color: white;
  font-size: 1rem;
  /* margin: 0.4rem; */
  pointer-events: all;
  position: relative;
}
header a .line1{
  display: none;
  position: absolute;
  bottom: -2px;
  left: 0;
  display: inline-block;
    height: 0px;
    width: 0%;
    background-color: white;
    transition: all 0.5s;
    transition-delay:0.2s ;
}
header a .line2{
  display: none;
  position: absolute;
  bottom: -2px;
  right: 0;
  display: inline-block;
    height: 0px;
    width: 100%;
    background-color: white;
    transition: all 0.5s;
}
header a:hover .line1{
  display: inline-block;
  width: 100%;
  height: 1px;
}
header a:hover .line2{
  display:inline-block;
  width: 0%;
  height: 1px;
}

@media screen and (max-width: 450px){
  header .left{
    margin: auto;
  }
  header .right{
    display: none;
  }
}

/* ---------Hero Section----------------- */

.herosection{
  margin:0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  flex-direction: column;
  width: 100%;
  height: 90vh;
  /* background-color: #65c0c08f; */
  /* z-index: 1; */
  /* height: 90vh; */
  position: relative;
}
.herosection h1{
  /* padding-top: 5rem; */
  /* background-color: #8B5CF6; */
  width: 70%;
  font-size: 4rem;
  text-align: center;
  margin:3rem auto 0 auto;
}
.herosection h1 img{
  height: 6rem;
  aspect-ratio: 1;
  border-radius: 1rem;
  min-height: 10rem;
  margin: 0 1rem;
  vertical-align: middle;
  z-index: 2;
}
.herosection h2{
  font-weight: 300;
  opacity: 0.5;
  margin: 2rem 0;
}





.herosection button{
  pointer-events: all;
  display: flex;
  align-items: center;
  gap:20px;
  padding: 5px 5px 5px 25px;
  background:rgba(255, 255, 255, 0.178) ;
  border: 1px solid white;
  color: white;
  border-radius: 30px;
  font-size: 1.4rem;
  font-weight: 400;
  /* margin-top: 2rem; */
  cursor: pointer;
  z-index: 5;
  transition: 0.2s ease-in-out;
  overflow: hidden;
}
.herosection button i{
  font-size: 1.3rem;
  font-weight: 500;
  background-color: white;
  color: #000;
  border-radius: 50%;
  padding: 0.7rem;
  transition: 0.2s ease-in-out;
}
.herosection button:hover{
  background-color: white;
  color: #000;
}
.herosection button:hover i{
  background-color: #000;
  color: white;
  transform: rotate(-45deg);
  scale: 1.2;
}



.herosection h4{
  margin-top: auto;
  margin-bottom: 10px;
  content: "Hackathons I accomplished";
  font-size: 1.2rem;
  font-weight: 300;
}
.companies{
  /* margin-top: auto; */
  padding: 2rem;
  padding-bottom: 40px;
  /* width: 100%; */
  overflow-x: hidden;
}
.herocompanies{
  overflow-x: hidden;
  display: flex;
  justify-content: space-around;
  align-items: center;
  /* gap: 50px; */
  /* transform: translateX(25%); */
  /* margin-top: 50px; */
  animation: scroll-left 10s linear infinite;
  transition: 0.5s ease-in-out;
  position: relative;
  /* z-index: -3; */
}

@keyframes scroll-left {
  0% {
      transform: translateX(25%);
  }
  100% {
      transform: translateX(-25%);
  }
}
.herocompanies img{
  height: 20px;
  margin: 0 25px;
  /* width: 100px; */
  object-fit: contain;
  z-index: -1;
  filter: drop-shadow(0px 1000px 0 #ffffff);
  transform: translateY(-1000px);
  /* z-index: -1; */
}

.wraper{
  width: 100%;
  height: 40px;
  transform: translateY(-40px);
  /* background-image:linear-gradient(to right, #000000 15%, #ffffff00 30%, #ffffff00 70%, #000000 85%); */
  z-index: 1000;
  position:absolute;
  left: 0;
}


@media screen and (max-width: 450px){
  .herosection{
    height: 85vh;
    padding-bottom: 5vh;
    /* width: 80%; */
  }
  .herosection h1{
    padding: 0px;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 3.5rem;
  }
  .herosection h1 img{
    height: 170px;
    margin: 10px;
  }

  .herosection h4{
    font-size: 1.4rem;
  }
  
}
@media screen and (min-width: 451px) and (max-width: 1200px){
  .herosection{
    width: 80%;
  }
  
}









.project h1{
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 10vh;
    font-size: 2.5rem;
    margin-bottom: 70vh;
}

.project-container{
    display: flex;
    align-items: center;
    flex-direction: column;
}
.project-container .project-box{
    position: sticky;
    top:30vh;
    background-color: rosybrown;
    width: 50%;
    height: 50vh;
    margin: 50px;
    border-radius: 8px;
    backdrop-filter: blur(48px);
    box-shadow: rgba(0, 0, 0, 0.05) 0px -3px 0px 0px inset, rgb(255, 255, 255) 0px 0px 0px 2px inset, rgba(0, 0, 0, 0.06) 0px 4px 2px 0px inset, rgba(0, 0, 0, 0.04) 0px 0px 24px 4px inset, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
}
.project-box:nth-child(1){
    background-color: bisque;
}
.project-box:nth-child(2){
    transform: rotate(2deg);
    background-color: #c06565;
}
.project-box:nth-child(3){
    transform: rotate(-3deg);
    background-color: #65c0c0;
}
.project-box:nth-child(4){
    transform: rotate(-1deg);
    background-color: #507bac;
}
.project-box:nth-child(5){
    transform: rotate(4deg);
    background-color: #7b507b;
}











.page1{
    pointer-events: none;
    position: relative;
    background-color: rgba(108, 6, 6, 0.408) !important;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    /* padding: 170px; */
}
.page2{
    background-color: rgb(13, 0, 255);
    height: 100vh;
    width: 100%;
}
.page3{
    background-color: black;
    width: 100%;
    /* height: 100%; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* height: 100vh; */
    margin: 0;
    pointer-events:all;
    position: relative;

}
.page3>*{
    pointer-events: all;
}
::-webkit-scrollbar {
  display: none;
}
.terminal-container {
  margin-top: 5vh;
  width: 90%;
  max-width: 1100px;
  /* background-color: #f0f0f0; */
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  pointer-events: all;
  font-size: 1rem;
  text-wrap: wrap;
  border: 4px solid #333;
  border-radius: 16px;

}
.terminaltop{
  background-color: #3A3538;
  width: 100%;
  height:3rem;
  position: sticky;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
}
.terminaltop-left{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 10px;
  position: absolute;
}
.terminaltop-left-red{
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: #ff5f56;
}
.terminaltop-left-yellow{
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: #ffbd2e;
}
.terminaltop-left-green{
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: #27c93f;
  
}
.terminaltop-center{
  flex: 1;
  display: flex;
  justify-content: center;
}
.terminal {
  pointer-events: all;
  background-color: #1E1E1E;
  /* border: 4px solid #333; */
  
  /* padding: 10px; */
  width: 100%;
  /* height: 500px; */
  aspect-ratio: 2;
  overflow-y: auto;
  color: #fff;
  position: relative;
  border-radius: 0 0 12px 12px;
  cursor:text;
}

.terminal-output {
  margin-bottom: 5px;
  margin-left: 10px;
}
.terminal-output div:nth-child(odd){
  /* background-color: bisque; */
  margin-top: 5px; /* Change the output text color */
}

.terminal-input {
  display: flex;
  margin-left: 10px;
}

.terminal-input input{
  font-size: inherit;
  /* font-family: 'Consolas', 'Courier New', Courier, monospace; */
  font-family: inherit;
}
.terminal-prompt {
  margin-right: 5px;
  color: #00ff00; /* Change the prompt text color */
}

#terminal-input {
  background: none;
  border: none;
  color: #fff;
  outline: none;
  flex: 1;
}

.terminal:focus-within {
  outline: none;
}

/* <400- mobile
810- table
1200- desktop
1920 - large desktop */
@media screen and (max-width: 400px){
  .page2{
    background-color: rgb(255, 0, 0);
  }   
}
@media screen and (min-width: 401px) and (max-width: 1200px){
  .page2{
    background-color: rgb(0, 255, 0);
  }   
}
@media screen and (min-width: 1201px){
  .page2{
    background-color: rgb(0, 0, 255);
  }   
}

/* -------------string------------------ */
#string{
  height: 200px;
  width: 90%;
  position: relative;
  /* background-color: rgb(18, 14, 31); */
}
svg {
  width: 100%;
  height: 500px;
  position: absolute;
}







/* -----------------game------------ */
.game{
  height: 400px;
  z-index: 1;
  position: relative;
  pointer-events: all;
}
#board {
  display: block;
  width: 100%;
  height: 400px;
  position: relative;
}
.gamebutton,.restartButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem 2rem;
  font-size: 1.8rem;
  background-color: green;
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  pointer-events: all;
}
#scoreBoard {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.8rem;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 1rem 2rem;
  border-radius: 1rem;
}