@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::-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;
  color: #0E2431;
}

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;
  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{
    width: 26rem;
    margin: 1rem 0;
    border-radius: .5rem;
  }

  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 */


/* ===== Projects / Work (Modern) ===== */
.work{
  background: radial-gradient(circle at 20% 0%, rgba(115,3,167,0.25), transparent 35%),
              radial-gradient(circle at 80% 20%, rgba(1,26,255,0.22), transparent 40%),
              linear-gradient(to bottom, #070728, #02021b);
  margin-top: 5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* IMPORTANT: avoid global capitalize messing up ML/AI, Power BI, Next.js etc */
.work, .work *{
  text-transform: none;
}

.work h2{
  color: #fff;
  padding: 1rem;
}

.work .heading span{
  color: rgb(255, 230, 0);
}

/* ===== Filters (UPDATED FOR HTML: .button-group .btn) ===== */
.button-group{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem auto 2.6rem;
  width: min(900px, 95%);
}

.button-group .btn{
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.35rem;
  backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.button-group .btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}

.button-group .btn.is-checked{
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ===== Grid ===== */
.work .box-container{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.6rem;
}

/* safer with isotope + grid */
.work .grid-item{ width: auto; }

@media (max-width: 992px){
  .work .box-container{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .work .box-container{ grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.work .box-container .box{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 55px rgba(0,0,0,0.35);
  height: 340px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.work .box-container .box:hover{
  transform: translateY(-7px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 28px 80px rgba(0,0,0,0.45);
}

.work .box-container .box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
}

.work .box-container .box:hover img{
  transform: scale(1.06);
}

/* ===== Overlay content ===== */
.work .box-container .box .content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.0)
  );
}

/* ===== Badges (added by JS) ===== */
.work .badge-row{
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  z-index: 2;
}

/* ===== Base glass badge ===== */
.work .badge{
  font-size: 1.1rem;
  font-weight: 900;
  padding: .55rem .9rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  border: 1px solid;
  color: #fff;
  letter-spacing: .03em;
}

/* Client – gold glass (strong + premium) */
.work .badge--client{
   background: #f59e0b; /* Amber */
  color: #111;
}

/* Personal – blue glass (visible on white images) */
.work .badge--personal{
 background: #036eb0; /* Indigo */
  color: #fff;


}


/* ===== Title area ===== */
.work .box-container .box .content .tag{
  background: transparent;
  padding: 0;
  margin-bottom: .7rem;
}

.work .box-container .box .content .tag h3{
  color: #fff;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.2;
}

/* ===== Description ===== */
.work .desc{
  margin: 0;
}

.work .desc p{
  color: rgba(255,255,255,0.86);
  font-size: 1.35rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  font-family: "Nunito", sans-serif;
}

/* ===== Buttons ===== */
.work .desc .btns{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.work .desc .btns .btn{
  padding: 1.15rem 1.6rem;
  border-radius: 12px;
  font-size: 1.35rem;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.work .desc .btns .btn:hover{
  background: #fff;
  color: #000;
}

/* ===== Back button ===== */
.backbtn{
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.backbtn .btn{
  position: relative;
  line-height: 1;
  padding: 1.6rem 3rem;
  border-radius: 999px;
  transition: 0.3s;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.9);
  background: transparent;
  box-shadow: 0px 10px 25px rgba(0,0,0,0.35);
  text-align: center;
}

.backbtn .btn span{
  font-weight: 700;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}

.backbtn .btn i{
  margin-right: 0.5rem;
  font-size: 1.5rem;
  transition: 0.25s;
}

.backbtn .btn:hover{
  background: #fff;
  color: #000;
}

.backbtn .btn:hover i{
  transform: translateX(-5px);
}

/* ===== Mobile tweaks ===== */
@media (max-width: 450px){
  .work .box-container{ gap: 1.4rem; }
  .work .box-container .box{ height: 320px; }
  .button-group{ width: 100%; }
}

/* 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 */
