@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /*===========Main theme colours==========*/
    --first-color: #04052e;
    --second-color: #6a59d1;
    --third-color: #827d7d;
    --forth-color: #a39d9d;

    /*===========Hover colours==========*/
    --hover-color: #614fd0;

    /*===========Backgroung colours==========*/
    --body-bg-color: #eae6ff;
    --card-bg-color: #fff;
    --modal-bg-colour: #d9d2ff;
    --bg-tansparent-color: rgba(0, 0, 0, 0.1);
    --transparent-colour-01: rgba(0, 0, 0, 0.1);
    --transparent-colour-02: rgba(106, 89, 209, 0.1);
    --line-color: #d7d7d7;

    /*===========Color Filter==========*/
    --color-filter: invert(1);

    /*===========Box Shadow==========*/
    --box-shadow: 0px 0px 20px rgb(0 0 0 / 10%);

    /*===========Font size==========*/
    --small-font-size: 0.9em;
    --normal-font-size: 1em;

    /*=========Scroll bar colours========*/
    --scroll-bar-color: #c5cadf;
    --scroll-thum-color: #70768a;
    --scroll-thum-hover-color: #454f6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--first-color);
    background: var(--body-bg-color);
    margin: 2rem 0 0 0;
    transition: .5s ease;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    background: linear-gradient(to top, transparent 0%, black 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .9;
}

#image {
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

#image.fade-out {
    opacity: 0;
}


/*=======Dark Theme========*/
.dark-theme {
    background: var(--first-color);
    color: var(--body-bg-color);
}


.dark-theme .nav-menu-btn,
.dark-theme .nav-close-btn {
    background-color: #fff;
    border-radius: 100%;
}

.dark-theme .nav-items a {
    color: var(--body-bg-color);
}

.dark-theme h1 {
    background: linear-gradient(to top, transparent 0%, white 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .2;
}

.dark-theme .nav-bar .logo {
    margin-top: 10px;
}

.dark-theme .home-container .info p {
    color: var(--forth-color);
}

.dark-theme .home .scroll-down {
    color: var(--body-bg-color);
}

.dark-theme .about-info .description p {
    color: var(--forth-color);
}

.dark-theme .contact-form input,
.contact-form textarea {
    color: var(--body-bg-color);
}

.dark-theme .contact-right p {
    color: var(--body-bg-color)
}

.dark-theme ::placeholder {
    color: var(--body-bg-color)
}

.dark-theme .edu-list .item,
.dark-theme .bars .info {
    color: var(--first-color)
}

.dark-theme .project-model-body {
    background: #0a0c43;
}

/*=======Scroll Bar========*/
::-webkit-scrollbar {
    width: 10px;
    background: var(--scroll-bar-color);
}

::-webkit-scrollbar-thumb {
    background: var(--scroll-thum-color);
    border-radius: 2em;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scroll-thum-hover-color);
}


/*======Header=======*/
header {
    z-index: 99999;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(20px);
    transition: .6s ease;
}

header.sticky {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
}

.nav-bar {
    position: relative;
    height: calc(4rem + 1rem);
    max-width: 1250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    transition: .6s ease;
}

header.sticky .nav-bar {
    height: calc(3rem + 3rem);
}

.nav-bar .logo {
    color: var(--first-color);
    font-size: 1.3cm;
    font-weight: 600;
}

.nav-bar img {
    width: 150px;
    cursor: pointer;
}

.nav-items a {
    color: var(--first-color);
    font-size: var(--normal-font-size);
    font-weight: 500;
}

.nav-items a:not(:last-child) {
    margin-right: 50px;
}

.nav-items a:hover {
    color: var(--second-color);
}

#icon {
    width: 30px;
    cursor: pointer;
    margin-bottom: -7px;
}

.nav-menu-btn {
    display: none;
}

/*=============HOME SECTION=============*/
.home {
    position: relative;
    max-width: 1250px;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 2rem;
    flex-direction: column;
}

.home .home-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.home-container .media-icons {
    display: flex;
    flex-direction: column;
    margin-right: 40px;
}

.home-container .media-icons a {
    color: var(--second-color);
    font-size: 1.5em;
    margin: 10px 0;
}

.home-container .media-icons a:hover {
    color: var(--hover-color);
}

.home-container .info h2 {
    font-size: 4em;
    font-weight: 600;
    line-height: 70px;
}

.home-container .info h3 {
    color: var(--third-color);
    font-feature-settings: 1.3em;
    font-weight: 600;
    line-height: 50px;
}

