:root {
    --lightblack: #403c38;
    --black: #312d2a;
    --darkblack: #211e1c;
    --gray: #737373;
    --lightgray: #b3b3b3;
    --red: red;
    --lime: #00cc00;
    --light-lime: #9dff9a;
    --green: green;
    --darkblue: rgb(0, 0, 109);
    --blue: rgb(43, 43, 194);
    --lightblue: rgb(0, 153, 255);
}
@font-face {
    font-family: codefont;
    src: url(fonts/CamingoCode-Regular.woff);
}
@font-face {
    font-family: dosfont;
    src: url(fonts/ModernDOS9x16.ttf);
}
html {
    box-sizing: border-box;
    font-size: 20px;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    width: 100% !important;
    height: 100%;
    background: var(--black);
}
/*    NAVIGATION    */
nav {
    background: transparent;
    z-index: 5;
    float: right;
}
nav.active {
    background: var(--darkblack);
    position: fixed !important;
    box-shadow: 0 0 1rem black;
    top: 0;
    animation: 1s fadeInDown ease-in-out;
}
@keyframes fadeInDown{
    from{
        transform: translateY(-600px);
    }
    to{
        transform: translateY(0px);
    }
  }
  
@-webkit-keyframes fadeInDown{
    from{
        transform: translateY(-600px);
    }
    to{
        transform: translateY(0px);
    }
  }
nav button {
    display: inline-block;
    height: 2rem;
    width: 10rem;
    background: var(--black);
    border: none;
    border-radius: 0.5rem;
    margin: 10px;
    text-align: left;
    transition: 0.25s ease-in-out;
}
nav button:hover {
    background: var(--green);
}
nav button img {
    height: 1.2rem;
    width: 1.2rem;
    margin: 0.3rem;
    float: left;
}
nav button span {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    padding: 0.2rem 0 0 0;
    float: left;
}
nav.sidebar button {
    display: block;
}
.mini-profile {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    padding: 6px;
}
/*      MENU BTN    */
#menu {
    z-index: 6;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    height: 3.5rem;
    width: 3.5rem;
    background: var(--black);
    box-shadow: 0 0 5px black;
    border: 0;
    border-radius: 1rem;
    display: none;
}
#menu.active {
    position: fixed;
}
#menu.show {
    display: inline;
}
#menu img {
    height: 2.5rem;
    width: 2.5rem;
}
/*      HEADER      */
.profile {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    border: 0.5rem solid black;
    margin-left: calc(50% - 9rem)
}
.profile-div {
    width: 100%;
    padding-top: 5rem;
    /*padding-left: calc(50% - 16.5rem);*/
}
/*      BANNER      */
header {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.header-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    background: linear-gradient(transparent 0%, transparent 60%, black 95%, black 100%);
}
.header-shadow.active {
    background: linear-gradient(transparent 0%, transparent 70%, var(--black) 100%);
    animation: aniShadow 1s forwards;
}
@keyframes aniShadow{
    from {
        background: transparent;
    }
    to {
        background: linear-gradient(transparent 0%, transparent 70%, var(--black) 100%);
    }   
}
/*  NAV ANIMATION   */
#top-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5.5rem;
    background: transparent;
    z-index: 2;
}
@keyframes fadeInDown{
    from{
        transform: translateY(-600px);
    }
    to{
        transform: translateY(0px);
    }
  }
  
@-webkit-keyframes fadeInDown{
    from{
        transform: translateY(-600px);
    }
    to{
        transform: translateY(0px);
    }
  }
