@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');







/* first experimenting with that loading animation this entire project is very messy FFF" */


#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

#all_blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* cant decide b/w 8 or 4 haha ALSO GRIDS LOWKEY SO AMAZING*/
    gap: 4px;
    margin-bottom: 30px;
}

.blocks {
    width: 12px;
    height: 12px;
    background: #333;
    animation: plusing_one_by_one_try 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s); /* thank you stackoverflow <3<3<3 */

}

/* .blocks:nth-child(1) { animation-delay: -1.4s; }
.blocks:nth-child(2) { animation-delay: -1.3s; }
.blocks:nth-child(3) { animation-delay: -1.2s; }
.blocks:nth-child(4) { animation-delay: -1.1s; }
.blocks:nth-child(5) { animation-delay: -1.0s; }
.blocks:nth-child(6) { animation-delay: -0.9s; }
.blocks:nth-child(7) { animation-delay: -0.8s; }
.blocks:nth-child(8) { animation-delay: -0.7s; }
.blocks:nth-child(9) { animation-delay: -0.6s; }
.blocks:nth-child(10) { animation-delay: -0.5s; }
.blocks:nth-child(11) { animation-delay: -0.4s; }
.blocks:nth-child(12) { animation-delay: -0.3s; }
.blocks:nth-child(13) { animation-delay: -0.2s; }
.blocks:nth-child(14) { animation-delay: -0.1s; }
.blocks:nth-child(15) { animation-delay: 0s; }
.blocks:nth-child(16) { animation-delay: 0.1s; } */

@keyframes plusing_one_by_one_try {
    0%, 40%, 100% { 
        background: #333;
        transform: scale(1);
    }
    20% { 
        background: #666;
        transform: scale(1.1);
    }
}

#init {
    color: #333;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

#bar_main {
    width: 200px;
    height: 2px;
    background: #111;
    margin-top: 20px;
    overflow: hidden;
}

#filling {
    height: 100%;
    background: #333;
    width: 0%;
    animation: filling_animation_experimental 2.5s ease-out forwards;
}

@keyframes filling_animation_experimental {
    to { width: 100%; }
}



















/* ::-webkit-scrollbar {
    display: none;
} */

::selection {
  background-color: #333;  
  color: #f5f5f5;         
}


::-moz-selection {
  background-color: #333;
  color: #f5f5f5;
}


  
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a; 
}

::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 6px;
  border: 3px solid #0a0a0a; 
}


::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}


* {
  scrollbar-width: thin;
  scrollbar-color: #333 #0a0a0a;
}



body {
    height: 100vh;
    background-color: #0a0a0a;
    font-family: 'JetBrains Mono', monospace;
    color: #666;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    font-size: 13px;
    line-height: 1.6;


    
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
  text-transform: lowercase; 
  transition: all 0.3s ease;

}



/*these are the fonts after this i decided to leave space for more (LIGHT theme waley fonts ) but yeah idk how to implement it efficiently with less efforts */

#title {
    color: #ccc;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 6px;
}


#heading {
    color: #333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    margin-bottom: 16px;
    font-weight: 600;
}

#smallTitle{
    color: #aaa;
    font-size: 13px;
}

#whiteText{
    color: #777;
    font-size: 12px;
}

#darkerText{
    color: #333;
    font-size: 10px;
    margin-top: 4px;
    letter-spacing: 0.5px;
    
}


#subTitle {
    color: #444;
    font-size: 12px;
    margin: 0;
}


















*, *::before, *::after {
    box-sizing: border-box;
}


#mainContainer{
    height: 100vh;
    padding: 2%;
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a;
    margin: 0 auto;
    margin-top: 0;
    padding-top:0;
    
    /* flex:1; */

}

header{
    
    /* background-color: aqua; */
    /* height: 100px; */
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top:20px;
    margin-top: 10px;
    padding-bottom:40px;

}


#textLeft{
    /* background-color: aliceblue; */
    /* this too :sob: */
    align-items: left;


}



#middleFiller{
    /* background-color:cadetblue; */
    flex: 1;
}

