*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Times New Roman', Times, serif;
}
:root {
    --bg-color: #000000;
    --snd-bg-color: #4e1e76;
    --text-color: #ffffff;
    --main-color: #c97799;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    /*--bg-color and --text-color → These are custom variables you define somewhere else in your CSS, usually inside the :root selector so they apply globally.
    var(--bg-color) → Fetches the value stored in the variable --bg-color.
    Same for var(--text-color).*/
}

section {
    min-height: 100%; /*100vh = 100% of the viewport height (vh = “viewport height units”).*/
    padding: 6rem 9% 6rem;
    /*The values are shorthand in the order: top → right → bottom → left.
    10rem → top padding (10 × root font-size).
    9% → right padding (9% of the element’s width).
    2rem → bottom padding.
    Left padding will be the same as right padding (9%) because only 3 values are given.*/
}

/*HEADER*/
.header {
    top:0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    background: beige;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.logo {
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 1.9rem;
    color: var(--bg-color);
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color)
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/*HOME*/

.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img{
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    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);
}


/*@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2.4rem);
    }
    100% {
        transform: translateY(0);
    }
}*/

.home-content {
    margin-left: 5rem;
}

.home-content h2 {
    font-size: 3rem;
    font-weight: 700;
}

.home-content h2:nth-of-type {
    margin-bottom: 2rem;

}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size:  4rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.8rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}

/*ABOUT*/

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: beige;
    color: #000000;
}

.about-img img {
    width: 25vw;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 20px 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);
}

.heading {
    font-size: 6rem;
    text-align: center;
}

.about-content {
    padding: 0 4rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.4;
}

.about-content h3 {
    font-size: 3rem;
}


.about-content p {
    font-size: 2.1rem;
    margin: 2rem 0 3rem;
}


.about-content .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.about-content .box-container h2 {
    font-size: 4.5rem;
}

.about-content .box-container .box span {
    font-size: 2rem;
}

.about-content h2 {
    font-size: 4rem;
}

.about-content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    width: 100%; /* make the row full width */
}



.about-content .row .skills {
    flex: 1 1 100%; /* skills takes full width */
    max-width: 900px; /* optional limit */
}



.about-content .row .skills .progress {
    padding: 1rem 0;
}


.about-content .row .skills .progress h3 {
    display: flex;
    justify-content: space-between;
    padding: .7rem 0;
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--bg-color);
}

.about-content .row .skills .progress .bar {
    width: 100%; /* full width inside skills */
    background: var(--bg-color);
    overflow: hidden;
    height: 1rem;
    border-radius: 50rem;
}

.about-content .row .skills .progress .bar span {
    display: block;
    height: 100%;
    background: var(--main-color);
}


.about-content .row .skills .progress:nth-child(1) .bar span {
    width: 90%;
}

.about-content .row .skills .progress:nth-child(2) .bar span {
    width: 80%;
}

.about-content .row .skills .progress:nth-child(3) .bar span {
    width: 80%;
}

.about-content .row .skills .progress:nth-child(4) .bar span {
    width: 70%;
}

.about-content .row .skills .progress:nth-child(5) .bar span {
    width: 60%;
}

.about-content .row .skills .progress:nth-child(6) .bar span {
    width: 50%;
}


.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
    background-color: pink;
    color: #95639b;
}

.education h1 span {
    color: var(--snd-bg-color);
}


.education .box-container1 {
    border-left: .2rem solid var(--bg-color);
    padding-top: 1.5rem;
}

.education .box-container1 .box1 {
    position: relative;
    padding-left: 2rem;
}

.education .box-container1 .box1 .content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--snd-bg-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
}

.education .box-container1 .box1 .content::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: -0.8rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--snd-bg-color)
}

.education .box-container1 .box1 .content span{
    color: #ffffff;
    font-size: 1.5rem;
    background: #bb6074;
    border-radius:50%;
    padding: 0.5rem;
}

.education .box-container1 .box1 .content h3 {
    font-size: 2rem;
    color: #4e1e76;
}

.education .box-container1 .box1 .content p {
    font-size: 1.8rem;
    color: #000;
}


.education .box-container1 .box1 .content .year {
    font-size: 1.8rem;
    color: #71607e;
    padding-bottom: .5rem;
}


/*Experience*/

.experience {
    position: relative;
    background: #b7c9a8;
}

.experience .section_text_p1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #020202;
}

.experience h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #496535;
}

.experience-sub-title {
    color: rgb(7, 7, 7);
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    margin-top: 1.5rem;
    flex: 1;
    border-radius: 2rem;
    border: rgb(85,85,85) 0.1rem solid;
    border-color: #4e1e76;
    text-align: center;
    width: 40vw;
}

.article-container {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
    color: #5d8258;
}

article {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    text-align: left;
    flex-wrap: wrap;
    flex-direction: row;
    font-size: 2rem;
}


/*Contact*/

.contact {
    background: var(--bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--main-color);
}

.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(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--snd-bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}

.footer .social a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.footer .copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}


@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }
    section {
        padding: 10rem 3%;
    }
    .education {
        padding: 7rem;
    }
    .work-experience {
        grid-template-columns: repeat(1,1fr);
    }
    .contact form .input-box input {
        width: 100%;
    }
    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 991px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: beige;
        transition: all 0.5s ease;
        backdrop-filter: blur(10px);
    }
    .navbar a {
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navbar.active {
        right: 0;
    }
    .home {
        flex-direction: column;
    }
    .home-content h3 {
        font-size: 2.6rem;
    }
    .home-content {
        order: 2;
        margin-left: 1rem;
    }
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .education h2 {
        margin-bottom: 3rem;
    }
}

@media (max-width:617px) {
    .home-img img {
        width: 70vw;
        margin-top: 8rem;
    }
    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

@media (max-width: 617px) {
    html{
        font-size: 50%;
    }

}

