@import url("./keyFramesCSS/keyframe.css");
@import url("./NavElements/certificates/certificates.css");
@import url("./NavElements/services/services.css");
@import url("./NavElements/contactMe/contactMe.css");
@import url("./NavElements/about/about.css");


:root {
    --BtoW: #000;
    --WtoB: #fff;
    --blueToGray: blue;
    --grey: #aaa;
}

html {
    font-size: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('./Images/bgimg.webp');
    overflow-x: hidden;
    transition: background-color .5s;
    height: 100vh;
    margin: 0;
    user-select: none;
}

header {
    width: 100%;
    height: 4rem;
}

#dark-mode-icon {
    color: var(--WtoB);
    background-color: var(--BtoW);
    border: 2px solid var(--WtoB);
    transform: scale(1);
    position: absolute;
    right: 0;
    margin: 12px 15px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px 5px var(--WtoB);
    animation: shadowBeatAnimation 1.5s linear .1s infinite alternate, Beat 1.5s linear .1s infinite alternate;
}

#dark-mode-icon:active {
    color: var(--BtoW);
    background-color: var(--WtoB);
    border: 2px solid var(--BtoW);
}

strong {
    color: red;
}

marquee {
    width: 100%;
    height: auto;
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 1;
    color: red;
    animation: colorChanging 2s linear infinite;
}

a {
    text-decoration: none;
}

nav {
    width: inherit;
    height: 4rem;
    background-color: var(--WtoB);
    position: fixed;
    border-bottom: 2px solid #dedede;
    z-index: 5;
}

#nav-bar {
    max-width: auto;
    list-style-type: none;
    display: flex;
    margin: 5px 5.5vw;
    justify-content: space-between;
    padding: .5vh 0;
    gap: 2vw;
    font-size: 1.8rem;
    line-height: 200%;
    cursor: pointer;
    position: fixed;
    right: 0;
}

#nav-bar>li>a {
    padding: 5px 10px;
    background: transparent;
    transition: background .5s, padding .3s;
    color: var(--BtoW);
}

#nav-bar>li>a:is(:hover, :focus) {
    color: var(--WtoB);
    padding: 5px 20px;
    background: blue;
    border-radius: 10px;
    cursor: pointer;
    text-shadow: 0 -2px 3px yellow;
}

#nav-bar>li>a:active {
    background-color: #fff;
    color: cyan;
}

.iconVisibility {
    display: none;
}

#logo>img {
    width: 20%;
    height: 75%;
    margin: 1%;
    position: absolute;
    cursor: pointer;
    left: 10px;
    filter: brightness(150%);
}

.Head {
    text-transform: capitalize;
    text-decoration-line: underline;
    font-size: 3rem;
    text-align: center;
    color: transparent;
    animation: colorChanging 5s linear infinite;
}

/* main */
#container {
    width: 90vw;
    height: 30vw;
    margin: 0 auto;
    position: relative;
    /*when image is going out of the this container element so that image is not visible.*/
    display: flex;
    box-sizing: border-box;
}

#text {
    width: 50vw;
    height: auto;
    line-height: 20px;
    font-size: 2rem;
    padding-top: 5vw;
    /* color: #000; */
    color: var(--BtoW);
    filter: brightness(110%);
}

#name {
    color: blue;
    text-decoration: underline;
    text-decoration-color: green;
    transition: font-size .2s;
}

#name:hover {
    font-size: 105%;
    text-shadow: 1px -1px #000,
        3px -3px cyan;
}

/* you can take image few pixels above from the bottom. for the border radient color at the bottom of the Image/Photo*/
#Photo {
    width: 40vw;
    height: 30vw;
    position: relative;
    padding: 0 -700px;
}

#Photo>#myPhoto {
    width: clamp(30vw, 50%, 35vw);
    height: 29.3vw;
    object-fit: fill;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    filter: brightness(1.1) drop-shadow(0px 0px 5px var(--BtoW));
    transform: scale(1);
    border-radius: 50% 50% 10% 10%;
    cursor: pointer;
    transition: filter .1s, transform .3s, top .5s;
}

#Photo>#myPhoto:hover {
    transform: scale(1.1);
    filter: brightness(1.11) drop-shadow(0px 0px 2px #fff) drop-shadow(0px 0px 10px yellow) drop-shadow(0px 0px 20px rgb(255, 238, 0));
    position: absolute;
    top: 1ch;
}

#bottom-gradient {
    width: 20vw;
    height: 20px;
    background: linear-gradient(90deg, red, orange, green, blue, indigo, violet);
    border-radius: 100vh;
    display: block;
    position: absolute;
    bottom: 3px;
    left: 14.5vw;
}

#container>#text>button {
    width: auto;
    height: auto;
    padding: 10px;
    font-size: 2rem;
    background-color: rgb(174, 255, 255);
    border-radius: 100vw;
    margin-left: 1vw;
    border: 2px solid transparent;
    transform: scale(1);
    transition: transform .2s;
}

#container>#text>button:hover {
    background-color: rgb(0, 255, 255);
    box-shadow: 0 10px 0 0 var(--BtoW);
    transform: scale(1.1);
}

#container>#text>button:active {
    background-color: rgb(0, 255, 255);
    box-shadow: 0 5px 0 0 var(--BtoW);
    transform: scale(1);
    filter: brightness(90%);
}

#container2 {
    max-width: 100vw;
    margin-top: 1cm;
    margin-bottom: 1cm;
}

#projects-list-container {
    max-width: 90%;
    margin: auto;
}

