@import url("https://fonts.googleapis.com/css2?family=Prompt: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");
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');


:root {
  --cursor-front: #fff;
  --cursor-back: rgba(255, 255, 255, 0.3);
  --head-color: #2D2F2D;
  --highlight-color: #78A083; 
  --text-color: #f4f4f4;
  --background-main: rgb(32, 32, 32);
  --box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.5);
  --nav: #e6eff1;
  --icon-back:#2D2F2D;
  --icon-front:#A2CA71;
  --about-span: #9BCF53;
  --home-btn: #50727B;
  --work-gra1: #697565;
  --work-gra2: #3C3D37;
  --btn1: #F0FF42;
--btn2: #82CD47;
--btn3: #54B435;
--btn-span: #379237;
  --heading: #ffd900;
  --btn-hover:#88D66C;
}

[data-theme="light"] {
  --cursor-front: #000;
  --cursor-back: rgba(55, 55, 55, 0.3);
  --head-color: #f4f4f4;
  --highlight-color: #9370DB;
  --text-color: #1E201E;
  --background-main: #f4f4f4;
  --box-shadow: 0 5px 20px 1px rgba(0, 0, 0, 0.5);
  --nav: #1E201E;
  --about-span: #8E7AB5;
  --home-btn: #AD88C6;
  --work-gra1: #2E236C;
  --work-gra2: #17153B;
  --btn1:#AF40FF;
  --btn2:#5B42F3;
  --btn3:#00DDEB;
  --btn-span: rgb(5, 6, 45);
  --heading: #00DDEB;
  --btn-hover:#310ae0f5;
}
*{
  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;
  position: relative;
  background: var(--highlight-color);
}


*::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: var(--head-color);
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.3);
}



.heading {
  font-size: 3.5rem;
  color: var(--text-color);
  font-weight: 800;
  text-align: center;
}

.heading span {
  color: var(--highlight-color);
}

header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-color);
}

header .logo i {
  font-size: 2.2rem;
}

header .logo:hover {
  color: var(--highlight-color);
}

header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .navbar li {
  margin-left: 2.5rem;
}

header .navbar ul {
  display: flex;
  li {
    a {
      position: relative;
      display: block;
      text-transform: uppercase;
      margin: 20px 0;
      padding: 10px 20px;
      text-decoration: none;
      color: var(--nav);
      font-family: sans-serif;
      font-size: 18px;
      font-weight: 600;
      transition: .5s;
      z-index: 1;
      &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-top: 2px solid var(--nav);
        border-bottom: 2px solid var(--nav);
        transform: scaleY(2);
        opacity: 0;
        transition: .3s;
      }
      &:after {
        content: '';
        position: absolute;
        top: 2px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--nav);
        transform: scale(0);
        opacity: 0;
        transition: .3s;
        z-index: -1;
        border-radius: 10px;
      }
      &:hover {
        color: var(--head-color);
        &:before {
          transform: scaleY(0.5);
          opacity: 1;
        }
        &:after {
          transform: scaleY(1);
          opacity: 1;
        }
      }
    }
  }
}

header .navbar ul li a.active {
  color: var(--head-color);
  &:before {
    transform: scaleY(0.5);
    opacity: 1;
  }
  &:after {
    transform: scaleY(1);
    opacity: 1;
  }
}

/*
header .navbar ul li a {
  font-size: 1.57rem;
  color: #0e2431;
  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: #011aff;
  border-bottom: 0.2rem solid #011aff;
  padding: 0.5rem 0;
} */
/* navbar ends */


/* hamburger icon starts */
#menu {
  font-size: 3rem;
  /* cursor: pointer; */
  color: var(--text-color);
  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: var(--head-color);
  }

  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }

  header .navbar ul li {
    text-align: center;
    width: 100%;
    border-radius: 0.5rem;
    width: 26rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: var(--text-color);
    font-size: 2rem;
  }

  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: var(--primary-color);
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--head-color);
  }

  .fa-times {
    transform: rotate(180deg);
  }

  header .navbar.nav-toggle {
    right: 0;
  }
}

