@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: none;
  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::-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{
 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: #0f9d8a;
  border-bottom: 0.2rem solid #0f9d8a;
}
/* 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 {
  position: relative;
  min-height: calc(100vh - 6.5rem);
  margin-top: 6.5rem;
  padding: 2rem 9% 1rem;

  background:
    linear-gradient(
      rgba(4, 16, 48, 0.78),
      rgba(4, 16, 48, 0.82)
    ),
    url("../assets/images/projectBackground.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.work h2 {
  color: #ffffff;
  padding: 1rem;
}

.work .heading span {
  color: #7fe7ff;
}
.work .button-group{
  display: flex;
  flex-wrap: wrap;
  gap:1rem;
  margin: 2rem auto;
  width: 50%;
  justify-content: center;
  align-items: center;
}
.work .button-group .btn {
  outline: none;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.work .button-group .btn:hover {
  background-color: #7fe7ff;
  color: #03203f;
  border-color: #7fe7ff;
}

.work .button-group .btn.is-checked {
  background-color: #ffffff;
  color: #03203f;
  border-color: #ffffff;
}
.work .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 1200px;
}
.work .box-container .grid-item {
  width: 33.333%;
  padding: 1rem;
}
.work .box-container .box {
  width: 100%;
  height: 36rem;
  border-radius: 1rem;
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.work .box-container .box img{
  height: 100%;
  width:100%;
  object-fit: cover;
}
.work .box-container .box .content{
  height: 100%;
  width:100%;
  position: absolute;
  top:85%; left:0;
  background:rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}
.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: rgba(127, 231, 255, 0.95);
}
.work .box-container .box .content .tag h3{
  font-size: 2rem;
}
.work .box-container .box:hover .content{
  top: 0;
}
.work .desc {
  margin: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  overflow-y: auto;
}
.work .desc p {
  font-size: 1.4rem;
  line-height: 1.6;
  text-transform: none;
}
.work .desc .btns{
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}
.work .desc .btns .btn{
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: .5rem;
  font-size: 1.5rem;
  color: #fff;
  background: rgb(12, 12, 12);
  margin-right: 2rem;
}
.work .desc .btns .btn:hover{
  background: #310ae0f5;
}

@media screen and (max-width: 900px) {
  .work .box-container .grid-item {
    width: 50%;
  }

  .work .button-group {
    width: 80%;
  }
}
@media screen and (max-width: 900px), screen and (max-height: 700px) {
  .work {
    min-height: auto;
  }
}

@media screen and (max-width: 600px) {
  .work .box-container .grid-item {
    width: 100%;
  }

  .work .button-group {
    width: 100%;
  }
  .work .box-container .box .content {
    top: 0;
  }
}

@media screen and (max-width: 450px) {
  .work .button-group{
    width: 100%;
  }
  .work .box-container{
    margin: 0;
  }
  .work .box-container .grid-item .box{
    width: 95% !important;
    margin: 0 auto;
  }
}

/* back to home button */
.backbtn {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 0;
}
.backbtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: .5em;
  transition: 0.3s;
  color: #ffffff;
  border: 2px solid #7fe7ff;
  background: rgba(3, 25, 58, 0.55);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.backbtn .btn:hover {
  background: #7fe7ff;
  color: #03203f;
}
.backbtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}
.backbtn .btn i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.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*/
.project-error {
  width: 100%;
  margin: 4rem 0;
  color: #fff;
  font-size: 1.8rem;
  text-align: center;
  text-transform: none;
}

/* scroll top starts */
#scroll-top{
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: #ffae00;
  color: rgb(13, 0, 44);
  border-radius: 5rem;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active{
  top: calc(100% - 12rem);
}
/* scroll top ends */
/* Navbar hover and active color */
header .navbar ul li a:hover,
header .navbar ul li a.active {
  color: #0f9d8a !important;
  border-bottom-color: #0f9d8a !important;
}
@media screen and (max-width: 850px) {
  header .navbar ul li a:hover,
  header .navbar ul li a.active {
    color: #0f9d8a !important;
    border-bottom-color: #0f9d8a !important;
  }
}