#top-header.active {
    position: fixed;
    animation-name: fadeInDown;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    height: 4.4rem;
}
#top-header.active div.back {
    width: 100%;
    height: 4.4rem;
    background: var(--darkblack);
    box-shadow: 0 2px 20px black;
}
#top-header.active #logo {
    height: 3rem;
}
#logo {
    padding: 0.7rem;
    height: 4rem;
    float: left;
}
header:not(.active) nav:not(.sidebar) .nav-link {
    background: linear-gradient(to bottom,var(--orange1) 70%, var(--orange2));
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
    cursor: pointer;
    transition: 1s;
}
header:not(.active) nav:not(.sidebar) .nav-link:hover {
    background: linear-gradient(to bottom,#ffbb00 70%, #FF8E00);
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
#nav.sidebar {
    position: absolute;
    top: 0;
    left: 0;
    background: #747474BF;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    width: 100%;
    border-top: 5.5rem solid transparent;
    border-bottom: 20px solid transparent;
    padding-right: 0;
    z-index: -1;
    display: none;
    transform: translateY(-100%);
}
#nav.sidebar.noshow {
    animation: movetoup 1s;
}
#nav.sidebar.show {
    display: inherit;
    animation: movetodown 1s;
    transform: translateY(0);
}
@keyframes movetoup {
0% {
    transform: translateY(0%);
    display: inherit;
}
100% {
    transform: translateY(-100%);
}
}
@keyframes movetodown {
0% {
    display: inherit;
    transform: translateY(-100%);
}
100% {
    transform: translateY(0);
    display: none;
}
}