.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display: none;
}

/* slider background */
.slider {
  background: var(--highlight-color);
  bottom: 0;
  /* cursor: pointer; */
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

/* slider front box */
.slider::before {
  background: #fff;
  content: "";
  bottom: 4px;
  height: 26px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 26px;
}

/* slider transition */
input:checked + .slider::before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}
/* hamburger icon ends */

/* work section starts */
.work {
  background: linear-gradient(to bottom, var(--head-color), var(--highlight-color));
  margin-top: 5rem;
  min-height: 100vh;
  height: auto; 
  padding: 2rem 9%;
  display: flex;
  flex-direction: column;
}
.work h2{
  color: var(--text-color);
  padding: 1rem;
}
.work .heading span{
  color:  var(--heading);
}
.work .button-group{
  display: flex;
  gap:1rem;
  margin: 2rem auto;
  width: 50%;
  justify-content: center;
  align-items: center;
}
.btn {
  align-items: center;
  background-image: linear-gradient(144deg,var(--btn1), var(--btn2) 50%,var(--btn3));
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #FFFFFF;
  display: flex;
  font-family: Phantomsans, sans-serif;
  font-size: 20px;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 3px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
}

.btn:active,
.btn:hover {
  outline: 0;
}

.btn span {
  background-color: var(--btn-span);
  padding: 1rem 2rem;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.btn:hover span {
  background: none;
}

@media (min-width: 768px) {
  .btn {
    font-size: 24px;
    min-width: 196px;
  }
}

/* back to home button */
.backbtn {
  display: flex;
  justify-content: center;
  margin: 4rem 0 2rem 0;
  position: relative;
  z-index: 2;
  clear: both;
}
.backbtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: .5em;
  transition: 0.3s;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0px 2px 4px rgba(48, 68, 247, .3);
  text-align: center;
}
.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{
  background: #ffffff;
  color: #000;
}
.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*/

.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  width: 100%;
  flex: 2; 
}

.pro-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}
@media screen and (max-width: 799px) {
  .pro-content {
    height: auto;
    flex-direction: column;
  }
}
.pro-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -2;
  position: absolute;
  top: 0;
  left: 0;
}

.pro-play {
  width: 32px;
  height: 32px;
  box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.25);
  opacity: 0.5;
  border-radius: 100%;
  transition: all 0.3s 0.1s cubic-bezier(0.44, 0.43, 0, 1.85);
}
.pro-play img {
  width: 100%;
}
.pro-name {
  position: absolute;
  z-index: 1;
  bottom: -40px;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.05em;
  color: white;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pro-name:before {
  content: "";
  width: 0;
  height: 30px;
  border-radius: 10%;
  transform: translateY(2px);
  position: absolute;
  background: var(--pro-name);
  transition: all 0.3s 0.2s ease;
  z-index: -1;
}
@media screen and (max-width: 799px) {
  .pro-name {
    bottom: 10px;
    font-size: 16px;
    visibility: visible;
  }
  .pro-name:before {
    width: calc(100% + 20px);
  }
}
.pro-item {
  position: relative;
  max-width: 360px;
  width: 100%;
  height: 270px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0px 20px 20px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.44, 0.43, 0, 1.85);
}
@keyframes items {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
}
@media screen and (max-width: 799px) {
  .pro-item {
    margin-right: 0px;
    margin-bottom: 20px;
    height: 160px;
    box-shadow: 0px 20px 20px -5px rgba(0, 0, 0, 0.2), 0px 3px 8px rgba(0, 0, 0, 0.42), 0px 20px 10px rgba(0, 0, 0, 0);
  }
}
.pro-item:nth-last-child(2) {
  animation-delay: 0.6s;
}
.pro-item:nth-last-child(3) {
  animation-delay: 0.4s;
}
.pro-item:last-of-type {
  margin-right: 0px;
}
.pro-item:before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: absolute;
  z-index: -1;
  box-shadow: inset 0px 2px 3px rgba(255, 255, 255, 0.4);
}
.pro-item:hover {
  height: 300px;
  box-shadow: 0px 20px 20px -5px rgba(0, 0, 0, 0.2), 0px 3px 8px rgba(0, 0, 0, 0.42), 0px 20px 10px rgba(0, 0, 0, 0);
  .pro-image{
    filter: brightness(0.65);
  }
}
@media screen and (max-width: 799px) {
  .pro-item:hover {
    height: 160px;
  }
}
.pro-item:hover .pro-play {
  opacity: 1;
  width: 48px;
  height: 48px;
  box-shadow: 0px 10px 14px rgba(0, 0, 0, 0.25);
}
@media screen and (max-width: 799px) {
  .pro-item:hover .pro-play {
    width: 32px;
    height: 32px;
    box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.25);
    opacity: 0.5;
  }
}
.pro-item:hover .pro-name {
  bottom: 20px;
  visibility: visible;
}
@media screen and (max-width: 799px) {
  .pro-item:hover .pro-name {
    bottom: 10px;
  }
}
.pro-item:hover .pro-name:before {
  width: calc(100% + 20px);
}


