@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

/* Custom Scroll Bar CSS */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f5f3f3;
}
::-webkit-scrollbar-thumb {
    background:#f06666;
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background:#f1ac0b;
}
/* navbar styling */
nav{
  position: fixed;
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  transition: all 0.3s ease;
  font-family: 'Ubuntu', sans-serif;
}
nav.sticky{
  background:#f06666;
  padding: 13px 0;
  color:#F0F8FF;
}
nav .navbar{
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}
nav .navbar .logo a{
  font-weight: 500;
  font-size: 35px;
  transition: all 0.5s ease-in;
}
.navbar .menu a{
  opacity: 0;
  animation: menu .5s ease forwards;
  animation-delay: calc(.2s *var(--i));
}
@keyframes menu{
  0%{
    transform: translateX(-100px);
    opacity: 0;
  }
  100%{
    transform: translateX(0);
    opacity: 1;
  }
}
.navbar a h3{
  color:rgb(243, 28, 28);
  font-weight:100;
  background-clip: text;
  text-shadow: 3px 3px 4px #fefdfd;
  animation: logo 1s;
}
@keyframes logo{
  0%{
    transform: translateX(0px);
    opacity: 0;
  }
  100%{
    transform: translateX(0);
    opacity: 1;
  }
}
nav .navbar .logo a:hover{
  color: #fff;
}
nav .navbar .menu{
  display: flex;
  position: relative;
  flex-wrap: wrap;
}
nav .navbar .menu li{
  list-style: none;
  margin: 0 20px ;
  transition: all 0.4s ease;
}
nav .navbar .menu li:hover{
  transform:translateY(-6px);
}
.navbar .menu a{
  font-size: 18px;
  font-weight: 500;
  color:#FFF;
  padding: 6px 0;
}
.navbar .menu a:hover{
  color: #9266f0;
}
nav.sticky .navbar .logo a{
  color: #ffffff;
}
nav.sticky .menu a{
  color: #ffffff;
}
nav.sticky .menu a:hover{
  color: #FFF;
}
nav.sticky .button button:hover{
  background-color: #F0F8FF;
}
.navbar .button{
  margin: 0 18px;
}
.navbar .button button{
  outline: none;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 20px;
  font-weight: 400;
  background: #f06666;
  color:  #f9fafc;
  cursor: pointer;
  border: 2px solid  #f9fafc;
  transition: all 0.4s ease;
}
.navbar .button button:hover{
  border-color:  #f06666;
  background-color: transparent;
  color: #f06666;
}

/* Side Navigation Menu Button CSS */
nav .menu-btn,
.navbar .menu .cancel-btn{
  position: absolute;
  color: #fff;
  right: 20px;
  top: 30px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}
