*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    text-decoration: none;
    outline: none;
    scroll-behavior: smooth;
    font-family:'Poppins', sans-serif;
}

:root{
    --bg-color: #000000;
    --second-bg-color: #161616;
    --text-color : #fff;
    --main-color: #7b4bb7;
    --red-color: #b74b4b;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background: var(--bg-color);
    background-color: black;
    color: white;
}
html::-webkit-scrollbar{
    width: 0.8rem;
}

html::-webkit-scrollbar-track{
    background: var(--bg-color);
}
html::-webkit-scrollbar-thumb{
    background: var(--main-color);
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 9%;
    
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

header.scrolled {
    background-color: rgba(15, 15, 23, 0.9); 
    transition: background-color 0.3s ease;
}

/*
header.transparent{
    background-color: transparent;
    transition: background-color 0.5s ease;
} 
*/

.logo{
    font-size: 3rem;
    color: var(--main-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;

}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

@media(max-width:995px) {
    #menu-icon{
        display: block;
    }
.navbar{
    position: absolute;
    top: 100%;
    width: 40%;
    right: 0;
    border-left:3px solid var(--main-color);
    border-bottom: 3px sold var(--main-color);
    border-bottom-left-radius:2rem ;
    padding: 1rem 3%;
    background-color: var(--second-bg-color);
    border-top: 0.1rem solid rgba (0, 0, 0, 4);
    display: none;

}

.navbar :active{
    display: block;
}

.navbar a{
    display: block;
    font-size: 2rem;
    margin: 3rem 0;

}

.navbar a:hover,
.navbar a.active{
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--main-color);
}
}

section{
    min-width: 100hv;
    padding:5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--bg-color);
}

.home .home-content h1{
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: var(--main-color);
}

.home-content h3{
    font-size:  4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid var(--main-color);
    cursor: pointer;
}

.home-img img:hover{
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}

.home-content p{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid var(--main-color) ;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: var(--red-color);
}

.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px) ;
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;

}

.btn{
    padding: 1rem 2.8rem;
    display: inline-block;
    background-color: var(--bg-color);
    letter-spacing: 0.3rem;
    font-size: 1.6rem;
    transition: 0,3S ease;
    color: #161616;
    font-weight: 600;
    border: 2px solid var(--main-color);
    cursor: pointer;   
    border-radius: 4rem;
}

.btn:hover{
    transform: scale(1.03);
    background-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 25px var(--main-color);

}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: attr(data-text);
    color: #b74b4b;
    animation: words 20s infinite; 
}

.typing-text span::after{
    
    background: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-right: 3px solid #b74b4b;
    right: -8;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor{
    to{
      border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 25%{
        content: "Web Developer";
    } 
    26%, 55%{
        content: "Data_Scientist"
    }
    56%, 100%{
        content:"Web Designer";
    }
}

@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);
    }
}

@keyframes animate{
    0%, 10%, 100% {
        width: 0;
    }
    70%, 90% {
        width: 100%;
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
 
    }

    .home .home-content h3{
       font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
}
    
.home-img img{
    width: 70vw;
    margin-top: 4rem;
}
}

/* sercices section */

.Services{
    background: var(--second-bg-color);
}

.heading{
    font-size: 4.8rem;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1rem;
    
}
.services-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.service-box{
    background-color: var(--main-color);
    height: 300px;
    border-radius: 3rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.service-box:hover{
    background: transparent;
    color: var(--main-color);
    transition: scale(1.03);
    border: 1px solid var(--main-color);

}

 .service-box .service-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}

