@import url('http://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
}

.font1 {
    font-family: 'Playfair Display', serif;
}

.font2 {
    font-family: 'Roboto Slab', serif;
}

.font3 {
    font-family: 'Spectral', serif;
}

:root {
    --bg-color: #f9baeb;
    --text-color: #333;
    --main-color: #754ef9;
    --white-color: #fdfdfd;
    --shadow-color: rgb(57, 36, 57);
    --logo-color: #C738BD;
}

.dark-mode {
    --bg-color: rgb(58, 27, 58);
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}
.head-bg{
    background-color: #333;
}

/* ------------------ HEADER ------------------- */

/* .namelogo{
    font-family: "Roboto", sans-serif;
    color: var(--logo-color);
    text-shadow: 5px 5px 5px #E49BFF;
}

.p{
    color: #850F8D;
    font-size: 40px;
} */

.list-unstyled {
    margin-top: 10px;
}

.list-unstyled a {
    color: var(--main-color);
    font-size: 15px;
}

.list-unstyled a:hover {
    color: var(--text-color);
    font-weight: 600;
}

.nav a {
    position: relative;
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3px;
}

.nav a:hover {
    color: var(--main-color);
}

.nav a::after {
    content: '';
    width: 0;
    height: 2px;
    background: blue;
    position: absolute;
    left: 0;
    bottom: -4px;
    transition: ease .30s;
}

.nav a:hover::after {
    width: 100%;
}

#darkMode-icon {
    font-size: 2.4rem;
    color: var(--text-color);
    cursor: pointer;
}

.headtop{
    background-color:transparent;
}

.headtop.active{
    background-color:#f7c8f0;
}

section {
    padding: 2rem 7% 2rem;
}

.btn1 {
    background-color: var(--main-color);
    border: none;
    padding: 10px;
    width: 50px;
    border-radius: 6px;
}


/* ------------------- HOME SECTION--------------------- */

.heading {
    text-align: center;
    padding-top: 3rem;
    font-size: 40px;
    font-weight: 600;
}

.home {
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
}

.home img {
    border-radius: 10%;
    height: 300px;
    width: 260px;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
}

/* typing */

.home-h6 span {
    font-size: 18px;
}


/* ------------------ ABOUT SECTION- ---------------- */

.abt-img {
    height: 300px;
    width: 250px;
}

span {
    color: var(--main-color);
}

.name {
    font-size: 40px;
    font-weight: 800;
}

.about-content h2 {
    padding-top: 20px;
}

.about-content p {
    font-size: 15px;
}

.about-content .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.about-content .social-media a:hover {
    background: var(--main-color);
    color: var(--white-color);
}

/* ------------------ Education section- ------------------ */

.Timeline {
    width: 100%;
    height: auto;
    display: grid;
    place-items: center;
}

.heading-2 {
    font-size: 27px;
    font-weight: 800;
    color: rgb(248, 250, 247);
    position: relative;
    margin-bottom: 80px;
    letter-spacing: 3px;
}

.heading-2::after {
    content: " ";
    position: absolute;
    width: 100%;
    height: 4px;
    left: 50%;
    bottom: -5px;
    background-image: linear-gradient(to right, rgb(215, 208, 223), (var(--main-color)));
    transform: translateX(-50%);
}

.edu-box ul {
    list-style: none;
}

.edu-box ul li {
    height: auto;
    padding: 4px 4px;
    border: 3px solid var(--main-color);
    margin-bottom: 70px;
    border-radius: 8px;
    position: relative;
    z-index: 99;
}

.accordion-item {
    border: 0;
}

.accordion-body {
    background-color:#f793bc;
    color: black;
}

.accordion-body p {
    margin-top: 1px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
}

.edu-box ul li .tittle1 {
    font-size: 20px;
    font-weight: 600;
    color: black;
    background-color: #f4a1ae;
}

.edu-box ul li .tittle1 .button {
    width: min-content;
}

/*------------------ skill section- -----------------*/

.skills {
    height: 200px;
    width: 100%;
    border: 1px solid rgb(88, 86, 86);
}

.skills img {
    height: 100px;
    width: 100px;
    padding-top: 10px;
    object-fit: cover;
}

