* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}
:root {
    --text-color: white;
    --main-color: #f9640df8;
    --bg-color: #080808;
    --second-bg-color: #131313;

}

html {
    font-size: 60%;
    overflow-x: hidden;
}
body {
    background: var(--bg-color) url(bg1.jpg) no-repeat center fixed;
    background-size: cover;
    color: var(--text-color);
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    background: rgba(0, 0, 0, 0.8);
}
.logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    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);
    font-weight: 500;
    margin-left: 4rem;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover,
.navbar a:focus,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#menu{
    font-size: 3rem;
    color: var(--main-color);
    display: none;
    transform: scale(1.05);
}
section{
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}
.home{
    display: flex;
    align-items: center;
    gap: 15rem;
    justify-content: center;
}
.home-content{
    display: flex;
    align-items: baseline;
    text-align: left;
    margin-top: 3rem;
    flex-direction: column;
    justify-content: center;
}
span{
    color: var(--main-color);
}
.logo span{
    color: var(--main-color);
}
.home-content h1{
    font-size: 5.4rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2rem;
}
.home-content h3{
    font-size: 3.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    width: 32vw;
    top: 3rem;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease;
    position: relative;
}
.home-img img:hover,
.home-img img:active,
.home-img img:focus {
    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.8rem;
    font-weight: 500;
    max-width: 1000px;
    line-height: 1.8;
}
.sclicn a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    color: var(--main-color);
    transition: 0.3s ease-in-out;
    margin: 3rem 1.5rem 3rem 0;
}
.sclicn a:hover,
.sclicn a:active,
.sclicn a:focus {
    background-color: var(--main-color);
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);             
}
.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    box-shadow: 0 0 25px var(--main-color);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    border-radius: 4rem;
    background: var(--main-color);
    color: black;
    font-size: 1.6rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover,
.btn:active,
.btn:focus {
    box-shadow: 0 0 50px var(--main-color);
    transform: scale(1.05);
}
.btn-grp{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-grp 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-grp a:nth-of-type(2):hover{
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.txtanm{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.txtanm span{
    position: relative;
}
.heading{
    font-size: 8rem;
    margin: 5rem 0;
    text-align: center;
}
.education{
    padding: 100px 15px;
}
.education h2{
    margin-bottom: 5rem;
}
.timeline{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline::before{
    content: '';
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}
.timeline-item{
    width: 100%;
    margin-bottom: 40px;
    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{
    position: absolute;
    width: 21px;
    height: 21px;
    background-color: var(--main-color);
    border-radius: 50%;
    top: 10px;
    left: calc(50% - 8px);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
}
.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}
.timeline-item:nth-child(odd) .timeline-date {
    position: relative;
    right: 4px;
}
.timeline-item:nth-child(even) .timeline-date {
    position: relative;
    left: 4px;
}
.timeline-content{
    
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow:0 0 15px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
    border: 3px solid var(--main-color);
}
.timeline-content h3{
    font-size: 20px;
    color:white;
    margin: 0 0 10px;
    font-weight: 600;
    text-align: left;
}
.timeline-content p{
    font-size: 16px;
    color: white;
    font-weight: 300;
    line-height: 22px;
    text-align: left;
}
.timeline-content:hover,
.timeline-content:active,
.timeline-content:focus {
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.05);
}
::-webkit-scrollbar {
    width: 15px;
}
::-webkit-scrollbar-thumb {
    background: var(--main-color);
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}
.skills{  
    color:black;
}
.skills h2{
    color: white;
    margin-bottom: 5rem;
}
.skills-container{
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2,1fr);
    gap: 2.5rem;
}
.skill-box{
    background-color: var(--main-color);
    height: 300px;
    border-radius: 3rem;
    border: 5px solid transparent;
    cursor: pointer;
    box-shadow:0 0 15px var(--main-color);
}
.skill-box:hover,
.skill-box:active,
.skill-box:focus {
    color: white;
    background: transparent;
    transform: scale(1.03);
    border: 5px solid var(--main-color);
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 15px var(--main-color);
}
.skill-info{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    text-align: left;
    max-height: 200px;
    padding: 5rem 5rem;
}
.skill-info h4{
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 2;
}
.skill-info p {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    max-height: 100px;
    margin: auto;
}
.skill-info ul {
    padding-left: 0;
    margin-left: 0;
    text-align: left;
    list-style-position: inside;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    max-height: 100px;
}
.projects-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
    place-items: center;
    gap: 3rem;
    row-gap: 5rem;
}
.project-card{
    border-radius: 3rem;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid var(--main-color);
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}
.project-card:hover,
.project-card:active,
.project-card:focus {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    transform: scale(1.02);
}
.project-card img{
    max-width: 600px;
    border-radius: 2rem;
    object-fit: cover;
}
.project-card h3{
    font-size: 3rem;
}
.project-card p{
    font-size: 1.6rem;
}
.contact h2{
    margin-bottom: 3rem;
    color: white;
}
.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}
.contact form .input-box{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    background: transparent;
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 500;
    margin: 1.5rem 0;
    resize: none;
    transition: border-color 0.3s ease;
}

