* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --main-color: #2a4643;
    --sec-color: #7D8f8B;
    --body: #c3c6c3;
}

/* ---------------Nav bar------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    /* background: rgba(0, 0, 0, 0.4);  */
    backdrop-filter: blur(9px);
    box-shadow: 0 2px 6px var(--main-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    color: #fff;
}

.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--body);
    padding: 8px 12px;
    border-radius: 5px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #DED0B6;
}

.hhd {
    display: flex;
    align-items: center;
    gap: 20px;
}

/*------Home ------------*/

.me {
    background-image: url(https://colorlibhub.com/illdy/wp-content/themes/illdy/layout/images/front-page/front-page-header.jpg);
    /* background-color: blueviolet; */
    background-size: cover;
    background-position: center center;
    color: aliceblue;
    text-align: center;
    height: 100vh;
}

.container {
    /* background-color: bisque; */
    padding: 20px;
    /* margin: auto; */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 20px;
}

.container>h1 {
    /* background-color: aqua; */
    margin: 0;
    opacity: .5;
}

.container>p span {
    color: var(--main-color);
    font-weight: bold;
}

.container>p {
    /* background-color: aquamarine; */
    font-size: 1.5rem;
    margin: 0;

}

.container>p span::after {
    content: "  |";
    animation-name: nereen;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

@keyframes nereen {
    0% {
        content: "  |";
    }

    5% {
        content: "  R|";
    }

    10% {
        content: "  Re|";
    }

    15% {
        content: "  Rea|";
    }

    20% {
        content: "  Reac|";
    }

    25% {
        content: "  React|";
    }

    30% {
        content: "  React|";
    }

    40% {
        content: "  React.|";
    }

    45% {
        content: "  React.J|";
    }

    50% {
        content: "  React.Js|";
    }

    60% {
        content: "  React.J";
    }

    65% {
        content: "  React.|";
    }

    70% {
        content: "  React|";
    }

    75% {
        content: "  Reac|";
    }

    80% {
        content: "  Rea|";
    }

    85% {
        content: "  Re|";
    }

    90% {
        content: "  R|";
    }

    95% {
        content: " |";
    }


}

.btn {
    /* width: 80px; */
    padding: 15px 30px;
    display: flex;
    border: none;
    flex-direction: row;
    /* padding: 20px; */
    gap: 20px;
    /* margin-top: 50px; */
    font-family: "Courgette", cursive;
}

.btn1 {
    background-color: var(--main-color);
    color: var(--sec-color);
    border-radius: 14px;
    box-shadow: 0 2px 6px var(--sec-color);
}

.btn1 a {
    text-decoration: none;
    color: var(--sec-color);
}

.btn1:hover {
    background-color: antiquewhite;
}

.btn2 {
    background-color: rgb(221, 215, 206);
}

/* -------------Summary -------------*/
.Summary {
    justify-content: center;
    /* background-color: blueviolet; */
    display: flex;
    text-align: center;
    flex-direction: row;
    padding: 10px;
    margin: 5px;
}


.About-contact {
    /* padding-top: 10%; */
    /* background-color: rgb(45, 231, 154); */
    text-align: center;

}

.About-contact>h2 {
    /* background-color: bisque; */
    padding: 5px;
    text-align: center;
    font-size: larger;

}

.About-contact p {
    /* background-color: brown; */
    padding: 10px;
    text-align: center;
}

/*------------Experience -------*/
.Experience {
    /* background-color: darkcyan; */
    /* margin: 5px; */
    padding: 10px;
    text-align: center;
}

.Experience-contact {
    /* background-color: cornflowerblue; */
    display: flex;
    flex-direction: row;
    padding: 15px;
}

.Experience-contact .brdr {
    width: 60px;
    height: 3px;
    background-color: var(--main-color);
    margin: 10px auto;
    transition: width 0.3s ease;
    left: 50%;
    animation: animate 4s linear infinite;
}

@keyframes animate {
    0% {
        width: 90px;
    }

    50% {
        width: 40px;
    }

    100% {
        width: 90px;
    }
}

.FrontEnd,
.Design,
.Internship {
    /* background-color: bisque; */
    padding: 6px;
    border: 2px solid var(--main-color);
    box-shadow: 0 2px 6px var(--main-color);
    border-radius: 14px;
    text-align: center;
    margin: 5px;
}



/*----------skills ------*/
.skills {
    /* background-color: brown; */
    text-align: center;
    padding: 10px;
}

.prog-bar {
    width: 100%;
    background-color: #6c757d;
    height: 7px;
    border-radius: 10px;
}

.skills .prog-bar-s {
    width: 65%;
}

.prog-bar-s {
    width: 100%;
    height: 100%;
    /* background-color: red; */
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin: 10px 0;
}

.skills-cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1rem;
}

.skills-cont h4 {
    color: var(--main-color);
}

.skills-cont> :first-child {
    width: calc(50% - 1.2rem);
}

.skills-cont> :last-child {
    width: calc(50% - 1.2rem);
}

.prog-bar-s {
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin: 10px 0;
}

.prog-bar {
    width: 100%;
    background-color: var(--sec-color);
    height: 7px;
    border-radius: 10px;
}

.skills-cont-left>div,
.skills-cont-right>div {
    margin: 2rem 0;
}

.skills-cont-left>div :first-child,
.skills-cont-right>div :first-child {
    display: flex;
    justify-content: space-between;
}

.skills-cont-left>div:nth-child(1) .prog-bar-s {
    width: 90%;
}

.skills-cont-left>div:nth-child(2) .prog-bar-s {
    width: 60%;
}

.skills-cont-left>div:nth-child(3) .prog-bar-s {
    width: 70%;
}

.skills-cont-right>div:nth-child(1) .prog-bar-s {
    width: 80%;
}

.skills-cont-right>div:nth-child(2) .prog-bar-s {
    width: 65%;
}

.skills-cont-right>div:nth-child(3) .prog-bar-s {
    width: 60%;
}


/* projects ------*/
.projects {
    /* background-color: darkorchid; */
    padding: 10px;
}

/* .projects h2 {
    text-align: center;
} */

.project-list {
    /* background-color: brown; */
    display: flex;
    padding: 15px;
    gap: 15px;
}

.project-card h3>a,
h3 {
    color: var(--main-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    /* list-style: none; */
    text-decoration: none;
}

.project-card {
    text-align: center;
    border: 2px solid var(--main-color);
    border-radius: 14px;
    box-shadow: 0 2px 6px var(--main-color);
    padding: 1.1rem;
    margin: 1rem;
    line-height: 1.5rem;
}

.project-card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    background-color: #c3c6c3;

}

/*-----------------contact---------------*/

.contact {
    /* background-color: var(--body); */
    color: white;
    /* padding: 20px ; */
}

.contact h2,
.projects h2,
.skills h2,
.Experience h2,
.About-contact>h2 {
    /* background-color: burlywood; */
    color: var(--main-color);
    padding: 5px;
    opacity: 0.3;
    font-size: 2rem;
    font-weight: bolder;
    text-align: center;
    /* text-transform: uppercase;
    background-image: linear-gradient(-225deg, var(--main-color), #697353 29%, #fff 67%, #a47a53 100%);
    background-size: 200% auto;
    --webkit-background-clip: text;
    --webkit-text-fill-color: transparent;
    animation: 4s linear infinite textclip; */
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    /* font-size: 1.2rem; */
}

/* @keyframes textclip {
    100% {
        background-position: 200% center;
    }
} */

.contact-container {
    /* background-color: darkcyan; */
    margin: auto;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.contact-info {
    /* background-color: aqua; */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* width: 100%; */
    margin: 0 20px;
    justify-content: center;
}

.contact-info h1 {
    color: var(--main-color);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-info .contact-info-left {
    /* background-color: bisque; */
    display: flex;
    gap: 0.5rem;
    align-items: center;
    /* margin: 10px 0; */
}

.contact-info .contact-info-left,
.contact-info li,
.contact-info ul,
.nav ul {
    list-style: none;
}

.contact-info ul {
    padding: 0;
    margin: 0 0 20px;
    display: flex;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}

.contact-info ul li i {
    background: var(--main-color);
    padding: 10px;
    border-radius: 50%;
    margin-right: 10px;
    /* place-content: center; */
}

.social-icons>li+i:hover {
    color: #132a23;
    transform: scale(1.2);
}

.social-icons a {
    color: white;
    font-size: 16px;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #132a23;
    transform: scale(1.2);
}

.contact-form-container {
    background-color: var(--sec-color);
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 2px 6px var(--main-color);
    place-content: center;
}

.contact-form-container h3 {
    text-align: center;
}

.contact-form {
    /* background-color: aqua; */
    padding: 2rem;
}

.contact-info>h3,
.fas {
    color: var(--main-color);

}

.contact-form h3 {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 25px;
    border: none;
    outline: none;
    margin-bottom: 15px;
}

.form-row input {
    flex: 1;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #00c08b, #008060);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    opacity: 0.8;
    border-radius: 20px;
    border: 2px dashed black;
}



/* ----------------FOOTER-------------- */
footer {
    background-color: var(--body);
    padding: 15px;
}

.footer-contact {
    /* background-color: aquamarine; */
    padding: 5px;
    margin: auto;
    display: flex;
    width: 85%;
    justify-content: space-between;
    align-items: center;
}

.contact-p p {
    /* background-color: blanchedalmond; */
    display: flex;
    flex-direction: column;
    color: var(--main-color);
    padding: 5px;
    text-align: center;
}

.footer-contact div a {
    color: var(--sec-color);
    transition: 0.3s color;
}

.footer-contact p a {
    color: var(--sec-color);
    transition: 0.3s color;
}

.footer-contact p a:hover {
    color: #179771;
}

.footer-contact div a:hover {
    color: rebeccapurple;
}

.footer-contact div span {
    margin: 0 1rem;
    font-weight: 100;
}
/* --------------media queries----------------- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px;
    }

    .nav ul {
        flex-direction: row;
        gap: 10px;
        text-align: center;
    }
}

@media only screen and (max-width:600px) {
    .Experience-contact {
        display: flex;
        flex-direction: column;
    }
}

@media only screen and (max-width: 600px) {
    .skills-cont {
        flex-direction: column;
        align-items: center;
    }

    .skills-cont> :first-child,
    .skills-cont> :last-child {
        width: 100%;
    }

}

@media only screen and (max-width: 600px) {

    .resume-footer-cont,
    .footer-cont-left,
    .footer-cont-right {
        /* background-color: darkgoldenrod; */
        display: flex;
        justify-content: center;
        align-self: center;
        flex-direction: column;
    }
}

@media only screen and (max-width: 600px) {

    .projects,
    .project-list {
        /* background-color: darkgoldenrod; */
        display: flex;
        justify-content: center;
        align-self: center;
        flex-direction: column;
    }
}

@media only screen and (max-width: 600px) {
    .contact-container {
        /* background-color: darkgoldenrod; */
        display: flex;
        gap: 20px;
        flex-direction: column;
    }

    .contact-info {
        /* background-color: brown; */
        place-content: center;
    }
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 10px;
    }

    .footer-contact div,
    .footer-contact p {
        width: 100%;
    }
}