.skills:hover {
    transition: .3s ease;
    transform: scale(0.8);
    border: 2px solid #f387b4;
}


/*---------------- Project section- ------------------*/

.projects {
    padding-bottom: 10rem;
}

.projects h2 {
    margin-bottom: 4rem;
}

.projects-container {
    align-items: center;
    gap: 2.5rem;
}

.projects-container .projects-box {
    position: relative;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
    border-radius: 10px;
}

.projects-box img {
    width: 100%;
    transition: .5s ease;
}

.projects-box:hover img {
    transform: scale(1.1);
}

.projects-box .projects-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .1), var(--main-color));
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    opacity: 0;
    transition: .5s ease;
}

.projects-box:hover .projects-layer {
    opacity: 1;
}

.projects-layer h4 {
    font-size: 3rem;
}

.projects-layer p {
    font-size: 1.7rem;
    margin: .3rem 0 1rem;
    font-weight: 600;
}

.projects-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
}

.projects-layer a i {
    font-size: 2rem;
    color: #333;
}

/*---------------- Contact section- ------------------*/

.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(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

/*---------------- Footer section- ------------------*/

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--white-color);
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    outline-color: var(--white-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: #333;
}


/*-------------- BREAKPOINTS ---------------*/

@media(min-width:768px) {

    #darkMode-icon {
        right: 4rem;
        color: var(--text-color);
    }
    .home-h6 span {
        font-size: 25px;
    }
    
    .home {
        /* padding: 0 3% 23rem; */
        justify-content: center;
        text-align: center;
    }

    .about-content .social-media a {
        margin: 2.5rem .75rem 3rem;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-content p {
        font-size: 16px;
    }

    .abt-img {
        width: 280px;
        height: 515px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .name {
        font-size: 45px;
    }

    .education h2,
    .projects h2 {
        margin-bottom: 3rem;
    }
}


@media(min-width: 992px) {

    .nav a {
        font-size: 20px;
        font-weight: 600;
    }

    .home {
        display: flex;
        justify-content: space-evenly;
        padding-top: 3rem;
    }

    .home img {
        height: 400px;
        width: 380px;
    }

    .home .about-content {
        max-width: 50rem;
    }

    .home-h6 span {
        font-size: 35px;
    }

    .abt-img {
        width: 400px;
        height: 530px;
    }

    .name {
        font-size: 50px;
    }

    .about-content p {
        font-size: 18px;
    }

    .accordion-body {
        font-size: 16px;
        font-weight: 500;
    }

    .accordion-body p {
        font-size: 17px;
        font-weight: 600;
    }

    .edu-box ul li .tittle1 {
        font-size: 23px;
        font-weight: 600;
    }

    .education,
    .projects {
        padding-bottom: 7rem;
    }

    .edu-box ul li {
        width: 50%;
    }

    .edu-box ul li:nth-child(odd) {
        float: left;
        clear: right;
        transform: translateX(-20px);
    }

    .edu-box ul li:nth-child(odd) .date {
        right: 20px;
    }

    .edu-box ul li:nth-child(even) {
        float: right;
        clear: left;
        transform: translateX(30px);
    }

    .edu-box ul li:nth-child(2) {
        margin-bottom: 0;
    }

    .edu-box ul::after {
        position: absolute;
        content: '';
        width: 2px;
        height: 1005px;
        background-image: linear-gradient(to right, rgb(215, 208, 223), rgba(64, 112, 45, 0.377));
    }

    .edu-box ul li .circle {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: var(--main-color);
        position: absolute;
        top: 70px;
    }

    .container ul li .circle::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 15px;
        background-color: yellowgreen;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .edu-box ul li:nth-child(odd) .circle {
        right: -30px;
        transform: translate(50%, -50%);
    }

    .edu-box ul li:nth-child(even) .circle {
        left: -30px;
        transform: translate(-50%, -50%);
    }

    .edu-box ul li {
        margin-bottom: 30px;
    }

    .contact {
        min-height: auto;
    }

    .footer {
        padding: 2rem 3%;
    }
}

/*---------------------- End- -------------------------------*/