:root {
    --bg-color: #141414;
    --bg-accent-color: #181818;
    --bg-line-color: #8b8a8a09;
    --bg-line-color-hover: #414141;
    --text-color: #E7E2E2;
    --text-accent: #656565;
    --accent-color: #FF3D00;
    --status-accent-color: #e03011;
    --bg-overlay-color-opacity: #14141400;
    --bg-overlay-color: #141414;
}

body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Lexend', sans-serif;
}

body.light-mode {
    --bg-color: #E7E2E2;
    --bg-accent-color: #d9d2d2;
    --bg-line-color-hover: #aba7a7;
    --text-color: #141414;
    --text-accent: #656565;
    --accent-color: #FF3D00;
    --status-accent-color: #e03011;
    --bg-overlay-color-opacity: #e7e2e200;
    --bg-overlay-color: #E7E2E2;
}

html {
    height: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent-color);
}

main {
    width: 100%;
    height: 100%;
}

video {
    width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
    background: #ffffff33;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(255 255 255 / 30%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 50%);
}

.wrapper {
    padding: 1rem;
    height: 100%;
}

.container {
    border: 8px solid var(--text-color);
    display: flex;
    height: 100%;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.header {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-right: 8px solid var(--text-color);
    justify-content: space-between;
    z-index: 1000;
    background-color: var(--bg-color);
    border-radius: 1rem 0 0 1rem;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: var(--text-color);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.hamburger span {
    transition: all 0.3s ease;
}

.theme-switch {
    position: relative;
    display: inline-block;
    height: 30px;
    transform: rotate(90deg);
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    border-radius: 26px;
    transition: 0.4s;
    height: 30px;
    width: 60px;
    border: 2px solid var(--text-color);
}

.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-color);
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: transparent;
}

input:checked + .slider::before {
    transform: translateX(29px);
}

.links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
}

.links a {
    padding: .5rem;
    color: var(--text-color);
}

.links a:hover {
    padding: .5rem;
    color: var(--accent-color);
}

#hero {
    width: 100%;
    position: relative;
    display: flex;
    height: 100%;
}

.heroWrapper {
    width: 100%;
    position: relative;
    display: flex;
    height: 100%;
}

canvas {
    display: block;
    width: 100%;
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    z-index: -1;
    pointer-events: none;
}

#bio {
    height: 100%;
    display: flex;
    align-content: center;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    width: 60%;
    position: relative
}

#bio h1 {
    text-transform: uppercase;
    font-size: 5vw;
    line-height: 5vw;
}

#bio .info {
    max-width: 500px;
    margin-top: 2rem;
}

#bio .info p {
    font-size: 18px;
    line-height: 1.8rem;
}

.workstatus {
    display: flex;
    padding: .5rem;
     border: 1px solid var(--bg-line-color);
    border-radius: .5rem;
    align-items: center;
    gap: 2rem;
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg-color);
    box-shadow: 0px 0px 3px var(--bg-line-color-hover);
    margin-bottom: 2rem;
    position: absolute;
    right: -7rem;
    z-index: 3;
    top: 3rem;
    user-select: none;
}

.workstatus .avatar {
    position: relative;
    display: flex;
}

.workstatus .avatar img {
    width: 100%;
    max-width: 60px;
    border-radius: 3px;
}

.workstatus #status {
    position: absolute;
    right: -3px;
    bottom: -3px;
}

.workstatus .border {
    width: 20px;
    display: flex;
    height: 20px;
    background-color: var(--bg-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.workstatus .statuscolor {
    width: 12px;
    display: block;
    height: 12px;
    background-color: var(--status-accent-color);
    border-radius: 50%;
    z-index: 3;
}

.workstatus .statusblink {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--status-accent-color);
    border-radius: 50%;
    animation: ping 1s cubic-bezier(0,0,.6,1) infinite;
    opacity: 75%;
}

@keyframes ping {
    75%,to {
        transform: scale(2);
        opacity: 0
    }
}

.workstatus .hour span {
    font-size: 1.1rem;
    font-weight: 400;
}

.workstatus .activities .description {
    font-weight: 200;
    margin-right: .5rem;
}

.workstatus .activities {
    position: relative;
    margin-right: 1rem;
}

.workstatus .act {
    text-transform: uppercase;
    font-weight: 100;
    font-size: 10px;
    letter-spacing: 4px;
    position: absolute;
    top: -13px;
    
}


#sidebio {
    width: 40%;
    padding: 1rem;
}

#sidebio .sidebio-container {
    background-color: var(--bg-accent-color);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
}

#sidebio .firstline, #sidebio .secondline {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2rem;
    width: 100%;
}

#sidebio .firstline .line-wrapper {
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
    animation: line 90s linear 0s infinite;
    width: 100%;
}

