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

/* Project header section */
.project-header {
  background: linear-gradient(to bottom, #010136, #00003a);
  margin-top: 5rem;
  padding: 4rem 9% 2rem;
  min-height: auto;
}

.project-header h2 {
  color: #fff;
  padding: 1rem;
}

.project-header .heading span {
  color: rgb(255, 230, 0);
}

/* Project filters */
.project-header .project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto;
  width: 80%;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  outline: none;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #fff;
  color: #010136;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Category sections */
.category-section {
  padding: 5rem 9%;
  position: relative;
}

.web-section {
  background: linear-gradient(to bottom, #00003a, #010147);
}

.app-section {
  background: linear-gradient(to bottom, #010147, #150166);
}

.ai-section {
  background: linear-gradient(to bottom, #150166, #280178);
}

.cloud-section {
  background: linear-gradient(to bottom, #280178, #3a0288);
  padding-bottom: 8rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-subtitle {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 70%;
  margin: 0 auto;
}

.section-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.section-content.reverse {
  flex-direction: row-reverse;
}

.text-content {
  flex: 1;
}

.section-description {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.skills-showcase {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.skill-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.lottie-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.lottie-animation {
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app-lottie-container, #cloud-lottie-container, #web-lottie-container, #ai-lottie-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* Projects container */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 2rem;
}

/* Project cards */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.overlay-btns {
  display: flex;
  gap: 1rem;
}

.overlay-btn {
  padding: 0.8rem 1.5rem;
  background: #fff;
  color: #010136;
  border-radius: 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.overlay-btn:hover {
  background: #010136;
  color: #fff;
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  font-size: 1.2rem;
}

.tech-badge.more {
  background: rgba(255, 230, 0, 0.2);
  color: rgb(255, 230, 0);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-category {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

.project-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.project-links a:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Back button */
.backbtn{
  display: flex;
  justify-content: center;
  padding: 4rem 0;
  background: linear-gradient(to bottom, #3a0288, #4a02a0);
}

.backbtn .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem 3rem;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.backbtn .btn:hover {
  background: #fff;
  color: #010136;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.backbtn .btn i {
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 980px) {
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  }
  
  .section-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .section-content.reverse {
    flex-direction: column;
  }
  
  .lottie-animation {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .project-header .project-filters {
    width: 100%;
  }
  
  .filter-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
  }
  
  .section-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  
  body {
    padding-right: 0;
  }
  
  section {
    padding: 2rem 4%;
  }
  
  .category-section {
    padding: 4rem 4%;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .project-header .project-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
  }
  
  .lottie-animation {
    height: 200px;
  }
  
  .skills-showcase {
    justify-content: center;
  }
}

/* Scroll to top button */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  height: 5rem;
  width: 5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#scroll-top.active {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  background: #fff;
  color: #010136;
}