@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 0.2s linear;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  background: #0A0F1F;
  font-family: "Poppins", sans-serif;
}

*::selection {
  background: #00D1FF;
  color: #0A0F1F;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: #121826;
}
html::-webkit-scrollbar-thumb {
  background: #00D1FF;
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #0A0F1F;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
/* pre loader end */

/* 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: #121826;
  box-shadow: 0 0 20px rgba(0, 209, 255, 0.15);
}
section {
  min-height: 100vh;
  padding: 2rem 9%;
}
.heading {
  font-size: 3.5rem;
  color: #E5F1FF;
  font-weight: 800;
  text-align: center;
}
.heading span {
  color: #00D1FF;
}
header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: #E5F1FF;
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: #00D1FF;
}
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: #E5F1FF;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: #00D1FF;
  border-bottom: 0.2rem solid #00D1FF;
  padding: 0.5rem 0;
}
/* navbar ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: #E5F1FF;
  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: #121826;
  }
  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.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: #00D1FF;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #00D1FF;
  }
  .fa-times {
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle {
    right: 0;
  }
}
/* hamburger icon ends */

/* ==== UPDATED WORK PROJECT PAGE STYLING ==== */

.work {
  background: #0A0F1F;
  padding-top: 8rem;
  padding-bottom: 6rem;
  min-height: 100vh;
}

/* Section Heading */
.work h2 {
  text-align: center;
  font-size: 3rem;
  color: #E5F1FF;
}
.work .heading span {
  color: #00D1FF;
}

/* Filter Buttons */
.work .button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  flex-wrap: wrap;
}
.work .button-group .btn {
  padding: 1rem 2rem;
  background: #121826;
  color: #E5F1FF;
  border: 2px solid #00D1FF;
  border-radius: .6rem;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 600;
  transition: 0.3s ease;
}
.work .button-group .btn:hover,
.work .button-group .btn.is-checked {
  background: #00D1FF;
  color: #0A0F1F;
  box-shadow: 0 0 20px rgba(0, 209, 255, .5);
}
/* grid of project cards */
.work .box-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 2rem;
  width: 90%;
  margin: 4rem auto 0;
}

/* project card */
.work .box {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #121826;
  border: 2px solid #08112a;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  height: 250px;
  cursor: pointer;
}

.work .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(0, 209, 255, 0.45);
}

/* Thumbnail Image */
.work .box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}
.work .box:hover img {
  transform: scale(1.08);
}

/* Slide-up Content Panel */
.work .box .content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  border-top: 3px solid #FFD900;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: .5rem;
}
.work .box:hover .content {
  transform: translateY(0);
}

/* Title Bar */
.work .box .content .tag {
  background: #FFD900;
  padding: 0.8rem 1.2rem;
}
.work .box .content .tag h3 {
  color: #0A0F1F;
  font-size: 1.6rem;
  font-weight: 700;
}

/* Description + Buttons */
.work .desc {
  padding: 1rem 1.4rem 1.6rem;
}
.work .desc p {
  font-size: 1.3rem;
  color: #0A0F1F;
  margin-bottom: 1rem;
  min-height: 40px;
}
.work .desc .btns {
  display: flex;
  justify-content: space-between;
}
.work .desc .btns .btn {
  padding: .9rem 1.4rem;
  background: #0A0F1F;
  color: #fff;
  border-radius: .6rem;
  font-size: 1.3rem;
  font-weight: 600;
  transition: .3s;
}
.work .desc .btns .btn:hover {
  background: #00D1FF;
  color: #0A0F1F;
}

/* Back Button */
.backbtn {
  margin-top: 4rem;
  text-align: center;
}
.backbtn .btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1.3rem 2.8rem;
  background: transparent;
  border: 2px solid #00D1FF;
  border-radius: .6rem;
  color: #00D1FF;
  font-size: 1.6rem;
  transition: .3s ease;
}
.backbtn .btn:hover {
  background: #00D1FF;
  color: #0A0F1F;
  box-shadow: 0 0 20px rgba(0, 209, 255, .5);
}

/* Responsive spacing */
@media (max-width: 500px) {
  .work .button-group { width: 95%; }
  .work .box { height: 230px; }
}
/* ==== UPDATED WORK PROJECT PAGE STYLING END ==== */