@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: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 5rem 9%;
  margin-top: 5rem;
}
.work h2 {
  color: #fff;
  padding: 1rem;
}
.work .heading span {
  color: #38bdf8;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}
.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 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}
.work .button-group .btn:hover,
.work .button-group .btn.is-checked{
  background: #38bdf8;
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}
.work .box-container {
  display: block; /* Let isotope handle layout */
  margin: 3rem auto;
  max-width: 1300px; /* Optional, prevents infinite stretching */
}
.work .box-container .grid-item {
  width: 380px;
  margin: 1.5rem;
}
.work .box-container .box {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  height: 28rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease;
  background: transparent;
}
.work .box-container .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.4);
}
.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work .box-container .box:hover img {
  transform: scale(1.1);
}
.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% - 6.5rem));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.work .box-container .box:hover .content {
  transform: translateY(0);
}
.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 6.5rem;
  width: 100%;
  padding: 0 2rem;
  background: linear-gradient(to right, rgba(56,189,248,0.1), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.work .box-container .box .content .tag h3 {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
}
.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 10.5rem);
}
.work .desc p {
  font-size: 1.4rem;
  color: #cbd5e1;
  line-height: 1.6;
}
.work .desc .btns {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}
.work .desc .btns .btn {
  line-height: 1;
  padding: 1.2rem 2rem;
  border-radius: 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: 0;
}
.work .desc .btns .btn:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

@media screen and (max-width: 450px) {
  .work .button-group{
    width: 100%;
  }
  .work .box-container{
    margin: 0rem;
  }
  .work .box-container .grid-item {
    width: 95%;
    margin: 1rem auto;
  }
  .work .box-container .box {
    width: 100% !important;
  }
}

/* back to home button */
.backbtn{
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}
.backbtn .btn {
  position: relative;
  line-height: 1;
  padding: 1.6rem 3.5rem;
  border-radius: 4rem;
  transition: all 0.3s ease;
  color: #0f172a;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  border: none;
}
.backbtn .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  font-family: 'Nunito', sans-serif;
}
.backbtn .btn i {
  margin-right: 1rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.backbtn .btn:hover{
  background: #38bdf8;
  color: #fff;
  box-shadow: 0 8px 25px rgba(56,189,248,0.5);
  transform: translateY(-3px);
}
.backbtn .btn:hover i {
  transform: translateX(-5px);
}
/* 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;
  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 */