.home-container .info p {
    color: var(--third-color);
    font-size: var(--normal-font-size);
    max-width: 350px;
}

.btn {
    background: var(--second-color);
    color: #fff;
    font-size: var(--normal-font-size);
    font-weight: 500;
    display: inline-block;
    margin-top: 25px;
    padding: 20px 30px;
    letter-spacing: 1px;
    border-radius: 10px;
}

.btn:hover {
    background: var(--hover-color);
}

.home-container .home-img {
    position: relative;
}

.home-container .home-img img {
    width: 90;
    transform: translate(0, 0);
}

.home .scroll-down {
    color: var(--first-color);
    font-size: var(--normal-font-size);
    font-weight: 500;
    margin-top: 20px;
}

.home .scroll-down i {
    color: var(--second-color);
    font-size: 1.2em;
    animation: arrow-down ease 2s infinite;
}

@keyframes arrow-down {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(10px);
    }
}

/*=========Common sheet style=========*/
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section {
    position: relative;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    padding: 6rem 2rem 2rem;
}

.sub-section {
    position: relative;
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    padding: 6rem 0;
}

.section-title-01 {
    font-size: 4.5em;
    font-weight: 800;
    margin-bottom: 2rem;
    --webkit-background-clip: text;
    --webkit-text-fill-color: transparent;
    opacity: .1;
}

.section-title-02 {
    font-size: 2.5em;
    font-weight: 700;
    transform: translateY(-50px);
}

.section-title-02:before {
    content: '';
    position: absolute;
    height: 5px;
    bottom: 0;
    background: var(--second-color);
}

.about-heading::before {
    width: 190px;
}

.skills-heading::before {
    width: 400px;
}

.projects-heading::before {
    width: 160px;
}

.contact-heading::before {
    width: 160px;
}

.container {
    position: relative;
    flex-direction: column;
}

/*===========About section========*/
.about .container .content {
    column-gap: 150px;
    width: 100%;
}

.about-img {
    position: relative;
}

.about-img img {
    max-width: 100%;
    min-width: 500px;
    border-radius: 10px;
}

.about-info .description {
    max-width: 600px;
}

.about-info .description h3 {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-info .description h4 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-info .description h4 span {
    color: var(--second-color);
}

.about-info .description p {
    color: var(--third-color);
    font-size: var(--normal-font-size);
    margin-bottom: 15px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--line-color);
}

.about-info .professional-list {
    display: flex;
    column-gap: 30px;
}

.about-info .professional-list .list-item {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 20px;
    margin-bottom: 20px;
}


.about-info .professional-list .list-item h3 {
    font-size: 2.5em;
    font-weight: 700;
}

.about-info .professional-list .list-item span {
    color: var(--third-color);
    font-size: var(--small-font-size);
}

/*======Skills Section=========*/
.skills .container .content {
    width: 100%;
}

.skills-description {
    max-width: 700px;
    margin-bottom: 50px;
}

.skills-description h3 {
    font-size: 2em;
    margin-bottom: 5px;
}

.skills-info {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 250px;
    margin: 0 auto;
}

.skills-info h4 {
    margin-bottom: 20px;
}

.skills-info h4 label {
    background: var(--second-color);
    color: #fff;
    font-size: var(--normal-font-size);
    font-weight: 400;
    padding: 5px 15px;
    border-radius: 5px;
}

.education-all {
    margin-bottom: 80px;
}

.edu-list .item {
    background: var(--card-bg-color);
    box-shadow: var(--box-shadow);
    border-bottom: 3px solid var(--second-color);
    padding: 20px;
    margin-top: 15px;
    border-radius: 6px;
    transition: .3s ease;
}

.edu-list .item .year {
    font-size: var(--small-font-size);
    margin-bottom: 5px;
}

.edu-list .item p {
    color: var(--third-color);
    font-size: var(--small-font-size);
}

.edu-list .item p span {
    color: var(--first-color);
    font-size: var(--normal-font-size);
    font-weight: 500;
}

.edu-list .item i {
    color: var(--first-color);
    font-size: 1 em;
    margin-right: 5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    background: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100px;
    transition: transform 0.3s ease;
    border-bottom: 3px solid var(--second-color);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 20px rgba(189, 186, 186, 0.912);
}

.skill-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--first-color);
    line-height: 1.2;
}



/* PROJECTS SECTION */
.projects .container .content {
    width: 100%;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 100%;
    gap: 35px;
    margin: 0 auto;
}

