*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: sans-serif;
}

:root{
    --bg-color: #080808;
    --text-color: #fff;
    --second-bg-color:#131313;
    --main-color:#16d5e6;
}

html{
    font-size: 60%;
    overflow-x: hidden;
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Header */

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover{
    transform: scale(1.1);
}

.logo span{
    text-shadow: 0 0 25px var(--main-color);
}

.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}



/* Header part ends */

/* Home part starts */

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10rem;
    flex-wrap: wrap;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: justify;
    justify-content: center;
    margin-top: 3rem;
    width: 50%;
}

span{
    color: var(--main-color);
}

.logo span{
    color: var(--main-color);

}

.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 3.5rem;
    margin-bottom: 2rem;
}

.home-img{
    border-radius: 50%;
    margin-bottom: 10rem;
    
}

.home-img img{
    position: relative;
    top: 3rem;
    width: 115%;
    height:45vh;
    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 25px var(--main-color),
    0 0 50px var(--main-color),
     0 0 100px var(--main-color);
}

.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 3.5rem;
    max-width: 1000px;
}

.social-icons a, .footer-social a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.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 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover, .footer-social a:hover{
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.btn{
    display: inline-flex;
    padding: 1rem 2.8rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    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 50px var(--main-color);
}

.btn-group{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2){
    background-color: black;
    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: black;
}

.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-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: "Frontend Developer";
    }

    21%,40%{
        content: "Full Stack Web Developer";
    }

    41%,60%{
        content: " Web Developer";
    }

    61%,80%{
        content: "Frontend Developer";
    }
    81%,100%{
        content: "Full Stack Web Developer";
    }


}


@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);
    }
}

/* Home part ends */

/* Education part starts */

.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.education{
    padding: 100px 15px;
   
}

.education h2{
    margin-bottom: 5rem;
}

.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100vh;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.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: white;
    margin: 6px 0 15px;
}

.timeline-content{
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
     border-radius: 30px 50px;
     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: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p{
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar{
    width: 15px;

}

/* Education part ends */

/* Skills part starts */

#skills .skill img{
    border: 1px solid white;
    width:20%;

}

.skills-cards{
    height: auto;
    width: 100%;
    
    
    display: flex;
    justify-content: space-around;
    font-size:2.2rem;
    flex-wrap: wrap;
    gap:4rem;
   
}

.skills-cards .skill{
    width:22%;
    height:auto;
    
    text-align: center;
    margin-bottom: 2rem;
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 20px 35px;
     border-radius: 30px ;
     box-shadow: 0 0 10px var(--main-color);
     cursor: pointer;
     transition: 0.3s ease-in-out;
     
}

.skills-cards .skill:nth-child(3){
    
    padding-right: 2rem;
}

.skills-cards .skill:last-child{
    width:40%;
    
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 20px 35px;
     border-radius: 30px;
     box-shadow: 0 0 10px var(--main-color);
     cursor: pointer;
     transition: 0.3s ease-in-out;
}

.skills-cards .skill:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--bg-color);
}

/* Skills part ends */

/* Projects part starts */

#projects{
    height: auto;
    width: 100%;    
    display: flex;
    justify-content: space-around;
    gap:0.5rem;
    flex-wrap: wrap;
    
}

.project{
    width: 45%;
    border: 1px solid var(--main-color);
    padding: 3rem;
    line-height: 3.5rem;
    text-align: justify;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
}

.project:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
    
}

.project h4{
    font-size: 2.1rem;
}

.project p{
    font-size: 1.5rem;
}

.project a{
    font-size: 1.5rem;
    color: var(--main-color);
    margin-right: 1rem;
    border-bottom: 1px solid;
}

.project a:hover{
    color: rgb(162, 232, 231);
}

.project .project-tech-stack-btns{
    padding: 0.5rem 0.7rem;
    background-color: var(--bg-color);
    border: 1px solid var(--main-color);
   
     border-radius: 0.5rem ;
     box-shadow: 0 0 2px var(--main-color);
     cursor: pointer;
     transition: 0.3s ease-in-out;
     color: var(--main-color);
     margin-right: 0.6rem;
}

.project .project-tech-stack-btns:hover  {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--bg-color);
}

.project-description li{
    font-size: 1.4rem;
}

/* project part ends */


  /* Contact section styles */
  .contact-section {
    padding: 40px 20px;
    background-color: var(--bg-color);
  }
  
  .contact-section .heading {
    text-align: center;
  }
  
  .contact-section h3 {
    font-size: 2rem;
    color: var(--text-color);
  }
  
  .contact-section small {
    font-size: 1rem;
    color: var(--text-color);
  }
  
  .contact-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
  }
  
  .contact-details {
    
    max-width: 55%;
   margin-top: 2rem;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    
  }
  
  .contact-item i {
    font-size: 1.5rem;
    color: #ff4a57;
    background-color: white;
    margin-right: 10px;
  }
  
  .contact-item p {
    font-size: 2rem;
    color: var(--text-color);
    margin-left: 2rem;
  }
  
  .contact-form-container {
    flex: 1;
    max-width: 45%;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--main-color);
  }
  
  .form-input, .form-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--main-color);
    background-color: var(--second-bg-color);
  }

  .form-input:hover, .form-textarea:hover{
    box-shadow: 0 0 25px var(--main-color);
  }
  
  .submit-btn {
    background-color: var(--bg-color);
    color: var(--main-color);
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
   margin-left: 1.3rem;
   margin-top: 1rem;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0.5rem;
  }
  
  .submit-btn:hover {
    background-color:var(--main-color);
  }

  /* contact section ends */

  /* footer part starts */

.footer {
    background-color: var(--second-bg-color);
    color: var(--text-color);
    padding: 20px 0;
    text-align: center;
    font-size: 1.7rem;
}


.footer-links {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    
}

.footer-links .footer-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    
}

.footer-links .footer-link a:not(:last-child)::after {
    content: "|";
    margin-left: 2rem;
  }

.footer-link:hover {
    color: var(--text-color);
}

.footer-divider {
    border-left: 1px solid var(--second-bg-color);
    height: 20px;
    margin: 0 10px;
}

.footer-social {
    margin-top: 30px;
}

.footer-divider-line {
    border: 1px solid var(--second-bg-color);
    margin: 20px 0;
}

.footer-copy {
    margin: 0;
    color: var(--text-color);
}

  /* footer part ends */
  

 