*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    scroll-behavior: smooth ;
    font-family: -apple-system, sans-serif;
}
:root{
    --bg-color: #fff;
    --snd-bg-color: #d5fdf9;
    --text-color: #000;
    --main-color: #007f73;
}
html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
}
section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}


/* Header section code */
.header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background:var(--main-color);
    backdrop-filter: blur(10px);
    transform: all 0.5s ease;

}
.logo{
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-color);
    cursor: pointer;
    transition: 0.3s ease ;
}
.logo:hover{
    transform: scale(1.15);
    color: var(--snd-bg-color);
}
.navbar a{
    font-size: 1.9rem;
    margin-left: 4rem;
    color: var(--bg-color);
    font-weight: 700;
    transition: 0.3s ease ;
}
.navbar a:hover,
.navbar a.active{
    color: var(--text-color);
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-img img{
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    animation: floatImage 6s ease-in-out infinite;
    transition: 0.4s ease ;
}
.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
        0 0 35px var(--main-color),
        0 0 45px var(--main-color);
    transform: scale(1.05);
}
@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4 rem);
    }
}
.home-content{
    margin-left: 5rem;
}
.home-content h3{
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0 rem;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 0 rem;
}
span{
    font-size: 4.5rem;
    color: var(--main-color);
}
.home-content h2{
    margin-top: 0 rem;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--main-color);
    margin-bottom: 2rem;
}
.home-content p{
    font-size: 2rem;
    color: #333;
    margin-top: 1rem;
}
.home-text{
    margin-bottom: 2rem;
}
.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: 50%;
    font-size: 2rem;
    margin: 1.5rem 1.5rem;
    transition: 0.3s ease;
}
.btn{
    display: inline-block;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 1rem 2.8rem;
    box-shadow: none;
    font-size: 1.6rem;
    border-radius: 4rem;
    margin-top: 2rem;
    font-weight: 600;
    letter-spacing:0.1 rem;
    transition: 0.3s ease ;
}

.btn:hover{
    box-shadow: 0 0 1.6rem var(--main-color);
    transform: scale(1.05);
}
.text-animation{
    color: var(--main-color);
    font-weight: 700;
    min-width: 200px;
}
.text-animation span{
    position: relative;
}
.text-animation span::before{
    color: var(--main-color);
    content: "Web Developer";
    animation: words 20s infinite;
}
.text-animation span::after{
    content: "";
    position: absolute;
    background-color: var(--bg-color);
    width: calc(100% + 8px);
    height: 100%;
    right: -8px;
    border-left:3px solid var(--main-color); ;
    animation: cursor 0.6s infinite, typing 20s steps(16) infinite;
}
@keyframes cursor {
    to{
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words {
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "AI & ML Enthusiast";
    }
    41%, 60%{
        content: "DevOps Explorer";
    }
    61%, 80%{
        content: "UI & UX Designer";
    }
    81%, 100%{
        content: "Tech Blogger";
    }
}
@keyframes typing {
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%,
    100% {
        width: calc(100% + 8px);
    }
}


/*About Section code*/
.about{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--snd-bg-color);
}
.about-img img{
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease ;
}
.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
        0 0 35px var(--main-color),
        0 0 45px var(--main-color);
    transform: scale(1.05);
}
.heading{
    font-size: 6rem;
    text-align: center;
}
.about-content{
    padding: 0 4rem;
}
.about-content h2{
    text-align: left;
    line-height: 1.2;
}
.about-content h3{
    font-size: 3rem;
}
.about-content p{
    font-size: 2rem;
    font-weight: 500;
    color: #333;
    margin: 1.5rem 0;
    text-align: justify;
    text-justify: inter-word;
}


/*Education Section code*/

.education{
    background: var(--bg-color);
    padding: 100ox 15px;
}
.education h2{
    margin-bottom: 5rem;
}
.timeline-items{
    max-width: 1200px;
    margin: 2px;
    display: flex;
    position: relative;
    flex-wrap: wrap;
}
.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background: var(--main-color);
    left: calc(50% - 1px);
}
.timeline-item{
    width: 100%;
    margin-bottom: 10px;
    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);
    text-align: left;
}
.timeline-item .timeline-dot{
    width: 20px;
    height: 20px;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color);
    left: calc(50% - 10px);
    border-radius: 50%;
    position: absolute;
    top: 10px;
}
.timeline-item .timeline-date{
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin: 10px 0 20px;
}
.timeline-item .timeline-content{
    background: var(--snd-bg-color);
    border : 3px solid var(--main-color);
    padding: 30px 50px;
    box-shadow: 0 0 10px var(--main-color);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transform: 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: 2.5rem;
    color: var(--main-color);
    margin-bottom: 10px;
}
.timeline-content h4{
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}
.timeline-content p{
    font-size: 1.5rem;
    color: #555;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}
::-webkit-scrollbar{
    width: 8px;
    height: 10px;
}
::-webkit-scrollbar-track{
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb{
    background: var(--main-color);
}
::-webkit-scrollbar-thumb:hover{
    background: var(--text-color);
}


/*Projects Section code*/
.projects {
    background: var(--snd-bg-color);
    padding: 12rem 9% 6rem; 
    text-align: center;
}

.projects h2 {
    margin-bottom: 4rem; 
}

.project-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    gap: 3rem;
}

.project-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.1);
    transition: 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

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

