*{
  box-sizing: border-box;
}

body{
  margin: 0;
  padding: 0;
  background-color: #0C0F16;
}

.background{
  position: fixed;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.dot{
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
  animation: fall linear infinite;
}

@keyframes fall{
  0%{
    transform: translateY(100vh);
    opacity: 1;
  }
  100%{
    transform: translateY(100px);
    opacity: 0.5;
  }
}

header {
  position: fixed;
  top: 0;
  z-index: 3;
}

.navbar-scrollpy {
  transition: all 0.4s;
}

@media screen and (max-width: 767px) {
  .navbar-scrollpy {
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    width: 280px;
    background-color: #000;
    top: 0;
    left: -280px;
    padding: 20px;
    z-index: 100;
    box-shadow: 0px 0px 2px #f2f2f2;
  }
  .navbar-scrollpy.open-navbar {
    left: 0;
  }
}

.nav-pills .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 18px;
  padding: 8px 20px;
}

.nav-pills .nav-link.active {
  background-color: rgba(255, 255, 255, 0.3);
  border-bottom: 3px solid white;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .menu-icon {          
    display: block;
  }
}

.menu-icon span {
  height: 2px;
  width: 35px;
  border-radius: 10px;
  margin: 8px;
  display: block;
  background-color: #fff;
  transition: 0.4s;
}

.close-icon {
  display: none;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .close-icon {
    display: block;
  }
}

/* home section */
#home{
  margin: 20px 120px;
}

#home .head{
  color: #4a62d6;
  font-size: 36px;
  font-weight: 600;
}

#home .name{
  font-size: 140px;
  font-weight: 700;
  color: #fff;
  line-height: 136px;
  letter-spacing: -5px;
  margin-left: 8px;
}

#home .detail{
  font-size: 25px;
  font-weight: 600;
  color: #8f9094;
  margin: 40px 0;
  max-width: 660px;
  width: 100%;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

#home .icons { 
  display: flex;
  flex-direction: column;
  margin: 60px 0 20px 80px;
}

#home .icon-container {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between icon and text */
  margin: 35px 0;
}

#home .icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  outline: 2px solid aqua;
  outline-offset: 8px;
  text-decoration: none;
  color: white;
}

#home .icon-text {
  font-size: 20px;
  color: white;
  margin: 0 8px;
}

/* about section */
#about{
  color: #84858A;
  margin: 40px 0;
}

#about p{
  margin: 50px 0 50px 100px;
  text-align: justify;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

#about p span{
  color: #4a62d6;
}

.image-3d{
  width: 300px;
  height: 300px;
  display: block;
  margin: 50px auto;
  border-radius: 50%;
  box-shadow: 10px 10px 30px rgba(217, 225, 229, 0.5);
  transform: perspective(500px) rotateX(10deg) rotateY(10deg);
  transition: transform 0.5s, box-shadow 0.5s;
  animation: rotate3D 5s infinite alternate ease-in-out;
}

.image-3d:hover{
  transform: perspective(500px) rotateX(0deg) rotateY(0deg) scale(1.1);
  box-shadow: 20px 20px 40px rgba(217, 225, 229, 0.7);
}

@keyframes rotate3D {
  0%{
    transform: perspective(500px) rotateX(10deg) rotateY(10deg);
  }
  50%{
    transform: perspective(500px) rotateX(-10deg) rotateY(-10deg);
  }
  100%{
    transform: perspective(500px) rotateX(10deg) rotateY(10deg);
  }
}

/* skills section */
#skills .p{
  margin: 20px auto 60px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

#skills img{
  width: 100px;
  height: 100px ;
  object-fit: cover;
  border-radius: 50%;
}

#skills .row p{
  margin-top: revert;
}

/* experience section */
#experience{
  text-align: center;
  margin-top: 20px;
}

.experience{
  display: grid; 
  grid-template-columns: .5fr; 
  justify-content: center;
}

.experience-details{
  display: block;
}

.experience-detail{
  display: grid; 
  grid-template-columns: 1fr max-content 1fr; 
  column-gap: 1rem;
}

.experience-detail .experience-1{
  display: block; 
  width: 300px; 
  margin-left: 25px;
}

.experience-detail .dot{
  display: inline-block; 
  background-color: aliceblue; 
  height: 15px; 
  width: 15px; 
  border-radius: 50%;
}

.experience-detail .line{
  display: block; 
  background-color: aliceblue; 
  height: 100%; 
  width: 1px; 
  transform: translate(6px, -7px);
}

/* responsiveness */
@media (max-width:768px) {
  #home{
    margin: 120px 0 60px 0;
  }
  #home .head{
    font-size: 25px;
    font-weight: 750;
  }
  #home .name{
    font-size: 40px;
    font-weight: 850;
    line-height: 40px;
    letter-spacing: 2px;
  }
  #home .detail{
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin: 40px 0;
    text-align: justify;
  }
  #home .icons{
    display: flex;
    flex-direction: row;
    margin: 20px 0;
  }
  #home .icon-container{
    display: flex;
    flex-direction: column;
    margin: 15px auto;
  }

  #about{
    margin: 20px;
  }
  #about p{
    margin: 10px 0;
    font-size: 18px;
    text-align: justify;
  }

  #skills .p{
    margin: 20px auto 40px;
    font-size: 18px;
  }
  #skills img{
    width: 80px;
    height: 80px;
  }

  .experience{
    display: block;
  }
  .experience-detail .experience-1{
    display: block; 
    width: auto; 
    text-align: center;
  }
  .experience-detail .dot{
    height: 10px; 
    width: 10px; 
  }
  #contact p{
    margin: 10px auto 40px;
  }
  #contact .h3{
    margin: 40px auto;
  }
}

.project{
  color: #84858A;
  font-size: 20px;
}

/* contact section */
.contact-details{
  display: flex;
  flex-direction: column;
  margin: auto;
}

.card{
  background-color: #080808;
  border: 1px solid rgb(17, 17, 17);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover{
  transform: scale(1.02);
    .eye {
      display: inline;
    }
}

.card img{
  max-height: 500px;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    height: 100%;
}

.card .frame-work{
  border-bottom: 2px solid white;
}

.card .btn{
  background-color: wheat;
  color: #000;
  padding: 4px 10px;
  border-radius: 10px;
}

.card .disable{
  margin: 6px;
  padding: 4px;
  border-radius: 4px;
  background-color: orange;
  color: white;
}

.flip-card {
  background-color: transparent;
  margin: 20px auto;
  width: 350px;
  height: 100px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 25px;
}

.flip-card-front {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  padding: 0 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: aquamarine;
  color: white;
  transform: rotateY(180deg);
}

.form-floating{
  margin: 30px auto;
}

.form-label{
  color: #0C0F16;
}

.form-control{
  border-radius: 10px;
  margin: 8px auto;
  padding: 15px;
}

/* footer */
.footer{
  color: white;
  background-color: #212529;
  font-size: 20px;
  text-align: center;
}