.modal{
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  visibility: hidden;
  
}

.modal-bg{
  width: 100%;
  height: 100%;
  position: fixed;
    top: 0;
    left: 0;
}
.modal:before {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  background: #444444;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--pro-desc-back), transparent), rgba(68, 68, 68, 0.8);
  transition: all 0.5s 0.3s ease;
  opacity: 0;
  backdrop-filter: blur(5px);
}
.modal-container {
  width: 60%;
  max-width: 1280px;
  margin: 20px auto;
  align-items: center;
  position: relative;
  background-color: white;
  box-shadow: 0px 24px 40px rgba(0, 0, 0, 0.31), 0px 3px 8px rgba(0, 0, 0, 0.42);
  border-radius: 6px;
  padding: 80px 5%;
  transform: perspective(100em) rotateY(20deg) translateX(400px);
  transition: all 0.4s ease;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto; 
  max-height: 100%; 
}


@media screen and (max-width: 799px) {
  /* .modal-container {
    width: calc(100% - 40px);
    margin: 0px auto;
    padding: 60px 20px;
  } */
  .modaldesc-main {
    position: relative;
    margin-top: 0;
    
    max-width: 100vh;
    
  }
}
.modal-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 16px;
  height: 16px;
  transform: perspective(0em) rotateX(0px);
  transition: all 0.3s cubic-bezier(0.44, 0.43, 0, 1.85);
}
.modal-icon img {
  width: 100%;
}
@media screen and (max-width: 799px) {
  .modal-icon {
    width: 16px;
    height: 16px;
  }
}
.modal-icon:hover {
  transform: rotate(90deg) scale(1.2);
}

.modal.open {
  visibility: visible;
}
.modal.open:before {
  width: 100%;
  opacity: 1;
  transition: all 0.4s ease;
}
.modal.open .modal-container {
  opacity: 1;
  visibility: visible;
  transform: perspective(0em) rotateY(0deg) translateX(0px);
  transition: transform 0.8s 0.4s cubic-bezier(0.31, 0.42, 0, 1.39), opacity 0.8s 0.4s cubic-bezier(0.31, 0.42, 0, 1.39);
}

.modaldesc-main {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: 50vw;
  height: auto;
  display: block;
}

.modaldesc-html, .modaldesc-js, .modaldesc-css{
  width: 50vw;
} 

@media screen and (max-width: 768px) {
  .work {
    padding: 2rem 5%;
  }
  
  .box-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .pro-item {
    height: 200px;
  }
}

@media screen and (max-width: 450px) {
  .work {
    padding: 2rem;
  }
  
  .box-container {
    margin: 1rem auto;
  }
}