.service-info h4{
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-info p{
    font-size: 1.6rem;
    font-weight: 400;
    margin: auto;
}

@media (max_width: 991px){
    section{
        padding-bottom: 7rem;
    }
}

@media (max_width: 895px){
    .Services h2{
        margin-bottom: 3rem;
    }
    .services-container{
        grid-template-columns: repeat(1,1fr);
    }
}

/* skills section */

.skills{
    background: var(--bg-color);
}
.skills .Container{
    background: #5c197154;
    color: var(--text-color);
    border-radius: 1rem;
    padding: 2rem;
    width: 70%;
    margin-top: 2rem;
}

.skills .Container .row{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex-wrap: wrap;
    gap: 1.8rem;
}

.skills .Container .bar{
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 1rem;
    background: var(--bg-color);
    box-shadow: 0 4px 10px var(--main-color);
    transition: 0.3s ease;
    cursor: pointer;
}

.skills .Container .bar:hover {
    box-shadow: 0 4px 10px var(--main-color);
}

.skills .Container .bar:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.skills .Container .bar .info span{
    font-size: 2rem;
    font-weight: 500;
    margin-left: 0.5rem;
}
@media screen and (max-width:600px) {
    .skills .Container {
        margin: 0;
        padding: 0;
    }
    .skills .Container  .row {
        grid-template-columns: repeat(2, 1fr);
        margin: 1rem;
        padding: 2rem 0.2rem 2rem 0.2rem;
        gap: 1rem;
    }
    .skills .container{
        margin-top: 5px;
        width: 100%;
    }
}

/* education section */

.education{
    background: var(--second-bg-color);
}

.education .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.education .timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    background: rgb(94 ,74, 74);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 2;
}
.education .container{
    padding: 10px 40px;
    position: relative;
    background-color:inherit;
    width: 50%;
}
.education .container::after{
    content: '\f501';
    position: absolute;
    width: 25px;
    height: 25px;
    line-height: 25px;
    right: -17px;
    background-color: rgb(252, 252, 252);
    border: 4px solid var(--main-color);
    top: 15px;
    border-radius: 50%;

    z-index:100;
    font-size:1.89rem;
    text-align:center;
    font-weight: 600;
    font-family: "Font Awesome\ 5 Free";
    color:rgb(90, 64, 64);
}
.education .left{
    left: 0;
}
.education .right{
    left: 50%;
}
.education .left::before{
    content:'';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border:medium solid var(--main-color);
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--main-color);
}
.education .right::before{
    content:'';
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: -15px;
    border:medium solid var(--main-color);
    border-width: 10px 15px 10px 0;
    border-color: transparent  var(--main-color) transparent transparent;
}
.education .right::after{
    left: -16px;
}

.education .content{
    background: var(--main-color);
    position: relative;
    border-radius: 6px;
}
.education .content .tag{
    font-size: 1.5rem;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
}
.education .content .decs{
    margin-left: 1.5rem;
    padding-left: 1rem;
}
.education .content .tag h2{
    font-size: 2rem;
    font-weight: 600;
    color: black;
}
.education .content .decs p{
    font-size: 1.3rem;
    font-weight: 500;
    column-rule: black;
}

@media screen and (max-width:600px) {
    .education .timeline{
        margin-top: 2rem;
    }
    .education .timeline::after{
        left: 31px;
    }
    .education .container{
        width: 100%;
        padding-left: 8rem;
        padding-right: 2rem;
    }
    .education .container::after{
        font-size: 2.2rem;
    }
    .education .container::before{
        left: 61px;
        border: medium solid var(--main-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--main-color) transparent transparent;
    }
    .education .left::after{
        left: 15px;
    }
    .education .right::after{
        left: 15px;
    }
    .education .left::before{
        left: 50%;
    }
    .education .right::before{
            left: 61px;
            border-width: 10px 0 10px 15px;
            border-color: transparent transparent transparent var(--main-color);
    }
}

/* Contact & Footer */

.contact h2{
    margin-bottom: 3rem;
}
.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}
.contact form .input-box{
    display: flex;
    justify-content: space-between;
    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(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
}
.contact form .input-box input{
    width: 49%;
}
.contact form textarea{
    resize: none;
}
.contact form .btn{
    margin: 2rem;
    cursor: pointer;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}
.footer-text{
    font-size: 1.6rem;
}
.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    justify-content: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop a i{
    font-size: 2.4rem;
    color: var(--second-bg-color);
    transition: .5s ease;
}
.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: #333;
        padding: 10px;
        border-radius: 5px;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        color: #fff;
        margin: 10px 0;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-content {
        max-width: 100%;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .skills .Container {
        grid-template-columns: repeat(2, 1fr);
    }

    .container .content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 30px;
    }

    .home-content p {
        font-size: 16px;
    }

    .service-box h4 {
        font-size: 22px;
    }

    .skills .Container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 365px){
    .home-img img{
        width: 90vw;
    }
    
    .footer{
        flex-direction: column-reverse;
    }
    .footer p {
        text-align: center;
        margin-top: 2rem;
    }

}