#sidebio .secondline .line-wrapper {
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
    animation: reverseLine 80s linear 0s infinite;
    width: 100%;
}

#sidebio .line-wrapper img {
    width: 100%;
    border-radius: 0.5rem;
}

#sidebio .sidebio-bg {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 2rem;
}

.line-wrapper div {
    width: 100%;
}

@media(min-width: 992px) {
    @keyframes line {
        0% {
            transform: translateY(0)
        }

        to {
            transform: translateY(-100%);
        }
    }

    @keyframes reverseLine {
        0% {
            transform: translateY(-100%)
        }

        to {
            transform: translateY(0);
        }
    }
}

/* Sidebar */
.sidebar {
  position: absolute;
  top: 0;
  left: 75px;
  width: 0;
  height: 100%;
  background-color: var(--bg-color);
  overflow-x: hidden;
  overflow-y: hidden;
  transition: width 0.3s ease;
  z-index: 900;
  padding-top: 60px;
}

.sidebar .sidebar-content {
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0 20px;
  transition-delay: 0s;
}

.sidebar.active {
  width: 450px;
}

.sidebar.active .sidebar-content {
  opacity: 1;
  transition-delay: 0.3s;
}

.sidebar-content {
  transition: background 0.3s;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.nav-tabs {
    margin-bottom: 2rem;
}

.nav-tabs .tab-link {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    background: transparent;
    box-shadow: none;
    border: none;
    font-size: 18px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 300;
    margin-bottom: .5rem;
    margin-right: 1rem;
    padding: .5rem .2rem;
}

.nav-tabs .tab-link.active {
    opacity: 1;
    font-weight: bold;
    border-bottom: 2px solid var(--text-accent);
}

.sobre-content img {
    max-width: 100px;
    border-radius: .5rem;
    margin-bottom: 1rem;
}

.sobre-content p {
    font-weight: 300;
    margin-bottom: 2rem;
}

.sobre-content a {
    text-decoration: none;
    text-transform: uppercase;
    margin-right: 1.5rem;
}


.shadow {
    background-color: #000000;
    opacity: .9;
    width: 100%;
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 99;
    border-radius: .43rem;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.light-mode .shadow {
    background-color: #bdbdbd;
}

.shadow.active {
  opacity: .9;
}

.shadow:not(.active) {
  opacity: 0;
}

.logo {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 200px;
}



/* ------------------- projeto -----------------------*/

.projeto {
    padding: 1rem;
    overflow-y: scroll;
    height: 100%;
}

.projeto img {
    width: 100%;
    display: block;
}

.hero {
    border-radius: 0 .5rem 0 0;
    overflow: hidden;
}

.projectDetails {
    background-color: var(--bg-accent-color);
}

.projectDetails .row {
    display: flex;
    max-width: 1140px;
    margin: auto;
    padding: 2rem 1rem;
    gap: 3rem;
}

.projectDetails .col {
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.projectDetails span {
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    font-size: 14px;
    color: var(--text-accent);
    font-weight: 300;
    margin-bottom: .5rem;
}

.projectDetails .col-2 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 20%;
    flex: 1 1 20%;
    max-width: 20%;
}

.projectDetails .col-8 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 80%;
    flex: 1 1 80%;
    max-width: 80%;
}

.projectDetails .descricao {
    line-height: 1.4;
    font-size: 18px;
}

.row {
    display: flex;
}

.col {
    flex: 1 1 50%;
}



.project-info {
  max-width: 50vw;
}

.project-info a{
  text-decoration: none;
}

.project-info h1 {
  font-size: 3.8vw;
  line-height: 3.6vw;
  margin-bottom: .5em;
}

.project-info a span {
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 0.275em;
  text-transform: uppercase;
  color: #B2B2B2;
}

.project-info a span:hover {
  color: #FF1A00;
}

.top-info {
  text-align: right;
}

.projetoItem {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 3rem;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.projetoItem * {
    position: relative;
    z-index: 2;
}

.categoriasProjeto span {
    padding: .5rem 1rem;
    margin-bottom: .5rem;
    display: inline-block;
    width: fit-content;
    background-color: var(--bg-accent-color);
    margin-right: .3rem;
    border-radius: .5rem;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: 4px;
}

.categoriasProjeto {
    margin-bottom: 1rem;
}

.overlay-gradient {
     position: absolute;
    inset: 0; /* top: 0; left: 0; right: 0; bottom: 0 */
    background: linear-gradient(var(--bg-overlay-color-opacity), var(--bg-overlay-color));
    z-index: 1;
}


.btn-voltar {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
    position: fixed;
    font-size: 26px;
    margin-top: 1rem;
    margin-left: 1rem;
    border-radius: 3rem;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    background: var(--bg-color);
    box-shadow: 0px 0px 3px var(--bg-line-color-hover);
    border: 1px solid var(--bg-line-color);
    z-index: 3;
}

.btn-voltar:hover {
  background: var(--bg-accent-color);
}

#scroll-wrapper {
    position: absolute;
    display: table;
    z-index: 9;
    bottom: 0;
    left: 3rem;
}

#scroll-wrapper a {
    text-decoration: none!important;
}