nav .menu-btn{
  color: #f06666;
}
nav.sticky .menu-btn{
  color: #FFF;
}s
.navbar .menu .menu-btn{
  color: #fff;
}
/* body */
body{
  background-color: #0c0c0c;
  width:100vw;
}
/* home section styling */
.home{
  height: 100vh;
  width: 100%;
}
.backimg{
  position: absolute;
  top:0;
  right:0;
  left:0;
  z-index: -1;
  width:100vw;

}
.backimg img{
  width:100vw;
  height:100vh;
  animation: backimage 4s;

}
@keyframes backimage{
  from{opacity: 0;}
  to{opacity: 100;}
}
.home .home-content{
  width: 90%;
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 60px;
  font-family: 'Ubuntu', sans-serif;
  animation: homecontent 4s;

}
.home .text-one{
  font-size: 25px;
  color: #0E2431;
  animation: text1 1s;
}
@keyframes text1{
  0%{transform: translateX(-600px);}
  100%{transform: translateX(0px);}
}
.home .text-two{
  font-size: 70px;
  font-weight: 600;
  margin-left: -3px;
  animation: text2 2s;
}
@keyframes text2{
  20%{transform: translateX(-600px);}
  100%{transform: translateX(0px);}
}
.home .text-three{
  font-size: 35px;
  margin: 5px 0;
  color: #f9fafc;
  animation: text3 2.5s;

}
@keyframes text3{
  30%{transform: translateX(-600px);}
  100%{transform: translateX(0px);}
}
.home .media-icons a{
  color:#f06666;
  font-size: 18px;
  margin: 0 6px;

}
.home .media-icons{
  display: flex;
  flex-direction: row;
}
.media-icons .icon1{
  animation: icon1 3s ;
}
@keyframes icon1{
  0%{transform: translateX(-100px);}
  100%{transform: translateX(0px);}
}
.media-icons .icon2{
  animation: icon2 2s;
}
@keyframes icon2{
  0%{transform: translateX(-100px);}
  100%{transform: translateX(0px);}
}
.media-icons .icon3{
  animation: icon3 1s;
}
@keyframes icon3{
  0%{transform: translateX(-100px);}
  100%{transform: translateX(0px);}
}
.home .media-icons a i{
  transition:all 0.5s ease-in-out;
}
.home .media-icons a i:hover{
  transform: rotate(360deg);
  color: #F0F8FF;
}
.home .ab{
  margin: 0px;
}
.home .ab button{
  outline: none;
  padding: 5px 8px;
  border-radius: 40px;
  font-size: 20px;
  font-weight: 400;
  background:  #101010;
  color: #f06666;
  cursor: pointer;
  border: 2px solid  #f9fafc;
  transition: all 0.4s ease;
  animation: text3 3s;
}
.home .ab button:hover{
  border-color:  #f06666;
  background-color: transparent;
  color:  #f9fafc;
}

/* About Section Styling */
/* Those Elements Where We Have Apply Same CSS,
 I'm Selecting Directly 'Section Tag' and 'Class'  */
.about{
  padding-top: 40px;
}
section .content{
  width: 80%;
  margin: 40px auto;
  font-family: 'Poppins', sans-serif;
}
.about .about-details{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
section .title{
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
section .title span{
  color: #ffffff;
  font-size: 30px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}
section .title span::before,
section .title span::after{
  content: '';
  position: absolute;
  height: 3px;
  width: 100%;
  background: #f06666;;
  left: 0;
  bottom: 0;
}
section .title span::after{
  bottom: -7px;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
}
.about .about-details .left{
  width: 45%;
}
.about .left img{
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 50%;

}
.about-details .right{
  width: 55%;
}

section  .topic{
  color: #feffff;
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
}
.about-details .right p{
  text-align: justify;
  color: #ffffff;
}
section .button{
  margin: 16px 0;
}
section .button button{
  outline: none;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 400;
  background: #f06666;;
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}
section .button button:hover{
  border-color: #f06666;;
  background-color: #fff;
  color: #f06666;;
}

/* Skills CSS */
.skills .content {
  padding: 40px 0;
  color: #fff; 

}

.skills .skills-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skills-details .text {
  padding-right: 20px; /* Space between text and skills boxes */
}

.skills-details p {
  color: #d4d4d4;
  text-align: justify;
}

.skills-details .boxes {
  width: 100vw; /* Adjusted to fit better */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items:center;
  justify-content:space-evenly; /* Distribute space evenly */
}
.skills-details .box {
  margin: 10px;
  padding: 20px; /* Add padding inside boxes */
  background: #2a2a2a; /* Slightly lighter background for contrast */
  border-radius: 8px; /* Rounded corners */
  color: #f06666;
  box-shadow: 0 4px 8px rgba(246, 245, 245, 0.553); /* Subtle shadow */
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
  width: 150px;

}

.skills-details .box:hover {
  color: white;
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 8px 16px rgba(0,0,0,0.3); /* Enhanced shadow on hover */
}

.skills-details .topic {
  font-size: 22px;
  font-weight: bold;
}

.skills-details .per {
  font-size: 50px;
  margin-top: 10px; /* Space between topic and percentage */
}

/* Projects Section */
.projects {
  padding: 50px 0; /* Top and bottom padding */
  color: #fff; /* Text color */
}


.projects .content {
  width: 90%;
  max-width: 1200px; /* Max width for larger screens */
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  padding: 20px;
  border-radius: 8px; /* Rounded corners */
}

.projects .title {
  text-align: center;
  margin-bottom: 30px;
}

.projects .title span {
  font-size: 2rem;
  font-weight: bold;
  color: #fff; /* Title color */
}

.projects .projects-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.projects .project-box {
  perspective: 1000px; /* Give depth to the flip effect */
  width: 300px; /* Default width */
  height: 200px; /* Default height */
}

.projects .flip-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d; /* Preserve 3D effect */
  transition: transform 0.6s; /* Flip transition */
}

.projects .flipper {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s; /* Flip transition */
  transform-style: preserve-3d; /* Preserve 3D effect */
}

.projects .flip-container:hover .flipper {
  transform: rotateY(180deg); /* Flip effect on hover */
}

.projects .front, .projects .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hide back face when facing away */
}