.projects-list .img-card {
    position: relative;
    max-width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border-bottom: 5px solid var(--second-color);
    cursor: pointer;
}

.projects-list .img-card .overlay {
    transition: 1s ease;
    width: 100%;
}

.projects-list .img-card:hover .overlay {
    z-index: 777;
    position: absolute;
    width: 100%;
    height: 100%;
    margin-top: 0px;
    background: rgba(0, 0, 0, 0.5);
}

.projects-list .img-card .info {
    z-index: 777;
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 20px;
    color: var(--modal-bg-colour);
    transform: translateY(20px);
    opacity: 0;
    transition: .5s ease;
}

.projects-list .img-card:hover .info {
    transform: translateY(0);
    opacity: 1;
}

.projects-list .img-card .info h3 {
    font-size: 1.5em;
}

.projects-list .img-card .info span {
    font-size: 1.2em;
}

.projects-list .img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;

}

.project-model {
    z-index: 999999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--transparent-colour-01);
    backdrop-filter: blur(20px);
    visibility: hidden;
    opacity: 0;
    transition: .3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-model-body {
    position: relative;
    max-width: 40%;
    max-height: 90%;
    padding: 40px;
    background: var(--modal-bg-colour);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    transform: translateY(-50px);
    transition: .5s ease;
    margin: 0;
}

.project-model.active {
    visibility: visible;
    opacity: 1;

}

.project-model.active .project-model-body {
    transform: translateY(0);
}

.project-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    margin: 20px;
    cursor: pointer;
}

.project-model-body h3 {
    font-size: 1.5em;

}

.project-model-body img {
    border-radius: 10px;
    margin: 20px auto;
    display: block;
}

.horizontal-img {
    width: 100%;
    height: 250px;
}

.vert-img {
    width: 60%;
    height: 300px;
}

/*===========Contact section===========*/
.contact .container .content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.contact-left h2 {
    font-size: 2.1em;
    font-weight: 800;
    margin-bottom: 40px;
}

.contact-list li {
    margin-bottom: 40px;
}

.contact-list li h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-list li h3 i {
    color: var(--second-color);
    font-size: 1.3em;
    margin-right: 10px;
}

.contact-list li span {
    color: var(--third-color);
    margin-left: 40px;
}

.contact-list li span a {
    color: var(--third-color);
}

.contact-right p {
    color: var(--first-color);
    font-size: 1.6em;
    margin-bottom: 30px;
}

.contact-right p span {
    color: var(--second-color);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    border: none;
    color: var(--first-color);
    background: var(--transparent-colour-02);
    font-size: var(--normal-font-size);
    margin-bottom: 20px;
    padding: 15px 40px 40px 20px;
    border-radius: 5px;
}

.contact-form textarea {
    width: 100%;
    resize: none;
}

::placeholder {
    color: var(--first-color);
}

.contact-form .first-row input {
    width: 100%;
}

.contact-form .second-row {
    display: flex;
    justify-content: space-between;
}

.contact-form .second-row input {
    width: 48%;
}

.contact-form .btn {
    border: none;
    margin-top: 0;
    border-radius: 5px;
    cursor: pointer;
}

/*=======Footer===========*/
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: var(--second-color);
    width: 100%;
    margin-top: 50px;
    padding: 3rem 2rem;
    color: #fff;
}

footer a {
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1250px;
}

.footer-container .about img {
    width: 250px;
    opacity: .8;
}

.footer-container .about p {
    font-size: var(--normal-font-size);
    font-weight: 300;
    margin-bottom: 30px;
}

.footer-container .info,
.footer-container .follow {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.footer-container .info h3,
.footer-container .follow h3 {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 30px;
}

.footer-container .info ul,
.footer-container .follow ul {
    display: flex;
}


.footer-container .info a {
    margin: 20px;
}

.footer-container .follow a {
    font-size: 1.5em;
    margin: 20px;
}

.footer-copyright p {
    font-size: var(--normal-font-size);
    font-weight: 300;
    margin-top: 50px;
}

#progress {
    position: fixed;
    bottom: 20px;
    right: 5vh;
    height: 50px;
    width: 50px;
    display: none;
    place-items: center;
    border-radius: 50%;
    transition: opacity 0.3s, background-color 0.3s;
    box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .3),
        -4px -4px 6px 0 rgba(116, 125, 136, .2),
        inset -4px -4px 6px 0 rgba(255, 255, 255, .2),
        inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
    cursor: pointer;
}

#progress:hover {
    opacity: 1;
    background-color: #df87ef;
    animation: animate 1s linear infinite;
}