#scroll-wrapper-inner {
    display: table-cell;
    vertical-align: bottom;
    width: 100%;
    height: 100%;
}

#scroll-down {
    display: block;
    position: relative;
    padding-top: 79px;
    text-align: center;
}

#scroll-title {
    display: block;
    text-transform: uppercase;
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-align: center;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}
#scroll-down::before {
    -webkit-animation: elasticus 2.9s cubic-bezier(1, 0, 0, 1) infinite;
    -moz-animation: elasticus 2.9s cubic-bezier(1, 0, 0, 1) infinite;
    -o-animation: elasticus 2.9s cubic-bezier(1, 0, 0, 1) infinite;
    animation: elasticus 2.9s cubic-bezier(1, 0, 0, 1) infinite;
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 90px;
    background: var(--text-accent);
    content: ' ';
    transition: background 0.3s ease;
}

#scroll-wrapper a:hover #scroll-title {
    color: var(--text-color);
}

#scroll-wrapper a:hover #scroll-down::before {
     background: var(--text-color);
}

@-webkit-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}
@-moz-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}
@-o-keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}
@keyframes elasticus {
    0% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
    50% {
        -webkit-transform-origin: 0% 0%;
        -ms-transform-origin: 0% 0%;
        -moz-transform-origin: 0% 0%;
        -o-transform-origin: 0% 0%;
        transform-origin: 0% 0%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    50.1% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 1);
        -ms-transform: scale(1, 1);
        -moz-transform: scale(1, 1);
        -o-transform: scale(1, 1);
        transform: scale(1, 1);
    }
    100% {
        -webkit-transform-origin: 0% 100%;
        -ms-transform-origin: 0% 100%;
        -moz-transform-origin: 0% 100%;
        -o-transform-origin: 0% 100%;
        transform-origin: 0% 100%;
        -webkit-transform: scale(1, 0);
        -ms-transform: scale(1, 0);
        -moz-transform: scale(1, 0);
        -o-transform: scale(1, 0);
        transform: scale(1, 0);
    }
}

@media (max-width: 992px) {
    .projectDetails .row {
        gap: 1rem;
    }
    .row {
        flex-direction: column;
    }
    .col {
        flex: 1 1 100%;
    }

    .header {
        height: auto;
        width: 100%;
        flex-direction: row;
        border-right: 0;
        border-bottom: 8px solid var(--text-color);
        border-radius: 1rem 1rem 0 0;
    }

    .container {
        flex-direction: column;
    }

    .menu, .links {
        flex-direction: row;
    }

    .theme-switch {
        transform: rotate(0deg);
    }

    .sidebar {
        max-height: 0;
        height: auto;
        left: 0;
        top: 75px;
        width: 100%;
        padding-top: 0;
        transition: max-height 0.3s ease;
    }

    .sidebar.active {
        width: 100%;
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        max-height: 100%;
    }

    .heroWrapper {
        flex-direction: column;
        justify-content: space-between;
    }

    #bio .info p {
        font-size: 16px;
    }

    #sidebio .line-wrapper img {
        max-height: 120px;
        width: fit-content;
    }

    #sidebio, #bio {
        height: auto;
        width: 100%;
        padding: 1rem;
    }

    .workstatus {
        right: auto;
        position: static;
    }

    #sidebio .firstline {
        display: none;
    }

    #sidebio .sidebio-bg {
        padding: 1rem 0
    }

    #sidebio .secondline .line-wrapper {
        display: inline-flex;
        flex-direction: row-reverse;
    }

    .projetoItem {
        padding: 1rem;
    }

    .projetoItem .project-info {
        max-width: 100%;
    }

    .project-info h1 {
        font-size: 1.8rem;
        line-height: initial;
    }

    #scroll-wrapper {
        display: none;
    }
    
    .projectDetails .descricao {
        line-height: 1.4;
        font-size: 16px;
    }
    
    
    .projectDetails .col-8 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .projectDetails .col-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }

    @keyframes line {
        0% {
            transform: translateX(0)
        }

        to {
            transform: translateX(-100%);
        }
    }

    @keyframes reverseLine {
        0% {
            transform: translateX(-100%)
        }

        to {
            transform: translateX(0);
        }
    }
}