/* 
*
*
z-index reference: 
(frontmost to backmost order)
    1. button (.topBtn: 99)
    2. images (.img(0-4): 90)    
    3. paragraph text (p: 4)
    4. cards (.cards: 3)
    5. dashboard (.dashboard: 3)
    6. glass (.glass: 2)
    7. background (#bubbles: 1)
*
*
*/
/*
*
* Pixel Dimensions for image resizing:
* Header Display image: 1200 pixels wide (height to maintain aspect ratio)
* Hero Img: 1200
* X Large: 640 x 480
* Large: 320 x 240
* Medium: 150 x 200
* small: 100 x 100
* Thumbnails: 80 x 60
* x small: 40 x 40
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
body {
    overscroll-behavior: none;
}
main {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(to right top, #65dfc9, #6cdbeb);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass {
    background: whitesmoke;
    min-height: 90vh;
    width: 80%;
    border-radius: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: inline-block;
    padding-block-end: 10%;
    z-index: 2;
    overflow-x: hidden;
}

.dashboard {
    display: flex;
    align-items: center;
    background: linear-gradient( to right bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    border-radius: 2rem;
    position: relative;
    flex-direction: column;
    z-index: 3;
}

.user {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img {
    margin-top: 5px;
    height: 150px;
    width: 150px;
    z-index: 90;
}

.img1 {
    height: 370px;
    width: 370px;
    z-index: 90;
    border-radius: 50%;
    box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
}

.img2 {
    height: 105px;
    width: 105px;
    border-radius: 10px;
    object-fit: contain;
    z-index: 90;
}

.img3 {
    height: 13rem;
    width: 13rem;
    border-radius: 50%;
    z-index: 90;
}

.img4 {
    height: 50px;
    width: 50px;
    object-fit: contain;
    z-index: 90;
    border-radius: 50%;
    opacity: 60%;
    transition: transform 0.3s;
}

.img4:hover {
    opacity: 100%;
    transform: translateY(-15px);
}

h1 {
    color: #31598db4;
    font-weight: 600;
    font-size: 2rem;
}

h3 {
    color: #426696;
    font-weight: 600;
    opacity: 0.8;
}

h2 {
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem;
    opacity: 0.8;
    color: #658ec6;
}

p {
    color: #658ec6;
    font-weight: 500;
    opacity: 0.8;
    text-align: center;
    z-index: 4;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /*Is this needed?*/
    position: sticky;
    top: 0;
}

/*Horizontal Menu Items*/
.links {
    display: flex;
    padding: 0.5rem 1rem;
    align-items: center;
}

 .links a{
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem;
    opacity: 0.8;
    color: #658ec6;
    text-align: center;
    text-decoration: none;
}

.links a:hover {
    color: #225db1;
    font-weight: 600;
}

/*Hide Hamburger*/
#hamnav label, #hamburger {
    display: none;
}

.heading {
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.home {
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    padding: 0% 0% 15% 0%;
}

#designs .card {
    border-radius: 50%;
    /*background-image: ;*/
    background-clip: padding-box;
}

#whatIdo .card {
    height: 10rem;
    width: 10rem;
    align-items: center;
    border-radius: 50%;
}

#about p {
    text-align: justify;
    text-justify: inter-word;
    padding: 0% 2% 0% 2%;
}

.sections {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 5% 5%;
}

.sections:nth-child(odd) {
    flex-direction:row-reverse;
}

.cards {
    display: flex;
    justify-content: space-evenly;
    z-index: 3;
}

.card {
    flex-direction: column;
    display: flex;
    background: linear-gradient( to left top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
    border-radius: 1rem;
    margin: 0.5rem 0rem;
    padding: 2rem;
    max-height: 17rem;
    margin-bottom: 1rem;
    box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
    transition: transform 0.3s;
    align-items: center;
}

.card:hover {
    transform: translateY(-15px);
}

.progress {
    background: linear-gradient(to right top, #65dfc9, #6cdbeb);
    width: 100%;
    height: 20%;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: "";
    width: 100%;
    height: 100%;
    background: rgb(236, 236, 236);
    position: absolute;
    left: 97%;
}

.progress#js::after {
    left: 75%;
}

.progress#py::after {
    left: 60%;
}

.progress#RPi::after {
    left: 65%;
}

.progress#SmartCal::after {
    left: 15%;
}  

.progress#Arduino::after {
    left: 10%;
}

.progress#cpp::after {
    left: 35%;
}