.contact form .input-box input:invalid,
.contact form textarea:invalid {
    border-color: #ff4444;
    box-shadow:0 0 15px var(--main-color);
}

.contact form .input-box input:valid,
.contact form textarea:valid {
    border-color: #00C851;
    box-shadow: 0 0 15px #00C851;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: #33b5e5;
    box-shadow: 0 0 15px #33b5e5;
}
.contact form .btn{
    margin-top: 2rem;
}
.footer{
    padding: 40px 0;
    width: 100%;
    position: relative;
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
    color: var(--main-color);
    width: 42px;
    height: 42px;
    display: inline-block;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--main-color);
}
.footer .social a:hover{
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.2) translateY(-10px);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid transparent;
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}
@media(max-width: 1680px) {
    .html {
        font-size: 55%;
    }
    .header {
        padding: 3rem 10%;
    }
    .skills{
        padding: 50px;
    }
    .skills-container {
        grid-template-columns: (2,1fr);
        gap: 2rem;
    }
    .skill-box {
        padding: 2rem 1rem;
        border-radius: 2rem;
    }
    .skill-info {
        padding: 2rem 1rem;
        max-height: none;
    }
    .skill-info h4 {
        font-size: 1.8rem;
    }
    .skill-info p, .skill-info ul {
        font-size: 1.2rem;
        line-height: 1.6;
        max-height: none;
    }
    .projects{
    padding: 55px;
    }
    .projects-box {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    .project-card {
        padding: 4rem 1.5rem;
    }
    .project-card img {
        max-width: 100%;
    }
    .project-card h3 {
        font-size: 2.5rem;
    }
}
@media(max-width: 1024px) {
        #menu{
        display: block;
        }

    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.8);
        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;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: white;
    }
    .section {
        padding: 10rem 3% 2rem;
    }
    .timeline::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-left: 37px;
    }
    .timeline-dot{
        left: 0;
    }
    .contact form{
        flex-direction: column;
    }
    .footer{
        padding: 2rem 3%;
    }
    .skills{
        padding: 85px;
    }
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0;
    }
    .skill-box {
        height: auto;
        padding: 2rem 1rem;
        border-radius: 2rem;
    }
    .skill-info {
        padding: 2rem 1rem;
        max-height: none;
    }
    .skill-info h4 {
        font-size: 2rem;
    }
    .skill-info p, .skill-info ul {
        font-size: 1.2rem;
        line-height: 1.6;
        max-height: none;
    }
    .projects{
    padding: 40px;
}
    .projects-box {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        padding: 0 2rem;
    }
    .project-card {
        padding: 3rem 1rem;
    }
    .project-card img {
        max-width: 100%;
    }
    .project-card h3 {
        font-size: 2.2rem;
    }
    .project-card p {
        font-size: 1.4rem;
    }
}
@media(max-width: 895px){
    .home{
        flex-direction: column-reverse;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 8rem;
        margin-top: 0;
    }
    .home-content p{
        max-width: 600px;
    }
    .home-img img{
        width: 56vw;
    }
    .home-img{
        padding-top: 70px;
    }
    .home-content{
        margin-top: 0;
    }
    .education h2{
        font-size: 7rem;
    }
    .projects{
    padding: 40px;
    }
    .projects-box {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    .project-card {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 400px;
    }
    .project-card img {
        max-width: 100%;
        height: auto;
    }
    .project-card h3 {
        font-size: 2rem;    
    }
    .project-card p {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
    .project-card .btn {
        margin-top: 1rem;
    }
}