@keyframes animate {
    50% {
        transform: translateY(-8px);
    }
}

#progress-value {
    display: block;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    background-color: rgb(104, 98, 232);
    background: linear-gradient(90deg, rgb(159, 157, 235) 0%, rgb(212, 153, 222) 39%, rgb(253, 199, 134) 100%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: black;
}

/* =============Media Queries =====================*/
@media screen and (max-width: 1070px) {

    /* ===NAV BAR=== */
    .navigation {
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--transparent-colour-01);
        visibility: hidden;
        opacity: 0;
        transition: .3s ease;
    }

    .navigation.active {
        visibility: visible;
        opacity: 1;
    }

    .nav-items {
        position: relative;
        background: var(--modal-bg-colour);
        width: 600px;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 20px;
        padding: 40px;
        border-radius: 10px;
        box-shadow: var(--box-shadow);
        transform: translateY(-50px);
        transition: .3 ease;
    }

    .navigation.active .nav-items {
        transform: translateY(0);
    }

    .nav-items a {
        margin: 15px 50px;
    }

    .nav-close-btn {
        position: absolute;
        background: url(images/close-icon.png)no-repeat;
        background-size: 12px;
        background-position: center;
        width: 40px;
        height: 40px;
        top: 0;
        right: 0;
        cursor: pointer;
        margin: 10px;
    }

    .nav-menu-btn {
        background: url(images/nav-menu.png)no-repeat;
        background-size: 30px;
        background-position: center;
        width: 40px;
        height: 40px;
        padding-right: 15px;
        cursor: pointer;
        display: block;
    }

    #icon {
        margin-top: 15px;
    }

    /* =========HOME SECTION======= */
    .home .container .content {
        font-size: 0.85rem;
    }

    /* =========ABOUT SECTION========= */
    .about .container .content {
        display: grid;
        width: 100%;
        row-gap: 20px;
    }

    .about-img img {
        min-width: 0;
        width: 100%;
    }

    .about-info {
        min-width: 0;
        width: 100%;
    }

    .about-info .professional-list {
        flex-direction: column;
    }

    .about-info .professional-list .list-item {
        justify-content: start;
    }

    /*========== SKILLS SECTION============ */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skill-item {
        width: 100%;
    }

    /*========== CONTACT SECTION========= */
    .contact .content {
        flex-direction: column;
        font-size: 0.9rem;
    }

    .contact .contact-left {
        margin-bottom: 40px;
    }

    .contact-form .second-row {
        flex-direction: column;
    }

    .contact-form .second-row input {
        width: 100%;
    }

    /* =========FOOTER========= */
    footer .footer-container {
        flex-direction: column;
    }

    .footer-container .about,
    .footer-container .info {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: 50px;
    }

    .footer-container .info ul {
        align-items: center;
        flex-direction: column;
    }

    .footer-container .info ul li {
        margin: 5px 0;
    }

    .footer-container .hr {
        width: 100%;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0 22px;
    }

    /* ==========DARK THEME ====================*/
    .dark-theme .nav-items {
        background: #0a0c43;
    }
}

@media screen and (max-width: 730px) {
    body {
        margin: 5rem 0 0 0;
    }

    #icon {
        margin-top: 15px;
    }

    .section-title-01 {
        font-size: 3em;
    }

    .section-title-02 {
        font-size: 2em;
        transform: translateY(-65px);
    }

    .about-heading::before {
        width: 150px;
    }

    .skills-heading::before {
        width: 320px;
    }

    .projects-heading::before {
        width: 130px;
    }

    .contact-heading::before {
        width: 130px;
    }

    .home .home-container {
        display: grid;
    }

    .home-container .home-img {
        position: absolute;
    }

    .home-container .home-img img {
        width: 90%;
        transform: translate(30px, -220px);
    }

    .home .home-container .info {
        font-size: 0.8rem;
    }

    .media-icons {
        margin-bottom: 80px;
    }

    .dark-theme .nav-items {
        background-color: #0a0c43;;
    }

    .projects-list {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .projects-list .img-card {
        width: 90%;
    }

    .project-model-body {
        width: 90%;
        padding: 20px;
    }

    .project-model-body {
        width: 95vw;
        max-width: 600px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
        transform: translateY(0);
        margin-top: 5vh;
    }

    .project-model-body img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 20px auto;
        display: block;
    }

    .projects-list {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .projects-list .img-card {
        width: 98%;
    }

    /*========== SKILLS SECTION============ */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-item {
        width: 100%;
    }
}