*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root{
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: rgb(190, 25, 211);
  --main-color: #4586d4;
  --bg-image: url(assets/bg.jpg);
}

html{
  font-size: 60%;
  overflow-x: hidden;
}

body{
  background-color: rgb(192, 228, 242);
  background-size: cover;
  color: var(--text-color);
}

.header{
  position: fixed;
  top: 0;
  left: 0;
  height: 100px;
  width: 100%;
  padding: 4rem 12% 4rem;
  background: rgba(224, 219, 219, 0.3);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.logo{
  height: 120px;
  width: 120px;
}

.navbar a{
  font-size: 2.6rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 200;
  transition: .5s ease;
  
}

.navbar a:hover{
  border-bottom: 3px solid var(--main-color);
  color: var(--main-color);
}
.navbar a.active{
  color: var(--main-color);
  font-size: 2.6rem;
}

#menu-icon{
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;  
}

#cancel-icon{
  font-size: 3.6rem;
  color: rgb(178, 21, 21);
  display: none;
}

section{
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}

.home{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content{
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}

span{
  color: var(--main-color);
}

.home-content h3{
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
}

.home-content h1{
  font-size: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
  
}

.home-img{
  border-radius: 50%;
	-webkit-animation: roll-in-top 0.6s ease-out both;
  animation: roll-in-top 0.6s ease-out both;
}

/**
 * ----------------------------------------
 * animation roll-in-top
 * ----------------------------------------
 */
 @-webkit-keyframes roll-in-top {
  0% {
    -webkit-transform: translateY(-800px) rotate(-540deg);
            transform: translateY(-800px) rotate(-540deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0) rotate(0deg);
            transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}
@keyframes roll-in-top {
  0% {
    -webkit-transform: translateY(-800px) rotate(-540deg);
            transform: translateY(-800px) rotate(-540deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0) rotate(0deg);
            transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

.home-img img{
  position: relative;
  top: 3rem;
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.home-img img:hover{
  box-shadow: 0 0 50px var(--main-color),
              0 0 70px var(--main-color);
}

.home-content p{
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}

.social-icons{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 2.5rem 3rem 1rem;
  transition: 0.3s ease-in-out;
}

.social-icons:hover{
  color: var(--text-color);
  transform: scale(1)translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background: var(--main-color);
}

.btn{
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #000;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover{
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--main-color);
  
}

.btn-group{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-group a:nth-of-type(2){
  background-color: #fff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover{
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: #000;
}

.text-animation{
  font-size: 2.125rem;
  font-weight: 600;
  min-width: 280px;
}

.text-animation span{
  position: relative;
}

.text-animation span::before{
  content: "Web Develop";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after{
  content: "";
  background-color: rgb(192, 228, 242);
  position: absolute;
  width: calc(100% + 8px );
  height: 100%;
  border-left: 3px solid var(--main-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor{
  to{
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words{
  0%,
  20%{
    content: "Web Designer";
  }
  21%,
  40%{
    content: "JavaScript Expert";
  }
  41%,
  60%{
    content: "React Expert";
  }
  61%,
  80%{
    content: "Python Developer";
  }
  81%,
  100%{
    content: "Software Tester";
  }
}

@keyframes typing{
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95%{
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85%{
    width: calc(100% + 8px);
  }
}

.heading{
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
}

/*About Aection*/
.education{
  padding: 100px 15px;
  background-image: url(assets/bg.jpg);
  background-size: cover;
}

.education h2{
  margin-bottom: 5rem;
}

.timeline-items{
  max-width: 100rem;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  
}



.timeline-items::before{
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--main-color);
  left: calc(50% - 10px);
}

.timeline-item{
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}

.timeline-item:last-child{
  margin-bottom: 0;
}

.timeline-item:nth-child(odd){
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even){
  padding-left: calc(50% + 30px);
}

.timeline-dot{
  height: 21px;
  width: 21px;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
  top: 10px;
}

.timeline-date{
  font-size: 20px;
  font-weight: 800;
  color: var(--text-color);
  margin: 6px 0 15px;
}

.timeline-content{
  background-color: transparent;
  border: 3px solid var(--main-color);
  padding: 30px 30px;
  border-radius: 4rem;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.timeline-content:hover{
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3{
  font-size: 40px;
  color: var(--text-color);
  text-align: center;
  margin: 0 0 10px;
  font-weight: 500;
}

.timeline-content p{
  color: var(--text-color);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.375rem;
}

::-webkit-scrollbar{
  width: 15px;
}

::-webkit-scrollbar-thumb{
  background-color: var(--main-color);
}

::-webkit-scrollbar-track{
  background-color: var(--bg-color);
  width: 50px;
}

/*Services Section*/
.services{
  background-image: var(--bg-image);
  background-size: cover;
  color: #000;
}

.services h2{
  margin-bottom: 5rem;
  color: var(--text-color);
}

.services-container{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  align-items: center;
  gap: 2.5rem;
}

.service-box{
  background-color: transparent;
  height: 300px;
  border-radius: 3rem;
  border: 5px solid var(--main-color);
  color: var(--text-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}

.service-box:hover{
  background: #fff;
  color: #000;
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}

.service-box .service-info{
  display: flex;
  flex-direction: column;
  text-align: left;
  max-height: 200px;
  justify-content: left;
  align-items: baseline;
  padding: 5rem 5rem;
}

.service-info h4{
  font-size: 3rem;
  font-weight: 800;
  line-height: 2;
}

.service-info p{
  font-size: 1.6rem;
  font-weight: 600;
  max-height: 100px;
  line-height: 1.7;
  margin: auto;
}

/*Contact Section*/
.contact{
  background-color: var(--bg-image);
}

.contact h2{
  margin-bottom: 3rem;
  color: var(--text-color);
}

.contact form{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem auto;
  text-align: center;
}

.contact form .input-box{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  
}

.contact form .input-box input,
.contact form textarea{
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background: transparent;
  box-shadow: 0 0 15px var(--main-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
  
}

.contact form .btn{
  margin-top: 2rem;
}

/*CONTACT Submittion*/

        /* Style for the modal */
.modal {
 display: none; 
 position: fixed; 
 z-index: 1; 
 left: 0;
 top: 0;
 width: 100%; 
 height: 100%; 
 overflow: auto; 
 background-color: rgb(159, 233, 184); 
 background-color: rgba(0,0,0,0.4); 
 border-radius: 20px;
 color: #fff;
 padding: 100px; 
}

.modal-content {
  height: 200px;
  background-image: url(assets/submission.png);
  background-size: cover;
  background-color: #fff;
  margin: 5% auto; 
  padding: 20px;
  border: 1px solid #b5ebb7;
  border-radius: 20px;
  color: #fff;
  width: 80%; 
  max-width: 300px; 
  text-align: center;
  font-size: 25px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
    

 
  /*-----------------------------------*\
    #FOOTER
  \*-----------------------------------*/
  
  .footer {
    background: rgb(208, 210, 210);
    padding-block: 20px;
    text-align: center;
    color: var(--text-color);
    box-shadow: 2px 10px snow ;
  }
  
  .copyright {
    color: var(--text-color);
    line-height: 1;
    margin-right: 20px;
    font-size: 15px;
  }
  
  .copyright a {
    display: inline-block;
    color: var();
  }
  
  

/*_____Certificates section_____*/

.certificates-container h3{
  font-size: 60px;
  font-weight: 700;
  text-align: center;
}

.certificates-boxes{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.certificate-box{
  height: 350px;
  width: 550px;
  border-radius: 20px;
  transition: 0.3s ease-in-out;
  
}

.certificate-box:hover{
  transform: scale(1.05);
  box-shadow: 0 0 45px skyblue;
}

.certificate-category{
  display: flex;
  justify-content: center;
  font-size: 40px;
  margin-top: 30px;
  width: 1155px;
  color: var(--main-color);
  background-color: rgb(237, 244, 244);
  border-radius: 20px;

}


@media(max-width:1285px){
  html{
    font-size: 55%;
  }
  .services-container{
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 5rem;
  }
}

@media(max-width:991px){
  header{
    padding: 2rem 3%;
  }
  section{
    padding: 10rem 3% 2rem;
  }
  .timeline-item::before{
    left: 7px;
  }
  .timeline-item:nth-child(odd){
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even){
    padding: 37px;
  }
  .timeline-dot{
    left: 0;
  }
  .services{
    padding-bottom: 7rem;
  }
  .contact form{
    flex-direction: column;
  }
  footer{
    padding: 2rem 3%;
  }
}

@media(max-width:895px){
  #menu-icon{
    display: block;
  }
  .navbar{
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3%;
    background-image: var(--bg-image);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: none;
  }
  .navbar.active{
     display: block;
  } 

  .logo{
    height: 70px;
    width: 70px;
  }

  .navbar a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--text-color);
  }
  .home{
    flex-direction: column-reverse;
    margin: 2rem 2rem;
  }
  .home-content h3{
    font-size: 2.6rem;
  }
  .home-content h1{
    font-size: 4rem;
    margin-top: 5px;
  }
  .home-content p{
    max-width: 600px;
    margin: 0 auto;
  }

  .home-img img{
    width: 70vw;
    
  }
  .services h2{
    font-size: 5rem;
    margin-bottom: 3rem;
  }
  .services-container{
    grid-template-columns: repeat(1,1fr);
  }
  .education h2{
    font-size: 5rem;
  }
  .contact h2{
    font-size: 5rem;
  }
  .timeline-item{
    height: 18.75rem;
  }
  .timeline-items{
    max-width: 90rem;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
  }
  .timeline-content h3{
    font-size: 25px;
  }
  
  .timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: transparent;
    
  }
  .service-info p{
    font-size: 1rem;
  }
  .service-info h4{
    font-size: 2rem;
  }
  .service-box{
    height: 220px;
  }

}

/* Responsive Styles for services */

@media (max-width: 1024px) {
  .services-container {
    grid-template-columns: 1fr;
  }

  .service-box {
    height: auto;
    padding: 2rem;
  }

  .service-box .service-info {
    padding: 2rem;
  }

  .service-info h4 {
    font-size: 2.5rem;
  }

  .service-info p {
    font-size: 1.4rem;
  }

  .btn{
    padding: .5rem 2rem;
  }
}

@media (max-width: 768px) {
  .services h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
  }

  .services-container {
    gap: 2rem;
  }

  .service-box {
    border-radius: 2rem;
    padding: 1.5rem;
  }

  .service-box .service-info {
    padding: 1.5rem;
  }

  .service-info h4 {
    font-size: 2rem;
  }

  .service-info p {
    font-size: 1.2rem;
  }

}

@media (max-width: 480px) {
  .services h2 {
    font-size: 2rem;
  }

  .services-container {
    gap: 1.5rem;
  }

  .service-box {
    height: auto;
    border-radius: 1.5rem;
    padding: 1rem;
  }

  .service-box .service-info {
    padding: 1rem;
  }

  .service-info h4 {
    font-size: 1.8rem;
  }

  .service-info p {
    font-size: 1rem;
  }

  .btn{
    padding: .5rem 2rem;
  }
  
}

/*certificate section responsive*/
@media (max-width: 1024px) {
  .certificates-boxes {
    flex-direction: column; /* Change to single column layout */
    gap: 2rem;
  }

  .certificate-box {
    width: 90%; /* Adjust width to fit the screen */
    height: auto;
    padding: 30rem 50rem 25rem 35rem;
  }

  .certificate-category {
    font-size: 40pxpx;
    width: 88%;
    margin-left: 50px;
    padding: 1rem 2rem 2rem 0;
  }


}

@media (max-width: 768px) {
  .certificates-container h3 {
    font-size: 50px;
    margin-bottom: 3rem;
    
  }

  .certificate-category {
    font-size: 25px;
    margin-top: 20px;
  }

  .certificates-boxes {
    gap: 1.5rem;
  }

  .certificate-box {
    border-radius: 15px;
    padding: 16rem 17rem 10rem 24rem;
    
  }

}

@media (max-width: 668px) {
  .certificates-container h3 {
    font-size: 40px;
    margin-bottom: 3rem;
  }

  .certificate-category {
    font-size: 5px;
    margin-top: 20px;
    position: relative;
    right: 50px;
    
  }

  .certificates-boxes {
    gap: 1.5rem;
  }

  .certificate-box {
    border-radius: 15px;
    padding: 16rem 17rem 10rem 24rem;
  }
  .modal {
    padding: 70px;
  }

  .modal-content {
    font-size: 25px;
    width: 60%;
    max-width: 600px;
  }

}

@media (max-width: 480px) {
  .certificates-container h3 {
    font-size: 40px;
    margin-bottom: 2rem;
  }

  .certificate-category {
    font-size: 25px;
    margin-top: 15px;
    padding: 1rem;
    width: 100%;
  }

  .certificates-boxes {
    gap: 1rem;
  }

  .certificate-box {
    width: 100%;
    border-radius: 10px;
    padding: 16rem 17rem 10rem 24rem;
    
  }
  
  .modal-content {
     font-size: 15px;
   }

   .modal-content {
    font-size: 16px;
    padding: 15px;
    width: 95%;
    margin: 20% auto; 
  }

   
}