.progress#csharp::after{
    left: 35%;
}

.percentage {
    font-weight: bold;
    background: linear-gradient(to right top, #65dfc9, #6cdbeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/********* Resume Styles **************/

.home > .sections {
    display: block;
}

.home > .sections > p {
    text-align: justify;
    text-justify: inter-word;
}  


/*Home Icon in Resume menu*/
#navIcons {
    font-size: 1.2rem;
    color: #658ec6;
    padding-right: 0.5rem;
    cursor: pointer;
}

#icons {
    font-size: 3rem;
    color: #658ec6;
    padding: 5% 0% 5% 0%;
}

.contactIcons {
    display: flex;
    justify-content: space-evenly;
    padding-bottom: 10%;
}

#topBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color:#6cdaeb7e; /* or this color #65dfc9*/
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
  }
  
  #topBtn:hover {
    background-color: #65dfc986; /* Add a dark-grey background on hover */
  }

/*Background Style & Animations*/
#bubbles{
    background: #65dfc92c;
    background: linear-gradient(
    to right bottom,
    rgba(255, 255, 255, 0.438),
    rgba(255, 255, 255, 0)
    );
    position: fixed;
    border-radius: 50%;
    box-shadow: inset -8px -12px 12px #285e5413;
    z-index:1;
    overflow: hidden;
}

.circle1 {
    top: -15%;
    right: -15%;
    height: 20rem;
    width: 20rem;
}
.circle2 {
    top: -10%;
    left: 5%;
    height: 15rem;
    width: 15rem;
}
.circle3 {
    top: 5%;
    right: 15%;
    height: 10rem;
    width: 10rem;
}
.circle4 {
    bottom: 30%;
    left: -1%;
    height: 10rem;
    width: 10rem;
}
.circle5 {
    bottom: 16%;
    right: -5%;
    height: 20rem;
    width: 20rem;
}
.circle6 {
    bottom: 1%;
    left: 5%;
    height: 5rem;
    width: 5rem;
}
/*media queries @ 950px*/

@media screen and (max-width: 950px) and (min-width: 300px) {
    
    /*Show Hmaburger Icon*/
    #hamnav label {
        display: block;
        font-size: 2rem;
        color: #658ec6;
        padding: 2%;
        cursor: pointer;
    }

    #hamnav label:hover {
        color:#6c95ce86;
    }

    /*Break down menu items into vertical*/
    #hamitems a {
        display: block;
        width: 100%;
    }

    /*Toggle Show/Hide Menu*/
    #hamitems {
        display: none;
    }

    #hamnav input:checked ~ #hamitems {
        display: block;
    }

    .img1 {
        height: 200px;
        width: 200px;
        z-index: 90;
        border-radius: 50%;
        box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
    }

    .home {
        display: grid;
        text-align: center;
        justify-content: center;
        flex-direction: row;
        padding-top: 10%;
        padding-bottom: 10%;
    }

    #skill .card {
        width: 230px;
    }

    #whatIdo > .cards {
        display: flex;
        flex-wrap: wrap;
    }

    #whatIdo > .cards > .card {
        text-align: center;
        justify-content: center;
        width: 200px;
        height: 200px;
    }

    #designs > .cards {
        display: flex;
        flex-wrap: wrap;
    }

    #designs > .cards > .card {
        text-align: center;
        justify-content: center;
        width: 200px;
        height: 200px;
    }

    #projects > .cards > .card {
        width: 230px;
    }

    #about p {
        text-align: center;
    }

    .sections {
        display: block;
        padding: 5%;
    }

    .cards {
        display: flex;
        flex-wrap: wrap;
        padding: 5%;
        justify-content: space-evenly;
        z-index:3;
    }
    
    .card {
        display: flex;
        flex-direction: row;
    }
    
    #bubbles{
        background: #65dfc907;
        background: linear-gradient(
        to right bottom,
        rgba(255, 255, 255, 0.205),
        rgba(255, 255, 255, 0)
        );
        position: fixed;
        border-radius: 50%;
        box-shadow: inset -8px -12px 12px #285e5413;
        z-index:1;
        overflow: hidden;
    }

}

@media screen and (max-width: 580px) and (min-width: 300px) {

    .img2 {
        height: 50px;
        width: 50px;
    }

    .card {
        width:auto;
        height: auto;
    }
    .percentage {
        display: none;
    }
    
    .sections {
        display: block;
        justify-content: center;
        align-items: center;
        padding: 10% 2% 20% 2%;
    }
}