/* #svgRight{
    
    background-color: aqua;
    idk why i added this but this makes the box work so yeah...
    background-color: #0a0a0a;

} */

#svgBox{
    border: #444;
    border-width: 2px;
    border-style: solid;
    border-radius: 2px;
    height: 35px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;   
    text-transform: capitalize;
    user-select: none;
    -webkit-user-select: none; 
    -ms-user-select: none;     
    cursor: pointer;           
}

#svgBox:hover{
    background-color: rgba(255, 255, 255, 0.1);
}


#middle{
    display: flex;
    flex-direction: row;
    background-color: #0a0a0a;
    /* flex:1; */
    max-height: 600px;
    padding-bottom: 40px;
    flex:1;
    margin-top: 20px;

}

@media (max-width: 540px) {
    header {
        padding-top: 50px;
    }
    body{
        padding-top: 10px;
    }
    
    #middle {
    flex-direction: column;
    max-height: 1200px; /* FINALLY FIXED THIS ISSUE BASICALLY ON PHONES AND TABLETS THE RIGHT BOX WAS OVERFLOWING THAT WAS BECAUSE OF THE MAX HEIGHT BEING SET 600 EARLIER AND I FORGOT TO CHANGE IT YES YES YES SO NOW MAX HEIGHT IS DOUBLE THAT AMT EVEN THO ITS NOT NEEDED BUT JUST FOR THE SAKE OF IT */
    }

    #middleFiller60px {
    display: none;
    }

    #leftSide,
    #rightSide {
    width: 100%;
    }
    #rightSide{
    margin-top: 40px;
    }
}



#leftSide{
    
    /* background-color: pink; */
    flex:1;
    display: flex;  
    flex-direction: column;
}


#currentJSON{
    display: flex;
    flex-direction: column;
}

#projects{
    max-height: 250px;
    overflow-y: scroll;
    overflow: scroll;
    padding-right: 10px;
    scrollbar-gutter: stable;
}

#projectJSON{
    display: flex;
    flex-direction: column;
}

#projectJSONcontent{
    display: flex;
    flex-direction: column;
    margin-bottom: 2px;
    /* padding-left: 5px;
    padding-right: 5px; */
    padding: 10px
    
}

#projectJSONcontent:hover{

    background: rgba(255, 255, 255, 0.02);
    transform: translateX(7px);
    cursor: pointer;
}

#projectTextTop{
    align-items: center;
    display: flex;
    flex-direction: row;
}

#projectContent {
    color: #555;
    text-decoration: none;
    font-size: 12px;
    display: block;
    margin-bottom: 0px;
    transition: color 0.3s ease;
}

#projectTech{
    color: #333;
    font-size: 10px;
    margin-top: 2px;
    letter-spacing: 0.5px;
    
}


#middleFiller60px{
    width: 60px;
    /* background-color: aqua; */
}

#rightSide{
    display: flex;
    flex-direction: column;
    /* background-color: black; */
    flex:1;
}

#skills{
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    max-height: 200px;
    overflow-y: scroll;
    
}

#skillsJSON{
    display: flex;
    flex-direction: column;
}

#skillsJSONcontent{
    display: flex;
    flex-direction: row;
    border: 0px;
    border-bottom: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
    padding-top: 6px;
}

#skillsJSONcontent:hover{

    background: rgba(255, 255, 255, 0.02);
    transform: translateX(4px);
}

#links{
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    
}

#linksJSON{
    display: flex;
    flex-direction: column;

}

#linkText {
    color: #555;
    text-decoration: none;
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

#linkText:hover{
    
    color: #999;
    transform: translateX(2px);
}


#middleFiller40px{
    /* background-color: aqua; */
    height: 40px;
}

nav{
    /* background-color: blueviolet; */
    border: 0px;
    padding-top: 10px;
    border-top: solid;
    border-color: #333;
    border-width: 1px;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: flex-end;
    width: 100%;
    padding-bottom: 40px;

}


#leftNav{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-right: 10px;

}


#centerNav{
    flex: 1;
    display: flex;

    
}

#input {
    background: transparent;
    border: none;
    color: #ccc;
    font-family: inherit;
    font-size: 13px;
    flex: 1;
    outline: none;
    opacity: .5;
}


