* {
    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:#0f0f0f;
    --second-bg:#1b1b1b;
    --text-color:white;
    --main-color:#ff2b2b;
}
html{
    font-size: 60%;
    overflow-x: hidden;
}   
body{
    background:linear-gradient(135deg,var(--bg-color),var(--second-bg));
    color:var(--text-color);
    transition:.4s;
}
.header{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 10%;
    backdrop-filter:blur(12px);
    background:rgba(0,0,0,.3);
    transition:.4s;
    z-index:100;
}
.header.sticky{
    background:rgba(20,20,20,.8);
    box-shadow:0 0 20px var(--main-color);
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}
.loge:hover{
    transform: scale(1.1);
}
span{
    color: var(--main-color);
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}
.navber a:hover{
    border-bottom: 3px solid var(--main-color);
    color: var(--main-color);
}
section{
    min-height: 100vh;
    padding: 10rem 12%;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
.home-content h1{
    font-size: 5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-content h3{
    font-size: 4rem;
    margin: 1rem 0;
}
#typing{
 color: var(--main-color);
    border-right: 2px solid var(--main-color);
    padding-right: 3px;
    animation: blink 0.8s infinite;
}
@keyframes blink{
    50%{
        border-color: transparent;
    }
}
.home-img img{
    width: 20vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    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);
}
.btn-group{
    display: flex;
    gap: 1.5rem;
}
.theme-btn{
    background:var(--main-color);
    color:white;
    border:none;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
    font-size:20px;
    transition:.4s;
}
.theme-btn:hover{
    transform:rotate(180deg) scale(1.1);
}
.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.5rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
}
.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    box-shadow: 2px solid transparent;
}
.btn-group a:nth-of-type(2){
   box-shadow: 2px solid transparent;
   background-color: black;
   color: var(--main-color);
}
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background-color: var(--second-color);
}
.about-img img{
    width: 25vw;
    border-radius: 50px;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.about-content h2{
    font-size: 5rem;
    text-align: left;
}
.about-content p{
    font-size: 3rem;
}
.about-content .btn{
    margin: 3rem 0;
}
.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}
.education{
    padding: 100px 15px;
    background: var(--bg-color);
}
.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: 100%;
    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:  var(--text-color);
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    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: 20px;
    color: var(--text-color);
    margin: 0 0 10px;
    font-weight: 500;
}
.timeline-content p{
    color: var(--text-color);
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}
.contact{
    background-color: var(--second-color);
    padding: 7rem 10%;
}
.contact heading{
    text-align: center;
    margin-bottom: 2.5rem;
}
.contact form{
    max-width: 50rem;
    margin: auto;
}
.contact .input-box{
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background-color: var(--main-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact textarea{
    resize: none;
    margin-bottom: 20px;
}
.contact input:focus,
.contact textarea:focus{
    box-shadow: 0 0 15px var(--main-color),
                0 0 25px var(--main-color);
}
.contact .btn{
    display: var(--main-color);
    margin: auto;
    cursor: pointer;
}
@media (max-width: 768px){
    .contact .input-box{
        flex-direction: column;
    }
}
footer p{
    background-color: var(--bg-color);
    text-align:center;
    font-size: 16px;
    padding:50px;
}
.light-mode{
    background: rgb(237, 112, 112);
    color:rgb(236, 106, 106);
}
.light-mode header{
    background:#f2f2f2;
}