.projects .front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:linear-gradient(rgb(255, 255, 255),rgb(209, 107, 107));
  color: #040404; /* Text color for front face */
  border-radius: 8px; /* Rounded corners for front face */
}

.projects .front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* Match front face corners */
}

.projects .project-info {
  padding: 15px;
  text-align: center;
}

.projects .project-info h4 {
  font-size: 1.5rem;
  margin: 10px 0;
}

.projects .project-info p {
  font-size: 1rem;
  color: #333; /* Text color */
  margin: 10px 0;
}

.projects .back {
  background:linear-gradient(rgb(172, 55, 55),rgb(27, 22, 22),black);
  color: #fff; /* Text color for back face */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 8px; /* Rounded corners for back face */
  transform: rotateY(180deg); /* Rotate back face */
}

.projects .back .summary {
  width: 100%;
  text-align: center;
  overflow-y: auto; /* Scroll if the content is too long */
}

/* My Services CSS  */

.services .boxes{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}
.services .boxes .box{
  margin: 10px 0;
  text-align: center;
  border-radius: 12px;
  padding: 30px 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
  cursor: default;
  transition: all 0.4s ease;
}
.services .boxes .box:hover{
  background:linear-gradient(rgb(233, 233, 233),rgb(249, 25, 25));
  color: #fff;
}
.services .boxes .box .icon{
  height: 50px;
  width: 50px;
  background: #f44058;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 18px;
  color: #fff;
  margin: 0 auto 10px auto;
  transition: all 0.4s ease;
}
.boxes .box:hover .icon{
  background-color: #fff;
  color: #f44049;
}
.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
  color: #0E2431;
  transition: all 0.4s ease;
}
.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
  color: #fff;
}

/* Contact Me CSS */
.contact{
  background:linear-gradient(rgb(172, 55, 55),rgb(27, 22, 22),black);
  height: 100vh;
  padding:6px 140px 40px 140px;

}
.contact .content {
  padding-bottom:40px;

}
.contact .content .title{
  text-align: center;

}

