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

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none; border: none;
  text-transform:capitalize;
  transition: all .2s linear;
}
html{
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body{
  background: #f7f7f7;
  font-family: 'Poppins', sans-serif;
}

*::selection{
  background: #2b3dda;
  color: #fff;
}

html{
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar{
  width: .8rem;
}
html::-webkit-scrollbar-track{
  background: rgb(235, 202, 245);
}
html::-webkit-scrollbar-thumb{
  background: #420177;
}

/* navbar starts */
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146,161,176,.3);
}
section{
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading{
  font-size: 3.5rem;
  color: rgb(32, 32, 32);
  font-weight: 800;
  text-align: center;
}
.heading span{
  color: rgb(115, 3, 167);
}
header .logo{
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #0E2431;
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: #fc8c05;
}
header .navbar ul{
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li{
  margin-left: 2.5rem;
}
header .navbar ul li a{
  font-size: 1.57rem;
  color: #0E2431;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
}
header .navbar ul li a.active,
header .navbar ul li a:hover{
  color: #011aff;
  border-bottom: .2rem solid #011aff;
  padding: .5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu{
  font-size: 3rem;
  cursor: pointer;
  color: rgb(24, 2, 63);
  display: none;
}
@media(max-width:768px){
  #menu{
      display: block;
  }
  header .navbar{
    position: fixed;
    top: 6.5rem; right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: #0e0f31;
  }
  header .navbar ul{
    flex-flow: column;
    padding: 1rem;
  }
  header .navbar ul li{
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: .5rem;
    width: 26rem;
  }
  header .navbar ul li a{
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover{
    padding: 1rem;
    color: #fff;
    border-radius: .5rem;
    border-bottom: .5rem solid #011aff;
  }
  .fa-times{
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle{
    right: 0;
  }
}
/* hamburger icon ends */

/* work section starts */
.work{
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 25%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 25%),
    linear-gradient(180deg, #081225 0%, #0f172a 100%);
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}
.work h2{
  color: #fff;
  padding: 1rem;
}
.work .heading span{
  color: #fbbf24;
}
.work .button-group{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem auto 1rem;
  width: min(72rem, 100%);
  justify-content: center;
  align-items: center;
}
.work .button-group .btn{
  padding: 1rem 1.8rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.12);
}
.work .button-group .btn:hover{
  background-color: rgba(255, 255, 255, 0.16);
}
.work .button-group .btn.is-checked{
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  color: #fff;
  border-color: rgba(147, 197, 253, 0.4);
}
.work .box-container{
  display: flex;
  flex-wrap: wrap;
  margin: 1.9rem auto 1rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 124rem;
}
.work .box-container .grid-item{
  width: min(100%, 38rem);
  display: flex;
  justify-content: center;
  padding: 1.1rem;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease;
  will-change: opacity, transform;
}
.work .box-container .grid-item.is-transitioning{
  opacity: 0;
  transform: translateY(1rem) scale(0.97);
}
.work .box-container .grid-item.is-hidden{
  display: none;
}
.work .box-container .box{
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 1.4rem 3rem rgba(0,0,0,.24);
  position: relative;
  overflow: hidden;
  height: 34rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  transform: translateZ(0);
  will-change: transform;
}
.work .box-container .box img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1.01);
  backface-visibility: hidden;
}
.work .box-container .box::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 14%, rgba(15, 23, 42, 0.94) 100%);
}
.work .box-container .box .content{
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.2rem;
  align-items: flex-start;
}
.work .box-container .box .content .tag{
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.18);
}
.work .box-container .box .content .tag h3{
  font-size: 1.9rem;
  color: #fff;
}
.work .desc {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.work .desc p{
  font-size: 1.4rem;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.7;
  text-transform: none;
}
.work .desc .btns{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.work .desc .btns .btn{
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.8rem;
  border-radius: 999px;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  box-shadow: 0 1rem 2.5rem rgba(29, 78, 216, 0.28);
}
.work .desc .btns .btn:hover{
  transform: translateY(-3px);
}

@media screen and (max-width: 450px) {
  .work .button-group{
    width: 100%;
  }
  .work .box-container{
    margin: 2rem 0 0;
  }
  .work .box-container .grid-item{
    width: 100%;
  }
  .work .box-container .grid-item .box{
    height: 31rem;
  }
}

/* back to home button */
.backbtn{
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}
.backbtn .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.4rem 2.4rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.16);
  text-align: center;
}
.backbtn .btn span {
  font-weight: 700;
  font-size: 1.6rem;
  font-family: 'Nunito', sans-serif;
}
.backbtn .btn i {
  font-size: 1.5rem;
}
.backbtn .btn:hover{
  background: #ffffff;
  color: #0f172a;
}
.backbtn .btn:hover i {
  transform: translateX(-8px);
}
/* work section ends */

/* common media queries starts*/
@media(max-width:450px){
  html{
    font-size: 55%;
  }
  body{
    padding-right: 0;
  }
  section{
    padding: 2rem;
  }
}
/* common media queries ends*/


/* scroll top starts */
#scroll-top{
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4.8rem;
  height: 4.8rem;
  display: inline-grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 50%;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
  transform: translateY(7rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1000;
}
#scroll-top.active{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* scroll top ends */