#rightNav{
    align-self: flex-end;
    opacity: .5;
    
}

#timeText{
    font-size: 10px;
}



/* ANIMATION TESTING NFEIYFJHLWHEWFGEUJS */

/* .flow {
  opacity: 0;
  transform: translateY(20px);
  animation: flowm 0.6s ease-out forwards;
  animation-delay: calc(var(--i) * 0.1s); 
} */

/* YE ANIMATE NHI HOGI JS MEIN SETTIMEOUT KARA HAI FOR 3-5SEC FOR THIS BECAUSE FIRST 3-5 SEC MEIN LOADING ANIMATION HOGI KEEP THIS IN MIND */

/* @keyframes flowm {
  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

.flow {
  opacity: 0;
  transform: translateY(20px);
}

.flow.animate {
  animation: flowm 0.6s ease-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes flowm {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#skillsJSONotherdesign{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#newJSONskill{
    color: #777;
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid #333;
    width: fit-content;
    margin: 4px;
    /* user-select: none; */
    /* -webkit-user-select: none;  */
    /* -ms-user-select: none;      */
    cursor: default;           
}



/* =========================
   LIGHT THEME with the help of ai
   as i m not wasting time making both the css 
   when i already made one <3
   ========================= */

body.light {
    background-color: #f5f5f5;
    color: #444;
}

/* Global */
body.light * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Selection */
body.light ::selection {
    background-color: #ddd;
    color: #111;
}

body.light ::-moz-selection {
    background-color: #ddd;
    color: #111;
}

/* Scrollbar */
body.light ::-webkit-scrollbar-track {
    background: #f5f5f5;
}

body.light ::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border: 3px solid #f5f5f5;
}

body.light ::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

body.light {
    scrollbar-color: #bbb #f5f5f5;
}

/* Loading screen */
body.light #loading {
    background: #f5f5f5;
}

body.light .blocks {
    background: #ccc;
}

body.light #init {
    color: #999;
}

body.light #bar_main {
    background: #e0e0e0;
}

body.light #filling {
    background: #999;
}

/* Typography */
body.light #title {
    color: #111;
}

body.light #subTitle {
    color: #666;
}

body.light #heading {
    color: #999;
}

body.light #smallTitle {
    color: #444;
}

body.light #whiteText {
    color: #555;
}

body.light #darkerText {
    color: #aaa;
}

/* Containers */
body.light #mainContainer {
    background-color: #f5f5f5;
}

body.light header,
body.light #middle,
body.light nav {
    background-color: #f5f5f5;
}

/* SVG theme toggle */
body.light #svgBox {
    background-color: #f5f5f5;
    border-color: #bbbbbb;
    color: #333;
}

body.light #svgBox:hover {
    background-color: #e0e0e0;
}

/* Projects */
body.light #projectJSONcontent:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light #projectContent {
    color: #444;
}

body.light #projectTech {
    color: #888;
}

/* Skills */
body.light #skillsJSONcontent {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light #skillsJSONcontent:hover {
    background: rgba(0, 0, 0, 0.04);
}

body.light #newJSONskill {
    color: #444;
    border-color: #bbb;
}

/* Links */
body.light #linkText {
    color: #444;
}

body.light #linkText:hover {
    color: #000;
}

/* Nav */
body.light nav {
    border-color: #ddd;
}

body.light #input {
    color: #111;
    opacity: 0.7;
}

body.light #rightNav {
    opacity: 0.6;
}


body.light #projects::-webkit-scrollbar,
body.light #skills::-webkit-scrollbar {
  width: 10px;
}

body.light #projects::-webkit-scrollbar-track,
body.light #skills::-webkit-scrollbar-track {
  background: #f5f5f5;
}

body.light #projects::-webkit-scrollbar-thumb,
body.light #skills::-webkit-scrollbar-thumb {
  background-color: #bcbcbc;
  border-radius: 6px;
  border: 3px solid #f5f5f5;
}

body.light #projects,
body.light #skills {
  scrollbar-width: thin;
  scrollbar-color: #bcbcbc #f5f5f5;
}

