@import url(https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Train+One&display=swap);
@import url(https://fonts.googleapis.com/css?family=Londrina+Shadow:regular);
:root{
    --html: #E44D26;
    --css: #1758A7;
    --js: #FFC107;
    --ts: #3178C6;
    --react: #61dafb;
    --github: #000;
    --git: #f34f29;
    --node: #000;
    --background1: rgba(0, 0, 0, 0.5); 
    --background2: rgba(0, 0, 0, 0); 
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
}
html {
    font-size: clamp(12px, 2vw, 18px);
    overflow-x: hidden;
}
html, body{
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}
/* Media Queries for Responsive Design */
@media (max-width: 350px) {
    .sidebar { font-size: 0.8rem; }
    .lang { min-width: 60px; }
}
/*Small Devices*/
@media(max-width: 480px){
    .sidebar{
        max-width: 100vw;
        min-width: 0;
        width: 100vw;
    }
    #bar1, #bar2, #bar3, #bar4, #bar5, #bar6, #bar7 {
        font-size: 0.7rem;
    }
    .lang {
        width: 98%;
        min-width: 0;
    }
    .myProgress{
        max-width: 95%;
    }
    .menu-button{
        display : block !important;
    }
    
}  

@media(max-width: 600px){
    .calcExplain{
        font-size: 0.4rem;
    }
}
/*Medium Devices*/
@media(max-width: 700px){
    html{
    font-size: 14px;
    }
    header{
        padding-top: 120px;
        font-size: 1.5rem;
    }
    .hideOnMobile {
        display : none;
    }
    .menu-button{
        display : block;
    }
    .socials {
        width: 40px;
        margin: 12px 4px 0 4px;
    }
    .together{
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 1rem;
    }
    .calcIMG,
    .calcExplain {
        margin: 0 auto;
        box-sizing: border-box;
    }
    .calcExplain{
        font-size: 0.2em;
    }
    .calc {
        width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
}

/*Large Devices*/
@media (max-width: 991px) {
    header { font-size: 1.2rem; }
    .lang { min-width: 80px; max-width: 140px; }
    html{
        font-size: 15px;
    }
    .languages{
        gap: 1rem;
        padding: 0.5rem;
        max-width: 75%;
        grid-row: 8;
        grid-column: 1;
        place-items: center;
    }
    .lang{
        min-width: 100px;
        max-width: 180px;
    }
    .together{
        font-size: 80%;
        width: 100vw;
    }
}
/* Extra Large Devices */
@media (min-width: 1200px) {
    .languages { width: 1400px;}
    .lang { min-width: 90px; max-width: 160px; }
    .together{
        font-size: 200%;
        width: 100%;
    }
    .calcIMG{
        width: 100%;
        height: 100%;
    }
    .together{
        gap: 0.3em;
    }
}



/*media queries end*/
body {
    font-family: 'Roboto Mono';
    
}
/* Nav start */

nav {
    background: rgba(0, 0, 0, 0.15);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid white;
    position: fixed;
    width: 100%;
    transition: top 0.5s
}
nav.hideNavbar {
    display: none;
}
nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 2.2vh;
    font-weight: bold;
}
nav li{
    height: 10vh;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
nav li:first-child {
    margin-right: auto;
}
nav a, .sidebar a {
    padding: 1em 2em;
    font-size: 1.1em;
}
.menu-button svg { width: 36px; height: 36px; }
#NH{
    font-family: 'Londrina Shadow', cursive;
    font-size: 8vh; 
    color: white;
    text-decoration: none;
    text-align: center;
    margin-left: 16%;
    padding: 0px;
}
nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
}
nav a:hover {
    background: lightgray;
}
nav .sidebar li a:hover{
    transform: scale(1.01);
}
.where{
    max-width: 100%;
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sidebar {
    position: fixed;
    left: auto;
    top: 0;
    right: 0;
    height: 100vh;
    width: 60vw;
    min-width: 180px;
    max-width: 320px;
    z-index: 999;
    background: lightgray;
    box-shadow: rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    overflow-x: hidden;
}
.sidebar[style*="display: flex"] {
    pointer-events: auto;
    opacity: 1;
}
.sidebar li {
    width: 100%;
    height: 5vh;
}
.sidebar a {
    width: 100%;
}
.menu-button{
    display : none;
}

/* Nav Finished*/
/*Rest of page starts*/

html, body {
    height: 100%;
    width: 100%;
    background: none;
}
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* ensures it stays behind your content */
}