#projects-list {
    max-width: 90%;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff700;
    box-shadow: 0 0 30px #aaa;
    font-size: 1.5rem;
    border: 5px solid var(BtoW);
}

.projects-bar {
    max-width: 120%;
    margin-left: -50px;
    color: var(--BtoW);
    display: flex;
    justify-content: space-between;
    background-color: var(--WtoB);
    line-height: 10px;
    border-top: 2px solid #aaa;
    transition: background-color .2s;
}

.projects-bar:hover {
    background-color: #aaa;
    cursor: pointer;
}


.starting-bar {
    display: flex;
    column-gap: 30px;
    margin-left: 50px;
}

.ending-bar {
    line-height: 150px;
    margin-right: 3vw;
}

#projects-list>li a {
    color: var(--BtoW);
    text-decoration: underline;
    font-weight: bolder;
}

#projects-list>li a:hover {
    color: var(--WtoB);
}

#projects-list>li {
    list-style-type: none;
}

.project-image {
    width: 220px;
    height: 130px;
    border-radius: 10px;
    border: 5px solid var(--BtoW);
    box-shadow: 0 0 10px #aaa;
    margin: 10px .5vw;
    transition: all linear .2s;
}

/* footer */
footer {
    width: 100%;
    background-color: rgb(30, 30, 30);
    line-height: 3vw;
    font-size: 1rem;
    color: #777;
    position: relative;
    left: 0;
    bottom: 0;
    border-top: 3px solid #aaa;
    font-family: none;
    margin-top: 1rem;
    z-index: 5;
}

#app-logo {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    gap: 1vw;
    padding-top: 1.5vw;
}

#app-logo>img {
    width: 3vw;
    height: auto;
    margin-bottom: 1vh;
    border-radius: 50%;
    transform: scale(1);
    border: 2px solid var(--WtoB);
    transition: .1s transform ease-in;
    animation: Beat 1s linear .1s infinite alternate;
}

#app-logo>img:hover {
    transform: scale(1.3);
    box-shadow: 0 5px 0 0 var(--WtoB);
}

#footer-nav {
    width: 60vw;
    margin: auto;
    text-decoration: none;
    display: flex;
    justify-content: space-around;
}

#footer-nav>a {
    color: currentcolor;
    text-decoration-style: underline;
}

#git {
    text-align: center;
}

#git>a {
    text-decoration: none;
    color: currentcolor;
}

#copyright-text {
    width: 100%;
    height: auto;
    color: currentcolor;
    text-align: center;
    position: relative;
    bottom: 0;
}

#copyright-text:hover,
#footer-nav>a:hover,
#git:hover {
    color: var(--WtoB);
    text-decoration: underline;
    font-weight: bold;
}

/* styling on scroll bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 100vh;
    background-color: #dddddd;
    opacity: 1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #fff;
}


/* when the screen size will be in range(1200px) so that even this lines of code will be excuted */
@media screen and (max-width: 1200px) {

    :root {
        --blueToGray: #aaa;
    }

    html {
        font-size: 90%;
    }

    #nav-bar {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: -5px;
        left: -50px;
        background-color: #111;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        display: flex;
        flex-direction: column;
        justify-content: start;
    }

    #nav-bar a {
        padding: 8px 0px 32px;
        text-align: center;
        font-size: 1.8rem;
        color: #fff !important;
        text-shadow: 0 0 50px 70px #111;
        display: block;
        transition: 0.3s;
    }

    #nav-bar .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

    #nav-bar .closebtn:is(:hover, :active) {
        color: var(--grey);
    }

    #navIcon {
        color: var(--BtoW);
        font-size: 2.7rem;
        cursor: pointer;
        position: absolute;
        right: 0;
        margin-right: 25px;
    }

    #dark-mode-icon {
        margin: 10px 90px;
    }

    .iconVisibility {
        display: inline-block;
    }

    #sup-container {
        transition: margin-left .5s;
        padding: 16px;
    }

    #container {
        height: 32vw;
    }

    #text {
        padding-top: 4vw;
        font-size: 2.5vw;
    }
}



/* when the screen size will be in range(800px) so that even this lines of code will be excuted */
@media screen and (max-width: 800px) {
    html {
        font-size: 70%;
    }

    nav {
        width: 100%;
        height: 4rem;
        background-color: var(--WtoB);
        position: fixed;
        border-bottom: 2px solid #dedede;
        z-index: 5;
    }

    #dark-mode-icon {
        margin: 10px 75px;
        padding: 5px;
        font-size: 0.8rem;
    }

    #container {
        height: auto;
        flex-direction: column-reverse;
        padding-bottom: 20px;
    }

    #Photo {
        width: 100%;
    }

    #Photo>#myPhoto {
        max-width: 40%;
        height: 110%;
        position: absolute;
        right: 30%;
    }

    #bottom-gradient {
        width: 23vw;
        height: 2vh;
        left: 33.5vw;
        bottom: -25px;
    }

    #text {
        width: auto;
        margin: auto;
        font-size: 4vw;
    }

    #cards {
        display: flex;
        flex-direction: column;
        width: 80%;
    }

    .project-image {
        width: 22vw;
        height: 11vh;
    }

    #projects-list{
        font-size: 1.2rem;
    } 

    .card {
        width: 100%;
    }

    #summary{
        margin-right:0;
    }

    section#cards div.card div label b {
        right: 7vw;
    }

    progress {
        width: 85%;
    }

    .Head {
        margin: 110px 0 -30px 0;
    }
}

@media screen and (max-height: 450px) {
    #nav-bar {
        padding-top: 15px;
    }

    #nav-bar a {
        font-size: 18px;
    }
}