.sidebar .nav-link {
    display: block;
}
/*      MATRIX      */
#matrix {
    height: 100vh;
    width: 100%;
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -2;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: var(--lime);
    text-shadow: 0 0 10px var(--light-lime);
    font-family: dosfont;
    font-size: 1.5rem;
}
.m-div {
    writing-mode: vertical-lr;
    text-orientation: upright;
    display: inline-block;
    overflow: hidden;
    height: 100%;
    min-width: 1.5rem;
    max-width: 1.5rem;
    background: black;
    animation: code_fall 400ms infinite;
}
.m-ligth {
    color: var(--light-lime);
    text-shadow: 0 0 10px #e4ffe3;
}
.m-norml, .m-ligth {
    text-decoration: none;
    display: inline-block;
}
@keyframes code_fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(1.5rem);
    }
}
/*    MAIN-TITLE    */
.main-title {
    text-align: center;
    height: 1ch;
    margin: 0;
    display: inline;
    font-family: codefont, monospace;
    text-align: center;
    padding-left: calc(50% - 13rem);
}
.main-title span {
    display: inline-flex;
}
.main-title span:nth-child(2) {
    overflow: hidden;
    width: 10ch;
    animation: typingFirst 10s steps(9) infinite;
    animation-direction: alternate;
}
.main-title span:nth-child(3) {
    overflow: hidden;
    width: 10ch;
    animation: typingSecond 10s steps(8) infinite;
    animation-direction: alternate;
}
@keyframes typingFirst {
    0% {
        width: 9ch;
    }
    25% {
        width: 9ch;
    }
    50% {
        width: 0;
    }
    75% {
        width: 0;
    }
    100% {
        width: 0;
    }
}
@keyframes typingSecond {
    0% {
        width: 0;
    }
    25% {
        width: 0;
    }
    50% {
        width: 0;
    }
    75% {
        width: 8ch;
    }
    100% {
        width: 8ch;
    }
}
div.cursor {
    height: 3rem;
    width: 0.5rem;
    transform: translateY(0.5rem);
    background: var(--red);
    display: inline-block;
    animation: cursor 1s infinite;
    animation-direction: alternate;
}
@keyframes cursor {
    0% {
        background: var(--red);
    }
    60% {
        background: var(--red);
    }
    100% {
        background: transparent;
    }
}
/*      MAIN        */
main {
    background: var(--black);
    padding-top: 10%;
    padding-bottom: 10rem;
}
h1, h2, h3, p {
    font-family: codefont, sans-serif;
}
h1 {
    font-size: 2.5rem;
    color: var(--red);
}
h2 {
    font-size: 2rem;
    color: var(--red);
    padding-top: 5rem;
    margin: 0 auto 1rem auto;
}
h3 {
    font-size: 1.2rem;
    color: var(--red);
}
p {
    font-size: 1rem;
    color: var(--lime);
}
b {
    color: var(--red);
}
.in-section {
    border-radius: 1rem;
    background: var(--lightblack);
    box-shadow: 0 10px 0 var(--darkblack);
    width: 100%;
    height: 100%;
}
.padding {
    padding: 1rem 1rem 3rem 1rem;
}
.panel-section {
    display: inline-block;
    width: 40rem;
    max-width: 60%;
    height: fit-content;
    border-radius: 1rem;
    min-height: 15rem;
    text-align: center;
}
.panel-section.left {
    margin: 1rem 1rem 2rem 10%;
    max-width: 45%;
    padding-top: 4rem;
}
/*      ABOUT       */
#about p{
    text-align: justify;
}
.laptop-div {
    height: 350px;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    float: right;
}
/*      PROJECTS    */
.item-container {
    text-align: center;
    width: 100%;
    height: 32rem;
    overflow: hidden;
    justify-content: space-around;
    display: flex;
    overflow-x: auto;
}
html ::-webkit-scrollbar {
   background: var(--black);
}
html ::-webkit-scrollbar-thumb {
    background: var(--darkblack);
    border-radius: 10px;
}
html ::-webkit-scrollbar-thumb:hover {
    background: var(--lime);
}
.project {
    display: flex;
    height: 27rem;
    width: 20rem;
    background: var(--lightblack);
    border-radius: 1rem;
    box-shadow: 0 10px 20px black;
    margin: 1rem;
    transition: 0.5s ease-in-out;
    flex-shrink: 0;
}
.project:hover {
    transform: translateY(-0.5rem);
}
.project-img {
    width: 100%;
    height: auto;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.project p {
    text-align: justify;
    margin: 1rem;
}
.visit-btn {
    width: 10rem;
    color: white;
    font-size: 1rem;
    font-family: codefont, monospace;
    padding: 0.5rem;
    background: var(--blue);
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 0 var(--darkblue);
    transition: 0.5s ease-in-out;
    transform: translateY(0);
    cursor: pointer;
}
.visit-btn:hover {
    background: var(--lightblue);
    box-shadow: none !important;
    transform: translateY(10px) !important;
}
.visit-btn img {
    height: 1rem;
    width: 1rem;
}
/*      LARGE BTN     */
.large {
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    margin: 10px;
    transition: 0.5s ease-in-out;
    transform: translateY(0);
}
.large:hover {
    box-shadow: none !important;
    transform: translateY(10px) !important;
}
.large span {
    color: white;
    font-size: 1.5rem;
    padding: 0.7rem 10px 10px 10px;
    float: right;
}
.large img {
    width: 3rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}
/*      SKILLS      */
#skills, #projects {
    text-align: center;
}
div.skill-icon {
    width: fit-content;
    margin: 1rem;
    padding: 0.5rem;
    background: var(--lightblack);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0px 5px 10px black;
    display: inline-block;
    transition: 0.5s ease-in-out;
}
div.skill-icon:hover {
    box-shadow: 0px 10px 20px black;
}
#skills div.content {
    width: calc(100% - 9rem);
    display: inline-block;
}
.skill-icon img {
    width: 4rem;
    height: 4rem;
}
/*  MY CERTIFICATES */
#certificates {
    text-align: center;
}
/*      FOOTER      */
.panel-bottom {
    text-align: center;
}
.panel-bottom img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}
.contact-div {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin: 2rem 1rem 5rem 1rem;
    overflow: hidden;
    display: inline-block;
}
footer {
    width: 100%;
    background: var(--darkblack);
    position: relative;
}
footer p {
    font-size: 1rem;
    margin: 0;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}
/*      RESOLUTION      */
@media (max-width:1400px) {
    html {font-size: 20px;}
}
@media (max-width:1025px) {
    html {font-size: 17px;} 
    .panel-section {margin: 1rem 1rem 2rem 1rem !important; width: calc(100% - 2rem) !important; max-width: 100% !important;}
    .profile-div { width: 100%;}
    .laptop-div { width: 100%; text-align: center;}
    nav button { width: 11rem;}
}
@media (max-width:801px) {
    html {font-size: 15px;}
}
@media (max-width:600px) {
    html {font-size: 14px;}
}
@media (max-width:480px) {
    html {font-size: 12px;}
}
@media (max-width:320px) {
    html {font-size: 11px;}
}