.contact .content .mainbox{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  
}
.contact .content .mainbox .contact_left{
  padding-bottom:10px ;
  color: #F0F8FF;
}
.contact .content .box{ 
  width:400px;
  padding:10px 20px 10px 20px;
  margin: 10px 200px;
  border-radius: 20px;
  border:5px solid #f06666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact .content .box .heading{
  color:rgb(256,250,250);
  font-size:20px;
  padding-bottom: 10px;
}
.contact .content  form{
  line-height: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact .content  form label{
  color:rgb(246, 240, 240);
}
.contact .content  form input{
  text-decoration: none;

  height:25px;
  color:rgb(11, 11, 11);
  background-color: white;
}
.contact .content form .message{
  padding-top: 10px;
}
.contact .content form button textarea{
  width: 70px;
  height: 60px;
}
.contact .content  form .Submit{
  line-height: 50px;
}
.contact .content form button{
  background-color: #f06666;
  width:90px;
  padding:6px 6px 6px 6px;
  color:#F0F8FF;
  border:1px solid white;
  border-radius: 6px;
}
.contact .content form button input{
  text-decoration: none;
  background-color: transparent;
  border: none;
}
.contact .content form .Submit  button:hover{
  background-color: #cc5f5fe8;
  border: 1px solid #f06666;
  border-radius: 6px;
  cursor: pointer;
  color: #F0F8FF;
}
/* Footer CSS */
.footer{
  align-items: center;
  flex-wrap: wrap;
  padding:2 rem 9%;
  background: #f9faf9;;
  padding: 15px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}
.footer-text p{
  font-size: 17px;
  font-weight: 400;
  color: #0e0d0d;
}
footer .footer-text {
  font-weight: 500;
  color: #ffffff;
}
/* Scroll TO Top Button CSS */
.scroll-button a{
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #fff;
  background: #f06666;
  padding: 7px 12px;;
  font-size: 18px;
  border-radius: 6px;
  box-shadow: rgb(245, 241, 241);
  display: none;
}

/* Responsive Media Query */
@media (min-width: 1200px) {
  .contact .content .box{ 
    padding:10px 20px 10px 20px;
    margin: 10px 200px;

  }
  .services .boxes .box{
    margin: 20px 0;
    width: 300px;
  }

}
@media (max-width: 1190px) {
  section .content{
    width: 85%;
  }
  .contact .content .box{ 
    width:300px;
    padding:10px 20px 10px 20px;
    margin: 0px 200px;

  }
  .services .boxes .box{
    margin: 20px 0;
    width: 300px;
  }
  .about{
    width: 100vw;

  }
  .about-details{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin:30px;

  }
  .content .right{
      width:900px;
  }


}
@media (max-width: 1000px) {
  .navbar .button{
    margin:0;
    padding:0;
    width:100px;
  }
  .about .about-details{
    justify-content: center;
    flex-direction: column;
  }
  .about .about-details .left{
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .about-details .right{
    width: 90%;
    margin: 40px 0;
  }
  .services .boxes .box{
    margin: 20px 0;
    width: 300px;
  }
  .contact{
    padding: 10px 0 0 0;
  }
  .contact .content .box{ 
    padding:10px 20px 10px 20px;
    margin: 10px 200px;

  }
}
@media (max-width:950px){
  .contact .content .box {
    padding: 10px 20px 10px 20px;
    margin: 0px 190px;
  }
}


@media (max-width: 900px) {
  nav .navbar{
    width: 90%;
  }
  nav .navbar .menu{
    position: fixed;
    left: -100%;
    top: 0;
    background: #0E2431;
    height: 100vh;
    max-width: 400px;
    width: 100%;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
  }
  .navbar.active .menu{
    left: 0;
  }
  nav .navbar .menu a{
    font-size: 23px;
    display: block;
    color: #fff;
    margin: 10px 0;
  }
  nav.sticky .menu a:hover{
    color: #4070f4;
  }
  nav .navbar .button{
    display: none;
  }
  nav .menu-btn,
  .navbar .menu .cancel-btn{
    display: block;
  }
  .about .left img{
    height: 350px;
    width: 350px;
  }
  .contact .content .box{ 
    padding:20px 10px 20px 10px;
    margin: 0px 0px;
  }


}


@media (max-width: 750px) {

  .home .text-two{
    font-size: 65px;
  }
  .home .text-three{
    font-size: 35px;
  }
  .skills .skills-details{
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .skills-details .text{
    width: 100%;
    margin-bottom: 50px;
  }
  .skills-details .boxes{
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .services .boxes .box{
    margin: 20px 0;
    width: 100%;
  }
  .contact{

    height:100vh;
  }
  .contact .content .box{ 
    padding:20px 10px 20px 10px;
    margin: 6px 40px;
  }




}

@media (min-width:480px) and (max-width: 600px){
  .home .text-two{
    font-size: 55px;
  }
  .home .text-three{
    font-size: 33px;
  }
  .skills-details .boxes .per{
    font-size: 50px;
    color: #f06666;
  }
  .contact{
    padding: 10px 0 0 0;
    height: 100vh;
  }
  .contact .content .box{ 
    padding:20px 10px 20px 0px;
    margin-bottom: 10px;
  }
  .contact button input{
    margin: 0;
  }

}
 