.project-box img {
    width: 100%;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
    transition: 0.4s ease;
}

.project-layer h4 {
    font-size: 2rem;
    color: var(--main-color);
    margin: 1.5rem 0 10px;
}

.project-layer p {
    font-size: 1.5rem;
    color: #555;
    text-align: justify;
    line-height: 1.6;
    margin: 0 15px 2rem;
}

.project-layer a {
    display: inline-block;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 0.8rem 2.5rem;
    border-radius: 4rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.3s ease;
    margin-bottom: 2rem; 
}

.project-layer a:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
    transform: scale(1.05);
}

/*contact Section code*/
.contact{
    background: var(--bg-color);
}
.contact h2{
    margin-bottom: 3rem;
    color : var(--text-color);
    text-align: center;
}
.contact form{
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--snd-bg-color);
    border-radius: 0.8rem;
    border: 0.25 rem solid var(--);
    margin: 0.7rem 0;
    resize: none;
}
.contact form .input-box input{
    max-width: 49%;
    margin: 0.7rem 0.35rem;
}

/* Footer Section code */
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: var(--snd-bg-color);
    text-align: center;
    padding: 40px 0;
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    margin: 0 10px;
    color: var(--main-color);
    transition: color 0.3s ease;
    height: 42px;
    width : 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    transition: o.3s ease;
}
.footer .copyright{
    margin-top: 20px;
    font-size: 16px;
    text-align: center;
}

?/* Responsive Media Query */
@media (max-width: 1200px){
    html {
        font-size: 55%;
    }
}
@media (max-width: 991px){
    .header{
        padding: 2rem 3%;
    }
    .header .logo{
        font-size: 1.6rem;
    }
    .navbar a{
        font-size: 1.3rem;
        margin-left: 1.3rem;
    }
    section{
        padding: 10 rem 3%;
    }
    .home{
        flex-direction: column;
        text-align: center;
    }
    .home-img img{
        margin-top: rem;
        width: 40vw;
    }
    .home-content{
        margin: 2rem 0 0;
    }
    .home-content h3{
        font-size: 2.2rem;
    }
    .home-content h2{
        font-size: 3rem;
        margin-bottom: rem;
    }
    span{
        font-size: 3rem;
    }
    .home-text{
        margin-bottom: 3rem;
    }
    .home-content p{
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    .social-media a{
        width: 35px;
        height: 35px;
        font-size: 1.6rem;
        margin: 1rem 0.7rem;
    }
    .btn{
        padding: 0.8rem 2.3rem;
        font-size: 1.4rem;
    }
    .about{
        flex-direction: column;
        text-align: center;
        padding: 6rem 3rem;
    }
    .about{
        text-align: center;
    }
    .about h2{
        font-size: 3rem;
        text-align: center;
        margin-bottom: 3rem;
    }
    .about h3{
        font-size: 2.2rem;
    }
    .about h3 span{
        font-size: 2.2rem;
    }
    .about p{
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }
    .about-img img{
        width: 40vw;
        margin-bottom: 3rem;
    }
    .about-content{
        padding: 0;
    }
    .education h2{
        font-size: 3.2rem;
        margin-bottom: 3rem;
    }
    .education .timeline-items::before{
        left: 8px;
    }
    .education .timeline-item:nth-child(odd){
        padding: 0 0 0 30px;
        text-align: left;
    }
    .education .timeline-item:nth-child(even){
        padding: 0 0 0 30px;
        text-align: left;
    }
    .education .timeline-item .timeline-dot{
        left: 0;
    }
    .education .timeline-item .timeline-content{
        padding: 20px 30px;
    }
    .education .timeline-item .timeline-content h3{
        font-size: 2rem;
    }
    .education .timeline-item .timeline-content h4{
        font-size: 1.6rem;
    }
    .education .timeline-item .timeline-content p{
        font-size: 1.2rem;
    }
    .education .timeline-item .timeline-date{
        font-size: 2rem;
        margin: 7px 0 15px;
    }
    .projects h2{
        font-size: 3.2rem;
        margin-bottom: 3rem;
    }
    .projects{
        padding: 8rem 3% 4rem;
    }
    .projects .project-box{
        max-width: 90%;
    }
    .projects .project-container{

        flex-direction: column;
        align-items: center;
    }
    .contact h2{
        font-size: 3.2rem;
        margin-bottom: 2rem;
    }
    .contact form{
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    .contact form .input-box input{
        max-width: 100%;
        margin: 0.7rem 0;
        flex-direction: column;
    }
    .contact form .textarea{
        max-width: 100%;
    }
}