header{
    color : rgba(255, 255, 255, 0.8);
    font-size: 3vh;
    display: block;
    text-align: center;
    padding-top: 35vh;
    height: 100vh;
}
/* About Section*/
#About {
    width: 100%;
    text-align: center;
    height: 50%;   
    padding-top: 60px;
    color: white;
    background: linear-gradient(360deg, var(--background1) 75%, var(--background2));
    border: none;
}

/* Responsive bar container */
.languages {
    width: 100%;
    max-width: 80%;
    margin: 20px auto 0 auto;
    gap: 2rem;
    padding: 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
}
.languages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}
.lang {
    flex: 1 1 160px;
    min-width: 120px;
    max-width: 220px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
/* Responsive images */
img, .langIMG{ 
    max-width: 100%;
    height: auto;
}
.langIMG {
    width: 50%;
    min-width: 40px;
    max-width: 80px;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Responsive progress bar */
.myProgress {
    width: 100%;
    max-width: 180px;
    min-width: 80px;
    height: 22px;
    margin: 0 auto;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

/* Responsive bar text */
#bar1, #bar2, #bar3, #bar4, #bar5, #bar6, #bar7, #bar8 {
    font-size: 0.9rem;
    padding-right: 4px;
    border-radius: 5px;
}
#bar1{ 
    background: var(--html);
}
#bar2 {
    background: var(--css);
}
#bar3 {
    background: var(--js);
}
#bar4 {
    background: var(--ts);
}
#bar5 {
    background: var(--react);
    color: #000;
}
#bar6{
    background: var(--github);
}
#bar7 {
    background: var(--git);
}
#bar8 {
    background: var(--node);
    color: #fff;
}
/*Responsive Bars Finish*/
/*About Me Finishes */
#Projects {
    border: none !important;
    width: 100%;
    height: 70em;   
    padding-top: 40px;
    color: white;
    background: linear-gradient(180deg, var(--background1) 10%, var(--background2));
    margin-bottom: 200px;
}
#Projects h1{
    text-align: center;
}
.calc{ 
    height: 13rem;
    width: 100%;
    z-index: 10;
    margin-top: 70px;
    margin-left: 0;
    text-align: center;
}
.together{
    height: 11.5em;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
    aspect-ratio: 1 / 1;
}
.projIMG:hover {
    scale: 1.01;
}
.projIMG,
.explain {
    height: 100%;
    width: 100%;
    max-width: 400px;
    min-width: 180px;
    min-height: 180px;
    max-height: 412px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 60px;
}

.explain{
    padding: 20px;
    font-size: 47%;
    border: 3px solid var(--react);
    border-radius: 2%;
}
.projIMG img{
    border-radius: 2%;
}
.together p{
    overflow-y: auto;
    cursor: default;
    scroll-behavior: smooth;
}
.together p::-webkit-scrollbar {
    width: 10px;
    ;
} 
.together p::-webkit-scrollbar-track {
    background: transparent;
}
.together p::-webkit-scrollbar-thumb {
    background: var(--react);
    z-index: -10;
}
.project1{
    height: 50%;
}
.project2{
    height: 50%;
    text-align: center;
}
/*Footer Styles and everything inside*/

footer {
    height: 200px;
    text-align: center;
    background: rgb(137, 102, 102)
}

#Contact {
    margin-top: 0px;
    padding-top: 15px;
}
.socials {
    width: 65px;
    margin: 20px 20px 0 20px;
}

.name {
    font-family: 'Train One';
}
.stack{
    font-family: 'Roboto Mono';
}
.about-me{
    font-size: 1.2rem;
    margin: 1rem;
    padding: 1rem;
}
/*Footer Finish*/ 